中文English
1, 315mhz wireless transmission module, sending and receiving with single-chip microcomputer encoding and decoding,With the nixie tube on both sides... 2, STC microcontroller how t...

MCU wireless source code (MCU wireless power supply)

315mhz wireless transmission module, sending and receiving with single-chip microcomputer encoding and decoding, both sides with digital tube...

Transmit and receive wireless module, can use PTR2000, normal useSerial communication is OK, but it will occupy two microcontroller pins, one to send data, and one to clock. Send and receive both ways. It's a little difficult to send with just a single chip. Using infrared TSOP1738 to send also need two pins, receive can use one foot.

About the 315M wireless module, it is generally a serial DATA port, and the super regenerative receiving module is also such a DATA port, but the two are not consistent with the communication data (understood as the communication waveform), and it is difficult or basically impossible for you to use the serial port directly, and the data is consistent. That's you.Serial port Settings do not demodulate sent data.

AD conversion, some mcu built-in AD function, its datasheet has the corresponding program module, directly apply it. The collected data is best stored in an array. Some of the programs displayed also have corresponding program modules: for example, if you display a 4-bit digital tube, there will be a switch selection bit S0-S4 for each digital tube; And data transfer D0-D7.

can be realized in theory, but in practice it has no meaning, and it is impossible to see all the data in the digital tube, which is a boring topic.

is returned to the host computer is not changed, but the display number system is different. After receiving the data, the single chip computer directly divides the data into several bits according to the decimal system and then dynamically displays it on the digital tube.

STC microcontroller how to connect to RF wireless module

1, SDIO: data port GPIO: it may also be a data port or a interrupt (no chip or circuit diagram, can not be judged) GND, 3V need not explain. Directly use IO port control, it is estimated to simulate SPI timing.

2, Method 1: Single-chip microcomputer board with a MAX232 chip on the board of the serial port and single-chip microcomputer rxd and txd connection, and then use the usb to serial line to pc and single-chip microcomputer board of the serial port connection. Method 2: Find a conversion line with a usb port at one end and a vcc, ground, rxd, txd at the other end to connect the pc directly with the MCU.

3. NRF905 wireless communication module is SPI interface communication, if I remember correctly, it should still be 3V power supply; The general I/O port of the single chip microcomputer can be connected, and the general I/O port can be softIf you use a single chip microcomputer with a hardware SPI module, it is recommended to use a dedicated SPI interface, because the speed of using a universal I/O analog SPI is not faster than the speed of a dedicated SPI.

4, note that the IO port of nRF24L01 should be connected to the "high resistance pin" of 51 MCU (generally P0 port). However, some models of P0 are not high resistance, please check the chip's manual for this.

5. Check whether the module provides a serial port. If you do, use it. If not, use the CPU PCI bus. And then through CPU embedded OS control serial port and PCI. Basically, it's extremely difficult.

About ps wireless controller to 51 microcontroller

This figure is my own drawing, a wireless mouse for the scientific research project of the school, I did not use infrared tube, I am using infrared decoding, that is, using an infrared remote control (TV) to translate the code from 0 to 9 of the remote control combined with VB to write an upper computer program to achieve control, see what help you have, the principle of what is actually very simple.

keyDisk initialization program kb_init () process: ① After power-on, receive the keyboard power-on self-check pass signal 0xAA, or self-check error signal 0xFC. The MCU receives 0xAA and goes to the next step, otherwise, error processing is performed. ② Turn off the LED indication, the MCU sends 0xED, and then receives the keyboard response 0xFA, and then sends 0x00 to receive 0xFA. ③ Set the machine delay and speed.

PS/2 interface to wireless signal The data input by the keyboard needs to be transmitted to the RF transmitter module through the PS/2 interface. And then a shot within 100 metersThe frequency receiving module receives the data and transmits it to the MCU, and displays it on the LCD screen. The single-chip microcomputer then communicates through serial port through MAX232 to realize information exchange with the host computer.

USB interface free of it, 51 MCU hardware does not support usB function, the communication protocol is very complex, PS/2 interface is relatively simple, a search on the Internet can find routines, many 51 MCU development board with PS or PS/2 interface. Of course, since you use a single chip computer, why do you need to use such a large keyboard, there is a special keyboard, why also through the single chip computer. The single chip computer can be used in tandem with the upper computer