Post Created date
Servo code didn't work...
Servos work, so it’s time for summary.   I started this thread from one of my projects - 3Servos + 2Potentiomwters + 1Pushbutton:     My MCU is ATmega328p, and my...
Monday, 6 December 2021 - 11:52
Servo code didn't work...
It was shown rightly here:
Saturday, 4 December 2021 - 14:12
Servo code didn't work...
david.prentice wrote:Please add your country to to your profile.  And say which is your native language.   I added my country, and I haven't found where to add my native...
Friday, 3 December 2021 - 11:53
Servo code didn't work...
david.prentice wrote:We could probably just write your program for you.   No, no, no, I'm a man with self-respect and taste, actually I never trust and copy other's code and...
Friday, 3 December 2021 - 11:49
Servo code didn't work...
I mean why not "while(1<<ADSC)"?
Friday, 3 December 2021 - 02:13
Servo code didn't work...
Since "ADCSRA |= (1<<ADSC);", why need "while(ADCSRA &)" ?
Friday, 3 December 2021 - 01:44
Servo code didn't work...
grohote wrote:it read before data are ready Explain it please.
Wednesday, 1 December 2021 - 01:12
Servo code didn't work...
It was said in ATmega328p's datasheet, ADCH should be read first.
Wednesday, 1 December 2021 - 01:09
Servo code didn't work...
david.prentice wrote:Test the Servos with OCR1A = 0 and OCR1A = 4000.  i.e. 0% and 10%   I tested them, they all ran rightly.
Tuesday, 30 November 2021 - 15:37
Servo code didn't work...
david.prentice wrote: TCCR1A = (2<<WGM10)|(3<<COM1A0)|(3<<COM1B0); //WGM=14 (Fast PWM), Inverted OC1A,OC1B   1. what does these mean:"2<<", "3<...
Tuesday, 30 November 2021 - 15:18
Servo code didn't work...
david.prentice wrote:Your push-button is wrong by 90 degrees. Thanks for remind it, I wired right and drew wrong.
Tuesday, 30 November 2021 - 13:49
Servo code didn't work...
Would not it be float? I have thought after the int divided by a float, the result would be a float.
Tuesday, 30 November 2021 - 13:47

Pages