My first IoT projec...
 
Notifications
Clear all

My first IoT project - The Weather Logger

5 Posts
4 Users
0 Likes
3,749 Views
(@garnold)
Member
Joined: 5 years ago
Posts: 81
Topic starter  

I'm building the standard "Hello World" entry point IoT project and tracking / logging weather. The board I'm using is a Wemos D1 Mini and the sensor is the DS18B20 in a water proof enclosure like I'm sure you've all seen before. To protect the sensor from the elements I'm printing out this pretty cool Stevenson screen! The code is simple right now and just logs temp changes to my QNAP QIoT server. I'll have lots of questions as I progress through the project, but at this point I just want to keep it simple so I can start with something and not get to overwhelmed HAHAHA!

So for my first question, I need some ideas for how to attach the DS18B20 to a case. There are so many little plugs and things out there that I just have my head spinning right now. I'll be creating an enclosure for the Wemos and want to be able to plug the sensor into the box. The plug should be pretty small because I might have to drill a hole through a wall and have to feed the sensor through. I could also just feed the other end through but I want to have that mounted the the screen first. Still working this out. Odds are the enclosure will have to be inside since I will also have to attach the USB cable to the Wemos for power (right now I'm still learning about deep sleep and how to keep devices going for the long haul). 

Can I please get some tips on what people use to plug peripherals into their project boxes? Thank you all!


   
Quote
 Vesa
(@vesa)
Member
Joined: 5 years ago
Posts: 2

   
ReplyQuote
SHD
 SHD
(@shd)
Member
Joined: 5 years ago
Posts: 5
 

If you are going to be mounting this permanently rather than constantly moving about, what about putting some terminal blocks on the inside of the case and then drilling a hole just large enough for the sensor cord in your wall as well as your project box?  Keep your pullup resistor and such on your board and then just clamp your three cords into the appropriate (and appropriately labeled for future reference) terminal blocks.  

I have an overarching principle of weatherproofing stuff that I follow as well, which is to try to keep a 'roof' over everything in the first place where possible.  My exterior temp sensor on my house (also a ds18b20) comes down from the eaves so that the entry point is protected.  If you do mount the box outside, putting your entry point on the bottom of the box rather than the side is a good start.  I actually use one of those cheap rubber trailer light housings (yard sale find) for my greenhouse chip (in the greenhouse but close enough to an openable section that it can get hit by both rain and the ubiquitous condensation).  All the cords come in the bottom through a slit.  Not had a problem yet.       

Cheers,
Dave
 


   
ReplyQuote
codecage
(@codecage)
Member Admin
Joined: 5 years ago
Posts: 1037
 

Vesa,

I get just a blank page for the male sockets.  My browser?

SteveG


   
ReplyQuote
codecage
(@codecage)
Member Admin
Joined: 5 years ago
Posts: 1037
 

But if I use this link it seems to work:

https://www.aliexpress.com/item/32866317319.html

SteveG


   
ReplyQuote