So my last post didn't seem to gain much traction, but I figured I'd post an update on the board for anyone that might be looking for something similar in the future.
As briefly described in my previous post over in OpenPLC Projects, this board is intended to do the following:
- Provide a stable way to buck down 24VDC into 5VDC to power the ESP32 micro-controller.
- Provide general purpose outputs for those voltages as well as a ~3.3VDC (Actually closer to 3.1VDC. Might revise in a future version.) for purposes I haven't thought of yet, but I had a spot to put it on the board, so I did.
- Provide fuses for the 24VDC power input and also the 5VDC, plus a Zener protection with the 5VDC source.
- Provide easy to use digital I/O terminals in the form of Phoenix style connectors
- Provide indication for each digital I/O in the form on green LED's for the inputs and red LED's for the outputs.
- DIN rail mountable!
- Full digital I/O optoisolation!
- Dedicated power button.
- Have the ability to work with a yet to be designed analog module, allowing for the ability to swap modules based on need for different analog voltage standards on the same unit.
- Uses commonly available components. (Nearly every part was sourced from Amazon.)
- Finally, to be compatible with the common 24VDC control voltage used in many industries with built in fly-back diodes for back EMF protection.
Now as for the update, from the last post, my next step was to do a field test of the hardware to see if it would actually work as intended to do a real world task that you would normally have a dedicated control circuit for. My father has a barn door that has been inoperable for quite some time so I thought it would be a good test for it.
After disassembling the original control circuit that had failed and isolating just the 24VDC motor itself, I began wiring up my relays and limit switches. This door is about 16-18 feet tall so I was up and down a ladder a good bit. Once the wiring was mocked up I started hooking up the devices to the relays as per the logic I'd written, with the exception of the over-travel limit switch (forgot it at home 40 miles away) and the safety beam sensor which I simply did not have on hand. After fixing a minor mechanical issue, (from not running for years) the whole system worked beautifully! The limit switches did exactly what they were supposed to, the board never had any problems with heat or overloading or really any actual issue! I was able to manually activate the overload input and have it do what it is supposed to do, as well as the safety beam. All features in both the logic and the hardware functioned perfectly.
So, with that said and the tests run. My next step is reliability testing with having the unit installed in a permanent control box by the barn door, leave it to do its thing for at least 3 months and then go from there.
Now comes the next part of this post, I originally thought about maybe offering a kit service for these boards if someone wanted one, which I might still do. But, in the spirit of the entire OpenPLC project and just because it feels right, I'd like to offer the designs here for anyone to use. I'll also post a link to the PCB Way share link if anyone would like to just order the board and give it a shot. I will update this later with a specific amazon list for where I got my components, but its getting late (for me) so I'll wrap it up about here.
Below are some pictures of the board fully assembled. I'm not sure the best way to upload the KiCAD project file for this board but if someone would like to let me know I'd really appreciate it.
Here is the link to the shared project on PCB Way:
Please don't hesitate to ask any questions!
Thank you!
-Andy
===EDIT (9-14-24) ===
Here's a link to the Google Drive for a bunch of files related to the board, including the KiCAD project file. I apologize for my messy schematic. I'm definitely no electrical engineer, but it does in fact work perfectly fine. I'm open to suggestions for any alterations to it as well. There very well might be some values that need tweaking or something along those lines, also the reason I used the pc817 opto's instead of the 4 pack version is because the 817's are super easy to come by off places like Amazon for very cheap, plus they fit just fine in a 16dip socket! Also in the folder is a completely untested case design for it too made with FreeCAD. Huge disclaimer! I have almost zero experience in designing stuff for 3D printing, so I suspect there will be issues in fitment of the case, but since I haven't had it printed off yet I have no way to be 100% sure.
Google Drive Link:
Also, I've compiled an amazon list of components I used to build the board. Now, some of these items on the list are in kit form so the individual component cost is likely way cheaper if you buy them individually, but I just wanted anyone interested to have a reference of the exact components I used just in case. Realistically though if you get the components that match the part numbers from anywhere else they should work just fine since basically every component used is very common and readily available. When compiling the list, I ran with the assumption that if someone is wanting to build this board, they probably already have the basic things like through-hole capacitors and resistors available already so those are not included in the list. But, if for some reason you don't have those they can be procured for pretty much anywhere that sells electronics stuff. Oh, and for the fuses, the 24V fuse is a 500mA glass fast blow, and the 5V is a 250mA fast blow. The female pin headers were kind of weird, but in the end they worked fine on the board. The ROUND pin headers are what I used for the single pc817 since I had a surprisingly hard time finding a 4dip pin socket, if you have one or find some for cheap, feel free to use those. The other (NOT round) single strip female pin headers were used for the ESP32 itself and work wonderfully. Keep in mind, the round pin headers will not work with the ESP32 pins! I learned the hard way a good while back, lol.
Lastly, this board uses a good deal of SMD resistors. While you can definitely solder those with a traditional iron and solder wire, I highly recommend that solder paste and a hot air station is used, it makes it much easier to reliably solder the SMD components. I have the solder paste that I use in the list as well. It is probably the best I've ever used, and its pretty darn cheap given how long a tube lasts.
Amazon List Link:
Finally, this board has yet to be reliability tested in the field in a permanent installation. My plan is to install it in the bard door application as mentioned before and leave it to operate for a minimum of 3 months before I feel comfortable with providing any actual kits or anything like that for anyone if they want it. If it passes the reliability test, then I'll probably make another post asking if anyone is actually interested in any kits or something like that. Until then, just keep in mind that the use of this board is done at your own risk. I doubt anything negative will happen, but I simply want to make sure people know this board is not fully tested the way I want to yet, and there could be hidden issues despite it's simplicity.
With that said, please feel free to ask any questions about this board and I will do my best to answer them!
Thank you,
-Andy