SwarsDarts

by Lars Secember in Circuits > Raspberry Pi

175 Views, 0 Favorites, 0 Comments

SwarsDarts

20230619_201202.jpg

For my project I made an arcade game. It is a dartboard where you try to get the highest score. You can make your own player and then select it. In the leaderboard you can see who got the highest score, how much darts he has thrown and the date when the highest score was thrown. The board can also detect if it hangs straight.

Supplies

  • Arduino Uno: 1
  • Raspberry Pi: 1
  • lcd display: 1
  • mpu6050: 1
  • light dependent resistor: 1
  • mcp3008: 1
  • potentiometer: 1
  • 470 ohm resistors: 3
  • Breadboard power supply (3V, 5V): 1
  • DC Jack Female Breakout Board (OT3713): 1
  • Voeding 5V 3A adapter 5.5mm x 2.5mm jack (OT2003-B121): 1
  • WS2812B RGB LED-strip: 1 meter
  • alot of jumper cables

Electronics

In the files here you can find the technical information to build the dartboard yourself.

Code

On the github link you can find all the code you need including the database, backend, frontend etc.

One thing to be aware of is if you want to run the code you can't do it in a venv. You will need to use the command sudo -i in your terminal if you want to run the code.

github

Database

database.png

In the files on this topic you can find the database scheme I use in my project.

Case

In the files here you can find the files I used to print the case I used. It is the case for the arduino and the case for all the other stuff.

Putting Everything in the Case

20230616_105719.jpg
20230619_203611.jpg

When you are done making the electrical scheme and you used my case your project should look like this. If you used your own case you will need to ensure that you have enough space. With my case it is just enough if you put everything right. I also glued the breadboard to the box so it would be more safe to move it. I put the lcd in the hole I made just for that.

Top

20230616_105727.jpg
20230616_105735.jpg

In the dent I made in the top you need to drill a hole to put the ldr in it. Then you solder two wires to the ldr and I used tape to put it in it's place but you can also use something else. I also put the button on top but you don't need that button if you won't shut your raspberry pi off with it.

Arduino

20230619_202638.jpg

The other box is for the arduino. I put the the arduino case on the right. On the picture you can see it is stuffed very safe in it.

Top and Box

20230619_203126.jpg

To put the box together with the top I used velcro but like everything you can choose something else if you don't have any velcro.

Placement

For the arduino I would always put it on the right because of the connectors for the sensors of the dartboard. The left box is your choice but you can see on the final product step what I did.

Final Product

20230619_201202.jpg

If you are done with everything it should look like this. It is an example but you can do what you want with the case. Have fun with your dartboard!