How I've been using JavaScript to automate my house
summary
Projects reuse JavaScript on microcontrollers to control lights, doors and toys using Espruino, ESP32 and ESP8266 boards, Raspberry Pi and Node-RED flows. Working builds: a beer-can voice/face notifier (camera recognition sends welcome messages), a PS3-joystick remote car prototype, web-triggered door relay and room sensors feeding Node-RED dashboards. Surprises: face detection runs near real time on tiny boards but memory caps (4 MB flash, ~80 KB RAM) force tradeoffs; radar sensors false-trigger lights; Espruino has limited async/library support and remote SSH flashing eases OTA.
AI-written summary · about
chapters (10)
- 0:00Introduction and motivation
- 3:15Home automation projects overview
- 6:24Automating lights with microcontrollers
- 9:57Node-RED and real-time control
- 14:10Switching from C++ to JavaScript
- 17:46Getting started with Espruino
- 20:39Challenges with Espruino
- 22:30Benefits of JavaScript for IoT
- 23:12DIY dog poop detector project
- 24:57Final thoughts and call to action
related talks
33mJavaScript for Hardware
32mJS in Strange Places
37mJavaScript On Microcontrollers
30mJavaScript Powered Smart Home With (Almost) No Code
26mJavaScript for Microcontrollers with Espruino (ASL)
44mIntroduction to JavaScript Robotics
39mJavaScript in the Real World
36mHoney, I Shrunk the Scripts! — the secret life of JS on microcontrollers
