A beer cork counting system, built around an Arduino, with the love of beer.
- Eagle schematic and PCB
- Arduino firmware
| Part | Value | Device | Package |
|---|---|---|---|
| C1 | 22pF | C-EU025-024X044 | C025-024X044 |
| C2 | 22pF | C-EU025-024X044 | C025-024X044 |
| C3 | 100nF | C-EU025-024X044 | C025-024X044 |
| C4 | CPOL-EUTT2D5 | TT2D5 | |
| C5 | 100nF | C-EU025-024X044 | C025-024X044 |
| IC1 | TL072P | TL072P | DIL08 |
| IC2 | MEGA8-P | MEGA8-P | DIL28-3 |
| ISP | AVR_SPI_PROG | AVR_SPI_PROG | AVR_ICSP |
| J1 | POWER_JACKSLT | POWER_JACKSLT | POWER_JACK_SLOT |
| LDR1 | M02LOCK | 1X02_LOCK | |
| LDR2 | M02LOCK | 1X02_LOCK | |
| Q1 | 16MHz | XTAL/S | QS |
| R1 | 4k7 | R-EU_0204/7 | 0204/7 |
| R2 | 1M | R-EU_0204/7 | 0204/7 |
| R3 | 1M | R-EU_0204/7 | 0204/7 |
| R4 | 4k7 | TRIM_EU-LI10 | LI10 |
| R5 | 4k7 | TRIM_EU-LI10 | LI10 |
| R6 | 68k | R-EU_0204/7 | 0204/7 |
| R7 | 68k | R-EU_0204/7 | 0204/7 |
| R8 | 220 | R-EU_0204/7 | 0204/7 |
| R9 | 220 | R-EU_0204/7 | 0204/7 |
| R10 | 4k7 | R-EU_0204/7 | 0204/7 |
| S1 | TAC_SWITCHPTH | TACTILE-PTH | |
| S2 | TAC_SWITCHPTH | TACTILE-PTH |
Render of the controller board. It measures 2.05x2.30 inch
Render of the display board. It measures 3.70x1.60 inch.
The source can be found under firmware. It's build with Arduino 1.6.5, but newer versions should work too.
You need the following libraries:
To be done.
For best performance, the light gate should be fitted in a tube, where environment light has little effect.
To calibrate the device, check the calibration guide.
Once you have the device ready, connect it to the computer via a serial adapter. Hold the setup button, and power cycle the device. The settings for terminal are 115200 baud, 8 bits, no parity and 1 start/stop bit. The terminal has the following commands:
- reset — Reset the device
- count — Get/set the initial count
- zeroes <1|0> — Enable/disable leading zeroes
- restarts — Get the number of power cycles
See the LICENSE file (MIT license).

