Sign in to follow this  
Alex

Bluetooth Shield On Chipkit Uc 32

Recommended Posts

An engineer at Microchip Taiwan made bluetooth shield which can be controlle through Android. 

 

Here are sketch and Application Development Kit (APK) which can only be installed on Andriod 4.3

 

#define KitLED 2 // APP-ESS14-2 : D8
#define KitWakeupHardware 11 // APP-ESS14-2
#define KitWakeupSoftware 12 // APP-ESS14-2
#define CMD_MLDP 13 // APP-ESS14-2
 
void setup()
{
  pinMode(PIN_LED1, OUTPUT);
  pinMode(PIN_LED2, OUTPUT);
  pinMode(KitLED, OUTPUT);
 pinMode(KitWakeupHardware, OUTPUT);
  pinMode(KitWakeupSoftware, OUTPUT);
  pinMode(CMD_MLDP, OUTPUT);
  Serial1.begin(115200);  
}
 
void loop() 
{
  digitalWrite(KitWakeupHardware, HIGH);
  digitalWrite(KitWakeupSoftware, HIGH);
  digitalWrite(CMD_MLDP, LOW);
  Serial1.print("SF,2rn");
  Serial1.print("SR,30000800rn");
  Serial1.print("R,1r");
  digitalWrite(CMD_MLDP, HIGH);
 
  while(1)
  {
    digitalWrite(PIN_LED2, HIGH);
    digitalWrite(KitLED, HIGH);
    delay(500);
 
    digitalWrite(PIN_LED2, LOW);
    digitalWrite(KitLED, LOW);
    delay(500);
    Serial1.print("This Message from ChipKIT uC32!rn");
  }
}
 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this