With Fo

What was the challenge this week ?

We had to do a car race and send strings such as 0,1,2,3,4 to the car which is going to take these as commands to move forward, backward, turn and light up.

But it is not as simple as that…

We have to listen to an air table that is gonna set the go that will go through to the RP240 which is going to set some code to start the controls then send it to an ESP which uses MQTT to talk with cloud which talks back to these Lego cars.

IMG_1156.jpeg

IMG_1159.jpeg

What does the code look like???

So there are couple of parts we need for this to work

Final Code that was on RP2040

crazy-car-race/FinalRP2040code at bbaa5582491d5e495020faa649e9c51d21ad5aa0 · marcjm/crazy-car-race

Class that was running serial communication between RP2040 and ESP on the RP2040

crazy-car-race/sc.py at bbaa5582491d5e495020faa649e9c51d21ad5aa0 · marcjm/crazy-car-race

Let’s build it:

IMG_1145.jpeg

IMG_1164.jpeg

IMG_1161.jpeg

IMG_1162.jpeg

What worked?

What did not work?