End

Group

Website URL

Location

Interests

Sparkfun

Github

I need help, I am trying to get my nokia 5110 working with a CC3200 launchpad.
I was able to get the Nokia working with the msp430g2553 using the LCD_5110 library. But no Luck with the CC3200, I also tried it with the LCD_5110_SPI library. I am hoping someone will share a working example for the Nokia on a CC3200.
I tried the suggestions in this post.
https://forum.43oh.com/topic/7768-problem-with-cc3200-and-lcd5110-library/?tab=comments#comment-62408
Thank you.

For my next project I have to use a Nokia 5110 LCD with a MSP430G2553. After searching for a while on the internet I came across RobG's SPI-based driver. It's a great driver, but the problem is that I'll be using a I2C chip in this project too, so I decided to create a bit-bang driver.
The code is extremely well documented and you should easily be able to use it for anything you want. Here's the GitHub repo: msp430-nokia-5110.

Hey all,
I recently got a Nokia 5110 LCD working using the LCD_5110 lib from GitHub. Works great, so thanks to giants whose shoulders I stand atop!
I moved my chip (G2553) directly to the board as I have done several times before (with a pullup resistor on RST), and I loaded a little demo program on it with my "loader" board (just TEST, RST, GND, and VCC hooked up to the emulation side of an LP). Program loads and runs fine, but when I remove the loader and cycled power (I was just changing battery sources from a 6V pack to a 9V battery -- they are dropped to 3.3V), the LCD does not init properly.
Sometimes resetting (disconnecting the RST pullup) would make it come back, sometimes not. The weird thing is that the sketch IS running, because the ISR to toggle the backlight DOES work -- but no text displays on the screen.
When it gets this way, I hook up the loader again, flash the same program, and then everything works fine. If I unhook the loader and cycle the power, though, I am back to no text on screen. Am I initializing the screen incorrectly or doing something wrong in terms of power cycling and/or resetting?
[incidentally, you'll see in the constructor for LCD_5110 that I use zero for the getButton() pin -- I don't need a button-getter, and would rather use my own button handling code instead of calling the LCD's getButton() method. What is the best way to call the constructor in that case? The zero works (compiles, anyway), and it looks like getButton() just hangs the program if I ever call it (so I won't). But surely I am missing something to use such an inelegant methodology...]
Any help would be appreciated!
Thanks,
sutekh137
Sketch:
//System/library includes.
#include <LCD_5110.h>
// Defines...
#define TOGGLE_BACKLIGHT PUSH2
// Instantiate the Nokia 5110 LCD class (non-SPI):
// LCD_5110 lcd(Chip Select, Serial Clock, Serial Data, Data/Command, Reset, Backlight, getButton() Trigger)
LCD_5110 lcd(12, 13, 14, 15, 18, 19, 0);
boolean glBacklight = false;
void setup() {
// Button will toggle back light using an ISR.
pinMode(TOGGLE_BACKLIGHT, INPUT_PULLUP);
attachInterrupt(TOGGLE_BACKLIGHT, ISR_ToggleBacklight, FALLING);
lcd.begin();
lcd.setBacklight(glBacklight);
lcd.text(0, 0, "Hello!");
delay(1000);
lcd.clear();
lcd.text(0, 5, "Light off");
}
void loop() {
lcd.setFont(0);
lcd.text(0, 5, glBacklight ? "Light on " : "Light off");
lcd.setFont(1);
lcd.text(0, 2, " MSP430");
delay(200);
}
void ISR_ToggleBacklight() {
delayMicroseconds(1000);
if (digitalRead(TOGGLE_BACKLIGHT) != LOW) {
return;
}
glBacklight = (glBacklight == 0);
lcd.setBacklight(glBacklight);
return;
}

I was trying to get the Tiva Launchpad TM4C123 working with the Nokia 5110 using Energia. Eventually I came across this page: http://www.clarenceho.net/2015/08/tm4c123-with-dht11-sensor.html You can follow the series of questions and answers through which Clarence Ho helped me get the combination working. You can see that he used a library originally by Rei Vilo, modified to add a contrast command. You can see also that Clarence has now added the jump-wire connections which are needed to link the Launchpad and LCD, near the top of the page. I then investigated graphics, and added Graphics commands to Rei Vilo's library - some were adapted from libraries designed to interface the 5110 to Arduinos. (I've quoted all sources in the file itself) You can see the result on this Youtube page: https://youtu.be/wCwyDiEfO_c
As you can see, also included is a simple Pacman-style game using the Graphics commands. You may want to jump over the part showing Pacman game, if you want to try it yourself first.
I've also now added another Pacman-style game - but generated randomly. There's a choice of ten sets of games (A-J), each with a potentially infinite number of levels. Note that although the games are generated randomly, the starting point for the random number generator used in each set of games is the same. So, GamesA for instance always has exactly the same levels. The Library and games can be downloaded from: https://dl.dropboxusercontent.com/u/17759511/LCD5100_Graphics.zip
... and of course, the Energia code is easy to edit, so you can adapt the programmes for your own needs. I hope they are of some use to those who arrive at this page looking for help with connecting the Nokia 5110 to the Tiva Launchpad TM4C123.