About the two Input in one bolt Device

Dear All,

Is it possible to use two Input sensor (LRD and Temperature Sensor) in Ao part with in the same project.

No you cannot take the readings of both the sensors at a time through the same pin.

Thank you for information :grin:but I want two sensor together.
Why I can not use other input.

Regards
Vinit

hey friend, when you read a value from a pin it would give the analog value(as its connected to the analog pin here).
when you connect more than one sensor it would randomly throw out values for both or maybe just any one of them.

Thank you :blush:
Can I use other GPIO pin to get value.
Will it work for me.
Any idea

:thinking:

No, the sensors give analog output and cannot be connected to a digital GPIO pins. The digital GPIO pins just gives you 0 or 1 for the output and not the actual voltage across the sensors.

at the time when we attach a input/output device at GPIO pins, a valid variable name should be given it. but in the case of two component at a time will confuse the system, that which one to be assigned and take values. and also we can chose either i/p or o/p device

it’s depend on your sensor if your sensor is digital then its ok to connect with gpio pins but if your sensor is analog you have to connect to A0 pin for example ldr can be used as digital and analog both difference is that in digital you will get 0 and 1 other side in analog you will get 1 to 255 value i hope i cleared your doubt.

@vinitjanatics Because you have specifically mentioned that in your project you want to utilize a LDR sensor and a temperature sensor simultaneously, let me clarify that the ‘Bolt Wi-Fi Module’ alone shall not suffice for interfacing both these sensors. The reason being that both of these are analogue sensors (that is they provide analogue outputs) while the ‘Bolt Wi-Fi Module’ has just a single analogue-input pin (‘A0’).

  • Now, feeding both sensors’ respective signals simultaneously to the ‘A0’ pin shall completely confuse the system, rendering either sensors’ data corrupt and incoherent.
  • While, if you feed these signals to any two-separate digital-input pins (say, ‘0’ and ‘1’) then you will not be able to read sensors’ exact data (and take various suitable actions accordingly thereof). That’s because digital pins either operate at level ‘LOW’ or at level ‘HIGH’ and for them there is nothing in between these two states. So all point of having analogue-sensors becomes invalidated.

WAY OUT:
I was facing the same conundrum while designing a project. I had to involve two analogue sensors (temperature and proximity) and a digital sensor (capacitive touch). I overcame this problem by using the ‘Arduino Nano’ development board for the interfacing of these sensors, that’s because the Arduino board provides a large number of analogue and digital input pins.
Now the Arduino board receives data from the sensors, processes this data and then conveys the insight achieved by triggering the ‘Bolt Wi-Fi Module’ on different digital-input pins depending on what action needs to be carried out. Then the ‘Bolt Wi-Fi Module’ (along with the ‘Bolt Cloud’ of course) carries out that particular action. Thus, while the Arduino board provides the minor interfacing and processing capabilities to the project, the ‘Bolt Wi-Fi Module’ provides the major IoT capabilities to this project.

1 Like