Make: Bluetooth book's BLE Weather Station with enhancements
There are two improvements done to the original BLE Weather Station from the Make: Bluetooth book (see references below)
-
A tri-color LED module was added to indicate the weather: green - fair, yellow - change, and red - stormy. This is based on the barometer. The code for this is on the UNO.
-
A python program was added to read the UNO's serial port and store the data in a CSV logfile so it can be plotted in Excel or another spreadsheet program.
-
The only change to the phonegap code was to change the local location in the javascript code.
Below is how you wire the tri-colored LED.
Book:
Hardware:
Kit 1: Make:Bluetooth Book Parts Pack
Note: these are the only components needed from kit 1
Kit 2: SainSmart New Basic Starter Kit for Arduino
Note: The RGB LED board is all that is needed and an UNO (the one above or this one)
- RGB component It is a board with an RBG LED, limiting resistors, and pins. You could use the discrete components instead.
- Kit does include a UNO board
Original Book Code:
- Make: Bluetooth ble-weather code from book
- [BLE-Weather-Station-High_level_diagram.pdf] (forward looking diagram)