Search the Community

Showing results for tags 'ENERGIA'.



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

  • Community Calendar

Found 386 results

  1. Hi, I am using CC3200 LaunchXL for configuring LORA semtech 1272 over SPI Driver. I searched a lot example or reference for cc3200 for transmitting message using SPI but unable to get for Energia IDE. I have code for Arduino Lora implementation but unable to run it on Energia. Kindly help me as soon as possible Thanks and regards Rohit
  2. I have no idea where I would find the source code to version 1.6.10E18 of Energia. I would like to fix issues that I've previously reported and seem to be "sort of fixed" in the msp430-lg-core but aren't. Could you please point me at the source or release tag? Also, do you have a roadmap for the future development of Energia? Its progress seems to have stalled. -rick
  3. I'm attaching a link to github with Energia code examples for various sensors. I started this as a place to put examples for students in a course I was helping to develop for middle and high school level students using the MSP430F5529. Unfortunately the course was not held but I'm putting them out there in the hope they might help someone. Where the code has been tested with other LaunchPads I've noted it. Here it is: https://github.com/fmilburn3?tab=repositories You won't find anything sophisticated but many are at least somewhat unique in that I couldn't find an example for that sensor tailored specifically for the F5529, or I wanted to better document it for beginners. Essentially all are variants of work done by others, including work on 43oh, and I hope I've recognized the contribution in the code. There is a wiki associated with some that has the schematic and photographs. There is some other example code that is almost complete - e.g. using small DC motors and servos and I might add them. Here is a list of sensors and devices currently out there: CNY70 - used as a proximity switch CNY70 - used as a tachometer MCP41010 - digital pot HC-SR04 - distance sensor 3 watt high intensity LED MAX4466 -sound level I2C LCD (4x20) and (2x16) HC-SR501 - PIR movement detection SW-180xxP - vibration sensor Joystick PFatFs - compiles and runs on the F5529 Hall effect rainfall sensor TMP36 - temperature Sharp GPf1S53VJ000F - photo interrupter Using low power modes (LPM) in Energia TCS3200 Color Sensor using MSP432 *** added 8/8/15 DS1307 Real Time Clock (RTC) Module *** added 8/9/15 INA125P Instrumentation Amplifier *** added 10/9/15 MCP3008 ADC *** added 10/12/15 TLC5615 DAC *** added 11/30/15 dAISy MarineTraffic shore station w/ CC3200 ** added 12/16/15 AD9850 Frequency Generator ** added 1/20/16 FFT ** added 1/20/16 Rotary encoder ** added 1/23/16 W5500 Ethernet ** added 3/25/16 MSP430G2955 pins_energia.h ** added 3/25/16 DriverLib examples for F5529 ** added 8/16 Infrared Transmission ** added 12/16 WS2812 LEDs using SPI ** added 12/16 Battery measurement ** added 1/17 Finite State Machine - alarm system ** added 2/6/17 Using RTC module with Energia - F5529 ** added 2/24/17
  4. Hello, I am hoping to convert Example 09 of the Energia examples (thermistor temperature with the MSP430F5529) to entirely C language to use in Code Composer Studio - I've already used the import function to use this example in CCS and it works fine with the code given, but I'd like to re-work the example to only use C functions like main().c. Is there a simple way to do this? I'm still learning C and need the experience! Example 09 is attached for reference.EXAMPLE09_Temperature.ino
  5. I am working on the Tiva C Launchpad with Energia. The BoosterPack I am using is the Kentec graphic display with SPI (BOOSTXL-K350VG-S1).As discussed earlier in the forum, I have removed resistor R10 on the Launchpad. My Energia version is 1.6.10E18. With the inbuilt library for Kentec, the graphics and text functions are working fine. But the Touch function, getTouch fails to compile, throwing up the error 'No matching function for call to 'Screen_K35_SPI::getTouch(uint16_t*,uint16_t*,uint16_t*). Can any one help out?
  6. Via Hackster.io MultiTasking ultrasonic and color sensor with Texas Instruments MSP-EXP432 and Energia.
  7. Does anyone have any code examples, experience, or can point me to the right direction when it comes to reading/writing to the internal flash that comes with these boards in Energia? I'm wanting to store up to a maximum of a days worth of non-volatile 3x32 bit 5 minute samples (3,456 bytes), before sending as packets when the Rx is in range. Thanks in advance!
  8. I am interfacing LM35 and SIM900 using MSP430F5529 board . For this purpose i am using Energia software . As we all know arduino code is compatible in Energia . Hence , I have used the same code that i used in Arduino Uno . The code works fine and i get my thingspeak channel updated with every HTTP request however , when i use Energia , it doesnt show any error , neither does it show/update my thingspeak channel . I had used Pin 7 and 8 for receiving and transmitting in Arduino . In Msp430 , I have used Pin P3.4 and P3.3 for receiving and transmitting . My Energia code is as follows - #include <SoftwareSerial.h> #include <String.h> SoftwareSerial mySerial(P3_4, P3_3); boolean pin2=LOW,pin3=LOW,pin4=LOW,pin5=LOW,pin6=LOW; float temp=0.0; void setup() { mySerial.begin(9600); // the GPRS baud rate Serial.begin(9600); // the GPRS baud rate pinMode(2,INPUT); pinMode(3,INPUT); pinMode(4,INPUT); pinMode(5,INPUT); pinMode(6,INPUT); delay(1000); } void loop() { temp=analogRead(A0); temp=temp*0.4887; delay(2); Send2Pachube(); if (mySerial.available()) Serial.write(mySerial.read()); } void Send2Pachube() { mySerial.println("AT"); delay(1000); mySerial.println("AT+CPIN?"); delay(1000); mySerial.println("AT+CREG?"); delay(1000); mySerial.println("AT+CGATT?"); delay(1000); mySerial.println("AT+CIPSHUT"); delay(1000); mySerial.println("AT+CIPSTATUS"); delay(2000); mySerial.println("AT+CIPMUX=0"); delay(2000); ShowSerialData(); mySerial.println("AT+CSTT=\"aircelgprs\"");//start task and setting the APN, delay(1000); ShowSerialData(); mySerial.println("AT+CIICR");//bring up wireless connection delay(3000); ShowSerialData(); mySerial.println("AT+CIFSR");//get local IP adress delay(2000); ShowSerialData(); mySerial.println("AT+CIPSPRT=0"); delay(3000); ShowSerialData(); mySerial.println("AT+CIPSTART=\"TCP\",\"api.thingspeak.com\",\"80\"");//start up the connection delay(6000); ShowSerialData(); mySerial.println("AT+CIPSEND");//begin send data to remote server delay(4000); ShowSerialData(); String str="GET https://api.thingspeak.com/update?api_key=--------C&field1=" + String(temp); mySerial.println(str);//begin send data to remote server delay(4000); ShowSerialData(); mySerial.println((char)26);//sending delay(5000);//waitting for reply, important! the time is base on the condition of internet mySerial.println(); ShowSerialData(); mySerial.println("AT+CIPSHUT");//close the connection delay(100); ShowSerialData(); } void ShowSerialData() { while(mySerial.available()!=0) Serial.write(mySerial.read()); }
  9. Hi all, I'm currently doing a project consisting of msp 432 launchpad along with cc3100 BOOST. I need help in powering the msp and boosterpack from an external supply.I have a a 5v and 3.3 v regulator with me. Please help.
  10. First, I'd like to say thanks for the implementation of EasyLink for the cc1310/cc1350 in Energia 18. Last year the community was invaluable in helping me develop some MSP430FR5949/BME280 dataloggers for my dissertation research. I'm working on a new version based off the cc1310, because well, transmitting my data wirelessly sure beats having to recover the dataloggers. I have a couple questions that I have been unable to answer - 1. The EMT documentation suggests that if you use delay, during compiling this is converted to a low power mode. Is this only for the MSP430/432 variants? The main reason I ask is because sleep(), sleepSeconds(), etc... do not appear to be available for the cc1310/cc1350. Low power modes would be essential for this project. 2. As general advice, any opinions if I would be better off using Sensor Controller Studio, TI-RTOS, CCS for the development of this project and then simplify and port functionality back to Energia? As always, thanks for the help and insight.
  11. Hi, I'm new to the MSP432 and Energia and am looking to connect an Adafruit 2.2'' tft. Ive read through the forums here and have seen a number of applications that have been based in the MSP430. Has anyone done this or can anyone advise me on an approach to take? thanks
  12. Okay, I have something, but I would like to know if these data are correct, because 18 degrees seem exaggerated to me in a room where the maximum is 13 degrees. The voltage does not know if it is good or not. another question. How could you measure the temperature with the TMP006 of the CC2530 module and send it to the coordinator? for more information: please see https://github.com/mweintra/ZigBee/issues/1. I have put my doubts there, but mweintra told me to put them in this forum. https://cloud.githubusercontent.com/assets/23233776/22747556/a8087518-ee27-11e6-9fe7-a0444c27c408.png any help please ? med.
  13. I'm trying to test the clock functionality available on TIRTOS for the CC1310 SOC from Energia but I'm finding difficulties to make the clock trigger periodically (every 5 seconds in the example). This is what I'm doing so far: #include <ti/sysbios/knl/Clock.h> #include <ti/sysbios/BIOS.h> Clock_Params clkParams; Clock_Struct clkStruct; Clock_Handle clkHandle; Clock_Params_init(&clkParams); clkParams.period = 5000000/Clock_tickPeriod; clkParams.startFlag = FALSE; /* Construct a periodic Clock Instance */ Clock_construct(&clkStruct, (Clock_FuncPtr)clkFxn, 5000000/Clock_tickPeriod, &clkParams); clkHandle = Clock_handle(&clkStruct); Clock_setTimeout(clkHandle, 5000000 / Clock_tickPeriod); Clock_start(clkHandle); I wonder whether Energia is overwriting Clock in some way. Thanks for your ideas, Daniel.
  14. Hello, I have recently bought cc3100 booster pack to use with msp432 and energia. I connected the boosterpack with the launchpad as shown in the attached pic below. I tried to run the sketch "SimpleWebServerWiFi" , as shown in the tutorial page of energia. I didn't press any switches on the boosterpack and simply connected it with the main board and powered it on and uploaded the example sketch after changing the ssid and password.But the serial monitor outputs nothing and the "http://192.168.1.64/L " page does not load . Please help.
  15. The CC1310 board option in Energia assumes that I am using the CC1310 Launchpad. The launchpad uses the CC1310F128RGZ, but I actually am using the CC1310F64RHBT. This means that the board is assuming it has more flash and RAM than it actually does. I want to edit the boards.txt file to match with the specs of my chip but I cannot find the correct numbers for my chip. There is also an issue with the pin mapping, because the F128RGZ has 48 pins while the F64RHBT has 32. Here the boards.txt for the CC1310 launchpad that needs to be adapted for the CC1310F64RHBT: menu.cpu=Processor LAUNCHXL_CC1310.vid.0=0x2341 LAUNCHXL_CC1310.pid.0=0x0c9f LAUNCHXL_CC1310.name=LaunchPad w/ cc13xx EMT (48MHz) LAUNCHXL_CC1310.upload.maximum_size=16384 LAUNCHXL_CC1310.upload.maximum_ram_size=2560 LAUNCHXL_CC1310.build.mcu=cortex-m3 LAUNCHXL_CC1310.build.f_cpu=48000000L LAUNCHXL_CC1310.build.core=cc13xx LAUNCHXL_CC1310.build.variant=LAUNCHXL_CC1310 LAUNCHXL_CC1310.build.board=LAUNCHXL_CC1310 LAUNCHXL_CC1310.build.ldscript=ti/runtime/wiring/cc13xx/linker.cmd LAUNCHXL_CC1310.upload.tool=dslite LAUNCHXL_CC1310.upload.protocol=dslite LAUNCHXL_CC1310.upload.maximum_size=131072 LAUNCHXL_CC1310.upload.maximum_data_size=8192 If anyone could help me adapt my boards.txt file or let me know where I can get these numbers, let me know. I have tried inputting 64kb for flash and the other appropriate values, but it didn't work because I assume the values have to line up perfectly with the chip's memory sectors and the memory map. Thanks, Cameron
  16. Good Morning, This may be the wrong place to ask this question. If so, please let me know where to ask it.. I've been a Windows programmer for 20 years. I've pretty much stuck to User Interface development the whole time. I have been using .net and C# for the past 10 years so I am VERY SPOILED when it comes to letting the language do the grunt work and I finesse the code. I now find myself working on a personal project which requires me to program the MSP430G2553 controller. I started out by using Energia (which if you don't know, is a fork off of Arduino) The advantage of it is you can do a lot with very little code and without needing to know all the guts of the MSP430G2553. The disadvantages are that sometimes it doesn't work right. Sometimes it doesn't give you the control you need, sometimes it's hard to figure out if Energia isn't working, or if your code isn't working... Anyway, I've spent hundreds of hours getting parts of my program to work. I have been trying to get away with not having to learn how to write firmware and have to deal directly with the processor. However, I'm starting to think that I need to bite the bullet and take the time to overcome my learning curve and dive in headfirst to firmware development and the paradigm shift that comes with it. The program I am using needs to have control over changing into and out of the various Low Power Modes on the MSP430. I need to listen for interrupts. I need to use I2C to communicate with various devices that are connected to the MSP430. I need to monitor Power Level/Consumption from time to time. So, basically, I have the following questions: 1. Can Energia robustly and without errors do the above things? 2. Am I wasting my time getting all of the above accomplished using Energia? 3. Should I be using Code Composer Studio? 4. Having NEVER developed ANY controller level code outside of Arduino and Energia, what kind of Learning Curve am I looking at to accomplish the above things? 5. Where is the best place to start learning this? 6. Where is the best place to look for answers to MSP430 development questions? Thank you all in advance for any assistance and advice you might have.
  17. Has anyone been able to find a library or had any success in making their own library for the HX711 for use with Energia. I know there is a link on Github with the header and source files for Arduino but they do not work for me. The link I'm referring to is https://github.com/bogde/HX711 Thanks for any help!
  18. I recently became interested in Finite State Machines and ended up writing a tutorial which has been posted on the 43oh blog: http://43oh.com/2017/02/how-to-implement-finite-state-machines-using-energia/ The example uses Energia but adapting it to C / C++ for use with Code Composer Studio or other IDEs would be simple. While conceptually easy, working through the details and applying the concepts in a more structured manner were instructive for me. The tutorial is just an introduction but there are additional references at the bottom. If you are aware of other good resources feel free to post them below.
  19. I am happy to announce that release 0101E0013 just went up on http://energia.nu. This release adds support for the awesome CC3200 WiFi LaunchPad and CC3100 BoosterPack for MSP430 and TivaC. I want to thank everybody for their support and contributions. Energia would not have been possible without such an awesome community! Details of the release can be found on http://energia.nu
  20. Hi everybody, >>> UPDATE - Made "proper" Energia Library out of it. Now with proper named methods/class members<<< >>> UPDATE 2 - Added "keywords.txt" file for syntax highlighting, added comments to "Mfrc522.cpp" file explaining methods (thanks to Grant) - Added example to read cards contents of block 1 <<< >>> UPDATE 3 - You need to apply the USCI SPI fix proposed by Spirilis (post #22) in the following thread: http://forum.43oh.com/topic/3237-energia-library-nordic-nrf24l01-library/page-2 , otherwise the card reader won't work! <<<< I wanted to share my results with the MF RC522 RFID reader. I found an article from Grant Gibson (http://www.grantgibson.co.uk/blog/2012/04/how-to-get-started-with-the-mifare-mf522-an-and-arduino/#comments) where he used a cheap reader from eBay to read Mifare cards. (http://www.ebay.com/itm/Mifare-RC522-RFID-13-56Mhz-Module-SPI-Interface-with-a-IC-Card-/370690680474?pt=LH_DefaultDomain_0&hash=item564ee2e69a) The command set and technical aspects of the MFRC522 chip can be found in the datasheet: http://www.nxp.com/documents/data_sheet/MFRC522.pdf I have ported the example to Energia. Very simple by removing all Chinese comments and replacing uchar with unsigned chars. After these changes it works like a charm. Just connect the following lines: MOSI LP -> Pin 3 of the module MISO LP -> Pin 4 of the module PIn 1.3 LP -> Pin 1 of the module (SS) Pin 2.2 LP -> Pin 7 of the module (RST) Pin 1.5 LP -> Pin 2 of the module (SCK) GND LP -> Pin 6 of the module VCC LP -> Pin 8 of the module Pin 5 is not connected. Included is the sketch (Mfrc522.zip) I used. Now onto opening doors and paying electronically! Kind regards, Eelco
  21. Hi, I am currently working on a code in Energia that will allow me to upload and send a binary file wirelessly from a client site to the CC3200. So far, the code has successfully accomplished the following: -the board establishes a Wi-Fi network -commands from a laptop can interact with the board (the Energia Simple Wi-Fi Server example (LED ON/OFF) code was tested to ensure this was working) -a 9 byte binary file is sent through Wi-Fi to the board's volatile memory, saved from volatile memory into an on-baord flash memory file, and confirmed by sending it back to the laptop through a serial connection The code is eventually supposed to receive a larger binary file (we hope around 500 KB) that will represent points on a sinusoidal curve. This file will then be sent to the Audio Booster Pack board to play the audio file. I created a flash file which was opened, and written to through a buffer array containing the binary file contents. This method was successful for a 9 byte file, but I learned that a larger 500 KB file cannot be stored in a buffer array so easily. I think this is because of a lack of RAM space on the board. How can I implement a code in Energia in order save this larger binary file to the flash memory? Is the buffer array approach a good method? Latency isn't really an issue, as long as we can fit the whole file on the board, and then play it after. Thanks, any support is greatly appreciated!
  22. Hello, We are planning to do work on CC3200MOD LaunchpadXL. So, CC3200 GPIO/UART/ADC Energia IDE based header files can compatible in CC3200MOD? I also some confusion regarding Energia IDE based header file.Please mention below description. If you see pin_energia.h file in one array initialize for CC3200 LaunchXL like this, const uint16_t digital_pin_to_pin_num[] = { NOT_A_PIN, /* dummy */ NOT_A_PIN, /* 1 - 3.3V */ PIN_58, /* 2 - GPIO_03 */ <- pins_energia.h (CC3200) *Note : In CC3200MOD PIN_58 = GND PIN_04, /* 3 - GPIO_13 */ PIN_03, /* 4 - GPIO_12 */ PIN_61, /* 5 - GPIO_06 */ PIN_59, /* 6 - GPIO_04 */ PIN_05, /* 7 - GPIO_14 */ PIN_62, /* 8 - GPIO_07 */ PIN_01, /* 9 - GPIO_10 */ PIN_02, /* 10 - GPIO_11 */ PIN_15, /* 11 - GPIO_22 */ PIN_55, /* 12 - GPIO_01 */ PIN_21, /* 13 - GPIO_25 */ PIN_06, /* 14 - GPIO_15 */ PIN_07, /* 15 - GPIO_16 */ NOT_A_PIN, /* 16 - RESET */ PIN_45, /* 17 - GPIO_31 */ PIN_08, /* 18 - GPIO_17 */ PIN_18, /* 19 - GPIO_28 */ NOT_A_PIN, /* 20 - GND */ NOT_A_PIN, /* 21 - 5V */ NOT_A_PIN, /* 22 - GND */ PIN_57, /* 23 - GPIO_02 */ PIN_60, /* 24 - GPIO_05 */ PIN_58, /* 25 - GPIO_03 */ PIN_59, /* 26 - GPIO_04 */ PIN_63, /* 27 - GPIO_08 */ PIN_53, /* 28 - GPIO_30 */ PIN_64, /* 29 - GPIO_09 */ PIN_50, /* 30 - GPIO_00 */ PIN_17, /* 31 - GPIO_24 */ PIN_16, /* 32 - GPIO_23 */ PIN_60, /* 33 - GPIO_05 */ PIN_62, /* 34 - GPIO_07 */ PIN_18, /* 35 - GPIO_28 */ PIN_21, /* 36 - GPIO_25 */ PIN_64, /* 37 - GPIO_09 */ PIN_17, /* 38 - GPIO_24 */ PIN_01, /* 39 - GPIO_10 */ PIN_02 /* 40 - GPIO_11 */ }; github_Link : https://github.com/energia/Energia/blob/master/hardware/cc3200/variants/launchpad/pins_energia.h Here you can see highlighted portion. When you compare datasheet of CC3200 and CC3200MOD both PIN configuration are different. So, here mention pin_energia.h header file makes for CC3200. So, Is this pin_energia.h header file can support for CC3200MOD? If not then please give me a suggestion how to modify. Regards, Pratik pins_energia.h
  23. hello all !! I'd been worked with MSP430G25530 target for Frequency measurment ... I have a code but, when I use the Serial.print (). nothing show up. any helps please ? my code : Freq-Measurment.ino
  24. Hello All, Iam working with Redbear micro cc3200, and using energia 17 version for my development. Iam facing some issue EEPROM handling , Where are the EEPROM library available how to install this EEPROM lbrary to energia 17 version I have got EEPROM.h file but still i think some path is issue , as iam still getting issue EEPROM.H no such file or directory found. Thanks in advance , Regards Narasimhaj +91-9901544165 sketch_jan21a.cpp:31:14: fatal error: .h: No such file or directory #include <.h> ^ compilation terminated.
  25. Hi all, I have recently found a sketch in arduino forum for frequency counting, which I tried running in MSP432 with energia and MSP430 with energia sketch on Code composer studio. The sketch basically counts the frequency using interrupts and prints the frequency on serial monitor but serial monitor is empty while running the program,.The sketch is as shown below, // Frequency counter sketch, for measuring frequencies low enough to execute an interrupt for each cycle // Connect the frequency source to the INT0 pin (digital pin 2 on an Arduino Uno) volatile unsigned long firstPulseTime; volatile unsigned long lastPulseTime; volatile unsigned long numPulses; void isr() { unsigned long now = micros(); if (numPulses == 1) { firstPulseTime = now; } else { lastPulseTime = now; } ++numPulses; } void setup() { Serial.begin(115200); // this is here so that we can print the result pinMode(3, OUTPUT); // put a PWM signal on pin 3, then we can connect pin 3 to pin 2 to test the counter analogWrite(3, 128); } // Measure the frequency over the specified sample time in milliseconds, returning the frequency in Hz float readFrequency(unsigned int sampleTime) { numPulses = 0; // prime the system to start a new reading attachInterrupt(0, isr, RISING); // enable the interrupt delay(sampleTime); detachInterrupt(0); return (numPulses < 3) ? 0 : (1000000.0 * (float)(numPulses - 2))/(float)(lastPulseTime - firstPulseTime); } void loop() { float freq = readFrequency(1000); Serial.println(freq); delay(1000); }