16 GPIO Output control over TCP connection using MCP23S17

metalphreak
Posts: 5
Joined: Wed Apr 29, 2015 4:33 pm

16 GPIO Output control over TCP connection using MCP23S17

Postby metalphreak » Wed Apr 29, 2015 9:11 pm

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 all

echo -ne '\xFF\xFF' | nc 192.168.5.1 33333


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

http://www.youtube.com/watch?v=jhxlQObz1GI

Who is online

Users browsing this forum: No registered users and 2 guests