Description: The HC-06 module is a slave mode serial Bluetooth data link manufactured by CSR. In this project, a mobile phone communicates with the AT89C2051 microcontroller via the HC-06 module. The complexity of the communication has been encapsulated within a Java library and the Bluetooth module, allowing the focus to be on developing a terminal program for the mobile phone using Java (J2ME), as well as another program to receive the unlock code for the AT89C2051. Although the project may appear somewhat unrefined, it is functional. The motor used is of the spring return type, which means that when the correct code is sent from the mobile phone, the motor is energized for 300 milliseconds before returning to its original position autonomously. The motor is designed to operate at 12V; however, it can also function effectively at 5V for softer operation. The HC-06 module can be configured using AT commands. The factory default settings are 9600 baud rate, no parity, 8 data bits, 1 stop bit, and a password of 1234. To configure the HC-06 module, it can be connected to a PC via USB/TTL and accessed through terminal software. The module's name can be changed using the command: AT+NAMEnewname (maximum 20 characters), with a response of OKname. Additionally, the baud rate can be modified using the command: AT+BAUD4, with a response of OK9600.
The HC-06 Bluetooth module operates as a serial communication interface, facilitating wireless data transmission between devices. In this application, the module connects to the AT89C2051 microcontroller, enabling it to receive commands from a mobile device. The microcontroller is programmed to interpret incoming data, specifically looking for a predefined unlock code. Upon receiving the correct code, the microcontroller activates a motor for a brief duration.
The motor is configured to operate in a spring return mechanism, which ensures that it automatically returns to its initial state after being activated. This feature is particularly useful in applications where a temporary action is required, such as unlocking a mechanism. The choice of operating voltage is critical; while the motor is rated for 12V, using 5V provides a gentler action, which may be desirable for specific applications to prevent mechanical stress or damage.
The HC-06 module's configuration via AT commands allows for flexibility in communication settings. The default baud rate of 9600 bps is standard for many applications, but adjustments can be made based on the specific requirements of the project. Changing the module name and baud rate through terminal commands makes it easier to manage multiple Bluetooth devices in a networked environment.
When designing the schematic for this project, it is essential to include the power supply connections, the microcontroller interfacing with the HC-06 module, and the motor control circuitry. Proper attention should be paid to the electrical characteristics of the components used, ensuring that the microcontroller operates within its specified voltage and current limits while providing adequate drive capability for the motor. Additionally, incorporating protective elements such as diodes for back EMF protection from the motor can enhance the reliability of the circuit.This module is HC-06 a slave mode serial bluetooth data link. The chips is made by CSR. In this project, my mobile phone will talk to AT89C2051 via HC-06. All the complication has been put in the cage (in the java library and bluetooth module), so what I need to do is just create terminal program for mobile phone written in java (J2ME), and create another program to receive the unlock code for AT89C2051. This is the result of the project, looks a little ugly but it works. The motor is spring return type therefore when the code sent by mobile phone is correct, the motor energized for 300msand return to original position by itself. The motor is designed to operatewith 12V power but in fact 5V is sufficientto operate itwithsofter action.
Here the schematic. HC-06 can be setup using AT command. From the factory the default parameters are 9600, N, 8, 1 and 1234 password. Connect the HC-06 module to a PC using USB/TTL then open a terminal software. First you can change the name of the module by command: AT + NAMEnewname (max 20 chars), the reply is OKname. Second you can change the speed by command: AT + BAUD4. The reply is OK9600.
Mobile phone chargers available in the market are quite expensive. The circuit presented here serves as a low-cost alternative to charge mobile telephones or battery packs with a rating of 7.2 volts.
The proposed circuit design utilizes a straightforward approach to...
Charges and protects your mobile phone from voltage spikes and short circuits. Most mobile chargers do not have current or voltage regulation, nor do they provide short-circuit protection.
The described circuit functions as a mobile phone charger designed to safeguard the...
The AT89C2051 Digital Visitor Counter utilizes a microcontroller to perform its function by receiving signals from sensors.
The AT89C2051 Digital Visitor Counter is designed to accurately count the number of visitors entering or exiting a designated area. This system employs the...
The circuit is designed for a DC motor and Bluetooth system, where the Bluetooth remote control is utilized to open and close curtains. A block diagram is provided for reference. A mobile phone can be used to develop a J2ME...
This Project Line Following Autonomous Robot is based on 8 bit Microcontroller AT89C2051. This Robot follows the black line which is drawn over the white surface or it follows the white line which is drawn over the black surface. The...
A real-time controller is a device designed to continuously manage household devices, both in real-time and according to a predetermined schedule. This article focuses on a series of real-time controllers utilizing the AT89C2051 microcontroller, which serves this purpose effectively. The...
Many individuals may have an old mobile phone that is no longer in use. The circuit presented in this article repurposes the old mobile, allowing it to control an electrical appliance in or around the home by switching it on...
The project is a Digital Code Lock utilizing the AT89C2051 microcontroller. An LCD is employed for display purposes, and a keypad is used for inputting keys. The source code for this project is written in C. It is designed as...
Many designers today are implementing embedded systems that require low-cost non-volatile memory. Microchip has addressed this need with a full line of serial EEPROMs, in a variety of memory configurations, using the industry-standard 2- or 3-wire communication protocols. The next...
We use cookies to enhance your experience, analyze traffic, and (if you allow) serve personalized ads.
By clicking Accept All, you agree to our use of cookies.
Learn more