Rotation 4: Bluetooth LE - wrafab/taor GitHub Wiki
This rotation we did some more soldering and started out Bluetooth LE projects. Bluetooth LE basically sets a new standard for radio wave communication over short distances so that all the different machines could talk to each other. It also drastically improved performance from Bluetooth 1.0 because it allows the peripheral and the central device to stay connected even if neither project is talking. If we take the example of connecting my phone to a wireless speaker, then my phone (the central device) could stay connected to the speaker (the peripheral device) even if I am not playing a song on the speaker.
Nowadays, Bluetooth products are fairly common. For example, I own a phone, a pair of wireless earpods, and a wireless speaker and all three are Bluetooth products.
For the Bluetooth LE I completed all four projects:
The first one is a smart switch that can switch on or off an LED from a phone. Here are a screenshot of my phone and the actual LED circuit:
The second one is the BLE lock, where I can unlock the lock with my phone. These are the screenshot of my phone for unlocking and the unlocked lock.
The third one is the weather station, where the BME280 sensor could detect the temperature, humidity, altitude and pressure. Unfortunately for this one I cannot get the circuit to work, but to prove that the sensor is working I used ran the test code and the printout of the serial monitor is as follows:
The final one is the NeoPixel LED that can change in color and brightness. I set it first to purple, and then to red, and then to blue.
And this is the hex code I used for colors:
I then changed the brightness for the light:
Finally I turned the lights off with my phone: