Robert Perkel
Published

Use a 7-Segment Display with an I2C I/O Expander

Control a 7-segment display with a PIC16F15244 microcontroller running as an Advanced I/O Expander.

BeginnerFull instructions provided1.5 hours4,322

Things used in this project

Hardware components

PIC16F15244 Curiosity Nano Evaluation Kit
Microchip PIC16F15244 Curiosity Nano Evaluation Kit
×1
Arduino UNO
Arduino UNO
Connect SDA to A4, SCL to A5, and INT to A2 on the UNO.
×1
Pushbutton switch 12mm
SparkFun Pushbutton switch 12mm
Example Pushbutton - any momentary (5V DC rated) pushbutton should be compatible with this demo.
×1
Through Hole Resistor, 470 ohm
Through Hole Resistor, 470 ohm
Example current limiting resistor for the 7-segment display. Bigger resistors will dim the panel more (you may need to do a little bit of trial and error to find the most comfortable brightness).
×8
7 Segment LED Display, InfoVue
7 Segment LED Display, InfoVue
Example 7-segment display. Project is compatible with both common anode and cathode types of displays.
×1

Software apps and online services

MPLAB X IDE
Microchip MPLAB X IDE

Story

Read more

Schematics

Schematic

Important! Program the device before grounding RA0 and RA1.

Code

Advanced I/O Expander Repository

Credits

Robert Perkel

Robert Perkel

11 projects • 10 followers
Application Engineer with Microchip Technology

Comments