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]
 
Share



You might also like...


Ben Builds an Apple 1 Replica from a Scratch - Episode 1 [Project]

One-chip 11x10 LED matrix [Project]

X-Men 's Cyclops style laser glasses [Project]

Experiment with DHT11 and Arduino [Tutorial]

Connect Four Robot [Project]

One-Chip Sound Player [Project]

Raspberry Pi Gameboy Pocket (Pi-Pocket) [Project]

Raspberry Pi Temperature & Humidity Network Monitor [Project]


<< Back to INDEX



Comments

  Name

  Email (shall not be published)

  Website

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