Skip to content

Instantly share code, notes, and snippets.

@macbre
Last active August 29, 2015 14:04
Show Gist options
  • Save macbre/53ce899e926455a20680 to your computer and use it in GitHub Desktop.
Save macbre/53ce899e926455a20680 to your computer and use it in GitHub Desktop.
Fussball IR system

Fussball IR system

Inspirations:

Components:

  • IR detectors pair
  • comparator IC for detecting ball pass
  • ATmega uC for detecting edges of digital signal from comparators -> speed calculation
  • Raspberry PI system that will talk to ATmega (via SPI interface), poll for speed/time readouts and send them to Logstash

Hardware:

  • board with ATMega16 (AVR brd I, @16MHz) + DS1307 + STK500 v2 (AVR prog III)
  • LTE4206 (IR diode)
  • BPW85 (NPN phototransistor)

In details

IR detectors + comparators

ATmega uC

Detectors interface

  • Edge-triggered interrupt
  • Clock running for measuring the time of ball passing -> store for SPI polling

SPI slaves

Raspberry PI

Links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment