Need help Propeller clock with ATMega16

4 posts / 0 new
Last post
Coita Petru-Daniel
djpetry's picture
Offline
Joined: 29/04/2012
Posts: 2
Points: 100
Need help Propeller clock with ATMega16

I want to build a propeller clock using ATMega 16 . Does anyone have a schematic file for this king of project?

I want also to use 3 74hc59581 latches for my Rgb Leds and i also need some help with the code. If anybody has done this , please share

D.V.G. Krishna
dinodanda's picture
Offline
Joined: 05/03/2011
Posts: 88
Points: 9120

yes

im working on the same project

first i made it with 8051 later i developed it with atmega16L

 

currently im working to stebilize the display using a IR slot sensor and interrupts of atmega16,

 

if you want to make a simple one

you need to work on delay calculations as per your motor.use the delay functions given in util folder in winavr

#define F_CPU 16000000UL

// as per your working frequency

#include<util/delay.h>

 

the functions are

_delay_ms(1000);//1000milliseconds delay

_delay_us(1000);1000micro seconds delay

 

refer the following link

http://homemaderobo.blogspot.in/2012/03/propellerrotating-led-display.html

 

 

Coita Petru-Daniel
djpetry's picture
Offline
Joined: 29/04/2012
Posts: 2
Points: 100

 

Thank you for the advice . I've read your blog and it hink you did a great job . 
I also read the comments , you offered the code in C . Could you please send it to me on my email dj_petri_91@yahoo.com?
Have you used the IR emitter to activate the main interuption ( when the propeller completes a full rotation)?
Thank you again
D.V.G. Krishna
dinodanda's picture
Offline
Joined: 05/03/2011
Posts: 88
Points: 9120

if we use IR led and photodiode the switching will not be accurate. and it wont work properly at high speeds

Login or register to post comments
You are here