Digital Contour Gauge Mockup - Breadboard
This video demonstrates a part of my final project iterations to explore the potential setup for my final project.
This video demonstrates the code I uploaded to my new PCB working. On the left, it shows how the PCB communicates via UART and the Python code, which displays a message confirming data sent from the obstacle sensor. On the right, it shows the obstacle sensor on the serial monitor to confirm the sensor is in fact working and to verify.
Digital Contour Gauge Mockup - Computer Side
This video shows the computer side and the Python program running after receiving data from the
obstacle sensor and PCB. We start by running obstacle.py, which begins listening for
information from the PCB connected to the PC port. The video later shows the data being received as expected.
*Local Display Sub-Network* | `Wire.setSDA(6);`
`Wire.setSCL(7);` | Maps the physical data and clock lines to Pins 6 and 7 so the signal goes out the right physical doors. | | | `Wire.begin();` | Wakes up the I2C bus hardware inside the XIAO RP2040 chip to turn it into an active network controller. | | | `display.begin(..., 0x3C);` | Sends a wakeup call targeting the specific **bus address (`0x3C`)** of your local OLED display node. | | | `display.drawPixel(x, y, ...);` | Plots a single coordinate point on the screen grid without clearing your old data lines. | | | `display.display();` | Flushes all the buffered drawing data down the physical wires to instantly render it on the glass. | | **External Link (Serial)**
*Laptop Communication Bridge* | `Serial.begin(115200);` | Opens the communication gate and sets the **Baud Rate** to 115,200 bits per second so the laptop can match speeds. | | | `Serial.print(x);` | Pushes the X-coordinate text out through the USB-C cable bridge. | | | `Serial.print(",");` | Sends a comma right after the X value to act as a **Delimiter** (a clear separator between the numbers). | | | `Serial.println(y);` | Sends the Y value and automatically appends a **Newline (`\n`)** character to act as the packet's **Stop Frame**. |