Author Topic: Detecting bi-polar input using Arduino / MCU  (Read 852 times)

0 Members and 1 Guest are viewing this topic.

Offline danners430Topic starter

  • Regular Contributor
  • *
  • Posts: 137
  • Country: gb
  • Good at overcomplication
Detecting bi-polar input using Arduino / MCU
« on: July 12, 2018, 03:15:38 pm »
Afternoon folks,

Yet another question regarding RC receivers, albeit loosely :-)

I've discovered that the RC receiver I'm using outputs a bipolar PWM signal depending on user input. If the joystick is moved "forwards", we get a positive voltage, and if it's moved "backwards" we get a negative voltage.

Since Arduinos and MCUs generally can't detect negative voltages, I thought of using a pair of optocouplers to detect the two signals - one for detecting the positive voltage, the other to detect the negative voltage. Does this sound like a reasonable solution?

Cheers

Daniel
 

Offline In Vacuo Veritas

  • Frequent Contributor
  • **
  • !
  • Posts: 320
  • Country: ca
  • I like vacuum tubes. Electrons exist, holes don't.
Re: Detecting bi-polar input using Arduino / MCU
« Reply #1 on: July 12, 2018, 03:41:50 pm »
What receiver is this? This isn't like any RC radio I've ever heard of.

Why not just couple the signal to 1/2 the rail with a resistive network?
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19649
  • Country: gb
  • 0999
Re: Detecting bi-polar input using Arduino / MCU
« Reply #2 on: July 13, 2018, 07:43:33 am »
What voltages do you expect from the negative PWM signal?

How about scaling the voltage to within the power supply rails of the MCU and using a comparator to detect the appropriate threshold voltage?
 

Offline mikerj

  • Super Contributor
  • ***
  • Posts: 3275
  • Country: gb
Re: Detecting bi-polar input using Arduino / MCU
« Reply #3 on: July 13, 2018, 07:44:48 am »
Sounds like this receiver has a motor speed controller built in and the OP is looking at the voltage across the two outputs.  If so them measuring each output with respect to ground should give a unipolar PWM signal.
 

Offline danners430Topic starter

  • Regular Contributor
  • *
  • Posts: 137
  • Country: gb
  • Good at overcomplication
Re: Detecting bi-polar input using Arduino / MCU
« Reply #4 on: July 13, 2018, 07:46:18 am »
Hey guys,

Sorry for the lack of response, I was about as busy as could get yesterday [emoji23]

I've double checked with the manufacturer, and the info I was getting is wrong - it actually outputs a positive PWM signal, no negative voltages used... Problem solved by itself!

Cheers anyway folks!

Sent from my ONEPLUS A3003 using Tapatalk

 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf