ELECTRONICS, PROGRAMMING AND INTERFACING
As part of my second year at Loughborough Design School I created an electronics project. The project was designed output the letters of my lab partner's second name (H-U-G-H-E-S) when one switch was pressed and my second name (C-A-M-P-B-E-L-L) when another switch was pressed. These letters were shown on a 7-segment LED output. To program the project I used MPLAB for the code and uploaded it to a PicKit3 for the hardware. The video of the finished project can be seen to the right. The process of the project can be seen below.
Problem
If Switch 1 is pressed cycle the code to output the letters “HUGHES” on the 7-Segment LED. If Switch 2 is pressed cycle the code to output the letters “CAMPBELL” on the 7-Segment LED. This should be able to be read easily by the human eye by incorporating delays into the code.
Block Diagram

Schematic Diagram

Flowchart
Coding and Programming
![Final Flowcharts[3079].png](https://static.wixstatic.com/media/b71d28_8922f39992414ab3a6197cb42f06c922~mv2.png/v1/fill/w_764,h_366,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/Final%20Flowcharts%5B3079%5D.png)
I was then able to utilise the software MPLAB IDE to code our flowchart. I used the coding language C and by connecting the micro-controller to the computer I was able to program the code onto the hardware and run the outputs to the 7-segment LED display. The successful outputs are shown below.

