Home     Contact     Projects     Experiments     Circuits     Theory     BLOG     PIC Tutorials     Time for Science     RSS     Terms of services     Privacy policy  
 Home      Projects     Experiments     Circuits     Theory     BLOG     PIC Tutorials     Time for Science   

<< Back to INDEX

TinyPrime [Project]
posted July 21 2014 13:52.21 by spic0m

Spacewrench, member at DorkbotPDX, build this tiny prime number generator:

"This is a rebuild of the TeensyPrime project I built a while ago, using a separate breadboard that's almost too small (I had to use magnet wire to fit some of the connections) and a microcontroller that's almost too small. The ATTiny13A is a neat chip: AVR with 1K of flash, 64 bytes of RAM and 64 bytes of EEPROM. I programmed it using a Teensy-2.0-based waldo running Ward Cunningham's TXTZYME.

The programming for this is actually kind of interesting. Every time you push the button, the AVR retrieves the currently-displayed number (which is stored in EEPROM), and then increments it, clicks the counter, and tests for primality. If the number isn't prime, it increments and clicks again. When a prime number is reached, it stops and waits for another button press. But how do you (relatively) efficiently test for primality of numbers when you only have 1K of Flash?"

[Link: DorkbotPDX]

You might also like...

IViny Compact Data Acquisition Device [Project]

You can DIY your Nokia phone Video cable

Online Calculator for your PCB Track Inductor

Why on Earth one would want a mercury hourglass? [Hack]

Simple - Basic RF transmitter - receiver Circuit [Project]

Those DIY Bicycle Turn Signal LEDs Are... [Project]

OLED Wrist Watch v4.2 [Project]

Build your own cheap disk sander [Project]

<< Back to INDEX



  Email (shall not be published)


Notify me of new posts via email

Write your comments below:
BEFORE you post a comment:You are welcome to comment for corrections and suggestions on this page. But if you have questions please use the forum instead to post it. Thank you.


No comment yet...

Be the first to comment on this page!

 Contact     Forum     Projects     Experiments     Circuits     Theory     BLOG     PIC Tutorials     Time for Science     RSS   

Site design: Giorgos Lazaridis
© Copyright 2008
Please read the Terms of services and the Privacy policy