Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Hi,
i wanted to implement dc motor speed control using atmega16 with clock internal 8mhz.
But im unable to do soand i guess i'm not using the proper prescaler.Please help me out with this.
void timer0_init()
{
TCCR0|=(1<<WGM00)|(1<<WGM01)|(1<<COM00)|(1<<COM01)|(1<<CS00)|(1<<CS02);
}
When i...
Hello everyone,
I'm doing a conveyor mechanism using a 3kg torque 12V dc motor. It is coupled with a worm gear and to a rod. Using ATMEGA16, I wanted to make the motor rotate in forward direction for 4 minutes and then in reverse direction for 2 minutes. I'm unable to get that much delay even if...
I am using an IR transmitter and a Phototransistor. I had problems with my previous controller so a bought a new one. To test whether all the pins are working, i declared all ports to be output and gave PortX=0,all pins showed 0 except 3 pins in the PORTD. Also AVCC and Aref pins are high...
if i use white, if i place at x cm i get different output and if i place at y cm (x>y) i get different output .This is what i say analog values. Syntax in c programming. Could yo provide me any code for line follower? Actually im in urgent need of it.
while(1)
{
a0 = adc_read(0); //...
Its not like that,depending on the colour the output varies.Practically, when i use black it gives 0v and white it gives 4v but while using white the output also varies according to the distance.Tell me something about the IF statement problem...
- - - Updated - - -
Give me the syntax for...
how can yo say it as a digital ir circuit?? Only if i connect it to a comparator it will give binary values. Actually i couldnt figure out the problem with IF statement. After numerous failures, i could understand only this. IF my condition is true led should glow,if not it should be off. But in...
ya i have interfaced it. so Aref should be connected to 5v.
Another problem i face is about the IF statement i have posted above please do tell me about it.
- - - Updated - - -
To say in short, even when the IF condition fails it keeps on executing thta is the output gets retained.
Hi jayanth,
thanks alot. MY activity is to interface an analog ir senor to atmega 16 using adc which is the first part of building a line follower. so the range is 0-5 Volts.
Hi,
im having a problem in executing the in-built adc function practically.Please help me rectify it.
i will elaborate on my doubts.Initially how should the AVCC ,AVref pin connected?
Also i have another problem with the execution of IF statement, evn when condition becomes false, it executes...
hi ud23!
ya i have read the datasheet. now how am i to start programming?for example during programming an adc there s a syntax for it and in the same way all the other features also have some syntax. are these syntax a standard one? if yes were can i get it??
---------- Post added at 23:27...
hey ud23! thanks alot for your suggestions. i've another doubt (do answer even if its silly). actually i've heard many saying read the datasheet. http://www.atmel.com/Images/doc2466.pdf is this the datasheet? what do you mean by reading a datasheet?? is it knowing about the features like...
hi!
i theoretically no something about microcontrollers but wen it comes to practical implementation im unable to do ... so can anyone guide me in how i can begin working with atmega16 practically...??
like how to program making use of its features,how burn program into microcontroller.... do...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.