Coder Social home page Coder Social logo

Comments (10)

inspiritpanda avatar inspiritpanda commented on May 26, 2024 1

hi i have solved this issue. realised that for arduino mega if i am using tx1 and rx1, i would need to change the code from Serial to Serial1 instead.

from arduino-bluetooth-basic.

Mayoogh avatar Mayoogh commented on May 26, 2024

Hey @inspiritpanda

Did you try sending input through the serial monitor?

Remove the tx rx connection and try sending 1 and 0
image

I am not sure how to test if the Bluetooth module can send/receive data from the phone application.

Similarly, you can test this also with the serial monitor

from arduino-bluetooth-basic.

inspiritpanda avatar inspiritpanda commented on May 26, 2024

Hello,
yes i tested with the tx and rx connection removed and typed in the commands in serial monitor and the led lights turned off and on. when i connected the bluetooth module, the red light on the hc-05 starts to blink slower at around 2secs interval which shows that it has been connected. but i still do not know what is the issue and why the lcd cannot be controlled via application. @Mayoogh

from arduino-bluetooth-basic.

Mayoogh avatar Mayoogh commented on May 26, 2024

Are you using a BLE device?
Try the following.

  1. Forget the paired Bluetooth device and pair again
  2. Double check Bluetooth serial connection TX to RX and RX to TX
  3. After successful pairing the led blinking pattern on the Bluetooth module should change
  4. Check if values are showing on the serial monitor if the button is pressed (from the android device)
  5. Try with a different android device / Bluetooth module

from arduino-bluetooth-basic.

inspiritpanda avatar inspiritpanda commented on May 26, 2024

Hi @Mayoogh
yes, i am currently using a BLE device and i have also tried with another phone as well but it still doesnt work.
when i pressed the button on the android device, there is no value showing on the serial monitor. which means the phone is not communicating with arduino?

from arduino-bluetooth-basic.

Mayoogh avatar Mayoogh commented on May 26, 2024

It's a limitation of this application. Which I have already mentioned in the readme .

Currently, this application does not support BLE (Bluetooth Low Energy) devices. only works with SPP (Serial Port Profile) devices.
BLE support will be added in the future release.

Hence closing.

from arduino-bluetooth-basic.

inspiritpanda avatar inspiritpanda commented on May 26, 2024

Just to confirm, isnt android devices supporting SPP and BLE as well? @Mayoogh

from arduino-bluetooth-basic.

Mayoogh avatar Mayoogh commented on May 26, 2024

Just to confirm, isn't android devices supporting SPP and BLE as well? @Mayoogh

Yes, android supports both SPP and BLE. The BLE support is currently not integrated with this app

from arduino-bluetooth-basic.

inspiritpanda avatar inspiritpanda commented on May 26, 2024

then in this case why am i still not able to use the mobile app to control the led light? @Mayoogh

from arduino-bluetooth-basic.

Mayoogh avatar Mayoogh commented on May 26, 2024

In general, Android devices support BLE but this particular app currently does not support BLE. There are many apps already available with BLE supports.

from arduino-bluetooth-basic.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.