Looking to make an attractive and useful project to use the hardware sponsored to Hackster Live, I decided for a Pretty RGB controlled Lamp with Arduino 101 and BLE, using an interface in App Inventor 2.
I hope you like it.
In this project, the code is modified code from Andrew McKinney (email@example.com), which allows manipulating a Led using PWM under the BLE protocol (which is interesting).
The modifications are very simple, just add the extra features to the BLE service, as well as the missing pins for an RGB LED.
Remember that the colors in an RGB Led, change when modifying the Pulse Width Modulation (or PWM) is a technique for controlling power. We also use it to control the brightness of each of the LEDs.
You can check out this excellent Adafruit article: https://learn.adafruit.com/adafruit-arduino-lesson-3-rgb-leds/theory-pwm.
Next make the circuit:
Now upload the program to Arduino.
Testing with the nRF Connect application.
Yes, I know that this App is very tedious to use, so I put to work to create a simple aplicicon in App Inventor 2 much more friendly to operate the lamp.
And that's it, I hope you enjoy it as much as I did, I added the source code and the schematic.
Until next time.