Skip to content

Latest commit

 

History

History
56 lines (41 loc) · 3.11 KB

README.md

File metadata and controls

56 lines (41 loc) · 3.11 KB

BalloonShooter

newballoonshooter2

Author: Marvin Baral

A project for shooting airballons with a modified LEGO Cannon automatically by the use of image processing. Everything is controlled by a RaspberryPi. The Camera is the 160° 5MP RaspberryPi Camera. If you want to boost performance you can run the Qt-program on your laptop and connect an Arduino and a USB Webcam to it. The camera can be any camera available on your PC. Red airballons can succesfully be hit and destroyed with the LEGO cannon IF they hold still. The flightpath calculation uses physical formulars and trigonometry and relies on the given size of the balloon (23 cm). To configure it you have to edit the constants defined in config.cpp and recompile. If you want to use your Laptop/PC with Arduino, change HARDWARE_VERSION to V1_1.

I made this project for my oral A level in computer technology. Therefore I am able to offer you a wonderfully colored presentation (in German): https://docs.google.com/presentation/d/1Q0u6JJvU0JhhG1BdvJM-5qi7tFbW3g5N5EWulWlf5u8/edit?usp=sharing

balloonshootermetall_5

DIY (Do It Yourself)

how to build: https://docs.google.com/document/d/1PGubxyf4P0CSoW_Ag_M8PcPFT6wyzqlPu6wwwvgCbJU/edit#heading=h.loo15b9ijivk

Dependencies

Hotkeys

  • l - lock - locks the servos, the turret will neither move nor shoot
  • c - clearance - clearance to shoot
  • m - manual mode - control the turret with keys and shoot with enter
  • a - let the program automatically detect and shoot at a airballoon (red)
  • r - reset connection to Arduino, resetting servo positions

balloonshootermetall_7

Current Status:

Works ok, but not perfect. ~70% hit rate, best hit quote in horizontal level.

balloonshooter42

Hardware Variants:

1. PC makes the big ComputerVision-Processing, Arduino controls Servos, USB Webcam

balloonshootermetall_8

2. RaspberryPi + RaspberryPi 160° Camera, everything done on RaspberryPi

newballoonshooter3

Sources:

balloonshootermetall_3