Skip to content

Latest commit

 

History

History
62 lines (30 loc) · 1.3 KB

File metadata and controls

62 lines (30 loc) · 1.3 KB

I found how to fix UARTs of raspberry by using another UARTs of raspberry pi 4 because rpi4 has 6 UARTs port .

Example :

  • UART0 , UART1 , UART2 , UART3 , UART4 , UART5

My Devices :

  • RPI : Raspberry Pi 4 Model B (MASTER)
  • OS : Ubuntu Mate 20.04
  • SLAVE : Teensy 4.1 (Communicate with raspberry pi 4)

References

You can enable UARTs on RPi4 by editing files /boot/config.txt and add

dtoverlay=uartx

x is the number of your UARTs

or

Use my scripts : sudo python3 attach_serial.py (not forget sudoo ~!!!)

Requirement :

  • pip install pyserial

1.Before enabling UARTS you can see only /dev/ttyAMA0

alt text

2.Select your UARTS (restart required)

alt text

3.After enabling UARTS you can see another ttyAMA

alt text

4.Testing Sending & Receiving Serial Communication by ttyAMA

alt text

Question (What is path of UARTs):

  • /dev/ttyACM0 - /dev/ttyACM5

DON"T USE IN UBUNTU SERVER THAT MAKE YOUR RASPBERRY PI RAINBOW DASH