Author Topic: Arduino and signals of different levels?  (Read 1285 times)

0 Members and 1 Guest are viewing this topic.

Offline dog80Topic starter

  • Regular Contributor
  • *
  • Posts: 64
Arduino and signals of different levels?
« on: January 24, 2014, 07:35:03 pm »
Let's say hypothetically that I want to control an output using the data from three inputs. The problem is that all these are at different voltage levels.

The output is a PWM signal at 12 Volts
The first input is an analog signal from 0 to 1.25 volts
The second input is a square pulse at 3 volts
And the third input is a square pulse at 8 Volts.

How can I implement that?
 

Offline niekproductions

  • Contributor
  • Posts: 38
  • Country: nl
    • NiekProductions
Re: Arduino and signals of different levels?
« Reply #1 on: January 24, 2014, 07:41:34 pm »
What exactly are you trying to do? It might be accomplishable using just logic gates. That will save you a lot of touble.
 

Offline Rerouter

  • Super Contributor
  • ***
  • Posts: 4694
  • Country: au
  • Question Everything... Except This Statement
Re: Arduino and signals of different levels?
« Reply #2 on: January 24, 2014, 07:59:09 pm »
This is all assuming a 5V supply and schmitt trigger inputs for the PWM and square waves

1 - 12V PWM, divide down by ~3 with a resistor divider (22K high, 10K low) then place a 4.7V TVS diode across the center point and ground to protect it, (assuming 5V supply) this you then feed into your first input, and is nice and safe for the outside world

2- Buffer with an op amp 1-1, with a 10K or higher value on its input and a 4.7V TVS diode (to ground) between the resistor and op amp input, you could even use said op amp to increase the gain of the signal if you want, but pick a rail to rail type, (includes lower voltage rail is a must)

3. Square 3V pulse, as long as you are confident it is 3V, then a 10K resistor and a 4.7V TVS diode to ground will be all the protection you need

4. 8V Square wave, divide it by 2 with a resistor divider (10K high, 10K low), and a 4.7V TVS diode between ground and the center point, this is your 4th input,
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf