Same as the last four tutorials, an Arduino robot kit (Pirate: 4WD Arduino Mobile Robot Kit with Bluetooth 4.0 ) is used here as an example.
Lesson 1: Introduction
Lesson 2: Build a Basic Arduino Robot
Lesson 3: Build a Line Tracking Arduino Robot
M3*6MM Nylon columns and tie-wraps
STEP 1: Add the touch sensor
There are two holes on the touch sensor for fixing the Nylon columns.
Fix the Nylon columns. Please do not over-twist those columns.
Then attach the touch sensor on the plate.
STEP2: Add the LCD Screen
Slide the shores into the four holes of the LCD screen and fix them. Cut the remaining part of the tie-wraps.
STEP3: Add the CO2 Sensor
Fix the Nylon columns on the CO2 Sensor. Attach the CO2 Sensor on the sensor plate.
You almost complete the assembling. Please do not fix the upper plate onto the platform yet as we need to work on the circuit connection later.
Please keeping cables in order.
The interface is colored as follows:
Red indicates power
Black indicates ground
Blue indicates Analog Input Pin
Green indicates Digital I/O Pin
The LCD monitor should be connected to VCC, GND, SCL and SDA in that particular order.
Find the code named DHT11_Display.ino and download it. Don’t forget the library for LiquidCrystal_I2C and CO2.
After successfully download the code, real-time CO2 density will be shown on the LCD screen. The touch sensor has two functions here:
1. If you don’t touch the sensor after some time, it will turn off automatically.
2. If you want to add more sensors to monitor other environmental data, the touch sensor can switch the monitoring data on the LCD.