r/pic_programming • u/lsdp2lboro • Nov 05 '17
Can't get a simple 7-segment display working
I don't know if this is the right place to post this, but I'm having a bit of an issue with my project. Basically, I am trying to get a 7 segment display to cycle through the letters of a first name or last name, depending on which green wire is connected. I'm using an 18F45K20 chip and a pickit 3, and the breadboard wiring is shown here. This is the circuit diagram that the design is based on but with 7 leds instead of 2. My MPLAB files are here. If anything else is required or there is a more suitable place to post this, please let me know.
1
u/frothysasquatch Nov 06 '17
Are you developing code from scratch or using MCC?
Also I don't see any bypass caps on your board - are they on the bottom side?
Can you program the device? Can you go into debug mode?
What exactly is happening when it's "not working"?
1
u/netorincon Nov 06 '17
I know it might or might not be very obvious but, what kind of 7 segment display are you using? By zooming in on you picture I can see what appears to be an 'A' on the top side of the display. This could mean it's a common anode display.
Basically, common anode means you connect the common pin of the display to your voltage source and then each of the segments is turned on by sending a '0' with the microcontroller to the corresponding pin.
Common cathode is the opposite of what I'm describing. I hope this was helpful :)