Raspberry Pi - LED and Button ProjectsWhat is the main purpose of using GPIO pins in a Raspberry Pi traffic light simulation?ATo control the LEDs turning on and offBTo increase the Raspberry Pi processing speedCTo connect the Raspberry Pi to the internetDTo store the traffic light timing dataCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand GPIO pin functionGPIO pins on Raspberry Pi are used to send signals to external devices like LEDs.Step 2: Connect GPIO pins to LEDsIn traffic light simulation, GPIO pins turn LEDs on or off to show red, yellow, or green lights.Final Answer:To control the LEDs turning on and off -> Option AQuick Check:GPIO pins control LEDs = A [OK]Quick Trick: GPIO pins control hardware like LEDs in simulations [OK]Common Mistakes:Thinking GPIO speeds up the CPUConfusing GPIO with internet connectionAssuming GPIO stores data
Master "LED and Button Projects" in Raspberry Pi9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Raspberry Pi Quizzes GPIO Basics with Python - GPIO cleanup on exit - Quiz 7medium GPIO Basics with Python - GPIO pin numbering (BCM vs BOARD) - Quiz 10hard GPIO Basics with Python - Digital output (GPIO.output) - Quiz 7medium LED and Button Projects - Why LED and button projects build hardware confidence - Quiz 6medium PWM Output - Why PWM is needed for analog-like control - Quiz 14medium PWM Output - LED brightness control - Quiz 12easy PWM Output - Software PWM with RPi.GPIO - Quiz 15hard Raspberry Pi Platform - What is Raspberry Pi - Quiz 2easy Raspberry Pi Platform - First GPIO program (LED blink) - Quiz 4medium Raspberry Pi Platform - Remote access with SSH - Quiz 14medium