top of page

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

block diagram.PNG

Schematic Diagram

7 seg circuit.PNG

Flowchart

Coding and Programming

Final Flowcharts[3079].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.

Picture1.jpg
Picture2.jpg
bottom of page