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. My Project
  3. Sensors connection to RPi

Sensors connection to RPi

Scheduled Pinned Locked Moved My Project
5 Posts 2 Posters 1.2k Views 2 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.
  • M Offline
    M Offline
    Mohammad Khalid
    wrote on last edited by
    #1

    Hello everyone,
    I am working on a project and I am having a doubt regarding the connection of multiple sensors to Raspberry Pi 3 model B. I can connect the sensors with the help of their addresses and know what type(e.g. temp, humidity, IR, accelerometer, etc) of sensors they are. However, I have been given a task where upon as soon as the sensor is connected to RPi, the Rpi itself recognizes what type of sensor it is and then the reading values get stored in a table created regarding that specific sensor type. How can I identify the sensor type without knowing it?
    Any help is appreciated.

    Thanks

    1 Reply Last reply
    0
    • gohanG Offline
      gohanG Offline
      gohan
      Mod
      wrote on last edited by
      #2

      without using Mysensors?
      If not, I2C sensors usually have the same address or a choice between 2 or 3, maybe you can make a list and check

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Mohammad Khalid
        wrote on last edited by Mohammad Khalid
        #3

        I am not using Mysensors. For example, ADXL345 has address 0x00 and 0x53(slave) which is occupied on RPi along with other sensors and it gets disconnected. Upon reconnection how can the RPi recognize that its the same sensor or another based on the values of the sensor. Without hard coding the address of sensor on RPi.

        1 Reply Last reply
        0
        • gohanG Offline
          gohanG Offline
          gohan
          Mod
          wrote on last edited by
          #4

          Maybe it is a question more for the raspberry forum. Anyway, there are multiplexer boards that allow you to use I2C devices that have same address. More than that I don't know, since the sensors isn't presenting itself you have to work on addresses or run all initialization sequence for all sensors and stop until you get a response for each address.

          1 Reply Last reply
          1
          • M Offline
            M Offline
            Mohammad Khalid
            wrote on last edited by
            #5

            Thank you for your responses. I will look into it.

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


            23

            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