Hardware question: Interfacing a servo PPM to a 3.3v micro...
- From: frenchy <deja@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 17 Mar 2008 06:37:59 -0700 (PDT)
Hello,
I am bringing an RC servo signal into the input capture module of the
PIC24FJ64GA002. The RC receiver outputs a voltage pulse that has an
amplitude which approximately tracks the battery level of the
receiver. Therefore the servo pulse-high voltage can be up to 8volts
and can sag down to 4 volts or so. Which of these options is the best
design practice?...
1) Put a 10k in series and hook the servo pulse up directly to the
input capture pin. Any injected current will be very small (<0.5mA).
2) A resistor divider seems like a bad idea because as the battery
voltage sags, the input to the input capture will not be in a reliable
range because it will sag to.
3) Use an NPN transistor with the emitter tied to GND. The 4-7v
pulses will go to the base through a ???ohm resistor and the collecter
will go through a ???ohm resistor to the +3.3v rail. The collector is
now input into the input capture. This will invert the signal, but it
will also force it to be nicely in the 0 to 3.3v digital range.
Being that this is my first PIC24F project AND my first dealings with
Radio Controlled hobby applications, I am dealing with the system as
it is. My friend's system that I am working with uses the motor
batteries through the motor controllers (Traxxas XL-1) to "backfeed"
power to the receiver (Futaba FP-R7H). The receiver therefore does
not have its own independent power, it runs off the motor batteries
(PowerMax 2400mAH Peak Racing Pack) and varies from approx 7v to 4v as
they discharge. Should I actually prefer to run the receiver off from
its own power and use the resistor divider scheme? I was thinking
that the inverting transistor scheme (#3 above) would be more
versatile because it provides a digital signal that is always between
3.3v and GND, no matter which battery and no matter how discharged.
Thanks for any input.
respectfully,
frenchy
.
- Follow-Ups:
- Re: Hardware question: Interfacing a servo PPM to a 3.3v micro...
- From: Andrew Smallshaw
- Re: Hardware question: Interfacing a servo PPM to a 3.3v micro...
- From: Tim Wescott
- Re: Hardware question: Interfacing a servo PPM to a 3.3v micro...
- From: Robert Adsett
- Re: Hardware question: Interfacing a servo PPM to a 3.3v micro...
- Prev by Date: WIN-AVR trouble
- Next by Date: Software question: Capturing a servo PPM using a PIC24FJ64GA002...
- Previous by thread: WIN-AVR trouble
- Next by thread: Re: Hardware question: Interfacing a servo PPM to a 3.3v micro...
- Index(es):
Relevant Pages
|