arduino:displays_for_classic_arduinos:nokia_5110_displays_and_classic_arduinos
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
arduino:displays_for_the_arduino_uno:nokia_5110_displays_and_the_arduino_uno [2018/01/27 03:39] – [Summary opinions] mithat | arduino:displays_for_classic_arduinos:nokia_5110_displays_and_classic_arduinos [2018/01/28 21:36] (current) – [Libraries] mithat | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Nokia 5110 Displays | + | ====== Nokia 5110 displays |
===== Summary opinions ===== | ===== Summary opinions ===== | ||
Line 8: | Line 8: | ||
* Their platry 84x48 monochrome resolution means they can be used without putting too huge a load on a puny Uno/ | * Their platry 84x48 monochrome resolution means they can be used without putting too huge a load on a puny Uno/ | ||
* There are a number of libraries available for interfacing to them. | * There are a number of libraries available for interfacing to them. | ||
- | * They can be [[Nokia 5110 Display and Arduino Uno speed test | updated fast enough]] for use with dynamic text. | + | * They can be [[nokia_5110_displays_and_classic_arduinos_speed_test| updated fast enough]] for use with dynamic text. |
And now the bad reasons: | And now the bad reasons: | ||
* The displays are sourced either as surplus or have been harvested from old phones. You can't be certain what you'll get, but whatever you get will probably not be pristine. | * The displays are sourced either as surplus or have been harvested from old phones. You can't be certain what you'll get, but whatever you get will probably not be pristine. | ||
* The main electrical contact between the display and the PCB is through a compressible foam material that was once pretty cool s***. The main issue this presents is that small shifts in pressure on the display housing seem to muck up the connections --- at least they did on my sample. The contrast control in particular seems to be sensitive to housing pressure. Nokia obviously figured out how to work with this interface, but board suppliers might be missing some important know how here. | * The main electrical contact between the display and the PCB is through a compressible foam material that was once pretty cool s***. The main issue this presents is that small shifts in pressure on the display housing seem to muck up the connections --- at least they did on my sample. The contrast control in particular seems to be sensitive to housing pressure. Nokia obviously figured out how to work with this interface, but board suppliers might be missing some important know how here. | ||
- | * The LCD contrast is set in software. At first this seems like something | + | * The LCD contrast is set in software. At first this seems like something |
- | One of the best sources of information on these displays is SparkFun' | + | The order of the pins on these will vary from supplier to supplier. |
===== Libraries ===== | ===== Libraries ===== | ||
- | These are libraries I know about that let you interface to a Nokia 5110 display. | + | These are libraries I know about that let you interface to a Nokia 5110 display. |
+ | |||
+ | These are just tests using static text to demonstrate code setup and the most basic functionality. I've also done some [[arduino: | ||
==== U8g2 ==== | ==== U8g2 ==== | ||
Oli Kraus' [[https:// | Oli Kraus' [[https:// | ||
Line 30: | Line 32: | ||
/* | /* | ||
+ | * Basic test a Nokia 5110 display and the U8g2 library. | ||
+ | * | ||
* Notes: | * Notes: | ||
* Program storage space and dynamic memory are the same whether you use HW or SW SPI. | * Program storage space and dynamic memory are the same whether you use HW or SW SPI. | ||
Line 77: | Line 81: | ||
==== U8glib ==== | ==== U8glib ==== | ||
- | Before there was U8g2, there was [[https:// | + | Before there was U8g2, there was [[https:// |
<file c++ display_nokia_5110_u8glib.ino> | <file c++ display_nokia_5110_u8glib.ino> | ||
+ | // Modified by Mithat Konar from | ||
// Henry' | // Henry' | ||
// Arduino Nokia 5110 U8Glib Tutorial | // Arduino Nokia 5110 U8Glib Tutorial | ||
- | // From http:// | + | // http:// |
- | // Modified by mfk. | + | |
#include " | #include " | ||
Line 150: | Line 154: | ||
code as you see fit. If you find it useful, and we meet someday, | code as you see fit. If you find it useful, and we meet someday, | ||
you can buy me a beer. | you can buy me a beer. | ||
- | */ | + | */ |
/* | /* | ||
- | | + | |
| | ||
* Notes: | * Notes: | ||
* This minimal version uses 6% of program storage space and 26% of dynamic memory. | * This minimal version uses 6% of program storage space and 26% of dynamic memory. | ||
- | * Different fonts can be experimented with | + | * Different fonts can be experimented with. |
*/ | */ | ||
| | ||
- | /* mfk pin assignments (set in LCD_Functions.h: | + | /* Mithat' |
* RST: 8 | * RST: 8 | ||
* CE/CS/SCE: 10 | * CE/CS/SCE: 10 | ||
Line 191: | Line 195: | ||
==== Rinky-Dink Electronics ==== | ==== Rinky-Dink Electronics ==== | ||
- | Rinky-Dink Electronics has a number of libraries for working with the Nokia 5110: a [[http:// | + | Rinky-Dink Electronics has a number of libraries for working with the Nokia 5110: a [[http:// |
I have not yet tested any of these, but I like the two-tiered and modular approach to functionality. | I have not yet tested any of these, but I like the two-tiered and modular approach to functionality. |
arduino/displays_for_classic_arduinos/nokia_5110_displays_and_classic_arduinos.txt · Last modified: 2018/01/28 21:36 by mithat