Questions tagged [energia]

Energia is a fork of the Arduino IDE platform, specifically supporting TI LaunchPad (MSP430 and Stellaris)

Energia homepage

34 questions
4
votes
1 answer

Using the right pins for keypad

I am using msp430g2553 microcontroller and a 4x4 HC543 keypad. I am using Energia IDE. I have connected the keypad from pin 2 through 9. My code is as follows: #include const byte ROWS = 4; //four rows const byte COLS = 4; //four…
3
votes
3 answers

How do you programmatically detect pin count on an MSP430G2553?

I am using a Launchpad to program an MSP430G2553 controller. I use it for debugging. This controller has 20 pins. However, the end goal here is to run my program on an MSP430G2553IPW28R controller. This controller has 28 pins instead of 20. I'm…
Curtis
  • 341
  • 6
  • 18
3
votes
1 answer

What benefits are there to programming an MSP430 in C/C++ over Energia?

I'll start by saying I'm new to micro-controller programming. I've had some (ca. 30 years) experience programming, and some of that was writing C/C++ but those days are long behind me now. Since I'm just starting, I want to know what benefits there…
2
votes
2 answers

MPS430 Launchpad Keypad

I tried to use my MSP430G2553 launchpad with a keypad…
Cagurtay
  • 89
  • 2
  • 12
2
votes
2 answers

When do you release and re-aquire control over SDA around an i2c Ack?

I am having odd behavior with Energia's Wire library, so I figured that I would attempt to do i2c myself. I'm writing my own (bit-bang) implementation if i2c and keeping it pretty simple. For now, I just want to detect a particular i2c device. …
Curtis
  • 341
  • 6
  • 18
2
votes
1 answer

How do you use low-power mode on an MSP430G2553 using an Energia sketch?

I am using an energia sketch to program my MSP430G2553 controller. I need to know how to use low-power mode. Do I leave the loop section of the sketch empty and set up an interrupt in the setup section? Or is there more to it than that? How do you…
Curtis
  • 341
  • 6
  • 18
2
votes
1 answer

Power consumption - Energia Launchpad

I'm working with energia for the launchpad 430 and have a rather specific question to make: is example A the equivalent in power consumption has example B, or is it that B drains more power? Thank you. EXAMPLE A: void setup() { boolean flag =…
Rui Lima
  • 679
  • 2
  • 11
  • 23
1
vote
1 answer

Transfering my arduino/TI-MSP430 Launchpad/Energia skills to real world projects and C

I'm learning electronics/microcontroller programming through TI-MSP430 Launchpad(Energia) and Arduino. Both are based on wiring framework, and very good place to start for a beginner like me. Now as I'm forwarding in my learning, I'm thinking to…
1
vote
2 answers

Launchpad blink with button

I am trying to make LED in MSP430G2 Launchpad keep blinking / off with button like Switch example (http://www.arduino.cc/en/Tutorial/Switch) in Arduino/Energia but I seem to miss something stupid and i don't know what... const int buttonPin = PUSH2;…
Cagurtay
  • 89
  • 2
  • 12
1
vote
1 answer

msp430 using Button as switch

I am trying to do this(http://www.arduino.cc/en/Tutorial/Switch) without using any external parts because I was able to use button example from same site with this code: http://en.textsave.org/VjL) with my msp430g2553 using Energia but its not…
Cagurtay
  • 89
  • 2
  • 12
1
vote
0 answers

Have to download Energia code multiple times for the code to update using MSP430F5529 Launchpad

I'm a beginner in robotics, so I just started playing around with my MSP430F5529 Launchpad. Ever since the first time I started using my launchpad, it seems like I have to click on the 'Download' button of my code in Energia multiple times for it to…
1
vote
1 answer

Only one attachInterrupt works at a time

I am using the MSP430f5529 launchpad and coding in Energia. The goal is to make a program that can detect whether the onboard pushbutton is up or down (as part of an eventual Morse code decoder), which I planned to implement using two…
Somatic
  • 113
  • 3
1
vote
1 answer

interfacing external push button to msp430 using energia

I am writing code in Energia using the mso430g2553 launchpad and an external pushbutton with a pullup resistor. The code should simply display the state of the button on the serial monitor, 1 for pressed, 0 for unpressed. This is the code I am…
Maria
  • 11
  • 2
1
vote
1 answer

Display digits on 7 segment 3 digit LED display with Launchpad

I have a 7 segment led display with 3 digits (BT-M512RD-DR1 ) and Valueline Launchpad MSP-EXP430G2 I connected LED display according to this answer and here is my version of the sketch But I am not sure how to control LED display correctly what…
endryha
  • 111
  • 1
  • 3
1
vote
1 answer

Internal temperature sensor for the MSP430 - energia

I'm trying to use the internal temperature sensor for the MSP430G2553 with energia (a branch of arduino for the TI MSP430 microcontrollers) but to I'm having trouble calibrating it. The solution I've found was to make multiple measures at different…
Rui Lima
  • 679
  • 2
  • 11
  • 23
1
2 3