Don't know what to do with your Bolt WiFi Module, a chassis and a few motors? Don't worry, we will show you!
Things used in this project
- Arduino UNO / Boltduino
- SparkFun Dual H-Bridge motor drivers L298
- Jumper wires
- Proximity Sensor
- Basic Robotic Kit
- Power adapter
Software apps and online services
- Bolt IoT Bolt Cloud
- Arduino IDE
Step 1: Gathering all the required components
All the components required for the project are mentioned below and are easily available in market at a reasonable price.
1. Bolt Wifi Module
2. Basic Robotic Kit
3. Arduino UNO or Boltduino
4. L298N Motor driver shield
5. Proximity Sensor
6. Jumper Wires
7. Power Adapter
Step 2: Assembling the hardware
1. Attach the caster wheel in the front middle portion of the chassis as shown
2. Assemble the robotic car chassis and attach the two DC motors using the nuts and bolts along with the wheels provided as shown.
NOTE: Solder the wires to the motor's terminal before attaching it to chassis.
3. Now connect the terminals of the motor to the L298N motor driver module as shown below.
NOTE: Connect both the terminal of the motor on the same side of the driver module.
4. Connect the 5V pin and GND pin of the driver module to 5V and GND of Arduino respectively.
5. Connect the pins 5V, GND, Tx and Rx of Bolt to the pins 5V, GND, Rx and Tx of Arduino respectively. For Boltduino, attach the Bolt unit in the slot present.
6. Connect the four input terminals (IN1, IN2, IN3, IN4) to pins 6, 7, 8 and 9 respectively.
7. Connect the 5V, GND and OUT pins of proximity sensor to pins 5V, GND and 3 of Arduino respectively.
NOTE: Check all the connections before powering and for any help look into the schematic.
Step 3: Schematics
Step 1: Platform details
Bolt IoT Platform
Bolt IoT platform gives you the capability to control your devices and collect data from IoT devices safely and securely no matter where you are. Get actionable insights by deploying machine learning algorithms with just a few clicks to detect anomalies as well as predict sensor values. To know more visit boltiot.com.
Step -2 Connecting Bolt to cloud
After assembling the hardware, register and connect the Bolt unit to the Bolt Cloud. Know more at registering and connecting bolt to cloud.
Step 3: Get the code.
Get the code from the Github repository of this project. Download a.zip file or clone it to your system, whatever suits you.
Step 4: Working with the code.
There are two parts of code:
- A folder named app
- Inside this folder there are two files i. controller.html ii. controller.js. We will talk about them later.
- Then there is the firmware for your Arduino in a file named Bolt_Robot_Car.ino. This will be flashed/uploaded on your Arduino.
Step 5: Setting up Arduino.
Once you are done with setting up your hardware and connecting your bolt to the cloud, upload the firmware present in the file Bolt_Robot_Car.ino to your Arduino. To know how to set up Arduino IDE and upload a code to Arduino follow this link.
Step 6: The Controller App.
Double click on the controller.html file and you should be presented with the following web page.
With the Bolt Cloud, you can easily control the robot over the internet from anywhere in the within minutes.
Want to build more such IoT and ML projects? Want to learn IoT and ML from basics?
Check out the Bolt IoT and ML training. This online video training is excellent for those who want to start with IoT and ML because it teaches you to build projects from the basics. Click on the button below to know more about the training.