Vermes
Advanced Member level 4
The assumption of this project was to create a simple Bluetooth controller to switch on/off the devices using a mobile phone. The greatest problem was to write a simple application for mobile phones, which would work with a lot of phones – the application was made in java. Most of modern mobile phones with MDIP 2.0 cooperates with the application and the controller. The application beyond the built-in four “buttons” has the ability to read the feedback from the controller, what together with the derived few pins gives a great opportunity to modify the system and add the additional options such as temperature reading, etc.
Description of electronics:
Atmega48 with an external quartz works in the controller. ULN2003 controls the relays directly. The electronic system is not very complicated. In addition, on the PCB there is a well known and popular Bluetooth module btm222. The microprocessor together with btm222 is powered using LF33 in SMD housing, the rest are RC elements including a large number of capacitors 100nF.
Specifications:
- Supply voltage: 5V DC
- Switched current: 10A / 125VAC
- Range: up to 100m Bluetooth class 1
PCB with the elements
Description of the module:
The device is equipped with four small-sized relays, with NO COM NC connectors derived. It has two LEDs. The LED0 is an indicator of the presence of power voltage while LED1 indicates the receive of control signal and the correctness of running the module. Changing the status of any relay is indicated by LED1 by a single pulse. The device is also equipped with a miniature chip antenna with 1,5dBi gain.
Relays:
Description of the relays is consistent with the description in the logic in the mobile phone. Selecting PK0 will result in turning on the selected contact. Another selecting the same menu will disable the selected contact. A feedback from module BTM4 is visible in the application.
The relay state is indicated 1 for switched on and 0 for off.
Link to original thread (useful attachment) – Prosty sterownik bluetooth