Last night I spent some time working on it, and the solution I'm at right now is running a wire from the GPIO pins of the Raspberry Pi 5 to the Pico, and when the data has been sent, then turning on that line and using it to trigger the Pico to read the serial data from its buffer. It works perfectly, and I'm using the natural delay caused by reading the camera data as my delay on the Pi 5 to make sure all the data gets across. I am now able to send as much data as I'm going to use and it only takes about 1.5ms to read it from the Pico, which leaves me plenty of time to do my calculations.
I also switched from sending every variable as a named key, and instead just a series of lists with their own names, so I can reference item #3 of the blue list for the robot's velocity, and it's all working really well.
I also switched from sending every variable as a named key, and instead just a series of lists with their own names, so I can reference item #3 of the blue list for the robot's velocity, and it's all working really well.
Statistics: Posted by BrianZweerink — Thu Jul 03, 2025 3:23 pm