| ▲ | kqr 3 hours ago | |
Sorry, do you have more information on this? I lack the imaginination to understand how someone would automate dumb home devices with microcontrollers. | ||
| ▲ | ssl-3 27 minutes ago | parent | next [-] | |
I couldn't fall sleep the other night and it was cold in my bedroom, so I got up for a bit. I thought about plugging in a space heater, but those suck for a few important reasons that anyone who has ever used one can probably relate to. One of those reasons is that the temperature regulation they provide for the room that they're in is usually very lousy, since the location of their integrated thermostat is right next to their source of heat. On a whim, I decided to improve that thermostat. I already had a bag of cheap DS18B20 temperature sensor clones and some Raspberry Pi Pico Ws that had been looking for a project for years. I soldered those two things together and had Codex configure and install ESPHome for it, and tie that to Home Assistant. That process went fast (only about 15 minutes) and provided a responsive wifi temperature sensor that was powered by a random USB wall-wart. Easy-peasy. I also found a disused smart plug in the box of random electrical widgets. The next move was to set up the Generic Thermostat card in Home Assistant. It reads the probe, and it switches the relay in the smart plug to turn the heater on and off. This left me a heater over there (gestures) where sleeping-me won't be able to toss my bedclothes onto it or anything. That heater is ultimately controlled by a little sensor-probe on the nightstand next to my head, and a dial on a screen on my phone. The room warmed up quickly and the temperature leveled off. Safety was maintained (the heater and its own thermostat are unmodified). Sleep came easily. Data was logged. --- (It could have stopped there, and I might guess that most people would have been satisfied with the performance. But the data showed that the DS18B20 clone was very noisy on the LSB regardless of sample bit-depth. That noise looked a lot like PWM to me so I had the bot concoct a 10-second rolling average for samples in ESPHome which solved the noise well-enough. And the Generic Thermostat card is pretty dumb, as the name suggests. It just responds to observed temperature with a deadband around the setpoint, which works... But PID is better, so I've spent some time on that because I think PID is fun.) | ||
| ▲ | oculetteai 2 hours ago | parent | prev | next [-] | |
microcontroller-powered MCP Cameras allow you to read arbitrary state which is pretty nice, and actuating depends on the device. I used a microcontroller-powered MCP IR blaster + microcontroller-powered MCP camera to automate fixing my AC. | ||
| ▲ | knodi123 2 hours ago | parent | prev [-] | |
aren't you just tired of manually pressing the lever on your toaster? | ||