Alcohol Unit Counter using ATtiny84

There seems to be a lot of discussion in the news currently about how much alcohol it’s safe to drink on a regular basis [1][2]. If you want help in monitoring your alcohol consumption this gadget might be useful. You enter the number of units you drink each day, and it keeps track of where you are relative to your target intake:

Alcohol Unit Counter using ATtiny84

It’s based on a low-cost two-digit LED display and an ATtiny84.


I built this circuit a while ago when I wanted a way to keep an eye on my alcohol intake. Of course you could achieve the same result with a calendar and notebook, but this is more fun and motivating. The aim is to keep to a sensible average level of consumption, with the ability to enjoy several drinks when the occasion arises.

Using the Alcohol Unit Counter

The Alcohol Unit Counter helps you keep to the UK recommended maximum adult alcohol intake of 14 units a week, ie two units a day (you can change this in the program).

To use it press the button once to display your current position relative to your target alcohol consumption; the aim is to keep this at zero.

For example, if it shows 0 you’re on target, 2 means you’re 2 units over and you’ll need to have an alcohol-free day to catch up, and -4 means you’re under target and you can enjoy half a bottle of wine, and so on.

At the end of the evening press the button again to enter each unit you’ve consumed, and the counter increments accordingly. In the middle of the night the counter automatically decrements by your daily allowance.

The counter can display between -19 and 39. Beyond this range it displays ‘__’ for less than -19 or ‘^^’ for more than 39. To save power the display blanks automatically after four seconds.

Read more: Alcohol Unit Counter using ATtiny84

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top