-->
Page 1 of 2

16 GPIO Output control over TCP connection using MCP23S17

PostPosted: Wed Apr 29, 2015 8:11 am
by metalphreak
https://github.com/MetalPhreak/ESP8266_ ... CP_Example

Microchip MCP23S17 SPI GPIO expander connected over the hardware HSPI module.

TCP Listener configured on port 33333. Send it a 2 byte command to turn the outputs on or off.

Code: Select allecho -ne '\xFF\xFF' | nc 192.168.5.1 33333


Could easily be expanded to a project controlling relays, triacs, etc.


Re: 16 GPIO Output control over TCP connection using MCP23S1

PostPosted: Wed May 06, 2015 7:42 am
by metalphreak
Just finished writing my first Android app :)

Image

Source and details to come soon...

Re: 16 GPIO Output control over TCP connection using MCP23S1

PostPosted: Sat May 23, 2015 5:20 am
by eriksl
That's the way to, keep it basic and build from there, nice :-)

Re: 16 GPIO Output control over TCP connection using MCP23S1

PostPosted: Sun May 31, 2015 9:11 am
by jiriw
Nice :D I bought some MCP23016s myself aiming for and ESP8266 with 'more' GPIO pins. Note the '0'.... (the '6' instead of '7' part means it's an older version... didn't know that and even paid 50 cents more :roll: ). For it to function you have to make an I2C connection which you can manage, I thought, by using two GPIO pins. Why did you use an 'S' version and use an SPI interface?