๐ Light Intensity Monitoring System using Bolt IoT
๐น IntroductionThis project demonstrates a Light Intensity Monitoring System built using a Bolt IoT Wi-Fi module and an LDR sensor.The system measures light intensity in real-time, uploads it to the Bolt Cloud, and visualizes the data using the Google Chart library.Different graph types such as Line, Bar, Scatter, Area, and Gauge are used for analysis.
๐น Hardware SetupThe LDR sensor is connected to the Bolt Wi-Fi module. The one leg of sensor connected to 3v3 pin and other is to A0 pin. Similarly 10k Ohm Resistor one leg is connected to A0 and another to GND pin. The sensor output changes with light intensity, and these values are sent to the cloud for storage and visualization.
๐น Cloud SetupThe Bolt Cloud is linked with the device to collect sensor readings continuously. This data can then be used to generate multiple graph formats.
๐นCodeplotChart()
โ Function provided by the Bolt Cloud to draw charts.'time_stamp'
โ The x-axis data (time when the reading was taken).'light'
โ The y-axis data (sensor values from the LDR).
๐ Together, it tells the chart: โPlot light intensity values (y-axis) against the time of measurement (x-axis).โ
plotChart('time_stamp','light');
๐น Data CollectedExplanation:Sensor values are stored with timestamps. This raw data forms the base for plotting graphs and analyzing patterns.
๐น Graph Visualizations1. Line GraphsetChartLibrary('google-chart');
setChartType('lineGraph');
plotChart('time_stamp','light');
Explanation:The line graph shows how light intensity changes over time, making it easy to track trends and variations.
2. Bar GraphsetChartLibrary('google-chart');
setChartType('barGraph');
plotChart('time_stamp','light');
Explanation:The bar graph displays readings as vertical bars, allowing quick comparison of light intensity at different times.
3. Scatter GraphsetChartLibrary('google-chart');
setChartType('scatterGraph');
plotChart('time_stamp','light');
Explanation:The scatter graph plots each sensor reading as a point, showing data spread and outliers clearly.
4. Customized Area GraphsetChartLibrary('google-chart');
setChartTitle('Light Intensity Monitor');
setChartType('areaGraph');
setAxisName('Time','Light');
setCrossHair(true);
plotChart('time_stamp','light');
Explanation:The area graph highlights intensity variations with shaded regions.Customizations such as chart title, axis labels, and crosshair make it more informative.
5. Gauge GraphsetChart Library("google-chart");
setChartTitle('Gauge Chart');
setChartType('gauge');
setAxisName('light_data');
setDimensions(400, 400);
setMaxValue (1023);
plotChart('light');
setGreen (250, 500 500)
setYellow(501, 715);
setRed (725, 1023);
Explanation:The gauge graph represents real-time light intensity like a dial. It instantly shows if intensity is low, medium, or high.
๐น Final OutcomeThe system successfully monitored and visualized light intensity in multiple graph formats.It provides a clear understanding of environmental light variations and enables easy data-driven analysis.
๐น My Learnings- โก Interfacing sensors with the Bolt IoT Wi-Fi module
- โ๏ธ Sending and storing data on the Bolt Cloud
- ๐ Using Google Chart library for multiple graph visualizations
- ๐ ๏ธ Customizing chart titles, labels, and crosshair
- ๐ Publishing and documenting projects on GitHub and Hackster
- ๐ก Understanding real-time IoT applications for monitoring systems
Comments