Advanced Member level 4
This salt lamp is an example of device which can be controlled by a mobile phone. First thing was to choose the diode – the best for this purpose will be 3W RGB diode. The main element of the circuit is processor Atmega 88 in housing TQFP. Bluetooth module was purchased from an Internet website.
The project was divided into two parts:
- writing the program for Atmega
- writing the program for a cell phone with Android
It is good to program the microcontroller in stages (by adding the further new functions) and having the Bluetooth module, upload to M88 Bootloader (so that you have to use Kanda connector only once, when uploading Bootloader to the processor) and then you can wirelessly program the microcontroller using the Bootloader.
Brightening/dimming is implemented on hardware PWM of Atmega (with three channels).
The lamp operates in two modes:
- manual – you can choose the compounds of colors: R, G and B
- auto – you can choose from two functions generating different effects
In order to write the application for your mobile phone, it is recommended to search the forums on the kind of your mobile and the system.
Schematic of the device:
Pictures of the lamp:
Application for the mobile:
Videos of operation (two modes):
Link to original thread (useful attachment) - Lampa solna RGB sterowana przez Bluetooth