Pages: [1]   Go Down
Author Topic: read ppm unknown voltage  (Read 955 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 12
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

can I read a sign ppm (rc receptor) which voltage i dont know in one arduino due pin or that may damage the pin?

Thanks.
« Last Edit: June 01, 2013, 06:31:22 am by gorgonas » Logged

Portland, OR (USA)
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The most significant part of your question is "voltage I do not know"! I'd suggest you never plug anything directly into any Arduino pin, unless you are absolutely sure you know exactly what it is.

I have been working on reading and generating PPM signals for the last two weeks using the Uno -- my Due is on order. But even with the Uno I have been protecting the pin by having the PPM signal going through a voltage comparator (LM339). This has allowed me to read the PPM signal from my Spektrum DX6i's trainer port. I plan to use the same setup with the Due when it arrives as the LM339 can be powered by 3.3V.

You could use a simple transistor circuit to protect the Due's input pin, but definitely use something to protect it.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 12
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The most significant part of your question is "voltage I do not know"! I'd suggest you never plug anything directly into any Arduino pin, unless you are absolutely sure you know exactly what it is.

I have been working on reading and generating PPM signals for the last two weeks using the Uno -- my Due is on order. But even with the Uno I have been protecting the pin by having the PPM signal going through a voltage comparator (LM339). This has allowed me to read the PPM signal from my Spektrum DX6i's trainer port. I plan to use the same setup with the Due when it arrives as the LM339 can be powered by 3.3V.

You could use a simple transistor circuit to protect the Due's input pin, but definitely use something to protect it.

When I say I do not know the voltage I mean if they are not 3.3 v or 5v. i Should change the question then and ask.

Can a sign ppm 5v damage the arduino due pin?

anyway i use something to protect it. thanks.
Logged

Portland, OR (USA)
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Can a sign ppm 5v damage the arduino due pin?

The safest option is to ALWAYS assume the answer is yes!  smiley-wink

I would never attach 5V to an 3.3V Due, just as I would never attach 7.6V to an Uno. My understanding is that Uno's internally have 1mA clamp diodes on their pins tied to the power rail and ground pins which will offer some protection, but not much. I don't know if this is true for all Atmel microcontrollers including the Due -- does any else reading this know if this is true?

[Edit: Even the Arduino site says it is a bad idea http://arduino.cc/en/Main/ArduinoBoardDue with the line "Warning: Unlike other Arduino boards, the Arduino Due board runs at 3.3V. The maximum voltage that the I/O pins can tolerate is 3.3V. Providing higher voltages, like 5V to an I/O pin could damage the board." smiley-wink

anyway i use something to protect it. thanks.

I applaud your decision...it is the wisest choice.  smiley
« Last Edit: June 02, 2013, 01:31:33 pm by NielsJL » Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 12
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I know that a sign 5v would harm one pin in arduino due, my question is whether to be a ppm pulse train at 5v it would harm ...

A 5v pwm signal with a period of 20ms and 50% duty cycle behaves as an analog signal 2.5 v ... from there my doubt whether a PPM or PWM 5v signal ... really would harm pin or not.

thanks.
Logged

Portland, OR (USA)
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

A 5v pwm signal with a period of 20ms and 50% duty cycle behaves as an analog signal 2.5 v ... from there my doubt whether a PPM or PWM 5v signal ... really would harm pin or not.

The concept you are describing, the DC equivalent voltage of an AC signal, applies to driving DC motors. I have used this myself both in class and at home. But, I would not apply it to anything else. Consider any voltage, AC or DC, over 3.3V applied to a Due pin as bad! It just isn't worth the (expensive) gamble. smiley-wink

Edit: BTW, I'm happy to share code and schematics for the PPM generator and decoder sketches...well, once I get them ported to the Due from the Uno. If this will help you?
« Last Edit: June 02, 2013, 06:56:17 pm by NielsJL » Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 12
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

A 5v pwm signal with a period of 20ms and 50% duty cycle behaves as an analog signal 2.5 v ... from there my doubt whether a PPM or PWM 5v signal ... really would harm pin or not.

The concept you are describing, the DC equivalent voltage of an AC signal, applies to driving DC motors. I have used this myself both in class and at home. But, I would not apply it to anything else. Consider any voltage, AC or DC, over 3.3V applied to a Due pin as bad! It just isn't worth the (expensive) gamble. smiley-wink

Edit: BTW, I'm happy to share code and schematics for the PPM generator and decoder sketches...well, once I get them ported to the Due from the Uno. If this will help you?

Yes, of course this will help me, thanks.
Logged

Pages: [1]   Go Up
Jump to: