0

What is needed to make a simple pulse counter with an LCD di
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

What is needed to make a simple pulse counter with an LCD di

by JamFlowMan on Wed Dec 19, 2018 12:17 pm

I am trying to develop a simple pulse counter that displays the count and has a reset button.
I have already developed a more complex unit using the Metro and LCD Keypad Shield (that uses I2C).
And I have written a program (using the Metro Mini) for the simple pulse counter that works well, but only outputs to the serial monitor.

My Question is:
How can I add an LCD Display (8x1 and/or 16x2) to display the count?
all of the pins on the mini seem to be regular I/O pins... but I will have to rely on a library like the LCD keypad one where I can say something like: LCD.print(countTotal);
So, is that even possible?
if so:
- please describe the hardware needed and technologies that I will need to implement to get it to display easily.
- can I do it with an even smaller microcontroller like the trinket?

if not:
- what are the most basic (small, low cost, no extras) items that I can use to accomplish this functionality?

And I also would like to explore using a coin cell battery to power this device... but I need to get multiple years of life out of it. AA or AAA batteries would also be a possibility. Any advice on that would be greatly appreciated.

JamFlowMan
 
Posts: 8
Joined: Fri Aug 03, 2018 1:01 pm

Re: What is needed to make a simple pulse counter with an LC

by adafruit_support_mike on Thu Dec 20, 2018 1:57 am

You can control an LCD directly, but the most common version (using the HD44780 signal protocol) need at least six GPIO pins. The Arduino standard libraries contain functions to do that:

https://www.arduino.cc/en/Tutorial/LiquidCrystalDisplay

and we have HD44780 displays in the shop:

https://www.adafruit.com/category/96

We also have a board that uses GPIO expanders to generate the HD44780 control signals while only using two or three of the microcontroller's GPIO pins:

https://www.adafruit.com/product/292

The Metro Mini supports both I2C and SPI, so it will work with the LCD Backpack.

adafruit_support_mike
 
Posts: 58799
Joined: Thu Feb 11, 2010 2:51 pm

Please be positive and constructive with your questions and comments.