b-parasite icon indicating copy to clipboard operation
b-parasite copied to clipboard

Minimal Case Design

Open drspangle opened this issue 2 years ago • 24 comments

I've been working on getting a bulk order of these sensors together for a home garden sensing project, and I've noticed that it might be possible to drastically reduce the amount of material used in the case without compromising the overall design. Is there any chance that someone with access to a 3d printer might want to take a crack at prototyping? I'm afraid I'm using an outsourcing service for mine, as I haven't got a printer.

drspangle avatar Apr 28 '22 02:04 drspangle

Also, could anyone provide the original design files for the case? I can't import the STEP file into Fusion 360.

drspangle avatar Apr 28 '22 02:04 drspangle

@drspangle did something recently change in Fusion 360? I am able to import the STEP file. I'm on version 2.0.11894 on macOS.

rbaron avatar Apr 28 '22 06:04 rbaron

I'm not sure. I'm using version 2.0.12888 on Windows 10. When I try to import the STEP file it just hangs. I'll give it a try again today and see if I can't make it work.

drspangle avatar Apr 28 '22 14:04 drspangle

@rbaron I managed to import the STEP file. Not sure why it failed last night, it may have been a cloud-related thing. Sorry for the alarm. I do have a new question for you, though: what are the requirements in terms of getting adequate airflow to the humidity sensor, so that it can get reasonable readings? Does the case also (intentionally?) cover the photosensor?

drspangle avatar Apr 28 '22 15:04 drspangle

@drspangle unfortunately I haven't run any comparative tests for the humidity sensor with and without case. It would be interesting to come up with a case design that allows for better airflow in case this is an issue, while still protecting the board well.

For the illuminance sensor, if you want to use a case, my best suggestion would be to print it in a transparent material.

rbaron avatar Apr 28 '22 16:04 rbaron

I think I've managed to get a few useful features implemented in the design, so that it doesn't have to be printed in a transparent material (but conformal coating, even the cheapest that can be found, would be recommended). This way the sensor should hold up better to splashes or even possibly outdoor use, provided it's used in less damp climates. You can find this in #35. I've asked other users in #3 to see if they can test out the design's printability (it should be as good as the original).

If anyone manages to get a print of the updated case out there and has some pictures, I'd be very grateful if you could share them here. Unfortunately I don't have access to a printer so I can't iterate on the case design very much. In an ideal world I'd like to see if I could incorporate some TPU gaskets on some of the inner surfaces so that a truly water resistant design would be possible, with minimal conformal coating.

drspangle avatar Apr 28 '22 17:04 drspangle

You might want to take some design inspiration from weather station shields to maintain temp and humidity accuracy.

I've also seen prints with a 1.75mm hole so a clear piece filament pressed and glued into it as a light pipe. Maybe a good idea for the light sensor and led.

JoelWise avatar Apr 28 '22 17:04 JoelWise

You might want to take some design inspiration from weather station shields to maintain temp and humidity accuracy.

@JoelWise This is a nice idea, but it runs a bit counter to my "reducing the amount of material" goal. To be honest I think the current interference-fit clamshell case design is a good one, the main areas where water infiltration is an issue are around the programming pads and the battery connector. The rest of the components (including the photoresistor) can be conformally coated and become effectively waterproof cheaply and easily. Because there needs to be gas exchange with the humidity sensor, the top of the board has to be exposed to the outside environment no matter what. Obviously the humidity sensor shouldn't be coated but I don't worry much about corrosion there.

I believe the programming pads are also less of an issue if they are solder-filled and coated on the top side, so they can be programmed from underneath on the uncoated side. A future hardware iteration might consider to put these as actual pads and only on the bottom, but this would require a fair bit of reworking and might not be worth doing. When conformally coated, the design of the case is mostly needed to prevent water from intruding on the bottom and into the battery clip, and that's where I think a TPU gasket could work to surround this portion of the board and keep moisture out.

I sure wish I had a 3d printer... I'm going to need to start thinking about buying one.

drspangle avatar Apr 28 '22 17:04 drspangle

Sounds cool. I'm all for having an improved case design! I'd love to have a 'hat' case that just securely slides on from the top that copies the design of weather sensor covers. Combined conformal coating it could work really nice!

JoelWise avatar Apr 28 '22 19:04 JoelWise

I designed a single piece thin wall l cap out of black ASA that slides on over the upper section of the sensor. The goal was to protect against water ingress for the upper section via no additional case seams ( these will be outside 24/7 with automatic watering ) The bottom is open to allow some airflow, but the temp swings from sunlight limit the effectiveness of the temp/humidity measurement during the day. Even with a clear material to enable the illuminance measurement , I don't think you could get an accurate temp measurement without significant airflow through the case. .

I'm reprinting a few in white filament to see if the temp performance is any better. image

hallsny avatar Apr 29 '22 19:04 hallsny

The humidity levels are dependent on temperature since I think it measures relative humidity, so that's why my updated design has air holes to promote freer gas exchange. It would be great to be able to more scientifically test the benefits and drawbacks in terms of these different case designs against one another.

drspangle avatar Apr 29 '22 19:04 drspangle

I designed a single piece thin wall l cap out of black ASA that slides on over the upper section of the sensor. The goal was to protect against water ingress for the upper section via no additional case seams ( these will be outside 24/7 with automatic watering ) The bottom is open to allow some airflow, but the temp swings from sunlight limit the effectiveness of the temp/humidity measurement during the day. Even with a clear material to enable the illuminance measurement , I don't think you could get an accurate temp measurement without significant airflow through the case. .

