Websocket Head: Difference between revisions

From 3c2mWiki
Jump to navigation Jump to search
(Created page with "=Robot Head controllable with Turbowrap via Websocket= ==Microcontroller== * An ESP32 is Programmed in Arduino IDE * Servos, buttons, sonsors and speaker can be controlled with Website or websocket * Arduino code: esp32-sensors-and-servos")
 
No edit summary
Line 4: Line 4:
* Servos, buttons, sonsors and speaker can be controlled with Website or websocket
* Servos, buttons, sonsors and speaker can be controlled with Website or websocket
* Arduino code: [[esp32-sensors-and-servos]]
* Arduino code: [[esp32-sensors-and-servos]]
==Website==
* Connect to ESP_32_servo_xxx
* Open in browser [http://192.168.4.1 192.168.4.1 ]
* Optional: Connect ESP to local network, remember IP and connect to this IP
* Control servos, read sensors, play sound via
==Turbowrap==
TurboWarp is a fast, powerful Scratch mod that adds more features and performance optimizations.
==Start==
* [https://desktop.turbowarp.org/ Dektop version]
or
* [https://turbowarp.org/editor online version]
===Security===
If you use the online editor, the wireless control of the microcontroller with TurboWarp will not work out of the box in most Browsers.
There is are security policies (Mixed Content, Same-Origin-Policy) that only allow certain communications between http and WebSocket (https-wss http-ws). You have to allow it manually.
* Firefox: [about:config]

Revision as of 11:41, 26 August 2025

Robot Head controllable with Turbowrap via Websocket

Microcontroller

  • An ESP32 is Programmed in Arduino IDE
  • Servos, buttons, sonsors and speaker can be controlled with Website or websocket
  • Arduino code: esp32-sensors-and-servos

Website

  • Connect to ESP_32_servo_xxx
  • Open in browser 192.168.4.1
  • Optional: Connect ESP to local network, remember IP and connect to this IP
  • Control servos, read sensors, play sound via

Turbowrap

TurboWarp is a fast, powerful Scratch mod that adds more features and performance optimizations.

Start

or

Security

If you use the online editor, the wireless control of the microcontroller with TurboWarp will not work out of the box in most Browsers. There is are security policies (Mixed Content, Same-Origin-Policy) that only allow certain communications between http and WebSocket (https-wss http-ws). You have to allow it manually.

  • Firefox: [about:config]