rynr / kicker

ATTiny Kicker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I²C kicker slave

This is meant to be a I²C slave for a digital soccer table.

 ┌────────┬─────────── VCC
 │        │
 │        │   ┌─────── SCL
 │        │   │
 │        │   │   ┌─── SDA
 │        │8  │7  │5
 │C1   ┌──┴───┴───┴──┐
─┴─    │             │
─┬─    │             │
 │100n └──┬───┬───┬──┘
 │        │2  │3  │4
 │        │   │   │
 │         /   /  │
 │        /   /   │
 │        │   │   │
 └────────┴───┴───┴─── GND

The controller stores the absolute number of goals that have been achieved. A connected I²C master can repeatingly query for the current status and receive the information that a goal was achieved.
There's no communication invoked by the slave. The master should query every second (or perhaps quarter second) the current counters. As there usually won't be more than 1 goal per second (at least not more than 50), also a overflow can easily be detected and accordingly have the number of goals be calculated.

Notes

About

ATTiny Kicker


Languages

Language:C 80.7%Language:Makefile 19.3%