Jump to content

Search the Community

Showing results for tags 'msp430g2553'.



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.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Location


Interests


Sparkfun


Github

Found 146 results

  1. Hi Everyone, I am using LED blinking program of Arduino on MSP430. I have configured compilers etc. Now the led turns on but it is not blinking. I have tried changing delay/sampling rate. Can someone point me the issue here?
  2. rdufrene

    MSP430 Nothing on Serial Monitor

    Hello, I am trying to have my MSP430G2553 on a launchpad (Rev.1.5) show anything on the serial monitor using the following code: void setup() { Serial.begin(9600); } void loop() { Serial.println("Test"); delay(1000); } I have downloaded the drivers http://energia.nu/Guide_Windows.html I have switched the jumpers http://energia.nu/img/LaunchPadMSP430G2553-V1.5.jpg I'm just not sure what is wrong. I can load the Blink example and get it to work and even making it do other things but when it comes to reading values and serial the launchpad doesn't want to do anything.
  3. Hi! I tried to connect GPRS Shield from Arduino to msp430g2553 with SoftwareSerial library. But I faced with the problem. When the size of sketch exceeds 5590 bytes, global variables do not work. I just add one variable (global string) and the program stops executed correctly. Here is the code: /* When new serial data arrives, this sketch adds it to a String. When a '!' character is received, the loop prints the string "Hello world!" */ #include <SoftwareSerial.h> SoftwareSerial mySerial(P2_0, P1_5); String inputString = ""; // a string to hold incoming data boolean stringComplete = false; // whether the string is complete String string1 = "Hello "; String string2 = "Just string"; String string3 = "Another string"; //String string4 = "Another string"; // If we uncomment this line, code will not work void setup() { Serial.begin(9600); mySerial.begin(19200); } void loop() { if (stringComplete) //if the incoming character is a '!' { inputString = ""; stringComplete = false; Serial.print(string1); Serial.println("world!"); } } /* SerialEvent occurs whenever a new data comes in the hardware serial RX. This routine is run between each time loop() runs, so using delay inside loop can delay response. Multiple bytes of data may be available. */ void serialEvent() { while (Serial.available()) { char inChar = (char)Serial.read(); inputString += inChar; if (inChar == '!') { stringComplete = true; } } } Somebody knows where is my problem? SoftwareSerialEnergia.ino
  4. rdufrene

    MSP430 with CC2530

    I have the MSP430G2553 on the launchpad and a CC2530DK_EM on an EM Adapter BoosterPack (BOOST-CCEMADAPTER). I was wondering what is the best way to code these devices. Should I be using CCStudio or Energia, and where can I find more information about programming these devices so they can use Zigbee communication?
  5. Antscran

    MSP430 voice control over bluetooth

    Hi all, I was playing around with the MSP430G2553 and the UART at the weekend, then remembered I had a cheap HC06 bluetooth module. The result being a basic Android app that you can control your launchpad using voice control, it's far from polished but a bit of fun all the same Project tutorial. C code and Android App http://coder-tronics.com/msp430-voice-control-over-bluetooth/ Video demonstration https://www.youtube.com/watch?v=8Z5ixK30Ddc Cheers, Ant
  6. EDIT: Now on Tindie I have 2 new boards coming soon: GPS BoosterPack and standalone board. They will (most likely) come with pre-soldered and tested GPS module, and possibly as a kit. Standalone board has a socket and all necessary part to use it with MSP430G2553. The price of BP is $22, SA board will cost ~$25 (MCU not included.)
  7. hello friends, I have a big problem with small MSP430G2553, I would like to make a capture samples at P1.2 of the microcontroller, but my code does not work, what am I doing wrong, can someone help me. My code: unsigned int adcValue = 0; int i, BPM[10]; int maior = BPM[0]; int menor = BPM[0]; int contagem =0; /*****************************************************************/ /********* LOCAL FUNCTIONS *********/ /*****************************************************************/ void ADC_ConfigAnalogInput(void){ P1DIR2IN(BIT0); ADC10CTL0 &= ~(ENC); ADC10CTL1 = (INCH_0 + ADC10DIV_0); ADC10CTL0 = (SREF_0 + ADC10SHT_3 + ADC10ON + ADC10IE); ADC10AE0 |= BIT0; ADC10CTL0 |= ENC; } void ADC_ReadAnalogInput(void){ ADC_ConfigAnalogInput(); while (ADC10CTL1 & BUSY); // WAIT IF BUSY ADC10CTL0 |= ADC10SC; __bis_SR_register(CPUOFF + GIE); // LPM0, ADC10_ISR will force exit adcValue = ADC10MEM; } /* * */ unsigned int ADC_GetValue(void) { return adcValue; for (j=0;j<timer; j++){ BPM[j]=adcValue; if(maior < BPM[i]){ maior = BPM[j]; } if(menor > BPM[j]){ menor = BPM[j]; } } if(contagem>59) contagem =0; else contagem++; } /*****************************************************************/ /********* END *********/ /*****************************************************************/
  8. Hello guys, I'm building a Holter ECG, and would like put one symbol on the LCD. Need to inform the user the level of charge that the battery has. And I would put the battery symbol so that information was given. But I am not getting, someone can give me an example of how I can put a symbol in a particular line of lcd
  9. I loved the eZ430-Chronos. On the Internet many projects made ??on the basis of this development tool. But one thing I did not like is that you need a computer to manage their programs. And without a computer Chronos watch can not control anything. So I bought Anaren CC110L RF BoosterPack (868 Mhz). But this kit does not work with Chronos. I looked a lot of information and code on this forum and on the internet. But always something was wrong, I did not want to rewrite the SimpliciTi protocol. And finally... I did emulation of RF USB dongle. The project uses the unmodified Chronos Control Centre and firmware of sportswatch. But blurobin and wireless firmware update does not work. To me, this part is not important. I used code composer studio. And now I have a working SimpliciTI on msp430g2553 with CC110L. And Run many examples which are in SimpliciTi installation directory. Here is a video how it works. p.s. Thanks to @gwdeveloper, with post SimpiciTI Tutorial for CC2500 p.p.s. Project attached CCS SimpliciTI MSP430 CC110L Anaren busterpack.rar
  10. First of all a question, I just have to change the jumpers J3 connections if I use serial communication right? Hello, I've a project where the msp430g2553 makes an access control by password. The launch pad receives a password from a matrix keypad, and turns on a motor to lock the door, or to lock the door if a button is pressed from inside the "room" The project works fine, but sometimes the dc motor doesn't stop working, and it is happening randomly. can somebody help me? sorry for my terrible english the code and a circuit layout: /*lock door control*//* matrix keypad: S
  11. Hai I'm a complete newbie to Energia and MSP430. I would like to get some help on a problem that I'm facing while interfacing MSP430 launchpad using I2C(it's not "a" problem, rather it is "THE" problem). As mentioned above I'm using a MSP430-g2553 launchpad ver1.5 and currently I'm working on a project that requires interfacing two MSP430s with a Raspberry Pi. The protocol that I've chose is I2C due to it's simple hardware requirement and it's support for many devices at the same time. But then till now interfacing two MSP430s has been a faliture. I tried interfacing two MSPs on two launchpads. I've used the programs given as the example under the Wire menu (both the master sender-slave reciever and the master reciever-slave sender) and also another one that I've used with arduinos. I've tried connecting the two MSPs on the launchpads directly without pullups, with pullups on SCL line, SDA line and also with pullups on both the lines but in vain. And yes I've connected the ground pins of both the launchpads together. Again yes, both the boards with the MSPs work fine with normal i/o programs, pwm programs and serial communication programs(with the computer). Also I tried to connect each MSP to a Raspberry Pi and to a bus pirate(both of them working perfectly with an arduino), with negetive results. Had I missed something that I should've done..? Or am I doing something that is absolute stupid...? There are a couple of jumpers on the launchpad like RX,TX,test etc etc. Should I do something with them(based on my readings what I've understood is that they are used in the case of serial communication and not I2C). If anyone has interfaced MSPs together, please if you can help, it would be great. Anything like hints, tips, suggestions, advice etc etc(negetive or positive), anything, would be highly appriciated. Thanks in advance
  12. nvmahajan

    AIR430Boost With CC2500 module

    Can I use AIR430Boost Library for CC2500 module with MSP430G2553. Or do I need to change it? I tried to run WirelessControl example but nothing happened. I hooked up the module to the same pins as of CC110L. I am using Energia 0101E0012.
  13. Hello everyone ! I started to use Energia to create simple projects using MSP430G2553 LaunchPad and somehow I've succeded until now! Today I encountered a problem as I was trying to read values from a HIH-4000-001 humidity sensor.The sensor is powered with 5V and can return a value ranging from 0.826 V to 3.976V coresponding to 0 - 100 % RH. Because 3.976 V is much more than the MSP430 can manage I used a 1:2 resistive divider to scale down the signal.Moreover the sensor needs an load resistance of minimum 80kohms so the resistors I used for my divider were R1= 36kohms and R2=68kohms.NOW comes the error : Regarding that , the RH level is normally around 50% that would corespond to a value of 1.3 V after the scale-down so in terms of ADC readings that would be around 445 and that is the value I get but, if I take multiple readings 1 sec apart of each other this is what happens : 445 442 443 0 0 0 443 440 ..................... Why 0 ? Can anyone tell me ? If I measure for some period of time the output of the sensor, the multimeter indicates a constant value of 1.3 V so I assume that the ADC is the problem! Please help me solve this issue as I need to create a functional project for my Bachelor Degree ! Thanks in advance !
  14. chicken

    PicassoBot

    Just came across this Kickstarter that features the MSP430G2553 LaunchPad and Energia: PicassoBot, the Portrait Sketching Robot Kit. https://www.kickstarter.com/projects/educatedrobot/picassobot-the-portrait-sketching-robot-kit
  15. codyneslen

    MSPFlash.h only prints

    Hi All, I am using Energia 0101E0012, MSP430G2553, Launchpad G2 Rev 1.4, on a mac. When I run the example MspFlash program, it appears like I erase and write to flash correctly, but when I try to read the "Hello World" written into flash, the only thing that prints out is
  16. ive compiled and uploaded my code (below) and when plug my msp430g2553 in it goes to the programmed angle it should when plugged in, but when i run the exe that is supposed to change its angle it doesnt do anything. the exe is programmed to connect to com4, and the msp430 application uart is set to com4. i know the exe can detect it because it wont run unless it can, it just isnt responding. im am using energia 0101E0010 to compile and upload. any help would be appreciated. here is the code: #include <Servo.h> Servo myServo; const int servoPin = 9; // the pin the servo is connected to int val = 0; // a value accumulated from data on the serial port int angle = 90; // the current angle of the servo void setup() { Serial.begin(9600); myServo.attach(servoPin); myServo.write(angle); // center the servo } void loop() { if ( Serial.available()) { char ch = Serial.read(); if(ch >= '0' && ch <= '9') // is ch a number? val = val * 10 + ch - '0'; // yes, accumulate the value else if(ch == '-') // is this the minus sign? { angle = angle - val; if(angle < 0) angle = 0; myServo.write(angle); // write the new angle val = 0; } else if(ch == '+') // is this the plus sign? { angle = angle + val; if(angle > 180) angle = 180; myServo.write(angle); // write the new angle val = 0; } } }
  17. Hi Everyone, I have been looking for about an hour online and haven't been able to find the answers to these questions. - Can I use floating point with the msp4302553 ? the watch expression on CCS don't seems to like floating point for sure. - Can I use math.h to do trigonometry calculus on the msp430g2553 ? Let me tell you guys what I am trying to do so that it is more clear: I am scanning a signal with an ADC. I would like to do an atan() on the signal and output the signal with an DAC. Right now I can scan the signal and send it to the DAC. This works well. But I can't get the trigonometric conversion to work. Is it possible to do it? And if yes could I get a little help from you guys ? Thanks in advance for your help. Thomas PS: I saw about these Qmath functions that came out recently but couldn't get it to work either http://www.ti.com/tool/MSP430-iqmathLIB?DCMP=ep-mcu-msp-iqmath-en&HQS=ep-mcu-msp-iqmath-pr-sw2-en
  18. eamonb

    Compilation problem

    Setup : Portable PC Windows XP Launchpad MSP-EXP430G2 Rev 1.5 Board Program : Eamples/Basic Blink Compiler : Energia Board : Launchpad w/ MSP430g2553 Serial Port : Port 3 Processor Fitted to Board : M430G2553 I downloaded the Energia compiler today and tried to run it for the first time with the setup above . Compilation ok until I got the following linker error c:/program files/energia/energia-0101e0011/hardware/tools/msp430/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld.exe: cannot open linker script file memory.x: No such file or directory collect2: ld returned 1 exit status It looks like it cannot find the memory.x script file . I found a memory .x file in the following directory - C:\Program Files\Energia\energia-0101E0011\hardware\tools\msp430\msp430\lib\ldscripts\msp430g2553 I compiled it into the same path as the linker - C:\Program Files\Energia\energia-0101E0011\hardware\tools\msp430\msp430\bin I still got the same error . For some reason the linker is not finding the memory.x file it seems Aslo, I think the Com ports are not seeing Launch Pad board. I get the same Com port list when I select Tools --> Serial Port when the LaunchPad board is plugged in and when it is unplugged . Ther are no Com ports on this portable PC normally . Anyone know what I can do to resolve this issue ?
  19. ofer

    MSP430G2553 and ENC28J60

    hi all, I'm trying to use an Ethernet module that i bought called "Ethernet LAN Module for Arduino / microcontrollers with SPI (ENC26J80)". I found a few example for it for different MSP430's but i cant get it to work. Does anyone know how to make it work? witch pins to connect and example code would be great. thanks, Ofer.
  20. halancik

    MSP430G2553 and ADXRS450

    Hello, I try to comunicate with ADXRS450 via SPI. But receive data is always is same. All detail and code: #include "msp430.h" #include <signal.h> #define CS_DIS {P1DIR|=BIT3;P1OUT|=BIT3;} #define CS_ENA {P1DIR|=BIT3;P1OUT&=~BIT3;} void SPI_Write(unsigned char Data_for_write); void SPI_Disable(void); void SPI_Init(void); int SPI_Read(void); void ADXRS450_Init(void); unsigned char Byte; long Measure_byte_first; long Measure_byte_second; long Measure_byte_third; long Measure_byte_four; long Measurement; int main() { WDTCTL = WDTPW + WDTHOLD; CS_DIS; SPI_Init(); __delay_cycles(10000); ADXRS450_Init(); while((UCB0STAT&UCBUSY)); for(; { CS_ENA; while((UCB0STAT&UCBUSY)); SPI_Write(0x20); SPI_Write(0x00); SPI_Write(0x00); SPI_Write(0x00); while((UCB0STAT&UCBUSY)); CS_DIS; __delay_cycles(50000); CS_ENA; while((UCB0STAT&UCBUSY)); SPI_Write(0x00); Measure_byte_first = UCA0RXBUF; SPI_Write(0x00); Measure_byte_second = (UCA0RXBUF<<8); SPI_Write(0x00); Measure_byte_third = (UCA0RXBUF<<8); SPI_Write(0x00); Measure_byte_four = (UCA0RXBUF<<8); while((UCB0STAT&UCBUSY)); CS_DIS; Measurement = (Measure_byte_first | Measure_byte_second | Measure_byte_third | Measure_byte_four); Measurement = (int)((Measurement & 0x3FFFC00) >> 10); Measurement = ((Measurement) / 80); __delay_cycles(50000); } } void SPI_Init(void) { P1SEL = BIT1 + BIT2 + BIT4; P1SEL2 = BIT1 + BIT2 + BIT4; UCA0CTL1 = UCSWRST; UCA0CTL0 |= UCMSB + UCMST + UCSYNC + UCCKPL; // 3-pin, 8-bit SPI master UCA0CTL1 |= UCSSEL_2; // SMCLK UCA0BR0 |= 0x02; // /2 UCA0BR1 = 0; UCA0MCTL = 0; // No modulation UCA0CTL1 &= ~UCSWRST; // **Initialize USCI state machine** } void SPI_Write(unsigned char Byte) { while (!(IFG2 & UCA0TXIFG)); UCA0TXBUF = Byte; } void SPI_Disable(void) { UCB0CTL1 |= UCSWRST; } int SPI_Read(void) { while (!(IFG2 & UCA0RXIFG)); UCA0TXBUF = 0x00; return UCA0RXBUF; } void ADXRS450_Init(void) { __delay_cycles(150000); CS_ENA; SPI_Write(0x20); SPI_Write(0x00); SPI_Write(0x00); SPI_Write(0x03); CS_DIS; __delay_cycles(150000); CS_ENA; SPI_Write(0x20); SPI_Write(0x00); SPI_Write(0x00); SPI_Write(0x00); CS_DIS; __delay_cycles(250000); CS_ENA; SPI_Write(0x20); SPI_Write(0x00); SPI_Write(0x00); SPI_Write(0x00); CS_DIS; __delay_cycles(250000); CS_ENA; SPI_Write(0x20); SPI_Write(0x00); SPI_Write(0x00); SPI_Write(0x00); CS_DIS; __delay_cycles(250000); }
  21. serbay

    I2C_Scan_Problem

    Hello everyone.I am trying to learn I2C device adress of my MPU6050 sensor by using Ardunio I2C scan code in Energia.But although the code doesn't give me any error,on serial monitor I see all registers from 0x01 to 0x7E.I should see one register but I see all register on serial monitor like below... Scanning... I2C device found at address 0x01 ! .... .... .... I2C device found at address 0x7D ! I2C device found at address 0x7E ! done The code that I have used is http://playground.arduino.cc/Main/I2cScanner. I am sure about connections between my sensor and my msp430g2553.I used 4.7k pull up resistors with SDA and SCL pins. What do you think about my problem ? Thanks in advance.
  22. 14Ohm

    CC110L example code error

    I am new to launchpad and I've been trying to use the booster pack CC110L with no results. I am using the follwing: LaunchPad MSP430G2 (1.5) MSP430G2553 Anaren CC110L BoosterPack Energia 11 Windows 7 64-bit I am trying to run the example WirelessControl but i keep getting a huge error wihich at the end says: \energia0101E0011windows\energia0101E0011\hardware\msp430\libraries\AIR430BoostEuropeETSI\utility\Platform.cpp:114:28: error: 'SPIMISO_SET_MODE' was not declared in this scope Any ideas of what the problem could be??
  23. Hellow! First, sorry for my english. Second, I have one question. Can I set the baudrate in my MSP430G2553 more than 9600? In Arduino I can write the command "Serial.begin(115200)", but in Energia it doesn't work Can you tell me what I do wrong? Thanks!
  24. I couldn't find an example of someone using the Raspberry Pi as a receiving hub for sensor nodes that use the spirilis nRF24L01+ library and a MSP430G2553. I thought I would give it a shot since I think this would be beneficial to the community. I found a C library for the Raspberry Pi and nRF24L01+: https://github.com/stanleyseow/RF24. Class reference is here: http://maniacbug.github.io/RF24/classRF24.html There is also a newer python library but I haven
  25. Hi all, I would like to interface an I2C ADC (PCF8591) for one of my application. I have tried a lot with the sample programs. But still my launchpad is not even generating the clock pulse. Can anybody help me.
×