Implementing the Shiftbrite with the Arduino wasn't that difficult. I thought there would be a lot of software involved, but the Arduino recommended a open source library to use to make things considerably easier. The library was called 'HughesyShiftbrite', I got the link from the Arduino website and downloaded it off code.google.
![]() |
| Shiftbrite connected to Arduino |
Connecting to the Arduino involved 6 pins. The Vcc, Gnd and 4 other pins to control the Shiftbrite. You can declare these pins as a variable using the software library. In my case I used the following; sb = HughesyShiftBrite(5,4,3,2). This declared that the numbered pins are connected to the Data I, Latch I, Enable I and Clock I pins on the Shiftbrite respectively. The remaining pins on the Shiftbrite aren't used in this project.
![]() |
| Different angle capturing the shiftbrite |
I used simple if statements to determine the colour of the shiftbrite depending on the distance of the obstruction determined from the Ultrasonic sensor. Green for safe, orange for warning and red for stop. It's very simple, I know, but it will work in my system.


No comments:
Post a Comment