> I think the cause of the problem with the interrupt not triggering was that
> I had set the INT pin to go low on the IO expander (as you suggested might
> be the case).
> However I do want it to work that way because I am setting the internal
> pullup resistor on the Pi's GPIO pin, so that it triggers a callback routine
> when the pin is pulled low.
The Pi does also have internal pull-down resistors ;-)
http://raspi.tv/2013/rpi-gpio-basics-6-using-inputs-and-outputs-together-with-rpi-gpio-pull-ups-and-pull-downs
> expander pins. I've got some python code running on the PI so that when the
[snip]
> movement of the motor. I've used interrupts and queues in the program rather
> than having a read loop in the main code, as its important not to miss any
For timing-critical code, you may get more reliable results using
(compiled) C rather than (interpreted) Python. Of course Python is
still useful for prototyping your logic is correct, before
implementing the time-critical parts in C.
> motor speed and distance directly from the PI (wish me luck!).
Good luck!
Andrew