This is the basket code from the Ingenium team.
The src code consists of an arduino sketch containing a .ino
file:
- When the photo-electric sensor is obstructed (e.g. by a cherry), the receptor send a
LOW
value:- Wait until the cherry is passed to avoid errors
- Increase the value of the
cherryNumber
variable by 1 - Display the new value on the digit
The INO file depends of the following list of libraries:
- Arduino Uno