Search the Community

Showing results for tags 'nokia'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News
    • Announcements
    • Suggestions
    • New users say Hi!
  • Spotlight!
    • Sponsor Spotlight
    • Sponsor Giveaways
  • Energia
    • Energia - MSP
    • Energia - TivaC/CC3XXX
    • Energia - C2000
    • Energia Libraries
  • MSP Technical Forums
    • General
    • Compilers and IDEs
    • Development Kits
    • Programmers and Debuggers
    • Code vault
    • Projects
    • Booster Packs
    • Energia
  • Tiva-C, Hercules, CCXXXX ARM Technical Forums
    • General
    • SensorTag
    • Tiva-C, Hercules, CC3XXX Launchpad Booster Packs
    • Code Vault
    • Projects
    • Compilers and IDEs
    • Development Kits and Custom Boards
  • Beagle ARM Cortex A8 Technical Forums
    • General
    • Code Snippets and Scripts
    • Cases, Capes and Plugin Boards
    • Projects
  • General Electronics Forum
    • General Electronics
    • Other Microcontrollers
  • Connect
    • Embedded Systems/Test Equipment Deals
    • Buy, Trade and Sell
    • The 43oh Store
    • Community Projects
    • Fireside Chat
  • C2000 Technical Forums
    • General
    • Development Kits
    • Code Vault
    • Projects
    • BoosterPacks

Calendars

There are no results to display.


Found 5 results

  1. 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.
  2. 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; }
  3. 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.
  4. Specs: 1.3" 96x68 pixels controlled backlight 5 tact switches with RC debouncing STE2007 driver Code: 1202_booster_pack.cSTE2007.hfont_5x7.h
  5. I got my LCD working, after fixing some bonehead mistakes (Like setting the main data for loop with I = 8; I < 8, so no data ever got clocked out). Once I wired it up correctly, it shows my image and loops a few strings, clears, everything. But I cannot get it working unless I drive the SCE/CS pin directly. If I tie it to ground, it refuses to start up or anything. void nokia_init(void) { // Initialize Pins P1SEL &= ~SCE & ~RES & ~DC & ~SDIN & ~SCLK; // Set Needed Pins as GPIO (Part 1) P1SEL2 &= ~SCE & ~RES & ~DC & ~SDIN & ~SCLK; // Set Needed Pins as GPIO (Part 2) P1OUT |= SCE | RES | DC | SDIN | SCLK; // Set Needed Pins to High P1DIR |= SCE | RES | DC | SDIN | SCLK; // Set Needed Pins as Outputs // Enable Nokia Display DISPLAY_PORT &= ~SCE; // Set Chip Select Low, Unused // Reset LCD DISPLAY_PORT |= RES; // Pull Reset High to Known State, Probably Unneeded DISPLAY_PORT &= ~RES; // Pull Reset Low to Reset LCD DISPLAY_PORT |= RES; // Pull Reset High to Complete Reset // Cycle Clock // DISPLAY_PORT &= ~SCLK; // Pull SPI Clock Low // DISPLAY_PORT |= SCLK; // Pull SPI Clock High // Disable Nokia Display DISPLAY_PORT |= SCE; // Set Chip Select High // Setup Nokia Display nokia_write( 0x21, SEND_CMD ); // LCD On, H addressing, Ext. Commands. nokia_write( 0xBf, SEND_CMD ); // Set LCD VOP (Contrast). nokia_write( 0x06, SEND_CMD ); // Set Temp Coefficient to 2. nokia_write( 0x13, SEND_CMD ); // LCD Bias Mode 1:48 nokia_write( 0x20, SEND_CMD ); // LCD On, H addressing, Stnd. Commands. nokia_write( 0x08, SEND_CMD ); // LCD Display Blanked. nokia_write( 0x0C, SEND_CMD ); // LCD Display Set to Normal Mode. nokia_clear(6); // Clear Screen } Can anyone see why it won't work when the SCE line is tied to ground? (attached is the entire project files so far (2x .c, 2x .h). Update: (Solution as per oPossum, add delay between and after, Pulling Reset Pin Low and High) Fridge.zip