I'm trying to read data from Spektrum DSMX 9645 remote receiver .
Maybe I do something wrong? But I receive only "None", even I disabled REPL.
Here is a code:
Code: Select all
import machine import uos uos.dupterm(None, 1) # Disables REPL(UART 0) uart = UART(0, 115200) uart.init(baudrate=115200, rx=machine.Pin(3), bits=8, parity=None, stop=1, timeout=100) for i in range(100): with open('h.txt', 'a') as doc: doc.write(str(uart.read(16)) + '\n') uos.dupterm(UART(0, 115200), 1) # Enables REPL(UART 0)
On my ESP8266:
Orange -> VVC
Black -> GND
Gray -> connecter to RX(pin #3)
Thank you in advance!