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

Interfacing (DSI, CSI, I2C, etc.) • Raspberry PI Zero W UART 300 bauds

$
0
0
I have the following setup: PIC microchip connected to an RF433Mhz transmitter and Raspberry PI Zero W connected to an RF433Mhz receiver. All components are pretty well tested, the last to go is the Raspberry. The RF receiver receives data when using UART on another PIC and also when connected to a Windows box using Putty. So, I think my Raspberry setup is wrong. I have enable_uart=1, console removed and just an ssh via WiFi.

What I have wired: PIN4 - 5V, PIN6 - Ground and PIN10/GPIO15 - UART0_RXD. There is no intention sending anything, PIN8/GPIO14 is not connected.

The data is transmitted at 300 bauds. I read that miniUART might need a frequency change to use 300 bps; or use PL011 as that is more reliable than that after disabling Bluetooth like dtoverlay=disable-bt in /boot/config.txt. Should I go for that - will I still have WiFi and the same PIN10 going? I think I am a bit confused now.

What I tried so far: /dev/serial0, /dev/serial1, /dev/ttyS0, /dev/AMA0 using pySerial and sys/ioctl.h from C. All ports start properly (I can see in C that file descriptor is mapped to 3 (-1 is invalid)) so opening those is successful and then nothing is received.
The RF receiver has the bad habit of picking up noise so usually it is either RF transmitter data is displayed or background noise or a mix of those. But here... nothing comes from UART.

I am looking for ideas what to do - I would probably be happy to disable Bluetooth and use a more reliable 300 bauds data source without changing board frequency. What steps should be taken then - is there a tutorial for that? Would UART RX be still on PIN10?

Thank you for reading!

Statistics: Posted by pisan4345 — Sat Apr 20, 2024 2:15 am



Viewing all articles
Browse latest Browse all 5313

Trending Articles