+ Post New Thread
Results 1 to 4 of 4
  1. #1
    Member level 2
    Points: 353, Level: 4

    Join Date
    Aug 2018
    Posts
    46
    Helped
    0 / 0
    Points
    353
    Level
    4

    RASPBERRY PI input voltage detection

    Dear all,

    I am using Rasberry pi for one of my application.I have various level of digital input coming from sensor, voltage level

    My voltage levels are 3.3V/5V/12V/24VDC. Based on these input i am taking action on relay control. Rasberry pi operated 3.3V DC input so we can give directly

    For 5V/12V/24V dc what are ckt i need to build. weather voltage divider network will work out for application.

    level shifter can used in application.
    https://www.raspberrypi-spy.co.uk/20...berry-pi-gpio/

    •   AltAdvertisement

        
       

  2. #2
    Super Moderator
    Points: 74,927, Level: 66
    Achievements:
    7 years registered
    Awards:
    Most Frequent Poster 3rd Helpful Member

    Join Date
    Apr 2014
    Posts
    15,191
    Helped
    3461 / 3461
    Points
    74,927
    Level
    66

    Re: RASPBERRY PI input voltage detection

    Hi,

    There are many example circuits in the internet. They are there for you to read.
    You need to be able to find such basic informations on your own.
    If you still have trouble, then give us a link to the document you refer to, tell us what you understand so far and what is unclear.
    ******

    Are you talking about analog signals or digital signals?
    Direction only to Raspberry or the other direction, too?
    What currents, what speed?

    Klaus
    Please don´t contact me via PM, because there is no time to respond to them. No friend requests. Thank you.



    •   AltAdvertisement

        
       

  3. #3
    Full Member level 5
    Points: 4,428, Level: 15
    neils_arm_strong's Avatar
    Join Date
    Jan 2006
    Location
    Bangalore, India
    Posts
    289
    Helped
    27 / 27
    Points
    4,428
    Level
    15

    Re: RASPBERRY PI input voltage detection

    I am assuming you are getting digital signals at these voltage levels. In that case, you need to use level translator circuit. Please search online to see what are different level translator ICs available that can converter the 5V/12V/24V signal levels to 3.3V level.



    •   AltAdvertisement

        
       

  4. #4
    Advanced Member level 4
    Points: 5,647, Level: 17
    kripacharya's Avatar
    Join Date
    Dec 2012
    Location
    New Delhi
    Posts
    1,030
    Helped
    173 / 173
    Points
    5,647
    Level
    17

    Re: RASPBERRY PI input voltage detection

    Quote Originally Posted by nayakajit87 View Post
    Dear all,

    I am using Rasberry pi for one of my application.I have various level of digital input coming from sensor, voltage level

    My voltage levels are 3.3V/5V/12V/24VDC. Based on these input i am taking action on relay control. Rasberry pi operated 3.3V DC input so we can give directly

    For 5V/12V/24V dc what are ckt i need to build. weather voltage divider network will work out for application.

    level shifter can used in application.
    https://www.raspberrypi-spy.co.uk/20...berry-pi-gpio/
    Yes you should use voltage dividers for all those other voltages. Level shifters is an overkill.
    Here are some example values you could use. You can always calculate your own.

    Click image for larger version. 

Name:	dividers.JPG 
Views:	1 
Size:	19.3 KB 
ID:	153689

    Of course this will only work as long as you are only using it as inputs. This will work for digital inputs as long as your sensor signal is well behaved.
    If it is not well behaved, then you might want to feed these to ADC and actually measure the levels.



--[[ ]]--