Raphael Profile picture
Feb 9, 2022 18 tweets 4 min read Read on X
When I started working on my soil moisture sensor, I had little idea about how harsh an environment the soil really is. In this 🧵, cool failure modes & solutions when sticking electronics in the ground: A rusty printed circuit board
If left completely unprotected, water will slowly creep in when we stick a PCB in soil. In my tests, this takes from a few weeks to a couple of months.
The solder mask adds some protection to the top and bottom of the board, but the edges of the PCB are completely exposed and usually where water gets in first.
In the beginning, I've experimented with the hack of adding a few coatings of nail polish to the edges. This helps, but eventually the solder mask also fails.
I then moved on to a real "conformal coating" approach. I bought one of these Plastik 70 acrylic sprays and gave it a go in some boards. Here are they drying up. Printed circuit boards dryi...
Since these are capacitive soil sensors with coarse precision, adding a super thin layer of coating had no measurable effect in its readings.
I was pretty happy with this solution for a while, and I have a few boards that still look pristine after almost a year of service.
But let's take a closer look at this one. Note that, on the very tip, the coating chipped off and it lost its battle against rust. Image
When drying in the "upright" position, some of the coating ends up accumulating on the tip, in the form of a little acrylic blob that sticks out. This created an area of stress when inserting and removing it from the soil. Eventually, it broke off, exposing the uncoated board.
So, not only the coating matters, but also how it dries. We want a nice, smooth and uniform layer on top of the board.
I then built this PCB rotisserie that spins the boards while they dry, hoping it would make the coating layers more uniform.
I'm happy to say this is now the method that's been working best. Here's a shot of a finished coated board: Image
I've also experimented a little with epoxy resin instead of acrylic. It's thicker and feels more durable than the acrylic, but it's not as convenient to use as the spray can, and there were more blobs. For small batches, it's more wasteful, since you can't save the leftovers.
Another interesting failure is when water shorts something on the board. I tend to also coat the components (even the temp sensor!), and it's fine. The battery clip on the back, on the other hand, cannot be easily coated, since it needs to make good contact with the battery.
When water gets in there, not only the battery drains quickly, but this also happens to the clip: A corroded battery clip
This happens when watering the plants, as the water level can briefly rise above the soil and reach the battery clip.
I revised the board and made it a little longer, so the battery is further from the soil. I've also 3d printed cases for all my sensors, which I had only been using for the outdoors ones. ImageImage
With the properly applied coating and case, I expect these boards to last a long time. Thanks for reading!

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Raphael

Raphael Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @rbaron_

Aug 1, 2022
This is the story of how daisy-chained a bunch of electronic shelf labels into a panel to decorate my office (a thread)
I had bought two dozen of these little displays after coming across @atc1441’s work. I played around with them for a little while and even made a small contribution to the project ​​github.com/atc1441/ATC_TL…
Flash forward to a month ago. I watched @scottbez’s excellent “How a Split-Flap Display Works” video and was inspired by the idea of stringing the ESLs together to make a larger panel.
Read 21 tweets
Aug 15, 2021
I recently joined the very exclusive club of cat printer owners. I spent some time reverse engineering its Bluetooth Low Energy protocol and wrote a little open source client for it. 🧵👇
This is a tiny, battery-powered thermal printer that sells on AliExpress for around $20. It’s meant to be controlled by its proprietary & closed source iOS/Android app. The app connects to the printer via Bluetooth Low Energy (BLE).
I used github.com/skylot/jadx to decompile the iPrint Android app back into Java code and hopefully figure out how it talks to the printer. The result of this decompilation is surprisingly good, but not perfect.
Read 23 tweets
May 30, 2021
I spent some time this weekend looking into another cheap smart watch. This ones sells for $17 on AliExpress Watch & box
There is no product name in the box & the marketing pics are a little misleading. The display is not even round, but just a square of 240x240 pixels. It's just glued to the middle of the dial
Inside there's the mysterious HS6620 system-on-a-chip. It's an ARM Cortex-M3 with 128KB of RAM. We can also see an external 1MB SPI flash chip in there
Read 17 tweets
Mar 3, 2021
Here’s the fascinating way these capacitive soil moisture sensors work. Image
If we stick them in the ground, we can monitor the moisture level in the soil via its analog output. It spits out a voltage that is proportional to how wet the soil is.
At its heart, it packs a humble resistor and capacitor circuit, like this one. An RC circuit
Read 13 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(