Automatic Scoresystem Archery
by fourke12 in Circuits > Electronics
157 Views, 1 Favorites, 0 Comments
Automatic Scoresystem Archery
This is a automatic scoring system for archery 'liggende wip'. It works with a rfid tag to know which team is shooting. This system is also connected with a database to save the previous team scorings and the mean temperature during that period of shooting time. You can see everything on a website.
Supplies
Most of the things I used in this project are bought online.
The total cost around €130.
The things I used in this project are:
- Raspberr pi 4 model b
- Raspberry Pi t-cobbler
- breadboard
- passiv buzzer
- rfid reader
- 10x rfid badges
- oled screen
- 3x IFR distance sensors
- MCP3008
- dht11
You can find everything in the BOMfile
Downloads
Fritzing Schema
everything is connected to the pi and even got there power from the pi. When it is 1 of you first time using the pi with electronics maybe it is better that you use a breadboard power supply but that is completely choice.
maybe it is overwhelming but do it step by step.
you can see the schema also in the pdf file.
Making a Database
here you can see my ERD diagram of the database.
it stores:
- the name of the player
- the name of the team and the rfidtag-code
- in the selectie I made the connection between the team and the players
- in 'spel' I store the time when it ended the score of the team, mean temperature, 'wip' number and the id of the team
- I also store the device name, brand, description, the price I bought it and the measuring unit.
- the measurement of a device and at when time I measured it
you can also find the sql dump with some test data in the github repository with the code and the fritzing schema
Coding
For this code to work you need:
- to turn on spi, one-wire, i2c on the raspberry pi
- install a library for spidev (sudo pip3 install spidev)
- install a library for the rfid sensor (sudo pip3 install mfrc522)
- install a library for the oled (sudo pip3 install oled-text==1.2.3)
- install a library for the dht sensor (sudo pip3 install adafruit-circuitpython-dht)
Website
on the website you can find the team info, score, history of previous time the team was shooting. for more info you can click on each tile and then you go to the next page and go back to the main page. but for getting on the main page you have to scan the badge of a team. when a target is hit the same target on the webpage is goin to be grey.
Building My Case and Set the Ifr Sensor on the 'wip'
so for the IFR distance sensors you set the directly under the 'pin' of the wip like on the picture. for the case where the pi and the other sensors are in I have made a case with scrap from my father's work but it can be made out of every material that can be used outside.