Skip to content
Snippets Groups Projects
Select Git revision
  • main default protected
1 result

dd-worksheet-1

  • Clone with SSH
  • Clone with HTTPS
  • Name Last commit Last update
    README.md
    Task1.JPG

    Digital Design Worksheet 1

    Authors

    Cosmo Elford

    Task 1, 2

    Getting the LED to turn on with a battery and 220 Ohm resistor. In our week 3 lab session I discovered I didn't have the battery so I used the Raspberry Pi as a power source instead.

    Code:

    import RPi.GPIO as GPIO
    
    GPIO.setmode(GPIO.BCM)
    GPIO.setwarnings(False)
    
    GPIO.setup(18,GPIO.OUT)
    GPIO.output(18,GPIO.HIGH)

    I then upgraded the breadboard using the same principles I learnt in the previous task.

    Task 2

    Task 4

    Task 4