Arduino programming

Discussion in 'Embedded Systems and Microcontrollers' started by Filoe16, Sep 16, 2013.

  1. Filoe16

    Thread Starter New Member

    May 7, 2013
    7
    0
    Hey guys

    I am trying to program a sensor using an arduino. The sensor is operational at 10V DC and an arduino only gives out like 5V. I wanted to know how can I manipulate it to output 10V.

    Do I need some hardware or can I do it with just programming?

    Thanx in advance!
     
  2. sirch2

    Well-Known Member

    Jan 21, 2013
    1,008
    351
    No you cannot do it with programming and judging by your question you may have a bit of a learning curve to get up. You need a separate 10v supply for your sensor and then some circuitry to reduce the sensor output to a suitable level for the microcontroller.

    More details about the sensor would be helpful.
     
  3. Filoe16

    Thread Starter New Member

    May 7, 2013
    7
    0
    Its a FESTO inductive sensor (SIEH-3B-PS-K-L)...It operational at 10-30VDC and has a 100mA maximum current. It is PNP and the voltage drop is <2V. I dont know if this is sufficient as that is all I have at the moment.
     
  4. sirch2

    Well-Known Member

    Jan 21, 2013
    1,008
    351
    OK, so it looks like it is basically a switch. The Arduino has an on-board voltage regualtor so you could run everything off, say, a 12V supply but you would need a voltage divider (two resistors in series) across the senor to give a reasonable voltage level into the Arduino digital input. Something like a 6k8 and a 4k7 resistor with the arduino across the 4k7 should do it but you better check my maths.
     
    Filoe16 likes this.
Loading...