Generic Calculator Shield for Arduino Photo-journal
|
03-14-2015, 10:01 PM
(This post was last modified: 03-16-2015 06:57 AM by MarkHaysHarris777.)
Post: #26
|
|||
|
|||
RE: Generic Calculator Shield for Arduino Photo-journal
Greetings, the 16x2 back-lit display is operational using the LiquidCrystal library which provides support for displays compatible with the Hitachi HD44780 driver. I am using the Topway LMB162ABC LCD wired for four(4) bit and two control lines. As wired the Arduino 'hello,world!' example will run unmodified. This display is quite easy to put together from a hardware perspective, and very easy to write. Basically, you set the cursor, and write 'text' to one of the two output display lines. Hi-res pics first, code following:
Code:
The pot in the upper left is used to adjust the display contrast. The back light (yellow|green for the ABC model) is optional. I have provided a jumper which may be used to turn off the back light to save power. The display is of course easier to read with the back light, but is acceptable without it. The display supports an 8 line data bus, of which I am using the high-order four(4) bits. {D4green(pin5), D5blue(pin4), D6violet(pin3), & D7grey(pin2)} RS(orange) is on pin 12, and Enable(yellow) is on pin 11. The red line is Vcc 5v (rail is on the end of the board), and the tan line is Vss ground, rail runs through the center. This wiring diagram is the most common LCD wiring used with the 16x2 displays and the Arduino. Of course the same will work fine with any of the boards (Mega is shown) and also the Edison with the Arduino break-outs and Arduino IDE; I will be trying that shortly. PS Since posting this update (while leaving the display on) the voltage regulator on the Mega got quite warm (hot even). So, the board is going to need its own 7805, if I run it with the back light lit up. PPS I updated the code a bit... Cheers, marcus Kind regards, marcus |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 25 Guest(s)