I'm reprinting a few in white filament to see if the temp performance is any better. image

Can you share the design files? This would be a great base to build a pagoda-style cover that I suggested earlier.

JoelWise avatar May 02 '22 22:05 JoelWise

I had a go at a higher airflow printable cover. This should be printable upside-down as long as the printer is set up to bridge gaps and can print a 30 degree overhang.

image image

image

soil sensor cover_airflow v4.zip

hallsny avatar May 03 '22 00:05 hallsny

You beat me to it! Quite the upgrade! Printed in PETG. Good fit at default size but maybe a bit better at 101%.

vp7

vp8

JoelWise avatar May 03 '22 20:05 JoelWise

Impressive work!

I take it that transparent PETG or similar material is required to make use of the photosensor? Do you see a noticeable difference in the temp/humidity readings with this case versus without, or versus other case designs?

drspangle avatar May 03 '22 21:05 drspangle

I used PETG because my printer was setup for it. I would use white PLA but I don't have any at the moment!

I have found the photosensor to be useful only when the probe is monitoring small nursery plants since other larger plants' leaves shade the sensor. Ambient temp readings seem to be unaffected. Humidity readings are 10-15% above ambient but that is to be expected from a sensor that sits just inches above wet soil. Hah.

Edit: the small bump near the end is where I fiddled with the sensor to install the cover. The top flat side of the case is pretty clear so it appears it won't affect shaded ambient light readings too much. That's cool. Of course the readings are a comparison to having a clear cup sitting on top. 🙂

SmartSelect_20220503-151300_Home Assistant.jpg

JoelWise avatar May 03 '22 21:05 JoelWise

@hallsny that case looks gorgeous! Would you consider submitting a PR with it? Thank you!

rbaron avatar May 04 '22 06:05 rbaron

@hallsny I'm still interested in getting a copy of the slim case if possible. Thanks!

JoelWise avatar May 05 '22 01:05 JoelWise

@hallsny that case looks gorgeous! Would you consider submitting a PR with it? Thank you! I would like to make some design update first and then can submit a PR.

In general the difference between the high airflow case and my standard cover has been minimal in a side by side comparison. 0 is high airflow, 1 is standard, and 3 is a sensor with a normal cover in a different shaded spot (low sun control). I may try opening up the sides to get more airflow through the cover. image

@hallsny I'm still interested in getting a copy of the slim case if possible. Thanks!

Here you go! soil sensor cover v4.zip

hallsny avatar May 05 '22 05:05 hallsny

Thanks!

Maybe humidity readings benefit more? The airflow case is still pretty slim and probably needs to extend far further to give the needed shade. Even then, the sensors are right at ground level which doesn't seem ideal if you expect accurate ambient readings. I'll share some of my own comparisons in a few days.

JoelWise avatar May 05 '22 19:05 JoelWise

I'm starting to come to the conclusion that there are fundamental trade-offs between getting good light measurements, and the sensor's ability to read soil moisture and air humidity. In an ideal world, the light sensor would be someplace away from the device, but that would make it a piecemeal solution (perhaps a separate device with sensors solely for light/temperature/humidity readings is worth investigating).

The important question that is raised for me is, does the accuracy of the capacitive measurements for soil moisture have any dependency on temperature, air humidity, or light readings? If not, these sensors are no longer "must haves" on this platform and perhaps the size and design of the PCB and therefore the case could be simplified in a more specialized variant. A separate variant design that abandons the capacitive sensor and only has the other sensors could do light, humidity, and temperature readings a whole lot better in a separate package. After all, there's no reason for everything to happen all at once on one device unless it really needs to, right? Thoughts?

By the way, even if there is a dependency on the sensors being all in one place, this could potentially be mitigated at the data sink, with any required computations happening off-device -- at the cost of some error due to the readings being taken from slightly different locations.

drspangle avatar May 05 '22 20:05 drspangle

I always have viewed the other sensors as fun-to-have. They cost next to nothing to add and implement if you don't have a need for extreme accuracy. Moisture sensing ease and accuracy is #1. If anyone starts to have big redesign requirements then it's time to fork and roll your own.

JoelWise avatar May 05 '22 20:05 JoelWise

I think that totally makes sense and is the same philosophy I have arrived at. The reason why I decided to look into this project was the capacitive sensor, the comms, and the prospect of long battery life -- not the other sensors.

Once I've brought up some of these boards and tested them out I'll probably take a crack at a fork for the sunlight and temperature measurements on a separate board, but it might prove unnecessary anyway. Another fork might be a dedicated actuator (irrigation, for example), built on the same foundation. Getting these to all work together is a software problem which is much simpler to solve and to version control than all this hardware waffling.

drspangle avatar May 05 '22 21:05 drspangle

Temp and humidity vs local weather service using the high airflow case. The probe is in a 5L pot and mostly shaded. Local weather is mostly cloudy, rainy, and cool.

vp10 vp11

JoelWise avatar May 12 '22 20:05 JoelWise

Does someone have these (very nice!) case-files as an .stl file? I don't have access to Fusion 360. Preferably of course as a PR to this repository! :)

jhbruhn avatar Oct 10 '22 09:10 jhbruhn

I recently played around with the high airflow case and it was too tight for me and the battery clip was getting in the way. So I made it slightly larger with bigger tolerances. You can check my results here: https://www.printables.com/model/306214-high-airflow-case-for-b-parasite

hubikj avatar Dec 05 '22 12:12 hubikj