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

There are no results to display.


Found 426 results

  1. i bought two Mspexp430 launchpad with two cc110l rfand i could to programm them in energia : then i want to add more nodes on the Network so i bought two new Mspexp430 launchpad with new two cc110l rf and they work correctly on ATC boostersatcklite but when I want to program them on energia I can upload the code but the cc110l doesn’t exchange any data from each other , i tried also with the examples in energia (wirlessControl-WirlessTest-WirelessMonitorhub-WirelessmonitorSensor) but they did not work Can you help me to let them work correctly and exchange data
  2. Hi all, I am currently just trying to upload a example sketch to my MSP430G2553, all i'm getting is a compile error. The github library is; https://github.com/ibm666/ILI9341libraryforEnergiaMSP430Launchpad what im getting error wise is; In file included from D:\energia-1.6.10E18\libraries\ili9341-arduino-master\examples\drawNumber\drawNumber.ino:8:0: D:\energia-1.6.10E18\libraries\ili9341-arduino-master/TFTv2.h:33:17: fatal error: SPI.h: No such file or directory compilation terminated. Using library ili9341-arduino-master in folder: D:\energia-1.6.10E18\libraries\ili9341-arduino-master (legacy) exit status 1 Error compiling for board MSP-EXP430G2 w/ MSP430G2553. Can anyone tell me what i'm doing wrong? I can upload examples from the SPI library so im assuming it cant be that?! HELP!!! PLEASE!!!
  3. Hello, What is the status of Wire.h when using energia with the tiva-c board? Since there is the BoardManager in E18, the file layout has changed. Which leads to some confusion. eagle@daredevil:~$ find . -type f -name "Wire.h" ./.energia15/packages/energia/hardware/msp432/3.8.0/cores/msp432/ti/runtime/wiring/Wire.h ./.energia15/packages/energia/hardware/msp430/1.0.2/libraries/Wire/Wire.h ./.energia15/packages/energia/hardware/tivac/1.0.2/libraries/Wire/Wire.h ./.energia15/packages/energia/hardware/msp432r/5.6.0/cores/msp432r/ti/runtime/wiring/Wire.h ./bin/energia-1.6.10E18/hardware/energia/msp430/libraries/Wire/Wire.h ./bin/energia-1.6.10E18/hardware/energia/msp430/cores/msp430/Wire.h So I think when using energia with tivac, it will use the .energia15/packages/energia/hardware/tivac/1.0.2/libraries/Wire/Wire.h file that is in the hidden .energia directory right? Then I went ahead and edited the Wire.cpp file in the tivac/1.0.2 dir. #include <stdlib.h> #include <stdio.h> #include <string.h> #include <inttypes.h> #include "wiring_private.h" #include "inc/hw_memmap.h" #include "inc/hw_types.h" #include "inc/hw_ints.h" #include "inc/hw_i2c.h" #include "driverlib/gpio.h" #include "driverlib/debug.h" #include "driverlib/interrupt.h" #include "driverlib/rom.h" #include "driverlib/rom_map.h" #include "driverlib/pin_map.h" #include "driverlib/sysctl.h" #include "driverlib/i2c.h" #include "Wire.h" Here is a list of include files from Wire.cpp. So here is my question: is this Wire.cpp implementation is for TM4C? is it using or based on the TivaWare Peripheal library? I intend to make some modifications for it, for example using 2 i2c ports at the same time. So I need to start at the correct place. Any ideas / help greatly reccomended. Best regards, CA
  4. Dear developers, I am simply using Serial.println(); command, but I get some weird characters in the serial port display window. Code : #include <Wire.h> // HIH6130 I2C address is 0x27(39) #define Addr 0x27 int tzero = 196; int tspan = 17; int hzero = 196; int hspan = 17; void setup() { Wire.setModule(1); Wire.begin(); pinMode(P1_3,OUTPUT); pinMode(P1_2,OUTPUT); pinMode(P1_6,OUTPUT); Serial.begin(9600); Serial.println("OK"); delay(300); } void loop() { unsigned int data[4]; // Start I2C Transmission Wire.beginTransmission(Addr); // Select data register Wire.write(0x00); // Stop I2C Transmission Wire.endTransmission(); // Request 4 bytes of data Wire.requestFrom(Addr, 4); // Read 4 bytes of data // humidity msb, humidity lsb, temp msb, temp lsb if (Wire.available() == 4) { data[0] = Wire.read(); data[1] = Wire.read(); data[2] = Wire.read(); data[3] = Wire.read(); } // Convert the data to 14-bits float humidity = ((((data[0] & 0x3F) * 256) + data[1]) * 100.0) / 16383.0; float temp = ((data[2] * 256) + (data[3] & 0xFC)) / 4; float cTemp = (temp / 16384.0) * 165.0 - 40.0; // Output data to serial monitor Serial.print("Relative Humidity :"); Serial.println(humidity); Serial.println(" %RH"); Serial.print("Temperature in Celsius :"); Serial.println(cTemp); Serial.println(" C"); Serial.println("=============================================================== "); int VcTemp = map(cTemp, -5, 125, tzero, tspan ); int vhumidity = map (humidity, 0, 100, hzero, hspan); analogWrite(P1_2, VcTemp); analogWrite(P1_6, vhumidity); delay(1000); } Serial Output : (in one single line, means it keeps printing these characters in just one line on and on.picture : Thax.
  5. I don't know why but my energia is running very slow. All the other apps are running at good speed. I am using windows 10 64-bit version. I am using Energia V17. Pictures from my task manager are attached here, please take a look at it. Thax and peace.
  6. Hello everyone, I'm trying setup pwm frequency for tiva C in Energia but failed at this line: analogFrequency(PWM_FREQ) // define PWM pins #define PWM_1 PD_6 // define PWM frequency #define PWM_FREQ 20000 void setup() { pinMode(PWM_1, OUTPUT); analogFrequency(PWM_FREQ); } void loop() { analogWrite(PWM_1, 50); } Can help me with the problem, thank!
  7. Energia IDE 1.6.10E18 crashes on macOS Sierra, for most of the boards. This issue also occurs with the Arduino 1.6.11 IDE, see arduino#5397. However, compilation with embedXcode completes successfully. Please find the more details at ticket GitHub #928.
  8. I put together a prototype Booster Pack that attaches to the CC3200 and has a RFID-RC522 card (sometimes called a MIFARE module), two buttons, and two LEDs. The CC3200 is connected to the cloud using Temboo. Currently it sends an email to me with information on the card used when accessed but it would be easy to modify to record time of access, card used, etc and put it into say a spreadsheet. This was a one afternoon plus an evening project for both hardware and software using Energia - very easy to do. The cards have security holes but I am pretty sure they pose too high a technical challenge for my local hooligans. I'm more afraid they might rip it apart and take my CC3200 than anything else. This is the Booster Pack, top view. Here it is attached to an upside down CC3200. In this photo it has been mounted in an enclosure and is reporting a successful read and transmission with the green LED. And if you are really interested, here is the schematic. I am using the RFID library located here. And if you aren't familiar with Temboo, find it here.
  9. Hi, I am having trouble when trying to set the Serial Port and the Board. The options that it shows on the Guide for Mac to choose aren't options shown when I go to the tool tab on my Energia app! Please let me know!
  10. Hey everyone, I am trying to reduce the power consumption of my msp430FR4133 by reducing the clock speed from 8MHZ. I am using the http://annem.github.io/ADXL362/ example code as a base which sets the default clock speed to 8MHZ. I have read that the Wiring.c file defines the clock speed but I cannot find where F_CPU is defined. Any help would be greatly appreciated thanks.
  11. Hi there, I am using a CC3200 launchpad, together with Energia 13. I am trying to connect the launchpad through MQTT to publish and receive messages (following Adrian Fernandez youtube on and blog on http://energia.nu/creating-an-iot-connected-sensor-with-energia-mqtt/). I succeeded on publishing information through MQTT to Node-Red, twitter etc., however I did not have any luck in subscribing. Since the blog (nor the video) does not state explicitly how to subscribe, my guess is that I have something wrong in my definitions. In the cloud side I am using Bluemix cloud, with Node-Red service. I simply define an input and output MQTT, and a debug node. The input works well, however the output (from the cloud to the launcpad) does not work. The output MQTT is defined with the same broker as the input MQTT, however with a different topic (matching the definition in the launchpad side). On the launcpad side, I am using the PubSubClient library, with the following commands to subscribe: if (client.connect("LaunchPadClient")) { client.publish("outTopic", char_array); client.subscribe("PelegInTopic"); Serial.println("Connection successful!"); client.disconnect(); } The callback function is never activated (it simply contains a serial message declaring input, however it never appears). *code attached. CAN ANYONE HELP???? Thanks a lot, Or Peleg MQTT_test.ino
  12. i am facing a problem of slow running energia from last few months but found no solution. energia ide 1.6.10e8 is installed on my system and it takes 5 min just to verify the blink led example which is simple code just imagine how ,long it would take to compile big codes antivirus is turned off if anyone there can sort out this would be really grateful,thanks.
  13. I am having trouble importing Energia projects into Code Composer Studio. The reason I want to do this is because I have other Energia projects that use specific libraries, and I am looking to debug them. I took the Blink example from Energia and saved the project to a new location. I have verified this, and it compiles successfully. I then opened Code Composer Studio, and imported the Energia Sketch to my workspace using the wizard from the menu button. The operation summary window popped up, and told me an issue was encountered, "Warning: Resource 'wiring_analog.c' already exists! Ignoring..." I clicked "Ok" and then tried to build the project, but it failed to make the project, citing the message in the attached picture. If anyone could help with this issue, it would be much appreciated. Thanks, Yeshy
  14. Hi, Greetings of the day, We are trying to access serial flash memory onboard Launchpad of CC3220SF using energia. Please help us in how to read/write to flash memory on CC3220SF. Further suggestions would be of great help. Tried to use SLFS, but compile errors.. Energia: 1.6.10E18 (Windows 10), Board: "CC3220SF-LAUNCHXL (80MHz)" Build options changed, rebuilding all C:\Users\Krishna\Documents\Energia\libraries\SLFS-master\examples\SLFS_Simple_Print_Read\SLFS_Simple_Print_Read.ino: In function 'void setupSLFS_Simple_Print_Read()': SLFS_Simple_Print_Read:30: error: '_FS_FILE_OPEN_FLAG_COMMIT' was not declared in this scope FS_MODE_OPEN_CREATE(512, _FS_FILE_OPEN_FLAG_COMMIT));
  15. Please find a library for the I INA219_Distribution206.zip
  16. Hi Everyone! I've just received a Tiva C launchpad and was wondering if you are able to write C code in Energia or if you have to use their Processing-based language? And if not, is there a way to use just write C code on Mac OS X (with or without an IDE) and upload it to the device? After a quick search of this forum and Google, most C compilers are meant for a Windows environment and I haven't been able to find much information for OS X other than Energia or possibly embedXCode. Thanks, Miles
  17. Hi, I am using MSP430 launchpad with G2553 controller. When I am using sleep(5000), and varying the voltage on the controller from 3v to 4v the timing is varying based on the voltage, but the timing in not changing when I am using delay(5000) when I am varying voltage. Any help will be appreciated. Regards,
  18. This project is an offshoot of an earlier investigation of wireless wearables using the MSP430G2553: http://forum.43oh.com/topic/10060-msp430-wearable-with-radio/. The concept has been successfully tested and is described below. I plan regular updates as the project progresses. The objective is to develop a wearable powered by a coin cell that can be controlled remotely. It could be used, as an example, in the tiara below or on a costume worn by dancers in a performance and controlled from offstage. In the photo an earlier MSP430G2553 coin cell powered wearable is attached to the tiara and driving 3 WS2812 LEDs. The constraints are: cost - unit cost for the receiver of $10 or less technology - common off the shelf components, MSP430G2553 construction - standard double sided PCB spec, keep SMD parts large enough to be hand soldered power - CR2032 (rated 3V and 225 mAH) life - needs to run at least half an hour on fresh batteries reception - 10m with clear line of sight, update at least every 100 ms transmission - desirable but not required size - 40mm/1.6" diameter for receiver programming - Energia desirable schedule - 6 month completion The transmitter will probably be placed on a "Booster Pack" for a LaunchPad running Energia. Multiple LEDs will be driven to gain extra distance, and if required multiple transmitters could be set up from different angles to assure good reception. A display would be helpful as on the FR6989 shown below with an IR LED. The initial Energia transmission sketch to test the concept is located here: https://github.com/fmilburn3/Infrared/blob/master/IR_sendByte.ino. The sketch was developed in Energia V17 using a MSP430G2553 LaunchPad and a 940 nm infrared LED. It loops from 0 to 255 and sends a single byte with the count via infrared to the receiver when a button is pushed. The packets for sending bytes do not follow an existing protocol. It is specific to this application and developed with the goal of getting a byte transmitted at least every 100 ms. The receiver will be a custom MSP430G2553 board powered by a coin cell with a TSOP38238 IR receiver. There will LEDs on the PCB and it will also have the capability to drive LEDs off board. The preliminary receiver code was written in C using CCS and direct register access: https://github.com/fmilburn3/Infrared/blob/master/IR_Receiver/main.c . The framework for the code is based on a post by RobG here on 43oh. The receiver takes transmissions from the Energia sketch linked above and outputs the current byte on eight LEDs in binary form. When the last byte is received it clears the LEDs and outputs the number of bytes received in error out of the expected 255. This allows analysis of reception at different distances and conditions. Shown below is the preliminary testing setup. In the foreground is the G2553 receiver with a TSOP38238 and output LEDs on a breadboard. Middle ground is a G2553 with the infrared LED sending bytes. Background is output from the receiver being monitored on an oscilloscope. The output of the TSOP38238 is quite clean and no errors were seen with the transmitter and receiver this close together. Transmission is at approximately 1000 bytes per minute or 16+ bytes/sec which is within the desired range. I subsequently modified the test setup to run off batteries so I could do some preliminary distance testing. With clear line of sight reception I saw no errors up to 5 meters with one transmission LED aimed directly at the receiver. Errors crept in after that, especially if the transmission is off to one side, not pointed directly at the receiver, or at a greater distance. Near term activities: increase the number of transmission LEDs evaluate the impact of off-center transmission further test in an environment that doesn't have reflective surfaces add WS2812 driver capability and investigating the impact of TSOP38238 interrupts on the WS2812 driver evaluate 2032 battery life further
  19. Good morning (or good evening)! First of all, if these questions are stupid, don't spare my feelings. I know better than anyone that I'm still new at this and I have thick skin. I've had a great deal of success writing my own sketches with Energia. It's fun, simple-to-use, and easy to explain to others, but I have a few questions: 1) is Energia suitable for firmware in a small commercial product or is it intended more as a rapid prototyping framework, with "permanent" firmware written in CC7? 2) When working with a PCB using the CC3200MOD, how would I flash my Energia sketch onto the modules flash? 3) If I were to have a few hundred PCBs produced for a task at my day job, would each PCB (using the CC3200MOD) have to be individually flashed by hand or is there a way to have this done during the assembly process? For a small project like this, I don't feel that having a PCB designer work out a PCB trace antenna would be cost effective - plus my boss would want to avoid FCC issues at all costs - so the MOD version would clearly be better. I just don't know enough (yet) to know if the MOD version can be used in mass production, even on a small scale. Again, as I said, I've had SO much fun with Energia! I would like to thank Robert Wessels for making this experience possible. I feel like I could make every device and every toy that I've ever thought would be cool, by using Energia with the TI CC3200 platform. This is so cool!
  20. Hi, I am trying to play audio using a speaker with the help of CC3200MOD and Audio Booster Pack. I have got example code in CCS and it is working fine but most of my codes are written in Energia, therefore, I am trying to use Energia to code Audio Booster but I could not find any documents or examples. do you have any example codes on Energia? Kindly, share the link, it would be really very helpful to me. Thanks.
  21. Hi, How can I use UART interrupt in Energia? I tried but could not find any example or sample work.
  22. Is msp430fr5994 launchpad supported by any realese of energia ? I searched in boards section and couldn't find. Is there any patches to make it work ? Or it's not supported ?
  23. I wrote a sketch to fire 2 outputs back and forth with a pot to adjust the on time of the outputs and a pot to adjust the off time. The outputs are just LEDs for now and there is a 3rd LED that turns on when either output is on (so I can adjust the pots later when the outputs are only driving silent, solid state relays.) Every time the MSP430G2553 is powered up or reset, in the Launchpad or a bread board, all of the pins configured as outputs go high for about a second before the program starts to run There is a thread that comes up with a google search of the problem where everyone just accepts that this is what the MSP430 does but it seems to be something that the underlying Energia code is doing because the C code does not make this happen. I altered the Blink source file in CCS to make the 2 onboard LEDs toggle back and forth. When the board is powered up running that code, both outputs don't go high. The LEDs just start to toggle back & forth as programmed. Has anyone else dealt with this? I really can't have all the outputs turn on at the same time with my project. Is there a way to write the Energia sketch to avoid this or do I have to learn how write my code in C? I hope you can excuse my ignorance. I just started trying to program a week ago. I took it up to make this one project when I decided it was going to be a little too complicated to build with discrete components. I really appreciate any help/advise.
  24. Please guide me how to port a library for energia or create one myself. I want to create library for SD card and Adafruit GFX. I will share it on Github and in this forum afterwards. Thank you.
  25. Hi all, I need to import/upload data to my MSP432P401R to call upon in future programs. Since I want this data to exist and be saved when my MSP432 is offline/powered-off, I decided that saving it to flash is the way to go. However, I don't know how to do this. Can anyone offer guidance or suggestions? Or does anyone have a better way of doing this? I'm using Energia v18.