This week, I mostly worked on writing code for the serial communication between Arduino and Jetson. I didn’t get to work with the actual Jetson, but I wrote the Python code that can be run on Jetson later to be combined with the CV algorithm. For now, I have a USB cable connected to my computer that allows serial communication with the Arduino. I made sure that the code for the ultrasonic sensor and the servo motor can work simultaneously, and made some mock functions to test that data can be sent back and forth in the order of operations that we aim to have. I also made sure that numbers and string data are sent and received correctly on both ends, since the Arduino will be receiving the classification as either recyclable, trash, or reject, and sending the weight of the item to the Jetson for the web app. I worked around with some ideal delay time between each operation, which will be adjusted when we actually start building our mechanical part.
I am slightly behind schedule as the weight sensor has not arrived yet. This was actually my fault, because I did not know that the order was not placed until the middle of this week. However, I have the code ready so that I will be able to start testing with it as soon as I receive it. Next week, I hope to finally work with running and testing code on Jetson, and integrating more hardware parts together in addition to the ultrasonic sensor and the servo motor.