Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8597

General • UART interface not working

$
0
0
Hey, everyone! I've been doing an RC project and wanted to make my own reciever/transmitter. I decided to use an HC-12 module for this, so I've connected HC12.VCC to Pico.3V3(OUT), GND to GND, TXD to GP5, and RXD to GP4 (Also SET has been connected to GP15)

I have another module sending data, my code doesn't seem to pick anything up. I'm aware that these might be cheap knockoff modules, but I think it's prolly my fault. I also tried checking via AT commands, but nothing seems to work. Can someone help me? My code is below (for reciever)

PS I am using a Pico WH (not Pico 2 normal Pico)

Code:

from machine import UART, Pinimport timeAT_toggle = Pin(15, Pin.OUT)radio = UART(1, baudrate=19200, tx=Pin(4), rx=Pin(5))AT_toggle.on()time.sleep(0.5)while True:    print(radio.read())    time.sleep(0.01)

Statistics: Posted by Steammake3 — Thu Dec 04, 2025 12:49 am



Viewing all articles
Browse latest Browse all 8597

Trending Articles