Hi all,
My apologies if this project has already been discussed but I've been looking for a solution for a few days and have found none. I am very new to RPi and currently own one that I use exclusively for Pi-hole. i have no experience working with sensors.
The project that I want to build seems easy enough. I want to have 4 physical targets with a light on each. The RPi will randomly select a number from 1 to 4 and then light up the corresponding target. When the target is hit by a ball, the RPi will turn off the light on the target, generate another number from 1 to 4 and light that target. This continues indefinitely.
I looked into embedding an SW420 into each target but can't figure out how to connect each SW420 into the RPi or how I can determine which SW420 was triggered.
If you have any advice it would be much appreciated.
Thanks!