Next_Of_Kintetic
- 15
- 5
Here's the thing. My Pi is what talks to my 3d printer. It uses OctoPrint to send gcode to essentially tell the printer what to do when printing. That same Pi also controls a beefy relay switch, which is connected to the printer as well. Currently, when I contact my Pi through Wifi, I can click on a button on my computer, that goes through my local wifi, tells my Pi to activate a GPIO pin, that then sends a signal to the beefy relay, the beefy relay turns on, causing everything connected to the beefy relay to also turn on, including the 3d printer and also a lamp to light up the room. Once that happens, I can also click buttons on my computer to tell the printer to print something.pbuk said:I should have mentioned that if it was my project I'd use a proper microcontroller instead of the Pi. I would enclose the whole thing in a box and power the relays from the 5V from the wall wart (I know I said you don't want to do that but that is because I don't know what else is plugged into the Pi e.g. HDMI. If you only have the control board and wires from the printer and the wall wart inside a plastic enclosure you don't have to worry about opto-isolating the board).
I'd use one of these: https://thepihut.com/products/adafruit-feather-m0-wifi-atsamd21-atwinc1500 but they are very difficult to get hold of now (I have one in my box of toys but you can't have it!). An alternative would be an ESP32 if you are happy with 100% Chinese technology, otherwise a similar M0 or M4 Feather board with a separate ATWINC-1500 WiFi module.
So basically, all of that is already set up; I do not want to change all that. And essentially, I am just trying to extend that functionality and design.
I cannot use a microcontroller to talk to my printer (at least not easily; it would be like re-inventing the wheel). So, basically, I would still need the PI, but then adding a microcontroller to the system to just talk to the relays does not make sense to me; it feels like an un-needed "middle man" component.
To me, it makes more sense to just use one main board (the Pi - who I already can talk to through my computer) do all the talking, and tell other components to do their specific function. Then have those components do those specific functions (ie: Pi should just tell the relays to switch, and they switch).
This also gives me extra control all in one place instead of having to deal with multiple points of contact.
Let me know if I misunderstood something though.
Thanks again.