This week I was working on bluetooth communication and system integration. Currently, our implementation uses Human-Interface Device (HID), which is how digital stylus acts as an air mouse. However, this may cause problems when we start integrating our FSR for pen thickness, since a mouse cannot read analog push data.
My current implementation utilizes service + characteristic uuids to establish a connection between the MCU and computer, then send over data. One issue I ran into was getting both pygame & bleak (bluetooth library for python) to work together. This issue was fixed by implementing multi-threading into our python code, so both can run together without blocking. We will need to check if this introduces any latency issues compared to our current approach. I will work more to help Christian with FSR integration.
Per canvas, I’ve been able to learn more about bluetooth and the pygame application for canvasing. Learning these resources has often come from online articles to upstart code, videos for debugging help, and generative AI to help fill in conceptual gaps. I also reinforce my understanding through explaining to my teammates.

