ESP32 + Common anode optocouplers
Posted: Sun Feb 02, 2020 11:19 pm
Hello guys!
Newbie here and a microcontroller newbie overall.
For a project I am working on I am using this stepper driver https://www.omc-stepperonline.com/download/ISD02.pdf. On page 4 it mentions that VCC acts as common anode for all signals and connects the cathode side of each signal to some generic MCU GPIOs.
It does mention that VCC could also act as common cathode since the Optos are bidirectional and it is more likely that at the end of the day I will use it like this to avoid all the hassle, yet, for my own education and future reference, I was wandering what it would take to wire and operate this driver with is originally stated method; using a common anode.
I would obviously need to reverse all logic in my software, but still, a typical GPIO LOW output is not GROUND. Could I sent 3V3 to the driver pins as an "off" signal and use external pull-downs (or use the internally pulled-down GPIOs) to resolve the "on" signal?
Just in case I am approaching all this totally wrong, your advice is appreciated.
Thank you!
Newbie here and a microcontroller newbie overall.
For a project I am working on I am using this stepper driver https://www.omc-stepperonline.com/download/ISD02.pdf. On page 4 it mentions that VCC acts as common anode for all signals and connects the cathode side of each signal to some generic MCU GPIOs.
It does mention that VCC could also act as common cathode since the Optos are bidirectional and it is more likely that at the end of the day I will use it like this to avoid all the hassle, yet, for my own education and future reference, I was wandering what it would take to wire and operate this driver with is originally stated method; using a common anode.
I would obviously need to reverse all logic in my software, but still, a typical GPIO LOW output is not GROUND. Could I sent 3V3 to the driver pins as an "off" signal and use external pull-downs (or use the internally pulled-down GPIOs) to resolve the "on" signal?
Just in case I am approaching all this totally wrong, your advice is appreciated.
Thank you!