Hey all,
I'm working on a project that will need to control a 3 digit, 7 segment display, powered by a 3v coin cell, for a extended period of time. It also needs to be quite small and cheap. It will be based on an atmega328.
My initial thought was to use a LED display and just use PWM modulation without resistors, to save space and cost on the board, since no driver is needed. The power draw I fear is still going to be much too high for my needs. So I am now considering a LCD display, as it draws few uA of power. I'm not familiar enough with communications protocols to be able to write my own library for the drivers, and I have only found two online.
The first is this which uses parallel displays only. The drivers that it supports are more expensive than I was trying to be at. The other library is this which is written for a raspberry pi. It should be easy to port the code over to my avr, but the PCF85176 driver that it uses is way overkill for my display. It can drive 14 digits, and is a 64 pin smd, which the majority of which will be wasted, not to mention, very hard to hand solder.
I've tried to search for i2c drivers that may be compatible with the code for the PCF85176 but it's not available as a search criteria.
So my questions are:
Is a LCD display definitely the way to go?
What interface (parallel/SPI/i2C) should I use assuming LCD?
How would I go about writing a library for it, considering I am not an expert in communications protocols?
Thank you so much in advance!
EDIT: Also, forgot to add, this display will be used in a location that changes from complete darkness to well lit under a light. It will only be with the light on for maybe 10 minutes a day. So another option would be to use an LED with a photoresistor to detect when the display should be shown. I'm not sure how to calculate the current draw like this though
I'm working on a project that will need to control a 3 digit, 7 segment display, powered by a 3v coin cell, for a extended period of time. It also needs to be quite small and cheap. It will be based on an atmega328.
My initial thought was to use a LED display and just use PWM modulation without resistors, to save space and cost on the board, since no driver is needed. The power draw I fear is still going to be much too high for my needs. So I am now considering a LCD display, as it draws few uA of power. I'm not familiar enough with communications protocols to be able to write my own library for the drivers, and I have only found two online.
The first is this which uses parallel displays only. The drivers that it supports are more expensive than I was trying to be at. The other library is this which is written for a raspberry pi. It should be easy to port the code over to my avr, but the PCF85176 driver that it uses is way overkill for my display. It can drive 14 digits, and is a 64 pin smd, which the majority of which will be wasted, not to mention, very hard to hand solder.
I've tried to search for i2c drivers that may be compatible with the code for the PCF85176 but it's not available as a search criteria.
So my questions are:
Is a LCD display definitely the way to go?
What interface (parallel/SPI/i2C) should I use assuming LCD?
How would I go about writing a library for it, considering I am not an expert in communications protocols?
Thank you so much in advance!
EDIT: Also, forgot to add, this display will be used in a location that changes from complete darkness to well lit under a light. It will only be with the light on for maybe 10 minutes a day. So another option would be to use an LED with a photoresistor to detect when the display should be shown. I'm not sure how to calculate the current draw like this though
Last edited: