Jan 6, 2016 03:53 PM
(This post was last modified: Jan 6, 2016 03:58 PM by Underworldproblem.)
Hi, I have an Culminating Task to do. 15% of my mark.
I finished creating my circuit on the breadboard.
Image of Breadboard: Spoiler (Click to View)
Everything is powered by the Pickit which connects to the 5pin thing, above the microchip. There is a resistor and capacitor on each switch. Switches are used to change the LED pattern. Each switch = 1 pattern. I grounded each LED correctly and powered them according to the diagram below. Switches connect to the microchip, pin 4 and pin 11.
We use this diagram to know where to placed what into the PIC 16F684 Microchip: Spoiler (Click to View)
PORTA = 0b000001;
PORTC = 0b000010;
Microchip Pickit 2: Spoiler (Click to View)
We use this to input the code into the microchip, which carries out the pattern to the LED's.
Code:
Spoiler (Click to View)
Spoiler (Click to View)
I am wondering if anyone has any idea about this and knows how to make a pattern on C using this base code, and also turning on a specific LED, and even dimming an LED?
I finished creating my circuit on the breadboard.
Image of Breadboard: Spoiler (Click to View)
Everything is powered by the Pickit which connects to the 5pin thing, above the microchip. There is a resistor and capacitor on each switch. Switches are used to change the LED pattern. Each switch = 1 pattern. I grounded each LED correctly and powered them according to the diagram below. Switches connect to the microchip, pin 4 and pin 11.
We use this diagram to know where to placed what into the PIC 16F684 Microchip: Spoiler (Click to View)
PORTA = 0b000001;
PORTC = 0b000010;
Microchip Pickit 2: Spoiler (Click to View)
We use this to input the code into the microchip, which carries out the pattern to the LED's.
Code:
Spoiler (Click to View)
Spoiler (Click to View)
I am wondering if anyone has any idea about this and knows how to make a pattern on C using this base code, and also turning on a specific LED, and even dimming an LED?



![[Image: 84baa15de0.jpg]](https://puu.sh/mm9Ks/84baa15de0.jpg)
![[Image: 7c8e1c6e72.png]](https://puu.sh/mmaEo/7c8e1c6e72.png)
![[Image: e862937a13.jpg]](https://puu.sh/mm9QJ/e862937a13.jpg)
![[Image: d107b7bbc5.png]](https://puu.sh/mmaLb/d107b7bbc5.png)
![[Image: 1ba8a8ee5f.png]](https://puu.sh/mmaNu/1ba8a8ee5f.png)
![[Image: 9kdPtyw.gif]](https://i.imgur.com/9kdPtyw.gif)