so im using the PICDEM2+ board and the minimal PIC18 board, and the servos just wont respond to the control signals
the servos keep twitching and dont respond to the control signals from the PIC..sometimes the twitching is more controlled with a control signal, & sometimes it isnt.they twitch from the time i plug in the power..
the oscillocope shows perfect pulses of min 1ms and max 2ms. what am i doing wrong/not doing?
the power supply for it is 5V regulated 3A.
we've tried about 3 different servos, same story..
it doesnt work in proteus either... here's the code again.. for 10Mhz..this code has been modified using the code given in the "junebug servo code" thread by pommie...
as per be80be reply, my board does not have the Y1 oscialltor and C4 and C5 capacitors. Y2 is the 4MHz osciallator.
What's the low period between high pulses? They will twitch like that if the low period is too long. Check on your CRO and make it 1.5mS HIGH period and 20mS LOW period. That should centre the servo with no twitching.
so that configuration line is to configure
watch dog timer - off
low voltage programming - off
OSC -?
OSCS - ?
DEBUG - on?
im using the PICDEM2+ with a 4MHz crystal and then later on on a 10MHz crystal on a minimal PIC18 board...
will i hav to change the config stuff once i program it on the final PIC?
we ran the servos on a test circuit we found on the internet, and it seemed to work ok. but when we run it on the code it behaves really weird... did the onfig bit change, and still the same...