Raspberry Pi


Jugaadu and Chandan are event organizers in their upcoming college fest. They decide to have a haunting house game that will have 4 levels in it. In this game, each level has to be completed within the given time limit of 2 mins. If anyone takes more than 2 mins to complete any level, then lights get Turn On and he

  1. Raspberry Pi
  2. Jumper Wires
  3. USB Cable
  4. Foamsheet
  5. SD Card
  6. Gluegun
  7. LEDs
  8. Cutter
We can make a light system with a 2 min timer installed in it by using Raspberry Pi and LEDs. As soon as the 2 min time is about to get over, lights will be turned On automatically at each level.

Import time 
Import RPi.GPIO as GPIO 
GPIO.setup(4, GPIO.OUT) 
Print(‘led on’) 
Print(‘led off’)