• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Sending LED status arduino to phone via HC-05 bluetooth

Q&A Forum › Category: Arduino › Sending LED status arduino to phone via HC-05 bluetooth
0 Vote Up Vote Down
Ronaldo Tampus asked 4 years ago

Hi Sara/Rui,

Hope everything is well to you today.

I have a project which is similar from your ebook project #1 on arduino applications using bluetooth.

The project goes like this, when phone is connected on to arduino via bluetooth. The arduino will inform that the status of LED is either on or off and disables button in the phone application.

I am stuck at the Serial.println(ledStatus). Using serial bluetooth app, I saw that my phone receives data from arduino.

But how I can fulfill my objective on MIT AI2 block procedures.

As usual big thanks for our help.

Regards,

Ronaldo

1 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi Ronaldo.

You can use the same procedure we use in Project 5. We display temperature readings, but you can display the LED status instead.

Basically, you need to drag a label into your designer. Fore example, buttonStatusLabel that will show the LED state.

Then, initialize a global variable to hold the LED state.

Then, the logic can be similar to the one we use in Project 5.

I really recommend taking a deep look at Project 5 and see if it can help with your project.

Let me know if you need further help.

Regards,

Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] SMART HOME with RPi, ESP32, and ESP8266 (version 1.2) March 8, 2023
  • [eBook Updated] ESP32-CAM Projects (version 1.3) January 7, 2023

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2023 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.