This is my make-through for the week's assignment.
Grab a cup of coffee! Buckle up your seat belt! Enjoy the upcoming greatness!
First time to work with Raspberry Pi 4 Board.
Using IR sensor and LED components with Raspberry Pi 4 Board.
Used components for this week
Step1: I used IR sensor as a digital input and used LED as the digital output.
Step2: Opened the pinout to connect components to GPIO pins on the board.
Step3: While coding I didn't use Python before so the syntax was a bit strange for me, no semicolons and the indentations part, but I handled it well.
Step4: The code idea is to light up the LED in case there's an object in front of the IR sensor.
Step5: I had to check the readings from the IR sensor first, when it's high and when it's low.
Step6: After that it was easy to add the conditions to turn ON/OFF the LED
Components used
What I learned this week is...
Discovering Raspberry Pi 4 Board.
Practice multiple input and output cases with the board.