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
  • 62,573
  • 32
  • 113
  • 225