{"id":19768276,"url":"https://github.com/matiasvlevi/esp32-ws-car","last_synced_at":"2026-04-14T00:04:07.031Z","repository":{"id":214461924,"uuid":"720290986","full_name":"matiasvlevi/esp32-ws-car","owner":"matiasvlevi","description":"Control an esp32 robot with Oxenode client scripts through WebSockets","archived":false,"fork":false,"pushed_at":"2024-02-27T04:01:38.000Z","size":32430,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-13T06:08:37.801Z","etag":null,"topics":["esp32","javascript","oxenode","robots","visual-scripting","websockets"],"latest_commit_sha":null,"homepage":"https://github.com/oxenode/","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matiasvlevi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-11-18T03:07:14.000Z","updated_at":"2024-01-21T00:59:01.000Z","dependencies_parsed_at":"2024-02-27T05:21:56.650Z","dependency_job_id":"a4450c4e-b3c0-44bd-96a7-e03e0219c2b3","html_url":"https://github.com/matiasvlevi/esp32-ws-car","commit_stats":null,"previous_names":["matiasvlevi/esp32-ws-car"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/matiasvlevi/esp32-ws-car","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matiasvlevi%2Fesp32-ws-car","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matiasvlevi%2Fesp32-ws-car/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matiasvlevi%2Fesp32-ws-car/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matiasvlevi%2Fesp32-ws-car/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matiasvlevi","download_url":"https://codeload.github.com/matiasvlevi/esp32-ws-car/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matiasvlevi%2Fesp32-ws-car/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259592280,"owners_count":22881268,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["esp32","javascript","oxenode","robots","visual-scripting","websockets"],"created_at":"2024-11-12T04:36:53.445Z","updated_at":"2026-04-14T00:04:07.003Z","avatar_url":"https://github.com/matiasvlevi.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# esp32-ws-car\n\nThis is proof of concept for my upcoming project [Oxenode](https://oxenode.io/).\n\n### Repository contains:\n\n* An esp32s3 firmware. \n Provides a set of commands called through websocket buffers, allowing a web client to control the device. [See more](./firmware/README.md)\n\n* An [Oxenode](https://oxenode.io/) plugin. Provides bindings for sending instructions through websockets. Acts as a web client to the esp32 firmware. [See more](./oxenode/esp32-ws-car/README.md)\n\n\u003cbr/\u003e\n\n## Robot \u0026 Hardware\n\nThe firmware is meant to be used with an `ESP32-S3-DevKitC-1`, wired to a `l298` motor controller and an `HC-SR04` ultrasound sensor.\n\n\u003cp align=\"center\"\u003e\n\t\u003cimg width=\"55%\" src=\"./assets/Main.jpg\"/\u003e\n\u003c/p\u003e\n\nClose Up             |  Top View\n:-------------------------:|:-------------------------:\n![](./assets/WireWrap.jpg)  |  ![](./assets/Top.jpg)\n\n\u003cbr/\u003e\n\n\n\n\n## Oxenode Client Script\n\n#### Plugin CDN\n\n```\nhttps://cdn.jsdelivr.net/gh/matiasvlevi/esp32-ws-car@latest/oxenode/esp32-ws-car\n```\n\n### Websocket creation\n\nWe first need to establish a connection with our end device.\n\n![mbot-begin](./assets/script-begin.png)\n\nWe 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.\n\n\u003cbr/\u003e\n\n### Key down event (WASD controls)\n\nWe can use a `Switch` node to match keys to motor websocket commands\n\nTo prevent spamming our end device with the same commands, we add an if codition checking if the key was repeated.\n\n![mbot-key](./assets/script-key.png)\n\nnotice that we need to supply the socket reference since the nodes in this plugin  use WebSockets under the hood.\n\n\u003cbr/\u003e\n\n### Key up event (Stopping motors)\n\nDo not forget to add a way to stop.\n\n![mbot-key](./assets/script-keyup.png)\n\nWe send a brake command to the end device when the user releases a key\n\n\u003cbr/\u003e\n\n---\n\nLicense MIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatiasvlevi%2Fesp32-ws-car","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatiasvlevi%2Fesp32-ws-car","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatiasvlevi%2Fesp32-ws-car/lists"}