Android App that Sends a Message to Your Arduino

In this project I’m going to show an Android app that sends a message to your Arduino via bluetooth. And that message will be displayed in a Doted Matrix display.

Resources for this project:

Watch the video below

Parts Required

 paarts

Schematics

[Schematics-compressed]

Source Code

Note: If you want to edit my app this is what you need to do. Download Send_Message.aia and upload it to MIT App Inventor. 

Tips:

  • You need to remove the RX and TX cables when you’re uploading the sketch to your Arduino.
  • Sometimes people connect the TX from the bluetooth module to the TX of the Arduino… that’s wrong and it won’t work. Make sure you connect it properly, the TX into RX and the RX into the TX.
  • If the HC-05 Bluetooth Module asks for a password, It’s ’1234′.
  • Before Testing my android app, test if you’ve made all the connections correctly. How you can do that? Simply enter some messages (for example: “Random”) into your serial monitor and your DMD should display that message.

I hope you found this useful!

Do you have any questions? Leave a comment down below!

Thanks for reading. If you like this post probably you might like my next ones, so please support me by subscribing my blog and my Facebook Page.

P.S. Click here to see how to use MIT App Inventor with Arduino

Comments

  1. Brit says

    just wanted to say your program works great.

    I would like to add a checkbox to be able to have an option to turn a buzzer on for 2 seconds when a text is sent, any ideas how I can accomplish this I am new to Mit and arduino. thank you for any help

    • Rui Santos says

      Hi Brit,
      MIT App Inventor comes already with a checkbox function.
      Under the menu called: “User Interface” search for “checkbox” and drag and drop into your app screen.

      Then go to the Blocks section and create an if condition.
      If that checkbox is ticked it also sends something else that the arduino will recognize and trigger the buzzer.
      I hope this helps,
      Rui

  2. Shantanu Biswas says

    Hello Rui,
    Another Great upload!!!!!!
    But finding difficulty to download send_message.apk app,because the link provided by you is directing me to send_message.aia.
    So please give an appropriate link to download send_message.apk
    I shall be thankful to you.

    • Rui Santos says

      Yes Kerry,
      Feel free to add as much characters as you want.
      Just change the arduino code, instead of saving 100 characters change the size of the array to 1000 :)

  3. Shantanu Biswas says

    HI,
    Can we use a long range bluetooth module like NRF24L01, so that we can send texts from a long distance.The link is provided below:

    ww.digibay.in/wireless/nrf24l01l-long-range-module-1km-arduino-compatible

    • says

      Hi Shantanu,
      I think so. any bluetooth module that works with a simple serial communication at 9600 baud rate. Should work just fine with this project!

  4. Kerry Jackson says

    When I use more than 2 displays some of the characters from the phone are dropped. Any suggestions of why. Using 4 displays. Only 2 displays work…

    • says

      You might need to change some of the arduino code that is printing the string received from the android app.
      But before you change my arduino code. You should create a Serial.println() to see what your arduino is receiving from the smartphone and see if everything is working properly..

  5. Sagar says

    Hi Rui!

    Now i want to work on the sounds, i mean a buzzer for every new message.
    Can you please EMail me the schematic in Fritz format? Will help me a lot.

    -Sagar

    • says

      Hi Sagar,
      Unfortunately I don’t have the fritizing schematics for this project anymore… at least I can find them on my computer.
      Have a nice day,
      Rui

  6. Sagar says

    DMD working fine, bluetooth is also working fine, app is also getting connected to the bluetooth. We also followed your specified guidelines, but still we are facing problems in the form of the DMD not displaying the specified message from that app.
    Your assistance will be highly appreciated.
    Awaiting your reply.
    Thank you.

    • says

      Are you using the same DMD as me?
      The DMD doesn’t display any message at all?
      is your bleutooth module working properly?
      By default most bluetooth modules are set a 9600 baud rate such as the arduino to establish a serial communication.
      If you bluetooth module is set at a different baud rate it won’t work properly and it won’t receive the message

  7. Shantanu Biswas says

    Is it mandatory to use Arduino UNO?????
    Doesn’t it work with Arduino Duemilanove???
    Because we are using the latter i.e Duemilanove, and the Message is not being displayed in the DMD.
    Please Help!!!!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>