I'm building an automated score board that uses IR Break beam sensors to detect if a basket has been made.
Basically, every time I throw a ball in a hoop, it will break the IR sensors and add a point to the score board. That part works perfectly. Now i want to make it where it goes to sleep after I stop playing. I don't want to keep taking out the battery to turn off the device. Moreover, I don't want to make a switch that turns it off and on. I would rather have it go to sleep mode and wake up when it detects the ball going into the hoop.
I tried using the sleep and interrupt functions to do so, but I'm having trouble.
The materials I used for this project is a 4 digit 7 segment display, an IR break beam sensor, an arduino uno R3, and some jumper wires.