Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
Qt
 
 
 
 
 
 
 
 

README.md

BalloonShooter

newballoonshooter2

Author: Marvin Baral (github@marvinbaral.de)

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

About

Shooting red balloons with a LEGO cannon automatically via camera analysis. Beware if you wear a red shirt!

Resources

License

Releases

No releases published

Packages

No packages published