https://github.com/basilfx/arduino-beercounter
A beer cork counting system, built around an Arduino, with the love of beer.
https://github.com/basilfx/arduino-beercounter
Last synced: 3 months ago
JSON representation
A beer cork counting system, built around an Arduino, with the love of beer.
- Host: GitHub
- URL: https://github.com/basilfx/arduino-beercounter
- Owner: basilfx
- License: mit
- Created: 2014-04-15T16:47:54.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2015-08-22T14:27:33.000Z (almost 11 years ago)
- Last Synced: 2025-03-03T14:48:01.957Z (about 1 year ago)
- Language: Eagle
- Size: 426 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BeerCounter
A beer cork counting system, built around an Arduino, with the love of beer.
## Contents
* Eagle schematic and PCB
* Arduino firmware
## Eagle
### Bill of materials
| 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 |
### Board render
Render of the controller board. It measures 2.05x2.30 inch

Render of the display board. It measures 3.70x1.60 inch.

## Arduino
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:
* [CommandLine](https://github.com/basilfx/Arduino-CommandLine)
* [Timer1](http://playground.arduino.cc/Code/Timer1)
### Firmware
To be done.
### Hardware configuration
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](https://github.com/basilfx/Arduino-BeerCounter/blob/master/docs/Calibration.md) guide.
### Firmware configuration
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
## License
See the `LICENSE` file (MIT license).