Dear experts, I am actually the first time to use Ti development board. I have a little bit Arduino Programming background. Previously , I have used Arduino Uno + HC-06 Bluetooth to set up communication with Android in Smartphones with the following coding:
----------------------------------------------------------------------------------------------------------------------------------------------------
/*
Sends sensor data to Arduino
(needs SensorGraph and Amarino app installed and running on Android)
*/
#include <MeetAndroid.h>
MeetAndroid meetAndroid;
float temp;
void setup()
{
// use the baud rate your bluetooth module is configured to
// not all baud rates are working well, i.e. ATMEGA168 works best with 57600
Serial.begin(115200);
}
void loop()
{
double C1 = analogRead(A0);
int vol =5*1000 - C1*1000*5/1024;
if (vol == temp)
{ temp == vol;
}
else
{
meetAndroid.receive(); // you need to keep this in your loop() to receive events
// read input pin and send result to Android
meetAndroid.send(vol);
// add a little delay otherwise the phone is pretty busy
delay(300);
}
----------------------------------------------------------------------------------------------------------------------------------------
May I ask if I could do the same procedure on DK-TM4C123G ? And the how about the hardware TX RX pin connection? Because I am very new to Ti, may I ask could I direct use the same code on Energia ? I have tried this by connecting the HC-06 TX and RX to U3RX and U3TX respectively. However, gibberish is record by the serial monitor.