Websocket Head
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]