Dear All,
Is it possible to use two Input sensor (LRD and Temperature Sensor) in Ao part with in the same project.
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 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
Can I use other GPIO pin to get value.
Will it work for me.
Any idea
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’).
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.
No you can’t use two input sensors in bolt module. Instead you can use arduino Uno for that purpose
First import all the necessary headers from GitHub
Second, write the code for the sensor u are using
Next,upload code into arduino
Connect bolt Wi-Fi module to arduino uno
At last create new product on the bolt cloud plot graphs accordingly.
See the below image for the connections
I hope this helped you gain new knowledge