How to Connect multiple sensors to bolt


#1

Hii, For one of my project i want to interface more than one sensors with bolt. can anyone tell me how can i do that??


#3

What is the interface of the sensor you want to use?
A Bolt IoT has 5 Digital Inputs and 1 Analog Input.
If you connect with Arduino via UART, you can use multiple sensors with I2C interface with different address.


#4

HI, is there any comprehensive guide for connecting bolt to Arduino via UART and examples to read from specific pin and store the same to a database.

I have gone through this - https://cloud.boltiot.com/documentation#arduinolibrary. But better examples are needed for understanding the same.

I’m trying to read analog sensor data from 2 Analog channels in Arduino and transmit the same with BOLT via UART.

Kindly help. All other code in the forum related to this topic is old and does not use the New API structure.
Thanks in advance.
@suetsugu


#5

Hi,

For the project that you are trying to do, download the latest BoltIoT-Arduino-Helper library, and install it.

You can then navigate to the File>Examples>BoltIoT-Arduino-Helper>PushData

In the loop function, just replace
boltiot.processPushDataCommand(digitalRead(2));
with
boltiot.processPushDataCommand(analogRead(channel1),analogRead(channel2));

Where channel1 and channel2 are the analog pins you want to use.

Do remember, this example code uses the updated library function ‘processPushDataCommand’ instead of the old ‘checkPoll’ function, you have to configure your Bolt Cloud product with only 2 csv values and not 6.

The code will handle the rest.


#6

@ravin.sajja:
You can look into the following Hackster blog for an example.

We are working towards releasing new blogs regarding the same.