Hello Forums
I am trying to use GUI Composer v2 (on the cloud) to create a GUI for a battery managment system, similar to the one in the SLAA478 Application Report, using the MSP-EXP430F5529LP and bq76PL536EVM-3.
I've decided to use USB/Serial comms, which requires me to modify the code to send the information using JSON. I am following the example of using USB/Serial IO: https://dev.ti.com/gc/designer/help/Tutorials/Serial/index.html.
The code given is as follows:
#include <aJSON.h>
// most launchpads have a red LED
#define LED RED_LED
//see pins_energia.h for more LED definitions
void printled_statewithjson(int state){
aJsonObject* root = aJson.createObject();
if (root == NULL) {
return;
}
aJson.addItemToObject(root, "LED", aJson.createItem(state));
char* string = aJson.print(root);
if (string != NULL) {
Serial.println(string);
free(string);
}
aJson.deleteItem(root);
}
// the setup routine runs once when you press reset:
void setup() {
// initialize the digital pin as an output.
pinMode(LED, OUTPUT);
Serial.begin(9600);
}
// the loop routine runs over and over again forever:
void loop() {
digitalWrite(LED, HIGH); // turn the LED on (HIGH is the voltage level)
printled_statewithjson(1); // print json object with LED status set to 1 to UART
delay(1000); // wait for a second
digitalWrite(LED, LOW); // turn the LED off by making the voltage LOW
printled_statewithjson(0); // print json object with LED status set to 0 to UART
delay(1000); // wait for a second
}
I am trying to fully understand this example code, before implementing it into my program. Using CCS Cloud, I stepped through the program in debug mode.
From what I understand, the loop() function is essentially the main function, which blinks the LED; setup() does as expected and initializes the MCU LED pin, and opening a serial port at 9600 baud rate.
I cannot, however, understand the printled_statewithjson() function. How exactly does it work to be able to send the information?
Regards

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!

Hey guys!
I'm having some fun with my MSP430 and started to play with the Energia IDE so I can make some tests faster than by the standard library of the microcontroller.
But I've searched on the reference and saw that the only function to use with PWM is analogWrite()...
How could I change the frequency of the PWM instead of only its Duty cycle?
Thank you guys!

Hello, my name is Rolando Correa. I am a Junior student at John Brown University located in Siloam Springs, Arkansas.
This semester I have been working in a project called "The Pool Boy" for my Embedded Systems class.
Project Objective
The purpose of this project was to design and assemble a pool skimming system. The final product, the Pool Boy, can autonomously navigate and filter the surface of an 800 square foot pool in under 60 minutes. It filters the surface of the pool via water intake system driven by high efficiency electrical motors. The Pool Boy follows a random path based on a "random generated number" to efficiently cover the entire surface of any size or shape of pool. The onboard proximity sensor allows it to navigate around stray objects and pool walls without collision. The embedded solar panels continuously charge the included rechargeable battery.
Parts
1 Texas Instruments MSP430G2553
1 Proximity Sensor (4-30cm range)
3 Small Solar Panels (0.1mA each output current) *this turned out to be less than expected.
2 Green LED's
1 Red LED
1 On/Off Switch
1 Rechargeable Battery (7.4 V)
2 EDF 50mm DC Motors
High Density Foam
1 MOSFET Driver (4426)
2 Power MOSFET
1 Voltage regulator
Feel free to leave a comment for more information.
Thanks!

Hi 43oh!
Its the holiday season and that means its time for holiday hacks! I recently completed my WiFi connected sous vide (using a MSP430 and CC3100) which I used to cook my Thanksgiving turkey.
I'm curious if anyone else out there has come up with some cool connected holiday projects? If so, post them (or a link) in this thread. We're trying to collect the best hacks and write up an article about them!
Here's another view of my LaunchPad Sous Vide Controller for inspiration :-D
Thanks everyone!

Hello Guys,
Im on new project. Im need help. First explain short me project .
I want to connect a microcontroller via bluetooth to mobile phone. Only this have to do is know if microcontroller are on range.
QUESTION is
1. MSP430 or any suggested microcontroller work ?
2. Which Bluetooth module work ?
Its important the module do NOT have the antenna . Its part of my project design and implement the patch antenna.
Thanks for any suggestion

So far I have been able to get Energia running well on Mac OS (less than 5 minutes including download time) and Windows XP (NOT less than 5 minutes :-)).
In my experience downloading and installing (attempting to at least) the drivers from the Energia Windows instructions page does not work. Can't communicate with the device.
I was able to get it to work by downloading the Stellaris drivers directly from TI and following their installation instructions.
What you need can be found at the TI http://www.ti.com/tool/stellaris_icdi_drivers'>Stellaris

Hi Everyone, 43oh is glad to be a sponsor for TI's BoosterPack Design Challenge.This is your chance to design your BP and also have it made by CircuitCo.
Minimum Requirements: 1. Submit an original BoosterPack design for your MCU LaunchPad. - Schematic Layout (including reference designators and an extractable net-list) - Bill of materials not to exceed $40 (in unit orders of 1K, in XLS format, noting reference designators and manufacturer part numbers) - Record a video describing your BoosterPack idea and upload it to YouTube. Get creative! 2. Upload your project to an online file sharing site (ex: Google Drive, Github) and set it for public view. 3. Follow the link to complete your MCU LaunchPad BoosterPack Challenge entry. Please note: This contest is intended only for the residents of the continental U.S.