Darts match marker project with remote controll and email notification.
- Hardware:
- Arduino uno
- Raspberry pi with usb
- 1x 10Kohm Potentiometer
- 1x 270ohm Resistor
- 1x 1602A LCD Board
- 1x vs1838b IR Reciever Module
- Remote Contoller
- Breadboard
- Cables
- Software:
- The .ino file uploaded to the arduino with the following libraries:
- The .py file onto the Raspberry Pi with the following packages:
- Tkinter
- smtplib
- getpass
- serial
- statistics
I started by mapping the hex codes of the buttons on my remote controller, and made communication between the Arduino and Raspberry. After that made the GUI of the python program and the LCD handling. Then coded the basic darts rules to be able to mark down a darts match. Finally I maded an email notification with the result and the rough avarages of each player.
-
Execute the python file
python <PATH>dartsScoreboadStartWindow.py
-
If you want to use email notification type in your email address and password else leave it blank.
To use email notification you have to enable "Less secure apps" in your google account>>Security
-
Then fill Player1 and Player2. Only the first 3 letter will be shown. If you leave it empty the player names will be "p1" and "p2"
-
Select how much legs and sets you want to play. (FIRST TO)
-
Then you can start inputting the score and then press "OK" button.
-
If you misstype you can UNDO the last score by pressing "RETURN" and "OK" twice, but you cant revert the checkouts.
-
If you inserted an email address at the start of the program now you can add an email to send the results and the avararages to. If you leave it blank you don't send email notification.
-
Now you can choose if you want to play a new match or not.
Want a new match?
y/n