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?
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?
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 Accessories — Arduino Official Store to an Arduino Uno?
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..
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).