ESP8266 NodeMCU Question

I'm working on my next project and I have a question for those of you that have done projects with these little boards?

When putting it all together in its final case how do you have the various boards mounted in the case?

I'll have 3 small boards in the single enclosure and don't want to leave them loose as I'm afraid that would be more of danger if they touch each other.

I've been looking at many videos, most of which talk about the programming or wiring, but can't find anything that shows the final setup/installation of the project in a box.

I usually use a grid base and standoffs.

Sometimes I use standoffs that screw straight to the back panel.

Last resort is adhesive standoffs.

Here is one example of grid plus standoff:

2 Likes

I use perf boards and mount Female header pins to them. That way I can wire everything permanently but still swap out the board if it dies or I want to change the firmware on it. For example, this is a board I built to control some addressable LEDs.

Here are the perf boards I use:

You can even get screw terminals if you want to get really fancy. I even have some bread/perf board comparable relays on the way so I don't have to use off-the-shelf relay boards anymore. I then use standoffs to attache the board to my enclosure. I've found this to be a lot more stable than using header wires for long-term placement. But it does require soldering.

This is exactly what I was looking for. What I'm working on looks pretty similar but its my first project with these little things.

What board is your esp8266 is mounted to?

Any links to where to get the grid base and case? It looks like it fits perfectly.

Thanks for the info. Looks like what I'm looking to do too. Will check out the boards on amazon.

Like I said, it does require soldering, @JasonJoel's doesn't. But mine tolerates falling off a wall (since it was going to be mounted to a wall and anything I try to stick to a wall always falls off the first time). I also had to use some bare electrical components (a capacitor and on another board some transistors and diodes) so, the breadboard method wouldn't work for me. I also was able to make this small enough that it fit behind the headrail of my vertical blinds, so that it wouldn't be seen. I use these enclosures.

https://www.amazon.com/gp/product/B073Y7RHQ4

They're super light and easy to cut/burn/drill/file into to get the right ports/connectors you want to use.

1 Like

That's the standard nodemcu base. Search for that on Amazon - they are about $2.20/ea in qty 5.

The box was pretty pricey as I needed weatherproof (rubber gasket on lid seal, and no penetrations other than the ones I made myself) as it was mounted outside. But I just searched on Amazon for the size I needed and grid base, I think.

If I remember correctly, it is this one:
Gratury Junction Box, IP65 Waterproof Plastic Enclosure for Electrical Project Includes Internal Mounting Panel 250×150×100mm (9.8"×5.9"×3.9") https://www.amazon.com/dp/B07PPYXQSH/ref=cm_sw_r_em_apa_i_rs4hEb7J3Q267

If it were for indoor use I would have done something cheaper. Or if size was at a premium I would have soldered a blank pcb like @Ryan780 mentioned.

2 Likes

Thanks again for the links and info. Between you and @Ryan780 I got a good idea of what to do.

No problem. Space requirements often dictate how I do it. If I have space I always use the nodemcu bases. For $2 they save me a TON of time.

If I need the connections to be more rugged, then I will use pcb + surface mount screw terminals.

They do make baseboards with screw terminals instead of pins for some arduinos (and maybe esp8266... Not sure), but they are usually cost prohibitive (in my opinion).

That's nice. Do you find that it generates much heat when closing that equipment in and running outdoors? or did you have to cut/drill some holes to let it breath a bit? Reason I ask is I am thinking about a similar setup for an external LED setup.

If in direct sun all day in the summer, it needs a blower or cooler. If some shade it is usually ok, as the esp8266 max operating temp is 125F.

1 Like

No worries thanks for the feedback. I do have the ability to run it to a place further away but then completely protected from the weather so I will likely just do that. Cheers.

Got the parts ordered based on your recommendation. I wrote a quick web api on the arduino today and got it to respond to some commands for now until I get the other parts in. I love the concept of it, but I remember why I hate c/c++ programming so much now.

What are you using for a wifi shield?

Had to google wifi shield in case it meant something other than what I was thinking.

The nodemcu I have has wifi built in, so I'm using that. It was fairly easy to program and get connected.

Oh...I'm sorry....when you said "on the Arduino" I thought you meant Arduino board....not Arduino IDE. My mistake.

Yes I know. If you're looking at saving space, take a look at the Wemos D1 mini. Same chip, smaller package.

I could have my terminology all wrong. This is my first exposure to it all so I'm just getting my feet wet.

Not at all...that's the problem when they use the same word for 3 different things. :wink:

The Wemos D1 Mini is great.

Side note, some of the newer NodeMCU are now ESP32 based instead of ESP8266 based. ESP32 is useful to me as it has a 12 bit ADC instead of 10 bit, and I use adc a lot. :+1: But.... They aren't very Arduino IDE friendly (at least last time I tried) so really need to use something else like micropython or lua.

Yeah they are.

There are issues with PWM in arduino but as long as you're not using a dimmer, you're fine. That said, unless you absolutely need one, the ESP32 isn't as reliable as the ESP8266 from what i have read.