Devlog - 2
Major progress with the microbit over the past 2 days. At the initial stage of programming the microbit, I struggled with planning an optimal logic that the application and the microbit script would follow to ensure minimal load on the operating system. My initial setup was based on using exisiting python libraries that access the media stream of the device and do the calculations necessary to display visuals on the microbit. One library that I experimented with is winmedia_controller, but the library was outdated and called enough dependencies to defeat the purpose of being a lightweight application.
__
So for the implementations I have made so far, I decided that I will program the calculation logic using primitive methods and efficient libraries like numpy and use the windows SDK libraries to pull live media streams. This should make the application even more lightweight and still send reliable data to the microbit.
__
Today, I focused on implenting the serial communication between the application and the microbit itself and I also programmed the buttons to control the media being played on the laptop. The microbit would jumble up the commands when I tested the connection at first, I spent a lot of time surfing through many websites and gpt conversation to find the route cause of this issue, only to find that 2 IDEs (one for microbit scripting, one for the application handling visuals) were fighting to listen to the same serial stream which glitched the serial output the microbit was giving. Thats a lesson learnt, ensure that the micrbit is strictly connected to one serial stream when playing with serial connections.
__
Enjoy the timelapses :)
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.