Wireless chat with the HM-TR-TTL modules and the Atmel AVR Microcontrollers
This project has done based on the Atmel AVR microcontrollers and the HM-TR Radio Modules. In this project two, the same circuits are connected to two PC computers. The maximum distance between these computers is 300 meters and they can share data together.
Two programming languages are used in this project. Firstly the C language is used to program Atmel AVR microcontrollers and another is Delphi to generate a program to make a connection between two computers by their HM-TR module software-wise.
The HM-TR -232 Module
Figure 1-2 displays an HM-TR module
Description of HM-TR module
HM-TR series transparent wireless data link module is developed by Hope Microelectronics Co. Ltd, dedicated to applications that need wireless data transmission. It features a high data rate, longer transmission distance. The communication protocol is self-controlled and completely transparent to the user interface. The module can be embedded to your current design so that wireless communication can be set up easily.
- FSK technology, half-duplex mode, robust to interference
- ISB band, no need to apply for frequency usage license
- Operation frequency can be configured and can be used in FDMA applications
- Transmitted frequency deviation and receiver bandwidth can be Ｓelected.
- Protocol translation is self-controlled, easy to use.
- The data rate can be Ｓelect Ｆrom a wide range.
- Provide ENABLE pin to control duty-cycle to satisfy different application requirements
- High sensitivity, long transmission range.
- Standard UART interface, TTL or RS232 logic level Ｓelectable
- Very reliable, small size, easier mounting.
- No tuning in producing
- Remote control, remote measurement system
- Wireless metering
- Access control
- Identity discrimination 5. Data collection
- IT home appliance
- Smart house products
- Baby monitoring
How does the system work?
When the HM-TR module’s terminal is connected to a power supply source, it should send and receive data simultaneously, firstly it sends the data with its DRX pin and then automatically switches to a receiving data mode. If there is data in a receiving mode, it receives it with its DTX pin. The needed time to switching between these two modes is 50 ms.
Two types of these modules are available. The HM-TR-TTL functions based on the TTL logic level and HM-TR-232 functions based on the RS232 logic level. It has a Max232 IC on the board, so it can connect directly to a serial port of a computer.
You may download the full description of this project in a PDF format which gives you more detailed information about this project and its developed related code (the code developed for the Atmel AVR microcontroller using Codevision AVR software and handshaking code used to establish communication between the microcontroller and the PC using, Delphi program, … ), and finally, the PCB schematic using Protel Altium(R) software by clicking HERE
Figure 3 displays an HM-TR Module and its related antenna
Figure 4 displays the HM-TR-232 pin designations
Figure 5 displays the schematic diagram of the PCB developed to build two PCBs that each is housing an Atmel AVR microcontroller, an LCD display (not installed in this project), and an RS232 IC to make communication possible between each PCB and the PC.
Figure 5 displays a typical USB 2.0 to Serial (9-Pin) DB-9 RS-232 Converter Cable that provides the connection between USB and the traditional RS-232 serial port