Hello guys,
I am planning to build a weather station as an electronics project. It is supposed to be a couple sensors (temperature, humidity, air quality for example) connected to a microcontroller (probably via I²C, because I’m currently interested in that and picked this project as an excuse to do something with it), and a basic LCD display to show the current data.
For this I want a small microcontroller that can collect the stats from the sensors and show them on the screen, so nothing too fancy. I want to actually deploy this on my balcony, so I don’t wanna sacrifice a Pi or something along those lines. Ideally something with a sleep mode so I can run it off a button cell.
I was eyeing out something from the ATtiny family. Ideally it would be a through-hole-mounted chip as I want to use it on a breadboard first (and probably permanently). The only DIP chips are fairly old tho so I’m not sure if they’re easy to use nowadays. We used an ATtiny461A in university and had to program it via a Windows XP VM, which is an experience I would not like to relive.
While the WiFi functionality of the ESP32 is appealing, I don’t know if I want to condemn one of them to a life on the balcony. I would rather use them for one-off projects instead and use something simpler for a long-term deployment.
The following are some ideas I have that I might want to add to my project later, but they’re just optional features and I don’t necessarily pick the microcontroller based on them:
- Tracking/Logging sensor data over time, e.g. hourly. This would require some fairly accurate timing in order not to drift. Maybe a
- Networking, so I can access the data via my local network
If there exist microcontrollers that fit my criteria I’d be happy to hear about them! I’m not an absolute beginner to electronics, but I’ve never shopped for microcontrollers before.
fonix232@fedia.io 1 day ago
+1 on the ESP32.
Very good support (incl Arduino framework which means tons of libraries for sensors), cheap, tons of variants of chips and dev boards for all sorts of purposes, plus if you buy a ready made module or dev board, you don't need wireless certification (as those come with it).
Tons of pins, tons of processing power, built in wireless support for WiFi, Bluetooth, Thread/Matter (depending on model).
And you can utilise ESPHome if you want to go for a practically codeless deployment.
czardestructo@lemmy.world 1 day ago
Esp32 will demolish a full sized battery, never mind a coincell.
fonix232@fedia.io 23 hours ago
Lauchmelder@feddit.org 1 day ago
Thank you for the advice, but it’s not really what I’m looking for. I am looking for something really lightweight for now, and the ESP32 is a bit overkill. And codeless deployment sounds horrible, I want to actually write the ode myself, I should have mentioned that!
AnyOldName3@lemmy.world 1 day ago
Unless you’re making thousands of something, an ESP32 is cheap enough that it shouldn’t matter whether or not it’s overkill. Getting something simpler will only save you a few pennies unless you’re overspending as ESP32 breakout boards are available for less than £2.
The power draw will be a problem, though, unless you disable WiFi. They’re not really button-cell-friendly.