Jump to content
43oh

lalo630

Members
  • Content Count

    24
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by lalo630

  1. I have the MSP-EXP430G2 board and it works fine with energia.

     

    I used the instructions I found at https://e2e.ti.com/support/microcontrollers/msp430/f/166/t/539487

     

    "I use the latest version of Energia, i.e Energia 18. If you follow this step exactly it will work as usual."

    1, copy <energia directory>\hardware\tools\DSLite\DebugServer\drivers\MSP430.dll to <energia directory>\hardware\tools\msp430\bin\
    2. edit <energia directory>\hardware\energia\msp430\boards.txt an change the 2 occurrences of rf2500 with tilib
    3. restart energia and you should be able to upload to the MSP-EXP430G2 with MSP430G2553.

     

    Your boards.txt file from step 2 should look exactly like this after you save it:

    # See: http://code.google.com/p/arduino/wiki/Platforms
    
    menu.cpu=Processor
    
    ##############################################################
    
    MSP-EXP430F5529LP.vid.0=0x2341
    MSP-EXP430F5529LP.pid.0=0x0c9f
    
    MSP-EXP430F5529LP.name=MSP-EXP430F5529LP
    
    MSP-EXP430F5529LP.build.mcu=msp430f5529
    MSP-EXP430F5529LP.build.f_cpu=16000000L
    MSP-EXP430F5529LP.build.core=msp430
    MSP-EXP430F5529LP.build.variant=MSP-EXP430F5529LP
    MSP-EXP430F5529LP.build.board=MSP-EXP430F5529LP
    
    MSP-EXP430F5529LP.upload.tool=dslite
    MSP-EXP430F5529LP.upload.protocol=dslite
    MSP-EXP430F5529LP.upload.maximum_size=131072
    MSP-EXP430F5529LP.upload.maximum_data_size=8192
    
    #MSP-EXP430FR4133
    
    MSP-EXP430FR4133LP.vid.0=0x2341
    MSP-EXP430FR4133LP.pid.0=0x0c9f
    
    MSP-EXP430FR4133LP.name=MSP-EXP430FR4133LP
    
    MSP-EXP430FR4133LP.build.mcu=msp430fr4133
    MSP-EXP430FR4133LP.build.f_cpu=8000000L
    MSP-EXP430FR4133LP.build.core=msp430
    MSP-EXP430FR4133LP.build.variant=MSP-EXP430FR4133LP
    MSP-EXP430FR4133LP.build.board=MSP-EXP430FR4133LP
    
    MSP-EXP430FR4133LP.upload.tool=dslite
    MSP-EXP430FR4133LP.upload.protocol=dslite
    MSP-EXP430FR4133LP.upload.maximum_size=15360
    MSP-EXP430FR4133LP.upload.maximum_data_size=2048
    
    #MSP-EXP430FR5969
    
    MSP-EXP430FR5969LP.vid.0=0x2341
    MSP-EXP430FR5969LP.pid.0=0x0c9f
    
    MSP-EXP430FR5969LP.name=MSP-EXP430FR5969LP
    
    MSP-EXP430FR5969LP.build.mcu=msp430fr5969
    MSP-EXP430FR5969LP.build.f_cpu=8000000L
    MSP-EXP430FR5969LP.build.core=msp430
    MSP-EXP430FR5969LP.build.variant=MSP-EXP430FR5969LP
    MSP-EXP430FR5969LP.build.board=MSP-EXP430FR5969LP
    
    MSP-EXP430FR5969LP.upload.tool=dslite
    MSP-EXP430FR5969LP.upload.protocol=dslite
    MSP-EXP430FR5969LP.upload.maximum_size=65536
    MSP-EXP430FR5969LP.upload.maximum_data_size=2048
    
    #MSP-EXP430FR5969
    
    MSP-EXP430FR6989LP.vid.0=0x2341
    MSP-EXP430FR6989LP.pid.0=0x0c9f
    
    MSP-EXP430FR6989LP.name=MSP-EXP430FR6989LP
    
    MSP-EXP430FR6989LP.build.mcu=msp430fr6989
    MSP-EXP430FR6989LP.build.f_cpu=8000000L
    MSP-EXP430FR6989LP.build.core=msp430
    MSP-EXP430FR6989LP.build.variant=MSP-EXP430FR6989LP
    MSP-EXP430FR6989LP.build.board=MSP-EXP430FR6989LP
    
    MSP-EXP430FR6989LP.upload.tool=dslite
    MSP-EXP430FR6989LP.upload.protocol=dslite
    MSP-EXP430FR6989LP.upload.maximum_size=130048
    MSP-EXP430FR6989LP.upload.maximum_data_size=2048
    
    #MSP-EXP430G2553
    
    MSP-EXP430G2553LP.vid.0=0x2341
    MSP-EXP430G2553LP.pid.0=0x0c9f
    
    MSP-EXP430G2553LP.name=MSP-EXP430G2553LP
    
    MSP-EXP430G2553LP.build.mcu=msp430g2553
    MSP-EXP430G2553LP.build.f_cpu=16000000L
    MSP-EXP430G2553LP.build.core=msp430
    MSP-EXP430G2553LP.build.variant=MSP-EXP430G2553LP
    MSP-EXP430G2553LP.build.board=MSP-EXP430G2553LP
    
    MSP-EXP430G2553LP.upload.tool=mspdebug
    MSP-EXP430G2553LP.upload.protocol=tilib
    MSP-EXP430G2553LP.upload.maximum_size=16384
    MSP-EXP430G2553LP.upload.maximum_data_size=512
    
    #MSP-EXP430FR5739
    
    MSP-EXP430FR5739LP.vid.0=0x2341
    MSP-EXP430FR5739LP.pid.0=0x0c9f
    
    MSP-EXP430FR5739LP.name=MSP-EXP430FR5739LP
    
    MSP-EXP430FR5739LP.build.mcu=msp430fr5739
    MSP-EXP430FR5739LP.build.f_cpu=16000000L
    MSP-EXP430FR5739LP.build.core=msp430
    MSP-EXP430FR5739LP.build.variant=MSP-EXP430FR5739LP
    MSP-EXP430FR5739LP.build.board=MSP-EXP430FR5739LP
    
    MSP-EXP430FR5739LP.upload.tool=mspdebug
    MSP-EXP430FR5739LP.upload.protocol=tilib
    MSP-EXP430FR5739LP.upload.maximum_size=16384
    MSP-EXP430FR5739LP.upload.maximum_data_size=512
    
    
    

    T

  2. I modified your code to blink the red led and to print some stuff out on the serial monitor. I hope this helps.

    /* Blink without Delay
    
      Turns on and off a light emitting diode(LED) connected to a digital  
      pin, without using the delay() function.  This means that other code
      can run at the same time without being interrupted by the LED code.
    
      In MSP430 Launchpad, there is already an LED on the board that's 
      attached to pin 14, so no hardware is needed for this example. 
    
      created 2005
      by David A. Mellis
      modified 8 Feb 2010
      by Paul Stoffregen
      modified 27 Apr 2012
      by Robert Wessels
    */
    
    // Pin 14 has an LED connected on MSP430 boards, has a name 'GREEN_LED' in the code.
    
    // constants won't change. Used here to 
    // set pin numbers:
    const int ledPin =  78;      // the number of the LED pin
    
    // Variables will change:
    int ledState = LOW;             // ledState used to set the LED
    long previousMillis = 0;        // will store last time LED was updated
    
    // the follow variables is a long because the time, measured in miliseconds, will quickly become a bigger 
    // number than can be stored in an int.
    long interval = 1000;           // interval at which to blink (milliseconds)
    
    void setup() {
      Serial.begin(9600); //initializes the serial monitor
      
      // set the digital pin as output:
      pinMode(ledPin, OUTPUT);      
    }
    
    void loop()
    {
      // here is where you'd put code that needs to be running all the time.
     // check to see if it's time to blink the LED; that is, if the 
      // difference between the current time and last time you blinked 
      // the LED is bigger than the interval at which you want to 
      // blink the LED.
      unsigned long currentMillis = millis();
    
      if(currentMillis - previousMillis > interval) {
        // save the last time you blinked the LED 
        previousMillis = currentMillis;
        Serial.print("CurrentMillis = ");
         Serial.println(currentMillis);
    
        // if the LED is off turn it on and vice-versa:
        if (ledState == LOW){
          ledState = HIGH;
          Serial.println("LED is on");
      }
        else
          ledState = LOW;
          Serial.println("LED is off");
    
        // set the LED with the ledState of the variable:
        digitalWrite(ledPin, ledState);
      }
    }
    
  3. I just verified this code working on my msp432 using the following code:

    /*
      Blink
      The basic Energia example.
      Turns on an LED on for one second, then off for one second, repeatedly.
      Change the LED define to blink other LEDs.
      
      Hardware Required:
      * LaunchPad with an LED
      
      This example code is in the public domain.
    */
    
    // most launchpads have a red LED
    const int led = 78;
    
    //see pins_energia.h for more LED definitions
    //#define LED GREEN_LED
      
    // the setup routine runs once when you press reset:
    void setup() {                
      // initialize the digital pin as an output.
      pinMode(led, OUTPUT);     
    }
    
    // the loop routine runs over and over again forever:
    void loop() {
      digitalWrite(led, HIGH);   // turn the LED on (HIGH is the voltage level)
      delay(1000);               // wait for a second
      digitalWrite(led, LOW);    // turn the LED off by making the voltage LOW
      delay(1000);               // wait for a second
    }
    
  4. We are using wheels off roller blades. They spin fine when pushed but do not move freely. I think we might have to put smaller PVC piping in between to cover the gaps. We are not sure yet because we are waiting on some parts to get it moving.

     

    I will definitely be posting more information and pictures later as the project continues.

  5. Hello Everyone,

     

    I am still a student and am currently taking a technical writing class. I am supposed to interview someone who currently works in the field I am going to school for. The problem is that I don not know any engineers.

     

    Is there an engineer who is willing participate in this assignment? You would have to provide Your contact information, some samples of your writing, a picture of yourself and or office, and answer some of the following questions.

     

     

     

    How many engineering positions have you had?

    Do you enjoy writing?

    What tasks do you do that involve writing in your job position?

    Do you use the writing formats/styles that you learned in school?

    How often do you encounter a disorganized email and/or document?

    Does reading an unformatted/disorganized document take time away from other job tasks?

    Have you ever had to second guess what a person meant when you read their writing?

    Did you ever have to ask a person what they meant?

    Do you proofread your writing?

    Have writing styles changed in the engineering field since you have started?

     

     

    The information can be sent here or through a PM. This would really help me for my assignment and future career.

    Thank you and I appreciate any help I receive.

     

     

     

    Best Regards,

    Abelardo

     

     

     

  6. How do I write the code to transmit and receive the temperature using a rf module?

     

    I want to transmit the temperature wireless from the tm4c123g to the msp432. 

     

    Working:

     

    • The TM4C123G can display the temperature correctly on the Energia serial monitor. 
    • The MSP432 is connected to an LCD and that is also working.
    • The TM4C123G has the rf transmitter connected to tx(3) pin 34
    • The MSP432 has the rf receiver connected to rx pin 3

     

    Problem:

     

    • I do not know how to program the RF module to work.
  7. Hello,

     

    I want to make a wireless thermometer using two microcontrollers.

     

    How do I write the code in Energia to transmit and receive a variable using a 433 Mhz RF module? 

     

     

    Transmitter Setup:

    I have a TM4C123G connected to a RF transmitter using TX(3) pin 34 on the MCU.

    The TM4C123G is also connected to a LM34DZ Temp sensor.

     

     

     I need help to modify this working code to send the temperature variable using tx(3) pin 34

    /*TM4C123G*/
    
    //initializes/defines the output pin of the LM34 temperature sensor
    int outputpin= A11; // (pin # 2), use A11 analog input
     
    //---------------------------------------------------------------------
     
    //this sets the ground pin to LOW and the input voltage pin to high
    void setup()
    {
    Serial.begin(9600);  
    Serial3.begin(9600);
    //----------------------------------------------------------------------
    }
    void loop()  {
    int rawvoltage= analogRead(outputpin);
    float millivolts= (rawvoltage/4095.0) * 3300;
    float fahrenheit= millivolts/10;
     
    Serial3.write(fahrenheit); //transmits temperature to receiver
    Serial.println(fahrenheit);//displays temperatur on Serial monitor
    delay(200); 
    }
    

    Receiver Setup:

     

    I also have a MSP432 connected to a RF receiver using rx pin 3 on the MCU.

    The MSP432 is connected to a 16x2 LCD.

     

     

     I need help to modify this working code to receive the temperature variable using rx pin 3 and display to the lcd.

    /*Receiver MSP432*/
    #include <LiquidCrystal_I2C.h>
    #include <Wire.h>
    #define rfReceivePin 3 //RF Receiver pin = pin 3
    unsigned int data = 0; // variable used to store received data
    
    byte address = 0x3F; // LCD I2C address
    int columns = 16; // number of columns on LCD
    int rows = 2; // number of rows on LCD
    LiquidCrystal_I2C lcd(address, columns, rows);
    
    //-----------------------------------------------------------------
    void setup()
    {
    lcd.init(); // initialize the lcd 
    lcd.backlight();
    
    }
    //-----------------------------------------------------------------
    void loop()
    { 
    lcd.clear();
    lcd.setCursor(0,0);
    data=analogRead(rfReceivePin); //listen for data on pin 3
    lcd.print("Temperature");
    
    lcd.setCursor(0,1);
    lcd.print(data);
    delay(500); 
    }
    
  8. Hello,

    I am currently trying to figure out how to use a 433 MHZ RF Module with the Energia IDE.

     

    The TM4C123G is connected with the Transmitter. Data is connected to TX(3) pin 34.

    The MSP432 is connected to the Receiver.

    I am trying to accomplish a program that sends the temperature from the TM4C123G to the MSP432. 

    The TM4C123G is using a LM34DZ Temp sensor. The MSP432 is connected to a 16x2 LCD.

    Her is the codes I have so far:

     

    /*Transmitter (TM4C123G)*/

    #include <string.h>
    #include <SPI.h>

    const uint8_t txaddr[] = { 0xF0,0xF0,0xF0,0xF0,0xE1 };
    boolean flag = 0;


    void dump_radio_status_to_serialport(uint8_t);

    //initializes/defines the output pin of the LM34 temperature sensor
    int outputpin= A11; // (pin # 2), use A11 analog input

    //--------------------------------------------------------------------------------------

    void setup()
    {

    Serial.begin(9600);

    SPI.begin();
    SPI.setDataMode(SPI_MODE0);
    SPI.setBitOrder(1); // MSB-first

    //----------------------------------------------------------------------------------

    }
    void loop() {

    int rawvoltage= analogRead(outputpin);
    float millivolts= (rawvoltage/4095.0) * 3300;
    float fahrenheit= millivolts/10;

    Serial3.write(fahrenheit); //send temperature varuable through tx3
    delay(200);

    }

     

    /*Receiver*/

    #include <LiquidCrystal_I2C.h>
    #include <Wire.h>

    #define rfReceivePin 3 //RF Receiver pin = pin 3
    unsigned int data = 0; // variable used to store received data


    byte address = 0x3F; // LCD I2C address
    int columns = 16; // number of columns on LCD
    int rows = 2; // number of rows on LCD
    LiquidCrystal_I2C lcd(address, columns, rows);


    //-----------------------------------------------------------------
    void setup()
    {
    lcd.init(); // initialize the lcd 
    lcd.backlight();
    lcd.createChar(0, rocket); // Create Character 0
    lcd.createChar(1, liftOff); // Create Character 1
    }
    //-----------------------------------------------------------------
    void loop()

    lcd.clear();
    lcd.setCursor(0,0);
    data=analogRead(rfReceivePin); //listen for data on pin 3
    lcd.print("Temperature");


    lcd.setCursor(0,1);
    lcd.print(data);
    delay(500); 
    }

  9. Hello Everyone,

     

    My name is Lalo and I am a Computer Engineering Student. I enjoy building projects and have been using TI MCU's for about two months. I own The TM4C123G, CC3200, MSP432, and a MKII Boosterpack. 

     

    I am currently trying to figure out how to print variables on the MKII boosterpack LCD. Any help is much appreciated.

     

     

×
×
  • Create New...