Thanks to xvo, I installed version 6.48beta48. I can confirm that I am able change DIRECTION on “pin3” to output, change “OUTPUT” from 0 to 1 and read a voltage change on pin 3. I’m not going to attempt to drive the INPUT until I hear back from Mikrotik support. I suspect that a jumper needs to be placed on J23 to change the functionality of the 26 pin header pins to GPIO. It appears that there are 6 programmable GPIOs. This is awesome!
[admin@MikroTik] /system gpio> print
Flags: X - disabled
# NAME DIRECTION OUTPUT INPUT SCRIPT
0 pin3 input 0 1
1 pin5 input 0 1
2 pin12 input 0 0
3 pin13 input 0 1
4 pin15 input 0 0
5 pin16 input 0 1
set
pin3 pin5 pin12 pin13 pin15 pin16 comment direction disabled output script numbers
set pin3
comment direction disabled output script
It took over a week to get this reply. I was tempted to try to either “pull up” or “pull down” the pins but I chickened out in fear that I could cook the inputs. I was thinking about trying a 47K resistor inline from pin to ground and then vcc.
Hello,
Thank you for contacting MikroTik Support and apologies for the delayed answer.
Documentation for this feature is currently in-progress, however there is no ETA when it will be publicly available.
Apologies for the inconvenience caused.
Best regards,
Yes, here are the replies that I finally received from technical support. I have not tested using the pins as inputs yet.
The M33 has 2 usable GPIOs (pin3 and pin5), which can be softly pulled both up and down - no external pull-up / down resistors are required.
I simply need to know how to wire the pull-up or pull-down.
• pin3 ( GPIO3) and pin 5 ( GPIO4 ) are pulled-up to system 3.3V via 4.7k resistor.
Do I wire the GPIO pin to VCC or 3.3 to change the input state?
• to change input state connect one side of dry contact to GND and other through series resistor to GPIO input pin. ( 1k resistor should be fine );
• parallel capacitor for debouncing can be added.