I'm having trouble trying to drive 12V relays with a ULN2803A Darlington array through a MCP23S17 16 channel port expander.
Both are functioning perfectly independently on either 5V or 3.3V, but when I combine them the ULN2803A will not switch from the MCP23S17 output.
When I directly connect the ULN2803A input to the Arduino 5V power supply it will happily switch. When I test the MC23S17 output I'm connecting to I get 4.93V - some drop, but the ULN2803A works fine also on only 3.3V or with a resister to drop voltage.
The other clue is that if I connect two outputs (getting 4.93V each) from the MCP23S17 to a single input on the ULN2803A it works (and is 5V at the input). This seems like a possible dirty fix but not ideal.
I am a total electronics noob sorry for terrible drawing
edit: added a slightly better schematic
Both are functioning perfectly independently on either 5V or 3.3V, but when I combine them the ULN2803A will not switch from the MCP23S17 output.
When I directly connect the ULN2803A input to the Arduino 5V power supply it will happily switch. When I test the MC23S17 output I'm connecting to I get 4.93V - some drop, but the ULN2803A works fine also on only 3.3V or with a resister to drop voltage.
The other clue is that if I connect two outputs (getting 4.93V each) from the MCP23S17 to a single input on the ULN2803A it works (and is 5V at the input). This seems like a possible dirty fix but not ideal.
I am a total electronics noob sorry for terrible drawing
edit: added a slightly better schematic
Attachments
Last edited: