Replies: 1 comment 5 replies
-
By all means, add an optocoupler if you want. I just don't think it's necessary, and it'll drain the battery a bit faster. Thus I decided to make it easier to build, to be less intimidating to people who might not be as confident. The pin assignment is defaulted to G26 https://github.com/frank26080115/alpha-fairy/blob/main/arduino_workspace/AlphaFairy/Settings.ino#L66 The actual toggling of the pin is done in The enumeration to pin number translation is in The fact that the popular Arduino Uno still runs at 5V, even in 2022, is partly to blame for so many people breaking things without optoisolation. The M5StickC-Plus is a whole different situation with a whole list of reasons that makes it much much safer. It uses lower IO voltage, there's easy way for the user to screw up electrically, and it doesn't execute bad code if the stack gets messed up. It's still possible (what if... what if... what if...) but it's so much safer that I decided to omit optoisolation. |
Beta Was this translation helpful? Give feedback.
-
Out of curiosity.
Why do you connect the external shutter jack directly to an IO and not via a opto coupler or relay?
Connecting it directly could damage your input.
Its connected to pin 26 if I am correct, I think I'm looking wrong but I cannot find that pin in your software. Can you point me out where its declared?
Beta Was this translation helpful? Give feedback.
All reactions