AVR Microcontroller. Wireless Communication. RF Transmitter - RF Receiver Modules and UART
by malcomoffice in Circuits > Microcontrollers
3321 Views, 5 Favorites, 0 Comments
AVR Microcontroller. Wireless Communication. RF Transmitter - RF Receiver Modules and UART
Hello, world!
I made an example for the FS1000A 433mhz Wireless Transmitter and Receiver set. The example shows you how to turn on led with a button using 433Mhz wireless communication. Basically, I using one Atmel AVR ATMega328P to control the Transmitter and one ATMega328P to control the Receiver. The transmitter and receiver are connected to the microcontroller via UART. When the button is pressed the transmitter sends a signal to the receiver that it turns on the LED. I have also included a circuit diagram of this example for those of you who find it easier to understand the structure of the device through visual representations. I am going to assemble the device prototype and create a C program for the microcontroller using Atmel Studio integrated development platform.
Preview Base Electronic Elements
Microcontroller Atmel AVR ATMEGA328P - 2 PCS
The device uses the following peripheral feature of the microcontroller (see block diagram):
The Universal Asynchronous Receiver and Transmitter (UART) capability of the Atmega328P allows you to easily communicate the microcontroller with other devices that support UART. It is the primary interface to many other devices, such as GPS receivers, other microcontrollers.
Pair of 433 MHz modules: FS1000A and XY-MK-5V
The Transmitter FS1000A
- Working voltage: 3-12V. Higher voltage it's more power it's more range
- Current while transmitting: 28 mA
- Range: up to 200 meters
- Data speed: up to 10 Kbps, but range drops considerably with speed above 2400bps
The Receiver XY-MK-5V
- Voltage: 5V. Very sensitive to voltage fluctuations. Always use stabilized power source and decoupling capacitor.
- Current while standby: 4 mA
Button
The button is needed to generate a signal for the transmitter to turn on the LED.
Circuit Diagram
To create the transceiver I have developed a circuit diagram that looks like it on the picture.
C Code Programs for Transmitter and Receiver
I wrote C code programs for transmitter and receiver microcontrollers. My explanation of the code will not be detailed, and if you have any questions, please leave them in the comments.
You are allowed to download files, but give to my video Like and Comment, please!
Microcontroller Firmware Programming
Download the ะก-code programs of the firmware microcontroller. Then compiling them to executable HEX files.
The hex files of the receiver and transmitter are ready to be loaded into the chips. I burn the program into the memory of the ATMega 328P microcontroller using AVRDUDE software and an ISP programmer.
Watch the video with a detailed description of the microcontroller flash memory burning.
Let's Check It Out!
Ok! Now, the device works in accordance with the instructions of the program. Let's check it out.
You can help me by sharing the video if you like it:)
Please Like Comment And Subscribe. Thank you for watching. See you later.