Jump to content


  • Content Count

  • Joined

  • Last visited

  1. Yes, I switched P1_2 to P2_0 and it works but i need swap "*" and "#" in char keys[ROWS][COLS] because they are on different side on my keypad.
  2. Hello, I tried to use my MSP430G2553 launchpad with a keypad (https://www.sparkfun.com/products/8653) using http://www.pjrc.com/teensy/td_libs_Keypad.html http://bildr.org/2011/05/arduino-keypad/ http://www.instructables.com/id/Using-the-sparkfun-12-Button-keypad-with-the-ardu/ http://www.ti.com/lit/an/slaa139/slaa139.pdf (i just tried schematic with Energia code) http://little-scale.blogspot.com/2011/10/how-to-connect-keypad-to-arduino-simple.html (prints blank lines in same row , buttons doesn't work except 2,5,8,0 and they print "y") #include <Keypad.h> const byte ROWS = 4; //four rows const byte COLS = 3; //three columns char keys[ROWS][COLS] = { {'1','2','3'}, {'4','5','6'}, {'7','8','9'}, {'#','0','*'} }; //byte rowPins[ROWS] = {5, 4, 3, 2}; //connect to the row pinouts of the keypad //byte colPins[COLS] = {8, 7, 6}; //connect to the column pinouts of the keypad byte rowPins[ROWS] = { P1_5, P1_4, P1_3, P1_2 }; // Connect keypad COL0, COL1 and COL2 to these Arduino pins. byte colPins[COLS] = { P1_0, P1_7, P1_6 }; Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS ); void setup(){ Serial.begin(9600); } void loop(){ Serial.print("Serial test\n"); delay(100); char key = keypad.getKey(); if (key != NO_KEY){ Serial.println(key); } } None of them works, they only print "Serial test" and thats when i press RESET. I tried using latest keypad library from ARDUINO site or the libraries that in those tutorials. Do i need a different way to wire up the keypad to launchpad or need a different library? Thank you.
  3. Hello, I am trying to interface my MSP430G2553 launchpad with an LCD (http://www.winstar.com.tw/UserFiles/ProductImages/12523136510757108108.jpg) but my characters look weird. I am using http://www.fibidi.com/arduino-lcd-16x2-characters/ with one potentiometer , with changing ports like this: #include <LiquidCrystal.h> // initialize the library with the numbers of the interface pins //LiquidCrystal lcd(8,9,4,5,6,7); LiquidCrystal lcd(P2_4,P2_5,P2_0,P2_1,P2_2,P2_3); void setup() { lcd.begin(16,2); lcd.setCursor(0,0); lcd.print("Hello World!"); } void loop() { } But my characters looks like this with 3.6V to LCD: And if I use 5V from TP3 TP1 from Launchpad USB thing with highest brightness: I tried: 1. using other ports (1.0 to 1.7) 2. changing potentiometer 3. changing and checking breadboard 4. checking voltages 3.6v -> 3.5 and 5V -> 5.09V 5. not using backlight 6. wiring empty LCD pins to ground 7. removing lcd.setCursor(0,0); line 8. trying MSP430G2452 But still same. I alson can't use right half of the screen. It should work but, is something wrong with LCD (that was my first soldering attempt I may overheat something but I checked for short circuits and there isn't any) or my chosen ports. Any ideas? Thank you.
  • Create New...