klaasnicolaas / home-assistant-glow

⚡ The power of energy measurements in your house
https://glow-energy.io/
MIT License
1.07k stars 163 forks source link

Proposal for an all-in-one enclosure #38

Closed bedfelllow closed 2 years ago

bedfelllow commented 3 years ago

I flashed this to a Wemos D1 Micro last night and although I have not tested the functionality yet, it flashed OK and it should work as it's an ESP8266. Given the very small size of the Wemos D1 Mini, this led me to think that there is potential for the sensor and MCU to be in a single case, which would be quite a neat solution I think. Unfortunately I'm not skilled at 3D design, but maybe someone in the community could design something?

slovdahl commented 3 years ago

Is yours really called Wemos D1 Micro? I can't find any references to such a board.

I use Wemos D1 Mini and D1 Mini Pro myself, so I will at least try to come up with modified cases of the ones currently in the repo that fit those two Wemos boards at some point.

bedfelllow commented 3 years ago

Sorry, I got the name wrong. You are correct, it is a Wemos D1 Mini. I think a case incorporating the Di Mini and the photodiode board would be a great all-in-one solution.

m-s-e commented 3 years ago

@slovdahl how did you design the cases? If it's Fusion360 I'd be happy to help with taking the design files and creating something for the D1 Mini

slovdahl commented 3 years ago

@slovdahl how did you design the cases? If it's Fusion360 I'd be happy to help with taking the design files and creating something for the D1 Mini

I haven't designed anything yet :slightly_smiling_face: I'll try to modify the current ones whenever I can find the time.

Maybe @klaasnicolaas can shed some light on how they were originally designed?

m-s-e commented 3 years ago

@slovdahl - sorry!! i thought you have designed the original enclosures!! 🤦‍♂️

KixMan28 commented 3 years ago

@m-s-e I modified a little bit the original files, because I use a Geekcreit ESP 12F instead of an ESP32 module. I also modified a photodiode case because it was too loose for my taste. HA Glow.zip

bedfelllow commented 3 years ago

@m-s-e I modified a little bit the original files, because I use a Geekcreit ESP 12F instead of an ESP32 module. I also modified a photodiode case because it was too loose for my taste. HA Glow.zip

Any chance you could share an STL of your photodiode enclosure modification, as I find the one I have printed to be very loose?

It would be even better though if someone was able to create the suggested all-in-one Wemos D1 Mini case.

KixMan28 commented 3 years ago

@bedfelllow see attached the 3MF files. Sensor case.zip

bedfelllow commented 3 years ago

@bedfelllow see attached the 3MF files. Sensor case.zip

Great, thank you.

klaasnicolaas commented 3 years ago

@m-s-e The original case is designed by me 😉 Unfortunately I can't design a case for a Wemos D1 at the moment because I'm out of stock of that board.

m-s-e commented 3 years ago

all, any thoughts on how the boards might be arranged for an all-in-one enclosure? on top of each other / side by side / above&below ?

bedfelllow commented 3 years ago

all, any thoughts on how the boards might be arranged for an all-in-one enclosure? on top of each other / side by side / above&below ?

I initially considered them being on top of each other as that would make a very compact assembly but I'm not sure of the practicalities of wiring the two together in this configuration. It therefore may be easier to have them both at the same level within the enclosure and I also think this would be an easier design.

bedfelllow commented 3 years ago

A case something on the basis of this may be practical, though it would obviously be a lot shorter: https://cdn-blog.adafruit.com/uploads/2021/01/Wemos-Lolin-D1-Mini-Adafruit-dual-sensor-case-600x400.jpg

bedfelllow commented 3 years ago

Or maybe something like this but replacing the DHT22 sensor with the photodiode board? https://www.thingiverse.com/thing:4274361

bedfelllow commented 3 years ago

This seems to be the shorter version of the first link I posted. https://www.thingiverse.com/thing:4711281

bedfelllow commented 3 years ago

I mashed this together using the sensor case from this project and this one from thingiverse: https://www.thingiverse.com/thing:4304401

It's obviously not ideal but as a proof of concept it works.

Image of Case1

Image of Case2

Image of Case3

bedfelllow commented 3 years ago

I've combined the sensor case from this project and a modification of this case https://www.thingiverse.com/thing:4861266/files, cutting the lightning bolt in the lid using this design: https://www.thingiverse.com/thing:2553540/files to come up with this:

IMG_20210918_170853

IMG_20210918_170922

IMG_20210918_183859 (1)

anverx commented 3 years ago

This project really should live in one small box. Here is how i wired the photo sensor to an esp32 dev board. I'm plannig to design a small case for this. I'm considering a vertical rail so that sticky tape attachment is only on the top surface of the metering device. esp32_photodiode

m-s-e commented 3 years ago

This is the D1mini case I've been working on over the last few weeks:

IMG_20211016_231458__01

I've started a Thingiverse design page for it (there are more images there): https://www.thingiverse.com/thing:5023682

I still need to upload the printer files, and give a bit more info on wiring etc. but feel free to check it out for now.

anverx commented 3 years ago

oh yeah, that reminds me, i've sill gotta publish mine ;) glow

bedfelllow commented 3 years ago

Looking forward to trying both of these designs. Thanks.

github-actions[bot] commented 2 years ago

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!