Doubt regarding boltduino and cloud

I want to read the pin values A0,A1,A2,A3 from bolt duino using python program(in unix command interface) and further i have to send all the values to the bolt cloud for plotting the values.

@satyanvv450

You cannot really use Python programming to use Boltduino/Arduino. You can only program it on Arduino IDE (C/C++).

Which training have you taken? I can suggest other possible methods to achieve the kind of project you wish to do.

I want to do a plant monitoring system , i want to retrieve temperature, humidity,ldr & soil moisture sensor values to cloud and have to plot them on graph and we have to apply some if else conditons for our farm requirements from the retrieved values. Can you please suggest the way ?

@satyanvv450

Which training have you taken with Bolt IoT? Please mention that.

You can use the Bolt-Arduino library to use the pre-defined functions. You can take the inputs from the Arduino from its analog pins, and then send the data to Bolt module with UART.

Download the ZIP File.

Using the inbuilt functions, you can indirectly send the input data to the Bolt Cloud.

You can also refer to the below workshop video, for a tutorial -

I am currently pursuing Robotics training. I am doig this project out of the training. So i am quiried here for suggestions. Thanks for your response and if you know anything please share , thank you

@satyanvv450

I have provided you with the required reference to be able to write the program, interface Bolt module with Boltduino and send data from Arduino to the Bolt Cloud.

All of it was also mentioned in the training. We cannot provide you with the whole code/program, you will have to start with that. When you are stuck in any step or have errors you can post it on forum to get it resolved.

Please go through the workshop video I shared, it has the whole tutorial on getting started to send data from Arduino to the Bolt Cloud.

1 Like

#include <BoltIoT-Arduino-Helper.h>
void setup() {
boltiot.Begin(Serial);
pinMode(A1,INPUT);
}
void loop() {
boltiot.CheckPoll(analogRead(A1));
}

I uploaded this code to boltduino and i connected the wifi module and created a product at bolt cloud , but i am not receving any temperature data from duino throgh bolt wifi module.

@satyanvv450

Are you sure you didn’t get any error while uploading to the Boltduino?

@satyanvv450

We no longer prefer to use checkPoll function. You can use the below post as a reference as well -

#ifndef API_KEY
#define API_KEY “xxxxxxxxxxxxxxxxxxxxx”
#endif
#ifndef DEVICE_ID
#define DEVICE_ID “BOLTxxxxxxx”
#endif

String getAnalogData(String *data){
String retval="";
retval=retval+analogRead(A1);
return retval;
}

void setup(){
boltiot.begin(Serial);
boltiot.setCommandString(“GetAnalogData”,getAnalogData);
}

void loop(){
boltiot.handleCommand();
}

this is the code i uploaded to boltduino and i am getting response, but the lm35 sensor values reads zero always

Is this sensor problem ?

#include <BoltIoT-Arduino-Helper.h>

#ifndef API_KEY
#define API_KEY “xxxxxxxxxxxxxxxxxx”
#endif
#ifndef DEVICE_ID
#define DEVICE_ID “BOLTxxxxxxx”
#endif

String getAnalogData(String *data){
String retval="";
retval=retval+analogRead(A1)+",";
retval=retval+analogRead(A3);
return retval;
}

void setup(){
boltiot.begin(Serial);
boltiot.setCommandString(“GetAnalogData”,getAnalogData);
}

void loop(){
boltiot.handleCommand();
}

for 2 sensors, it is returning null

@satyanvv450

Is your code properly uploaded to Boltduino? Without any error in it?

You can disconnect the sensor and check if the code is working. Analog pins read floating random values when no sensors are connected. You can test your code with that.

Make sure, the Bolt module is properly fit into the Boltduino headers.

Everything uploaded successfully , that removing of sensors to test have to be done. I will check and update you . Thank you :blush:

Brother , i tried without sensor , but it again showing zero always as analog value(not a arandom number). Please suggest the way.

@satyanvv450

Send me a mail mentioning a time you’d be free today for a google meet. You can mail me at akshayan.sinha@boltiot.com

To make a Plant-Monitoring System, we need:

  • Hardware Requirements:
  1. Bolt IoT Module
  2. LDR
    3.Micro-USB Cable
  3. 10 Ohm Resistor
    After making the required connections, a product has to be added under Bolt cloud and then write the required code in Javascript using Google Visualization Library.
    If you need any guidance, I would be really happy to help out.
    Thanks.

Actually I have problem with pushing the values from boltduino board to cloud , and it’s resolved now . Thank you for your response :slightly_smiling_face:.