This is proof of concept for my upcoming project Oxenode.
-
An esp32s3 firmware. Provides a set of commands called through websocket buffers, allowing a web client to control the device. See more
-
An Oxenode plugin. Provides bindings for sending instructions through websockets. Acts as a web client to the esp32 firmware. See more
The firmware is meant to be used with an ESP32-S3-DevKitC-1
, wired to a l298
motor controller and an HC-SR04
ultrasound sensor.
Close Up | Top View |
---|---|
https://cdn.jsdelivr.net/gh/matiasvlevi/esp32-ws-car@latest/oxenode/esp32-ws-car
We first need to establish a connection with our end device.
We can use the Websocket Create
node from the oxenode-std-ws
plugin to create a reference to a websocket and store it in a global variable.
We can use a Switch
node to match keys to motor websocket commands
To prevent spamming our end device with the same commands, we add an if codition checking if the key was repeated.
notice that we need to supply the socket reference since the nodes in this plugin use WebSockets under the hood.
Do not forget to add a way to stop.
We send a brake command to the end device when the user releases a key
License MIT