[Micropython]TPYBoard v10x NRF24L01 wireless communication module tutorial

1. Experimental purpose :

• Learn to use NRF24L01 wireless communication module

2. Required original components:

• Two TPYBoard v10X development boards

• Two NRF24L01 wireless communication modules

• 1 micro USB cable

• Several DuPont lines

3. Experimental principle:    

1. Drive NRF24L01 wireless communication module

457623d9257c3abc19701933ddcbf7f.png

The corresponding relationship between the pins of TPYBoard v10x and the pins of NRF24L01 is as follows:

 

NRF24L01

          TPYBoard   v10x

GND

GND

VCC

3V3

THIS

X4

CSN

X5

SCK

X6

DAWDLE

X8

MISO

X7

 

 

2. The content of main.py on the receiving end is as follows

from nrf24l01use import master
from nrf24l01use import slave
 
def main():
while True:
    slave()
main()

 

 

The content of main.py on the receiving end is as follows

from nrf24l01use import master
from nrf24l01use import slave
 
def main():
while True:
    master()
main()

nrf24l01 transmit and receive.rar

​ 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326070390&siteId=291194637