Ideas for a project enclosure?

I finished my 1st project from this link: https://vaasa.hacklab.fi/2016/02/06/esp8266-on-nodemcu-board-ds18b20-arduinoide-thingspeak/

I want to make 4-5 of them to use them to measure the temperature of my refrigerators. Any idea how can I package all this so as all cables, connections and NodeMCU board are safe? Is there any case to put all these?

Thank you!

https://www.google.ca/search?q=hammond+box+sizes&rlz=1C9BKJA_enCA803CA803&hl=en-US&prmd=ismvn&source=lnms&tbm=isch&sa=X&ved=2ahUKEwiIyaGLmonfAhVDx1QKHbGkCnkQ_AUoAXoECBcQAQ&biw=1024&bih=659

Thank you, I have found some other cases too. Should I solder the cables on the board? Now everything is on the breadboard.

I like to use dupont connectors to a PCB as it makes it easy to exchange and work with the board.

However, if there is no need to remove the circuit, soldering wires directly to the PCB is quite acceptable.

http://forum.arduino.cc/index.php?topic=376971.msg2599211#msg2599211

1.png

This thread has ideas for mounting projects, a bit long winded though :wink:
https://forum.arduino.cc/index.php?topic=445951.30

What is the environment those enclosures are placed? How often do you want to access the insides?

For connectors, my favourite is the JST-XH connector. 2.5 mm pitch so fits nicely on a 2.54 mm perfboard, and can be connected only one way, not reversed. It's notably bulkier than DuPont connectors but also more robust.

You should disclose your location, such as country and region. Solutions rely on where you live and what you can get in your country or region I suppose.

Thank you for all replies! I live in Greece and want to measure temperature of refrigerators with this project. So if everything works as expected I will not change cables or want to access the board and cables for a long time. I thing I will put it on the refrigerator. I have 2 refrigerators side by side, so I think it would be a good idea to connect 2 of these sensors to a Raspberry. I want to use the Raspberry as a power source for them instead of using 1 usb power supply for each. Do you agree?

Thank you again!

amazon has plenty of different sized electronics encloses that are sealed…

I thought you would be using an Arduino, which can easily handle two temperature sensors by itself.

Actually I will need 3 sensors. Can I connect them to Arduino instead of Raspberry? Which one? Thank you!

Just about any Arduino will do for just three sensors.

Which Arduino has 3 usb ports? I said I wanted to connect 3 nodeMCU to a Raspberry (which has 4 usb ports) with usb just as a power source. Of course I would prefer to do that with Arduino, but how?
Maybe by connecting 3 https://store.arduino.cc/arduino-mini-usb-adapter to an Arduino Uno?

What you're asking for doesn't make sense at all.

You can power a NodeMCU with 5V on the Vin pin, or 3.3V to the Vcc pin. No need to mess around with USB wires.

Also it doesn't make sense to dedicated a NodeMCU to read a temperature sensor, and then send the results to an Arduino. Most likely a single NodeMCU can handle all sensors (DS18B20 uses a OneWire bus), and whatever you want the Arduino itself to do.

The sensor sends the results to thingspeal.com wirelessly. I have 3 DS18B20. The sketch I have is 1 sensor to 1 nodemcu. I have to convert it to support more than 1 sensor. And find the best power source and an enclosure..

Thank you!

Power source: a regulated 5V supply such as a USB power adapter or old mobile phone charger will work great.

With the DS18B20 it's dead easy to use more than one, they're designed for that. Just look at the examples of the DallasTemperature library.

The DS18B20 sensor came with a cable about 1 meter. I will add another 1 meter cable with Dupont connections, from what I have read there is no problem. Mobile phone usb chargers give power of different Ampere: 1, 2, 2.5, 3.. Are all of these OK? I connected 2 sensors till now and it works great!

hariskar: The DS18B20 sensor came with a cable about 1 meter. I will add another 1 meter cable with Dupont connections, from what I have read there is no problem.

Length is no problem, connection will be (over time). Solder those wires together.

Mobile phone usb chargers give power of different Ampere: 1, 2, 2.5, 3.. Are all of these OK?

Yes. Use one that can offer at least twice the current you need (most likely the 1A model is good enough).

All digital inputs of nodemcu are the same? If I connect DS18B20 to D1 or D4 it is the same isn't it?