2596 views|0 replies

1025

Posts

1

Resources
The OP
 

GD32F350 Learning Series 4: 433 module receiving data [Copy link]

I've been busy at work recently. I worked overtime yesterday and rested today. I'll take some time to work on it. Seeing that some forum friends have completed their projects, I'm a little anxious, but I don't have much time. Fortunately, the things I made are relatively simple and easy to implement. Today, I'll complete the main part of the project, wireless transmission.
For wireless, I use a 433MHZ module, a ready-made module that I have been using at work. It's not a lot of work to transplant it directly.
The 433MHZ module uses 7 IO ports, plus power and ground. The DuPont wires on hand are not enough, so I use a perforated board to solder them directly to the pins. Let's see how it looks like after soldering. The plug-in time is too long, and the pins are aged and not tinned much. It took a long time. The black wire is the antenna of the wireless module. Just make a wire of a fixed length. I soldered a few more 3.3V and GND pins on the front to facilitate the connection of the DuPont wire. There are several pins used by the wireless module. I will not introduce the specific modules in detail to avoid suspicion of advertising. The wireless module reads and writes registers by simulating the SPI bus.
The wireless part of the wireless module is processed. Only reception is used here, and no transmission is used. Reception adopts the query method. If it is idle, it will periodically read the status of the module. The status will change after receiving data. This is completed using the state machine method.
Received data processing, a total of 4 bytes of data are received, a sender address, a receiver address, a data, a data inverse code, first determine the address, and then perform corresponding operations according to the data content. Here is the corresponding bit to open and close an output diode display. The received data is displayed on the OLED screen.
In the main function, receive data and call the processing function
Timed interrupt, timeout count of wireless module and delayed closing of indicator light after receiving data
Actual display effect photos


1.png (234.37 KB, downloads: 0)

1.png

2.png (211.75 KB, downloads: 0)

2.png

11.jpg (43.54 KB, downloads: 0)

11.jpg
This post is from GD32 MCU
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list