Recall & Review
beginner
What is UART and why is it used to communicate between Raspberry Pi and Arduino?
UART (Universal Asynchronous Receiver/Transmitter) is a simple serial communication protocol that sends data one bit at a time. It is used between Raspberry Pi and Arduino because it allows easy, direct communication using just two wires (TX and RX) without needing a clock signal.
Click to reveal answer
beginner
Which pins on the Raspberry Pi are typically used for UART communication?
The Raspberry Pi usually uses GPIO14 (TXD) for transmitting data and GPIO15 (RXD) for receiving data in UART communication.
Click to reveal answer
beginner
What baud rate should be set on both Raspberry Pi and Arduino for UART communication?
Both devices must use the same baud rate, which is the speed of data transfer. Common baud rates are 9600 or 115200 bits per second. Mismatched baud rates cause communication errors.
Click to reveal answer
intermediate
How do you open a UART serial connection on Raspberry Pi using Python?
You can use the 'serial' library in Python. For example: <br><pre>import serial
ser = serial.Serial('/dev/serial0', 9600, timeout=1)</pre><br>This opens the UART port at 9600 baud with a 1-second timeout.Click to reveal answer
beginner
Why is it important to connect Raspberry Pi TX to Arduino RX and Raspberry Pi RX to Arduino TX?
Because UART communication is one device's transmit pin connected to the other device's receive pin. Connecting TX to TX or RX to RX will not allow proper data transfer.
Click to reveal answer
What does UART stand for?
✗ Incorrect
UART stands for Universal Asynchronous Receiver/Transmitter, a serial communication protocol.
Which Raspberry Pi pins are used for UART communication?
✗ Incorrect
GPIO14 and GPIO15 are the UART transmit and receive pins on Raspberry Pi.
What happens if Raspberry Pi and Arduino use different baud rates?
✗ Incorrect
Different baud rates cause data corruption because timing does not match.
In UART wiring, Raspberry Pi TX should connect to:
✗ Incorrect
Transmit pin (TX) connects to the other device's receive pin (RX) for proper communication.
Which Python library is commonly used to handle UART on Raspberry Pi?
✗ Incorrect
The pyserial library allows easy serial communication in Python.
Explain how to set up UART communication between Raspberry Pi and Arduino, including wiring and software setup.
Think about physical connections and matching settings on both devices.
You got /5 concepts.
Describe why matching baud rates is critical in UART communication.
Consider what happens if one talks faster than the other listens.
You got /4 concepts.
