Squeaky Frog on Nostr: Here are some photos of the guts of my remote outdoor temperature sensor for my ...
Here are some photos of the guts of my remote outdoor temperature sensor for my #HomeAssistant setup. I will eventually probably expand into a full weather station to measure wind, rain, humidity, etc, but what I really needed this winter was a thermometer to warn me when temps were getting close to freezing so I could check the greenhouses, cover sensitive outdoor plants, etc. The location of our farm is in a natural depression, so on cold, clear nights it can be almost 10 degrees colder than what the local forecasts predict in nearby Austin (and they're wrong about that about half the time, anyway) so I needed to start collecting my own data.
This is an off the shelf cheapo solar light from Amazon. The light function still works, but I usually leave it off and not in "motion detect" mode to preserve battery life. Inside I added a clone of the Wemos D1 mini microcontroller board, wired to the battery through an MCP1700 LDO voltage regulator and a couple of capacitors, with a DS18B20 temperature sensor dangling outside the case through a hole I drilled on the bottom side of the light housing. I sized the hole to be a tight fit for the cable, which sort of causes it to self-seal. No issues with water infiltration yet.
I used the ESPHome plugin for HomeAssistant to program it, set up on a cycle to sleep for 10 minutes and wake for 40 seconds. That gives it just enough time to wake up, connect to wifi (tip: using a static IP address instead of DHCP lets you reduce the wake cycle by a few seconds), and transmit the temperature reading. I tried five minutes between readings, and would run out of battery power overnight, so on this battery, ten minutes is about the minimum.
Not shown in the photo is a strip of thin plastic I cut to fit over the original circuit board that runs the light to keep the D1 board from possibly touching it and causing electrons to go somewhere they're not supposed to go.
Total cost of this setup when I built it six months ago was around $12. Half of that was the solar light, so if you already have some lights, you can add this kind of functionality for about six bucks.
#grownostr #homestead #automation
Published at
2023-05-01 04:35:33Event JSON
{
"id": "12a2c8ea1c92dd5d42b851f7233e58d090b0dafe13c1ee26f19665fdb9774ea3",
"pubkey": "740d83ebb4fdf3511acd6dd3290d29f67657bf99156e5fe07a67e3cbc7375bbe",
"created_at": 1682915733,
"kind": 1,
"tags": [
[
"t",
"HomeAssistant"
],
[
"t",
"grownostr"
],
[
"t",
"homestead"
],
[
"t",
"automation"
],
[
"r",
"https://nostr.build/i/nostr.build_bf2b2d8691a727c9ad0f871e4f4abfa6763c0b2f09fe7d8c376c239cdcfd2f68.jpg"
],
[
"r",
"https://nostr.build/i/nostr.build_fdaaae0cf6b7b953ce0b1f85eeaef14fca6ddc1ee49f3e97166c72f045805875.jpg"
]
],
"content": "Here are some photos of the guts of my remote outdoor temperature sensor for my #HomeAssistant setup. I will eventually probably expand into a full weather station to measure wind, rain, humidity, etc, but what I really needed this winter was a thermometer to warn me when temps were getting close to freezing so I could check the greenhouses, cover sensitive outdoor plants, etc. The location of our farm is in a natural depression, so on cold, clear nights it can be almost 10 degrees colder than what the local forecasts predict in nearby Austin (and they're wrong about that about half the time, anyway) so I needed to start collecting my own data.\n\nThis is an off the shelf cheapo solar light from Amazon. The light function still works, but I usually leave it off and not in \"motion detect\" mode to preserve battery life. Inside I added a clone of the Wemos D1 mini microcontroller board, wired to the battery through an MCP1700 LDO voltage regulator and a couple of capacitors, with a DS18B20 temperature sensor dangling outside the case through a hole I drilled on the bottom side of the light housing. I sized the hole to be a tight fit for the cable, which sort of causes it to self-seal. No issues with water infiltration yet.\n\nI used the ESPHome plugin for HomeAssistant to program it, set up on a cycle to sleep for 10 minutes and wake for 40 seconds. That gives it just enough time to wake up, connect to wifi (tip: using a static IP address instead of DHCP lets you reduce the wake cycle by a few seconds), and transmit the temperature reading. I tried five minutes between readings, and would run out of battery power overnight, so on this battery, ten minutes is about the minimum.\n\nNot shown in the photo is a strip of thin plastic I cut to fit over the original circuit board that runs the light to keep the D1 board from possibly touching it and causing electrons to go somewhere they're not supposed to go.\n\nTotal cost of this setup when I built it six months ago was around $12. Half of that was the solar light, so if you already have some lights, you can add this kind of functionality for about six bucks.\n\n#grownostr #homestead #automation \n\nhttps://nostr.build/i/nostr.build_bf2b2d8691a727c9ad0f871e4f4abfa6763c0b2f09fe7d8c376c239cdcfd2f68.jpg\n\nhttps://nostr.build/i/nostr.build_fdaaae0cf6b7b953ce0b1f85eeaef14fca6ddc1ee49f3e97166c72f045805875.jpg",
"sig": "4e22a9d62f4ba8a2f001e9288ed4edef6622bdb443896434957e55bd194f0255f64140a1ee896704694d475e323e3dd51e354ac27fe90e5d30e15093e690f102"
}