Introduction: Count Down on 7 Segment Display W/RPi 3

In this instructable I will be showing and teaching you how to make seven segment display that displays a countdown from 9 to zero(point is optional) with a raspberry pi 3.

Items Required:-

1x raspberry pi 3

1x solderless prototyping breadboard

10x male to male jumper wires

1x T cobbler

1x T cobbler adapter

And other required peripherals

Step 1: First Step

In this step we will be wiring the bottom 5 pins of the 7 segment display to the RPi

dot - gpio 40
c - gpio 38
com - gpio 34
d - gpio 36
e - gpio 32

follow the pictures given below

Step 2: Second Step

In this step we will be wiring the top 5 pins of the 7 segment display to the RPi

g - gpio 37
f - gpio 35
com - gpio 39
a - gpio 33
b - gpio 31

follow the pictures given below

Step 3: Third Step

In this step we will be connecting the RPi to the rest of the project

follow the pictures given below

Step 4: The Programming

the whole thing below the line is the program

copy the program and paste it in the python 2

-----------------------------------------------------------------------------------------------------------------------------------------------------

import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BOARD)
GPIO.setwarnings(False)
GPIO.setup(31,GPIO.OUT)
GPIO.setup(32,GPIO.OUT)
GPIO.setup(33,GPIO.OUT)
GPIO.setup(35,GPIO.OUT)
GPIO.setup(36,GPIO.OUT)
GPIO.setup(37,GPIO.OUT)
GPIO.setup(38,GPIO.OUT)
GPIO.setup(40,GPIO.OUT)
for x in range(0,1):
GPIO.output(35,True)
GPIO.output(36,True)
GPIO.output(37,True)
GPIO.output(38,True)
GPIO.output(33,True)
GPIO.output(31,True)
time.sleep(0.5)
GPIO.output(35,False)
GPIO.output(36,False)
GPIO.output(37,False)
GPIO.output(38,False)
GPIO.output(33,False)
GPIO.output(31,False)
time.sleep(0.5)
GPIO.output(35,True)
GPIO.output(36,True)
GPIO.output(37,True)
GPIO.output(38,True)
GPIO.output(33,True)
GPIO.output(31,True)
GPIO.output(32,True)
time.sleep(0.5)
GPIO.output(35,False)
GPIO.output(36,False)
GPIO.output(37,False)
GPIO.output(38,False)
GPIO.output(33,False)
GPIO.output(31,False)
GPIO.output(32,False)
time.sleep(0.5)
GPIO.output(35,True)
GPIO.output(37,True)
GPIO.output(38,True)
time.sleep(0.5)
GPIO.output(35,False)
GPIO.output(37,False)
GPIO.output(38,False)
time.sleep(0.5)
GPIO.output(35,True)
GPIO.output(36,True)
GPIO.output(38,True)
GPIO.output(33,True)
GPIO.output(31,True)
GPIO.output(32,True)
time.sleep(0.5)
GPIO.output(35,False)
GPIO.output(36,False)
GPIO.output(38,False)
GPIO.output(33,False)
GPIO.output(31,False)
GPIO.output(32,False)
time.sleep(0.5)
GPIO.output(35,True)
GPIO.output(36,True)
GPIO.output(38,True)
GPIO.output(33,True)
GPIO.output(31,True)
time.sleep(0.5)
GPIO.output(35,False)
GPIO.output(36,False)
GPIO.output(38,False)
GPIO.output(33,False)
GPIO.output(31,False)
time.sleep(0.5)
GPIO.output(37,True)
GPIO.output(38,True)
GPIO.output(33,True)
GPIO.output(31,True)
time.sleep(0.5)
GPIO.output(37,False)
GPIO.output(38,False)
GPIO.output(33,False)
GPIO.output(31,False)
time.sleep(0.5)
GPIO.output(35,True)
GPIO.output(36,True)
GPIO.output(37,True)
GPIO.output(38,True)
GPIO.output(31,True)
time.sleep(0.5)
GPIO.output(35,False)
GPIO.output(36,False)
GPIO.output(37,False)
GPIO.output(38,False)
GPIO.output(31,False)
time.sleep(0.5)
GPIO.output(35,True)
GPIO.output(36,True)
GPIO.output(37,True)
GPIO.output(31,True)
GPIO.output(32,True)
time.sleep(0.5)
GPIO.output(35,False)
GPIO.output(36,False)
GPIO.output(37,False)
GPIO.output(31,False)
GPIO.output(32,False)
time.sleep(0.5)
GPIO.output(37,True)
GPIO.output(38,True)
time.sleep(0.5)
GPIO.output(37,False)
GPIO.output(38,False)
time.sleep(0.5)
GPIO.output(35,True)
GPIO.output(36,True)
GPIO.output(37,True)
GPIO.output(38,True)
GPIO.output(33,True)
GPIO.output(32,True)
time.sleep(0.5)
GPIO.output(35,False)
GPIO.output(36,False)
GPIO.output(37,False)
GPIO.output(38,False)
GPIO.output(33,False)
GPIO.output(32,False)
time.sleep(0.5)
GPIO.output(40,True)
time.sleep(0.5)
GPIO.output(40,False)
GPIO.cleanup()

------------------------------------------------------------------------------------------------------------------------------------------------------

I hope u enjoyed this simple tutorial