EZB Connections icon EZB Connections — Add and manage up to 255 EZ-B I/O controller connections in ARC, select COM/IP ports or device addresses to connect or remove devices. Try it →
Asked
2 Participants

I2c Mcp23017 HELP!

Any info on using MCP23017 i2c chip? I try to run a simple loop counter with prestart setup (i2c chip  i2cwrite(0,0x40,0x3) i2cwrite(0,0x4E,0x3) ),output ( i2cwrite(0,0x40,$motor1)      i2cwrite(0,0x4E,$motor2) ) with a loop and variable scrip and it just disconnects!



Related Hardware (view all EZB hardware)
EZ-B V4 by EZ-Robot
EZ-B v4 with Synthiam ARCx controls servos, sensors, camera and audio over Wi-Fi or USB serial, no firmware needed.
Wi-Fi / USB
Servos 24
Camera
Audio
UART 3
I2C
ADC 8
Digital 24

ARC Pro

Upgrade to ARC Pro

Take control of your robot's destiny by subscribing to Synthiam ARC Pro, and watch it evolve into a versatile and responsive machine.

Author Avatar
PRO
USA
#1  

Q1) Can you provide a wiring ? 

Q2) are you using EZB v4, if yes why you need a 16 bit Port Expander?

Q3) What are you connecting to the port expander ?

Q4) if no wiring, provide more details regarding the setup is a shield or a breadboard ? Are you using i2c pullups ?

Author Avatar
PRO
Synthiam
LinkedIn Thingiverse Twitter YouTube GitHub
#2   — Edited

And use i2cwritebinary command