Skip to content

limchengwei/Piano-or-LEDs-with-8-MCP23017

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Piano-or-LEDs-with-8-MCP23017

This Printed Circuit Board project is sponsored by JLCPCB. Please visit https://jlcpcb.com/RAT to order your PCB.

The MCP23017 PCB consists of 8 16-Bit I/O Expander with Serial Interface MCP23017 chips.

What is an MCP23017 chip?

It is an integrated circuit (IC) which is an extension of input or output (IO) pins of a microcontroller using the I2C serial communication protocol. It uses the SCL and SDA communication line between the MCP23017 and a microcontroller such as an Arduino or a Raspberry pi. Some of the microcontrollers have a limited number of IO pins, as such, an IO extension like MCP23017 is needed.

There are SCL and SDA communication pins on the MCP.

3 address pins to configure the address of the MCP, which can provide up to 8 MCP23017 for a microcontroller. The address is indexed from 0 to 7, using digital logic to set the address. The Most Significant Bit (MSB) is the A2.

There is an active low reset on the MCP, which a logic low is needed to reset the MCP.

There are 2 interrupt pins on the MCP.

There are 16 IO pins on a single MCP, which are A0 to A7, B0 to B7. The A0 to A7 are IO pins 0 to 7 and B0 to B7 are IO pins 8 to 15.

The AB1 for MCP1, the bottom is pin GPIO1A, the top is pin GPIO1B.

Note that the SDA/SCL, the SDA occupies the left column and the SCL occupies the right column.

For this PCB, we will use the CH340 USB to TTL converter for power.

For this coding project, we will use the Adafruit_MCP23017 library, which is available on the Arduino IDE. There are 2 Arduino projects.

For the LED bar circuit, we will blink the LEDs with blink without delay, using the millis() function. We will need 8 of them. It is used to check whether the MCP23017 are working.

For the piano circuit, each PCB consists of 12 touch sensor keys C to B. We will need 8 of them to create C1 to B7.

Please visit https://www.hackster.io/limchengwei/piano-or-leds-8-mcp23017-pcb-by-jlcpcb-c427e7 for the project.

Once again, I would like to thank JLCPCB for sponsoring this project. Please order your PCB at https://jlcpcb.com/RAT.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published