Sorry guys , there's some possibility of burning the ADC Pins ? The adc pins have some protection for the overstrains ? I think i've burned the PIC !! The pic worked well in my circuit , then yesterday it stopped . I've tried to run this program for controlling a servo with adc pins ( an easy program test ) : Sub Main() ' This program will move the servo to its middle position. Const ServoPin2 As Byte = 19 Dim I as integer For I = 1 To 20 step 1 Call PulseOut (ServoPin2, 0.00152, 1) Call Delay (0.02) next End Sub but the position of servo is not in the middle position but in another place !! I've tried to change the Pulseout ( 0.0032 - 0.0072 ), the adc pin and the servo , but the answer of the servo is always the same !! The servo always moves in the same position ( DX end stroke )!! The atn diagnostic doesn't work ! The same is for the rescue button ! sorry for the bad english ! |
|
Bx 24 doesn't work
Started by ●May 31, 2004
Posted by ●May 31, 2004
dear tonifix (??) There is no protection on the pins, as per the documentation. I suggest you connect an LED to the pin via a 470ohm resistor and pulse the pin on and off and see if it pulses the led. Then replace the LED with a switch to ground, via a 470ohm and test the pin as an input with the internal pullup turned on and see if the pin works as an input. neil tonifix wrote: > Sorry guys , there's some possibility of burning the ADC Pins ? The > adc pins have some protection for the overstrains ? I think i've > burned the PIC !! > The pic worked well in my circuit , then yesterday it stopped . > I've tried to run this program for controlling a servo with adc pins > ( an easy program test ) : > > Sub Main() > ' This program will move the servo to its middle position. > Const ServoPin2 As Byte = 19 > > Dim I as integer > > For I = 1 To 20 step 1 > Call PulseOut (ServoPin2, 0.00152, 1) > Call Delay (0.02) > next > End Sub > > but the position of servo is not in the middle position but in > another place !! I've tried to change the Pulseout ( 0.0032 - > 0.0072 ), the adc pin and the servo , but the answer of the servo is > always the same !! The servo always moves in the same position ( DX > end stroke )!! > > The atn diagnostic doesn't work ! The same is for the rescue button ! > > sorry for the bad english ! > > > * > <http://companion.yahoo.com" target="_blank" rel="nofollow">http://rd.yahoo.com/SIG9q82b6i/M)5196.4901138.6071305.3001176/D=groups/S06554205:HM/EXP86080005/A!28215/R=0/SIGse96mf6/*http://companion.yahoo.com > > > *>. |