Tell us about yourself!

Complete Your Profile
  • instasquid followed Roboeve2 years ago
  • instasquid commented on AVISHKAR_'s instructable Arduino Bluetooth Basic Tutorial3 years ago
    Arduino Bluetooth Basic Tutorial

    Got it to work! Not 100% sure how, not complaining.Thanks for the help!

    Yeah. I've changed the pin that the light is on because I'm using a Micro, but that's all.

    I can't connect to it through a terminal either. Or it claims to have connected but entering 1 / 0 does nothing. I've disconnected it from the computer, so it's not that it's looking there for serial communication. I have 3 different HC-05 chips and they all share the same problem no matter if I try to connect with PC, Mac or Android.

    Code is below. Now tried it with 3 different HC05s, 1 HC06, and 3 different boards. No luck./* Bluetooh Basic: LED ON OFF - Avishkar* Coder - Mayoogh Girish* Website - http://bit.do/Avishkar* Download the App : https://github.com/Mayoogh/Arduino-Bluetooth-Basic* This program lets you to control a LED on pin 13 of arduino using a bluetooth module*/int LEDPin = 2;char data = 0; //Variable for storing received datavoid setup(){ Serial.begin(9600); //Sets the baud for serial data transmission pinMode(LEDPin, OUTPUT); //Sets digital pin 13 as output pin}void loop(){ if(Serial.available() > 0) // Send data only when you receive data: { data = Serial.read(); //Read the incoming data and store it into variable data Serial.print(data); //Print Value inside data in Serial monitor...

    see more »

    Code is below. Now tried it with 3 different HC05s, 1 HC06, and 3 different boards. No luck./* Bluetooh Basic: LED ON OFF - Avishkar* Coder - Mayoogh Girish* Website - http://bit.do/Avishkar* Download the App : https://github.com/Mayoogh/Arduino-Bluetooth-Basic* This program lets you to control a LED on pin 13 of arduino using a bluetooth module*/int LEDPin = 2;char data = 0; //Variable for storing received datavoid setup(){ Serial.begin(9600); //Sets the baud for serial data transmission pinMode(LEDPin, OUTPUT); //Sets digital pin 13 as output pin}void loop(){ if(Serial.available() > 0) // Send data only when you receive data: { data = Serial.read(); //Read the incoming data and store it into variable data Serial.print(data); //Print Value inside data in Serial monitor Serial.print("\n"); //New line if(data == '1') // Checks whether value of data is equal to 1 digitalWrite(LEDPin, HIGH); //If value is 1 then LED turns ON else if(data == '0') // Checks whether value of data is equal to 0 digitalWrite(LEDPin, LOW); //If value is 0 then LED turns OFF }}

    View Instructable »
  • instasquid commented on AVISHKAR_'s instructable Arduino Bluetooth Basic Tutorial3 years ago
    Arduino Bluetooth Basic Tutorial

    I have everything set up right, my phone pairs with the Bluetooth device, but nothing happens when I press the buttons. Any idea what's going wrong?

    View Instructable »