Automatic Scoresystem Archery

by fourke12 in Circuits > Electronics

151 Views, 1 Favorites, 0 Comments

Automatic Scoresystem Archery

SDSC07448.jpg

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

schema_schematic.jpg
schema_breadboard.jpg

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

schema.jpg

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

image_2022-06-17_153454065.png

For this code to work you need:

  1. to turn on spi, one-wire, i2c on the raspberry pi
  2. install a library for spidev (sudo pip3 install spidev)
  3. install a library for the rfid sensor (sudo pip3 install mfrc522)
  4. install a library for the oled (sudo pip3 install oled-text==1.2.3)
  5. install a library for the dht sensor (sudo pip3 install adafruit-circuitpython-dht)

link to the github repo

Website

image_2022-06-17_161216369.png

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'

IMG_20220610_104830.jpg
IMG_20220620_134215.jpg

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.