11. Networking and Communications
Laboratory & Group Work
This week in the lab we learned to communicate between two devices using serial communication. We first networked 2 Arduino Uno boards to commincate with each other and later we attempted communication between 2 bluetooth devices. We also were able to see what a serial data output looks like on an oscilloscope. The results of our work can be found here: Group Link
Useful Files & Links for this Week
Arduino Uno Pin Map
Xiao RP2040 Pin Map
Arduino Uno Datasheet
This week for the individual assignment I networked my development board that has a Xiao Rp2040 microcontroller with a Arduino Uno. My goal was to use one of the buttons on my development board to power on or off the onboard led on the Arduino Uno. The Arduino Uno would receive a signal from the serial port to turn off the onboard LED. I first connected the RX pin on the Xiao Rp2040 to the TX Pin on the Arduino Uno. The buttons on the development board that could be used for this experiments are located on pins 26 and 28 on the Xiao. Since only the Arduino Uno Board would be receiving the message I used one wire to connect the ground pins for each board and one wire to go from the TX (transmit) pin on the Xiao Rp2040 to the RX (receiver) pin on the Arduino Uno. The TX pin on the Xiao did not have a trace created on the development board so I created a make shift connection with the male end of a wire to maked the connection to pin the TX pin.
Using the code pictured above I uploaded each code separately to each board as suggested online. This would allow for the Xiao to transmit a signal to the Arduino Uno using serial communication. The wiring configuration I used is pictured below.