Thanks for the replies.
I have no problem measureing a signal from another source thats at 270mV using 12f675 so I don't see why that would be the problem?
Thanks for the replies.
I have no problem measureing a signal from another source thats at 270mV using 12f675 so I don't see why that would be the problem?
because you're lucky?
look at the datasheet, the min voltage to be considered as HIGH level is written somewhere.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Are you talking about VIL and VIH?
If so that means there have to be a 2V swing...
Thats to tell if its high or low, im not sure this is the same thing.
I have seen many other people using pics to decode the signal from a R/C receiver. The output of the receiver signal, the pulse width is no where near even half a volt.
I have done this with a 270mV signal on over 50 chips so im either really lucky or something else.
Again im new to all this but like I said I have never had any problems reading a pulse width off a rc receiver and thats at 270mV
any model or datasheet for your receiver? Is it possible that it's open-drain output type? what happen if you place a 1-10K pull-up resistor on it's output?
And yup it's Vil and Vih. it may differ from one i/o to another depending if it's an TTL or shmitt trigger one.
0.3 v seems realllllly low to me. If it works... maybe your scope miss some noise or maybe you have some better receiver / pic.
still thinking you're lucky![]()
Last edited by mister_e; - 26th February 2007 at 01:30.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
No I don't have a datasheet for either Receiver.
I don't know what open-drain output type means
1K resistor made no difference using pulsin.
I'm so stupid...
I didn't have the input pin set as input, works fine now
s h i t happen
don't worry, it happen to everybody one day or another... expert or newbie...
here's a few explanation of the open-drain output
http://en.wikipedia.org/wiki/Open-drain
http://www.acroname.com/robotics/inf.../opn_clct.html
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
-> If so that means there have to be a 2V swing...
The difference between VIL and VIH is dependant upon the type of circuitry involved...generally speaking:
CMOS: 0= <1/2 Vdd, 1= >1/2 Vdd
TTL: 0= <.8v, 1= >.7Vdd
-> the pulse width is no where near even half a volt.
Pulse width is measured in time, not in quantity. If you are putting a meter on a line with a signal meant for a servo, what you are actually reading is the average DC voltage on that line. And 300mV seems about right consider that the signal isn't constant (50hz give or take) and is only around 1.5ms during those times.
-> I have done this with a 270mV signal on over 50 chips so im either really lucky or something else.
You probably haven't been measuring a 270mV signal. As stated in the paragraph above, you've probably been measuring a signal that swings from 0v to 5v, with an average DC value of 270mV.
-> Again im new to all this but like I said I have never had any problems reading a pulse width off a rc receiver and thats at 270mV
Again, R/C receivers don't output a signal that's around 270-300mV. It's definetely a signal that's repeating at a rate of 50hz, for about 1.5ms for every repitition. So if we do a bit of math on that...
50hz = one signal every 20ms. A centered servo wants a signal of around 1.5ms, generally between 1-2ms. Therefore, over a second, the total amount of time, on average, with a pulse width of 1ms, this signal is reaching 5v is about 20ms.
20ms out of 1000ms = (5v * 20ms) + (0v * 980ms) = .25V on average.
Does that work for you?
Last edited by skimask; - 26th February 2007 at 01:38.
Bookmarks