Hai Guys!
Currently i am doing a project upon the monitoring system. Now i am facing the new kind of issue regarding the Temperature sensor(LM35). I need the values in degrees. So, i had multiplied the analog factor using mul(0.0977).Let me explain the three scenario to explain my issue i am facing.
- Bolt iot device connected with lm35 at A0 pin and used the code as follows:
setChartLibrary(‘google-chart’);
setChartTitle(‘Temperature Monitoring and Prediction’);
setChartType(‘tableGraph’);
mul(0.0977);
plotChart(‘time_stamp’,‘yoo’);
Out put for this:
Value:49.
- Bolt connected with the arduino and used LM35 at A1 pin of arduino and not used mul(0.0977) here.
Code for this:
var lineGraph = new boltGraph();
lineGraph.setChartType(“lineGraph”);
lineGraph.setAxisName(‘Time’,‘Light’);
lineGraph.plotChart(‘time_stamp’,‘var1’);
var barGraph = new boltGraph();
barGraph.setChartType(“tableGraph”);
barGraph.setAxisName(‘Time’,‘Temperature’);
barGraph.plotChart(‘time_stamp’,‘var2’);
var lineGraph = new boltGraph();
lineGraph.setChartType(“lineGraph”);
lineGraph.setAxisName(‘Time’,‘Soil_Moisture’);
lineGraph.plotChart(‘time_stamp’,‘var3’);
Pin Config:
Output:
value:39
- Bolt connected with the arduino and used LM35 at A1 of arduino with mul(0.0977) used at code.
Code for this:
setChartTitle(‘bolt interfaced with arduino(a1 pin) with mul(0.097) for degree’);
var lineGraph = new boltGraph();
lineGraph.setChartType(“lineGraph”);
lineGraph.setAxisName(‘Time’,‘Light’);
lineGraph.plotChart(‘time_stamp’,‘var1’);
var lineGr = new boltGraph();
lineGr.setChartType(“lineGraph”);
lineGr.setAxisName(‘Time’,‘Soil_Moisture’);
lineGr.plotChart(‘time_stamp’,‘var3’);
var barGraph = new boltGraph();
barGraph.setChartType(“tableGraph”);
barGraph.setAxisName(‘Time’,‘Temperature’);
mul(0.097);
barGraph.plotChart(‘time_stamp’,‘var2’);
Pin Config as same as 2:
Output:
The value:42.
Now, My query is as from the above samples the first one shows correct when it is connected to A0 pin of bolt itself and used mul(0.0977) for degree value. Then for Second one connected with the arduino A1 pin and not used mul(0.0977) gives same result as The third one similarly which is having Mul(0.0977) to convert them to degree as said.
1.Why the value gets differs from first and both the second,third?
2.Why both the second one and third one shows the same value even when the second one is not having Mul() in it?
3.I need to use the Arduino since more sensors will be connected. But the raw data it self shows the value just like degree celsius in both second and third one. Which one is correct in 2(without mul) and 3(with mul)? if so then why it is not accurate as first one?
4.How to get the correct temperature values while the arduino analog pins were used for interfacing?Do i need to use the mul(0.0977) in the code to convert them to degree Celsius or not? I need the exact degree values… to manipulate.
I use arduino for interfacing the multiple sensors. The code uploaded in the arduino were This!
So kindly help me to solve the issue to calibrate them. I am not getting the same values in three of the cases. even i had monitored them each case for < 1 hour.
Hope the team will resolve it. @vinayak.joshi,@shoeb.ahmed