How do I use L298N motor driver with M5StickC
-
Hi
I think to control two DC motors using L298N motor driver I need at least 3 GPIO pins per motor.
So is it possible to use L298N driver with M5StickC?
-
Yes and no. You would need more output pins, so you would need an I2C I/O pin expander. Like this: https://datasheets.maximintegrated.com/en/ds/MAX7328-MAX7329.pdf
-
@anuj01 Another alternative is to use the M5 official IO expander unit.
https://m5stack.com/collections/m5-unit/products/official-extend-serial-i-o-unit
M5StickC has an I2C grove port, and you can connect this unit to it. I have tested and it works. Good luck.