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 revisionNext revisionBoth sides next revision | ||
arduino:displays_for_the_arduino_uno:nokia_5110_displays_and_the_arduino_uno [2018/01/27 01:49] – mithat | arduino:displays_for_classic_arduinos:nokia_5110_displays_and_classic_arduinos [2018/01/28 06:26] – [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 | + | * 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 |
+ | * The LCD contrast is set in software. At first this seems like something that might be cool. But if you're going to build more than one of whatever you're building, it means you'll have to tweak the code for each one you build or write software that lets the contrast be set at runtime. And save that to persistent memory. That's not a small amount of overhead. | ||
- | 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. |
==== U8g2 ==== | ==== U8g2 ==== | ||
Oli Kraus' [[https:// | Oli Kraus' [[https:// | ||
Line 29: | Line 30: | ||
/* | /* | ||
+ | * 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 76: | Line 79: | ||
==== 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 149: | Line 152: | ||
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 190: | Line 193: | ||
==== 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