Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Hardware
  3. sensors, voltage and pull up/down resistors

sensors, voltage and pull up/down resistors

Scheduled Pinned Locked Moved Hardware
6 Posts 4 Posters 3.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • marceltrapmanM Offline
    marceltrapmanM Offline
    marceltrapman
    Mod
    wrote on last edited by marceltrapman
    #1

    While designing and soldering up my first board with 3 sensors (terminals) I was thinking about making my next (5 volt) board as generic as possible.

    For me that would mean:

    • 2 3-pin terminals for sensors to digital (interrupt) pins
    • no brainer
    • 1 3-pin terminal for a sensor to analog pin
    • no brainer
    • pull up or pull down resistors
    • I can either make space for 2 smd resistors and solder only one on the board
    • Or be flexible and use a switch/jumper to switch between gnd/vcc per sensor
    • 3.3 volt or 5 volt
    • I was thinking of making the 2 digital sensors 3.3v and the analog one 5v
    • Or be flexible and use a switch/jumper to switch between 3.3v/5v per sensor

    I could also make the terminals all with pull up resistors and 3.3v and make a single board for the occasional exception (which will happen anyway since not all sensors are 3 pins)...

    Obviously the board has to be as small as possible so when I use a switch/jumper they need to be small :)

    Any thoughts about this?
    How would you do it?

    Fulltime Servoy Developer
    Parttime Moderator MySensors board

    I use Domoticz as controller for Z-Wave and MySensors (previously Indigo and OpenHAB).
    I have a FABtotum to print cases.

    YveauxY 1 Reply Last reply
    0
    • marceltrapmanM marceltrapman

      While designing and soldering up my first board with 3 sensors (terminals) I was thinking about making my next (5 volt) board as generic as possible.

      For me that would mean:

      • 2 3-pin terminals for sensors to digital (interrupt) pins
      • no brainer
      • 1 3-pin terminal for a sensor to analog pin
      • no brainer
      • pull up or pull down resistors
      • I can either make space for 2 smd resistors and solder only one on the board
      • Or be flexible and use a switch/jumper to switch between gnd/vcc per sensor
      • 3.3 volt or 5 volt
      • I was thinking of making the 2 digital sensors 3.3v and the analog one 5v
      • Or be flexible and use a switch/jumper to switch between 3.3v/5v per sensor

      I could also make the terminals all with pull up resistors and 3.3v and make a single board for the occasional exception (which will happen anyway since not all sensors are 3 pins)...

      Obviously the board has to be as small as possible so when I use a switch/jumper they need to be small :)

      Any thoughts about this?
      How would you do it?

      YveauxY Offline
      YveauxY Offline
      Yveaux
      Mod
      wrote on last edited by
      #2

      @marceltrapman Remember that pull-up resistors are only required in 'special' cases as the ATMega has internal pull-ups that can be enabled.
      I guess your sensor boards will be put away somewhere after assembling, so flexibility by using jumpers will only take up board space and will not bring anything when sensor is in use.
      I'd prefer to have double SMD resistor footprints with only one mounted.
      Another option is to use solder jumpers, which are small but not as easy to toggle as regular jumpers:

      jumpers.jpg

      Or even something like:

      imu-2-triple-axis-accelerometer-triple-axis-250-to-2000s-gyroscope-combo-1.jpg

      Where one of the outer pads is VCC, and the other GND. By shorting the center to one of the two you select either VCC or GND.

      Most Chinese off-the-shelf analog sensors are 5V supplied, so that seems to be a sane choice.

      http://yveaux.blogspot.nl

      marceltrapmanM 1 Reply Last reply
      0
      • YveauxY Yveaux

        @marceltrapman Remember that pull-up resistors are only required in 'special' cases as the ATMega has internal pull-ups that can be enabled.
        I guess your sensor boards will be put away somewhere after assembling, so flexibility by using jumpers will only take up board space and will not bring anything when sensor is in use.
        I'd prefer to have double SMD resistor footprints with only one mounted.
        Another option is to use solder jumpers, which are small but not as easy to toggle as regular jumpers:

        jumpers.jpg

        Or even something like:

        imu-2-triple-axis-accelerometer-triple-axis-250-to-2000s-gyroscope-combo-1.jpg

        Where one of the outer pads is VCC, and the other GND. By shorting the center to one of the two you select either VCC or GND.

        Most Chinese off-the-shelf analog sensors are 5V supplied, so that seems to be a sane choice.

        marceltrapmanM Offline
        marceltrapmanM Offline
        marceltrapman
        Mod
        wrote on last edited by
        #3

        @Yveaux said:

        I'd prefer to have double SMD resistor footprints with only one mounted.

        Thank you for your fast reply!!!

        That is what I have right now.
        But I wanted to make sure that I did not overlook anything and ask 'the experts' :)

        About 5v, almost all sensors I have claim to be 5v but work with 3.3v as well so I am not certain about that. I guess the solder jumpers could do a good job here...

        Fulltime Servoy Developer
        Parttime Moderator MySensors board

        I use Domoticz as controller for Z-Wave and MySensors (previously Indigo and OpenHAB).
        I have a FABtotum to print cases.

        epierreE 1 Reply Last reply
        0
        • marceltrapmanM marceltrapman

          @Yveaux said:

          I'd prefer to have double SMD resistor footprints with only one mounted.

          Thank you for your fast reply!!!

          That is what I have right now.
          But I wanted to make sure that I did not overlook anything and ask 'the experts' :)

          About 5v, almost all sensors I have claim to be 5v but work with 3.3v as well so I am not certain about that. I guess the solder jumpers could do a good job here...

          epierreE Offline
          epierreE Offline
          epierre
          Hero Member
          wrote on last edited by
          #4

          @Yveaux hello, a question also for me... I have some sensors without boards that require either 6V or 2.5V, what should I do on this ?

          z-wave - Vera -> Domoticz
          rfx - Domoticz <- MyDomoAtHome <- Imperihome
          mysensors -> mysensors-gw -> Domoticz

          YveauxY 1 Reply Last reply
          0
          • epierreE epierre

            @Yveaux hello, a question also for me... I have some sensors without boards that require either 6V or 2.5V, what should I do on this ?

            YveauxY Offline
            YveauxY Offline
            Yveaux
            Mod
            wrote on last edited by
            #5

            @epierre Ideally you could add some converters to get to 6V or 2.5V.
            Another option is to test if the 6V sensors work allright at 5V; could just be the case...
            2.5V you can easily create by adding a silicon diode in series with a 3.3V supply. The voltage drop over the diode lowers the supply voltage by approx. 0.7V giving around 2.6V.

            http://yveaux.blogspot.nl

            1 Reply Last reply
            0
            • Z Offline
              Z Offline
              Zeph
              Hero Member
              wrote on last edited by
              #6

              There are 5V and 3.3v digital sensors as well as analog, so making it selectable would add flexibility.

              Either with jumpers or by using 4 pin connectors with both voltages.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              20

              Online

              11.7k

              Users

              11.2k

              Topics

              113.1k

              Posts


              Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • MySensors
              • OpenHardware.io
              • Categories
              • Recent
              • Tags
              • Popular