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...

engravR (RPi Laser Engraver) [Project]

Drum led light trigger [Project]

Reverse-engineering the TL431 [Project]

Five tricks to ease up our troubled lives! [Lifehacks]

Turn your Raspberry Pi into a live HDTV transmitter [Project]

Test if cold air enters from your windows

A nice homemade apple grinder [Project]

Temperature-Sensitive Infinity Mirror [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