Believe it or not this is wireless!
I made some progress on the Beat Bike!
The magnet mounted on the wheel passes a reed switch which is sensed by the control box (with a Raspberry Pi Pico) and then triggers the drum machine to step through the programmed sequence.
Still a lot of work to do, mostly mounting everything onto the bike, and some more code to write, but the proof of concept is all good.
Not working quite yet, but the Pico Debug Probe is so much easier than manually wiring up a second Pico. The backtrace seems to suggest there's a crash when the WiFi stack tries to use an async context, but I’m just following the examples, so I'm not sure what the issue is.
Seems unlikely that calling the C methods from Swift would be causing a problem, but I really don't know how the Pico async stuff works
Just one more debugging probe, then it’ll work…
TIL you cannot do a TLS request in embedded rust or no_std that checks the server certificate. And that the raspberry pi pico wifi HAL does not support setting a source MAC address. One of those two is an easy fix =)
#RustEmbedded #RustLang #TIL #embassy #RaspberryPiPico #cyw43 #EmbeddedTLS #reqwless