Introduction
In one of my previous blogs titled “Carbon Rover”, I wrote about creating create a rover that wouldn’t fall off an edge nor would it hit an obstacle.
Riding The RGB Hype-train!
In the Rev 2 of the Carbon Rover I decided to add some RGB NeoPixels. Now these LEDs don’t generate random colors, they are in fact synced to the IR and Ultrasonic Sensors.
The NeoPixel strips are placed on the front and the back edge of the rover, 11 on each side for a total of 22 LEDs.
Although the carbon can address the Led’s individually, they are virtually divided into 6 groups one for each Ultrasonic sensor. When there is no object within 100cm of the sensors the LEDs glow Blue and as the object comes closer towards the senor they start glowing Red.
As for the IR sensors, the LEDs glow red when the sensors can’t detect ground beneath the rover.
Although I am using an Arduino Nano to control the LEDs, It only serves as a dumb controller. All the color and pattern for individual LEDs is calculated by the Carbon on sent over I2C to the Arduino.