background image

Project 1: Light Monitoring System

2. 

Once this is done, create a new product and select the A0 pin in hardware 

configuration. We are choosing A0 since it is the only pin with ADC converter. 
Pin A0 works with voltages from 0V to 1V. Give a suitable variable name to the 
data collected by this pin.

1.

 Now let’s try an experiment to view sensor data on a line graph. 

A. We  will  take  a  Light  Dependant  Resistor  (LDR)  which  is  an 

analogue sensor for this experiment. You will also need a 330-
ohm resistor. 

B. Connect one terminal of the resistor to the LDR. 
C. The other terminal of the LDR is connected to the 3.3v terminal 

of the Bolt and the other terminal of the Resistor is connected 
to GND. 

D. The common terminal is connected to A0 of the Bolt. 

LDR

330 ohm resistor. Check the Orange, 

Orange, Brown, Gold bands to identify it.

Summary of Contents for IoT PLATFORM

Page 1: ...BOLT IoT PLATFORM Quick Start Guide ...

Page 2: ...r iOS You can either search for Bolt IoT or scan the QR code below 3 Log in using the credentials of your cloud account on the app and follow the instructions Android iOS 1 The first step will be to link the Bolt WiFi module with your Bolt Cloud account ...

Page 3: ...wly then your Bolt is transmitting hotspot If Blue LED blinks fast then mobile is connected to the Bolt hotspot If Blue LED is stable then your Bolt is connected to the WiFi network If Green LED is glowing then your Bolt is connected to the internet and cloud 5 Once the setup is complete go back to the browser and you will find that your device has been registered Troubleshooting In case this pop ...

Page 4: ...nt you should start building a product For this click on the Products tab 2 Next click on the BUILD option 3 Add product details and select correct options If you are not sure what to choose then don t worry You will learn about this more in detail when you build a project in next section ...

Page 5: ... tab you will notice 3 icons in a toolbar on top These tools let you A Configure and code for a new product B Edit an existing product C Link it to one of your Bolt devices Now Click on the first icon i e Configure this Product to proceed ...

Page 6: ...arked as 0 You will learn about this more in detail when you build a project in next section 6 In the Code Tab you can write the code to either visualise the data your sensors are collecting or to create a UI for controlling output devices To know more about the code you can write check out the Docs section You will learn about this more in detail when you build a project in next section ...

Page 7: ... try an experiment to view sensor data on a line graph A We will take a Light Dependant Resistor LDR which is an analogue sensor for this experiment You will also need a 330 ohm resistor B Connect one terminal of the resistor to the LDR C The other terminal of the LDR is connected to the 3 3v terminal of the Bolt and the other terminal of the Resistor is connected to GND D The common terminal is c...

Page 8: ... You can now write a software code in the code editor to collect the data from the LDR Make sure you save your file as js since the code you have written is in Javascript 4 You can find this code under Docs Data Visualisation Line Graph ...

Page 9: ...n the code make sure that you replace your_variable_name with the variable name you used for pin A0 at the time of product configuration 6 Click on the Save button to save the configuration followed by the close button the exit this screen ...

Page 10: ...g System 7 Click on the link button to link the configuration you just created to a particular Bolt WiFi module 8 Choose a suitable Bolt WiFi module to which you want to link the configuration select the same and click on Done ...

Page 11: ...o the homepage and click on the Deploy configuration button to push the configuration you created to the Bolt WiFi module you linked 10 Now wait for some time and let the data be collected After a few minutes click on View this device button to open the UI of the device ...

Page 12: ...2 Troubleshooting If you see graph axis but not data points A Click on the Deploy configuration button again B Go back to the code Product Configuration Code and see if you have correctly added the variable name in your code C Keep the system on and wait for few minutes Let the data be collected In case you don t see anything on the screen then check the code you have written If the problem persis...

Page 13: ...ready created products add details like the name of the product 2 Select Output Devices under the type of connection and GPIO as the channel 2 In the Hardware Tab select any one of the Digital pins from 0 5 As an example we will select the 0 digital pin and add a variable named LED We will be connecting our LED to this pin ...

Page 14: ...The smaller pin of the LED is ve Connected to Ground and the larger one is ve Connected to Pin 0 3 We will then go to the code editor section You can find the code to be copied in this section named LED html in the GitHub link given here https github com Inventrom ui templates ...

Page 15: ...image which will allow you to link the code to your Bolt device You will get a popup to select your Bolt device for linking 6 Now go to the home page and click on the API tab to 1 Generate API key and 2 Enable the API key which allows you to securely access the Bolt for controlling the pins You can copy the API key from here to be used in the code ...

Page 16: ...ow click on the View this Device Tab in the list of actions 7 Now we are almost done Next go to the homepage and click on the Deploy configuration button to push the configuration you created to the Bolt WiFi module you linked ...

Page 17: ...You will now be able to see a UI which lets you switch an LED on or off via the cloud 10 Troubleshooting Check the code you have written If the problem persists check out forum boltiot com or write to us on support boltiot com ...

Page 18: ...For more codes visit the Docs section in the Bolt Cloud cloud boltiot com documentation For Support Post a query on forum boltiot com Send an email to support boltiot com ...

Reviews: