0

I am trying to connect my Pi 4 running Rasbian 2020 to an Arduino, after making all the connections I try to communicate with the Arduino by using Minicom. However, Minicom doe not respond to anything I am typing nor any of the commands such as ctrl + a.

I am running Minicom with the following command: minicom -b 9600 -o -D /dev/ttyAMA0

This is the code I have running on the Arduino:

byte number = 0;

void setup(){ Serial.begin(9600); }

void loop(){ if (Serial.available()) { number = Serial.read(); Serial.print("character recieved: "); Serial.println(number, DEC); } }

1 Answers1

2

/dev/ttyAMA0 is connected to Bluetooth so this won't work.

See How do I make serial work on the Raspberry Pi3 or later

It IS POSSIBLE to disable Bluetooth but this is unnecessary to use serial. In the unlikely event you really need a fully featured UART the Pi4 has another 4.

There is no such thing as "Rasbian 2020"

Milliways
  • 59,890
  • 31
  • 101
  • 209
  • Why do you think it is unnecessary to use Serial? and What do you mean by fully-featured UART? – Beulah Akindele Mar 09 '22 at 18:24
  • @BeulahAkindele "Why do you think it is unnecessary to use Serial" is said no such thing - re read the Answer. – Milliways Mar 09 '22 at 23:03
  • @BeulahAkindele "What do you mean by fully-featured UART" the linked Answer explains the difference between mini UART & fully-featured UART. – Milliways Mar 09 '22 at 23:04