Place the finger on the dot to controll the car :)
Download RCPico.zip
Unzip RCPico.zip
On the microcontroller, press the BOOTSEL button and hold it while you connect the USB cable to your computer
A new drive would appear
Copy the file RCPico.uf2 to the new drive
Scan the QRcode to connect to the car’s wifi-network
This conect you to the car-wifi with ssid = ‘GemmmaRC#01’ and password = ‘123456789’
Scann the QRcode to connect to the car’s controller/joystock
Open the web-page 192.168.4.1 and now you are ready :)
The Server side is buildt around two parts:
Uses microdot (a web framework) to provide web-client files located in the ./static folder.
The root request ( / ) forwards the ./static/index.html pages that locads the userinterface as show in the picture below
The joystick (nipplejs) in the web-client reads the position from the controller and forwards to the microcontroller as a
WebSocket(“ws://192.168.1.4/ws”) message where the positionis formated as a JSON string.
WebScoket Remote control format :
{ “xPos”: xxx , “yPos” : yyy }
xxx - is an integer from -1024 to 1024 ( turning left / right )
yyy - is an integer from -1024 to 1024 ( motor speed )