Read gpio from python


#1

I’m trying to implement a basic homing function for my corexy design powered by odrive.

I know there is a hardware issue with with GND on odrive 3.3 and below that affects my 3.2 and i would rather not try to fix it for now.

Since there is some motor logic to move on XY (compared to motor axis) + I am not willing to put homing switches on the gantry (i will instead rely on contactless (magnets) switches carefully positioned so that I can do the homing on Y, and then on X. Connect some switches to GPIO (and maybe put some resistors as well)
I was thinking about

  1. move Y in the upper position for say 0.5 mm
  2. read gpio from usb
  3. repeat until i see contact

However, reading from the USB dump of parameters, it does not seem that GPIO are exposed (see dump below)

Can I read such gpio values with USB or should I do this with a separate card?

thanks

[edit: removed the dump of parameters, it was too long to read]


#2

Reading of general GPIO will be available with Firmware v0.4.0, which should be ready in a few weeks.


#3

ok. thanks. i used an arduino for now