+21622886281
App Inventor Arduino Project

Send a message from Arduino to smartphone using matrix keyboard

Arduino is an open-source electronics platform based on simple software and hardware. It can be used to control a wide variety of devices, including LEDs, motors, and sensors. Bluetooth is a wireless communication technology that allows devices to connect to each other over short distances. Arduino boards can be used with Bluetooth modules to enable wireless communication between devices. This can be used for a variety of applications, such as controlling a robot or sending sensor data wirelessly to a computer or phone.

To send a message from an Arduino board to a smartphone via Bluetooth, you would need to perform the following steps:

  1. Connect the Arduino board to a Bluetooth module such as HC-05 or HC-06.
  2. Write and upload a program to the Arduino board that can establish a Bluetooth connection with the smartphone. You can use the SoftwareSerial library to create a serial communication with the Bluetooth module.
  3. Once the connection is established, the program should be able to send the message to the smartphone via the Bluetooth connection using the Serial.write() function.
  4. On the smartphone side, you can use a third-party app such as “Serial Bluetooth Terminal” to receive the message sent by the Arduino board via the Bluetooth connection.
  5. Test the system by sending a message from the Arduino board and verifying that it is correctly received and displayed on the smartphone app.

Purpose of this tutorial:

In this tutorial we will see how to send a message from Arduino to the smarthpone via bluetooth using the matrix keyboard. This is why we are going to create two programs: a mobile application with App Inventor for the smartphone and a program for Arduino.

To send a message from an Arduino board to a smartphone using a matrix keyboard, you would need to perform the following steps:

  1. Connect the matrix keyboard to the Arduino board. The matrix keyboard typically requires multiple pins to be connected to the Arduino board for data and control.
  2. Write and upload a program to the Arduino board that can read input from the matrix keyboard and store it in a string or buffer.
  3. Connect the Arduino board to a Bluetooth module, such as an HC-06, and establish a Bluetooth connection with a smartphone or other Bluetooth-enabled device.
  4. Write and upload a program to the Arduino board that can send the message stored in the string or buffer to the smartphone via the Bluetooth connection.
  5. Use an app on the smartphone to receive the message sent by the Arduino board and display it on the screen.
  6. Test the system by typing a message on the matrix keyboard and verifying that it is correctly received and displayed on the smartphone.

Necessary components

Arduino UNO

The Arduino UNO is a popular model of the Arduino open-source electronics platform. It is based on the ATmega328 microcontroller and has 14 digital input/output pins, 6 analog inputs, a 16 MHz quartz crystal, a USB connection, and a power jack. The UNO also has a built-in USB-to-serial converter, which allows it to be programmed and communicate with a computer via a USB cable. The Arduino UNO can be used for a wide variety of projects, including controlling LEDs, motors, and sensors, as well as communicating with other devices via Bluetooth, WiFi, or other wireless technologies. It’s an easy-to-use board that can be programmed using the Arduino IDE, and is a good option for beginners and experts alike.

HC-06 Bluetooh module

The HC-06 Bluetooth module is a small, low-cost device that can be used to add Bluetooth functionality to a wide range of electronic devices. It is a slave-only device, meaning it can only connect to other Bluetooth devices, and cannot initiate connections itself. It is commonly used in DIY projects, such as adding wireless control to a robot or remote control to a device. It can be easily interfaced with microcontrollers such as Arduino and Raspberry Pi, and communicates via serial communication.

4×4 matrix keyboard

A 4×4 matrix keyboard is a type of keypad that consists of 4 rows and 4 columns of buttons, for a total of 16 buttons.

The matrix keyboard works by connecting each button in a row to a common row pin on the microcontroller and each button in a column to a common column pin on the microcontroller. By scanning the rows and columns, the microcontroller can determine which button has been pressed.

When a button is pressed, it creates a connection between a row and a column, allowing current to flow between the two. The microcontroller can detect this change in state by reading the voltage on each row and column pin, and then determine which button has been pressed.

This type of matrix keyboard is commonly used in DIY projects and hobbyist applications, as well as in some commercial products. It’s relatively inexpensive and easy to interface with a microcontroller. They can be easily connected to a microcontroller with a lead wire, and the microcontroller can read the input of the button pressed.

This type of matrix keyboard can be used in a variety of projects, such as creating a calculator, a simple game or even a musical instrument.

Test plate

A test plate is a type of device used in robotics to test the functionality and performance of various components or systems. It is typically a physical platform or structure that is designed to hold and support various test items or devices, such as sensors, actuators, motors, or other types of mechanical or electrical components. Test plates can be used to simulate different environments or conditions, such as temperature, humidity, vibration, or other factors, in order to evaluate the performance of the components or systems being tested. They can also be used to perform a variety of diagnostic or diagnostic tests, such as stress testing, endurance testing, or other types of evaluations.

Connecting wires

Wires are used to transmit electrical signals and power to various components such as motors, sensors, and microcontrollers. It’s important to properly route and secure the wires to prevent tangles and damage. There are several methods for doing this, including using cable ties, clamps, and wire looms. It’s also a good idea to use different colors or labeling to identify the different wires and their functions. When connecting wires in a robot, it’s important to follow proper safety procedures, such as using the correct wire stripper and connectors, and wearing protective equipment such as gloves and safety glasses.

Mounting

Program

Here is the program that allows you to connect the Arduino board to the smartphone and send a message by bluetooth using the matrix keyboard.

Creation of the application with App Inventor:

We are going to create a mobile application named ‘receive_arduino’ with App Inventor which allows you to receive a message from the Arduino board.

We propose to create the design of the application, with the following visual:

Programming with App Inventor

To program the application, App Inventor offers us to use the Blocks space, which allows you to create a program in the form of a block diagram. Very easy to use but requiring a little programming logic.

Here is the program of the application created in the Blocks area of ​​the Inventor App:




20 commentaires

John Douglas 11-11-2323

Hi, I intend to contribute a guest post to your website that will help you get good traffic as well as interest your readers. Shall I send you the topics then? Best, John

Sophie Miller 26-10-2323

Hi, I intend to contribute a guest post to your website that will help you get good traffic as well as interest your readers. Shall I send you the topics then? Best, Sophie Miller

Anita Gro 24-09-2323

Hi, I hope you are doing well. I want to contrbute a guest post article to your amazing website. This would need simple 3 steps. 1. I will send you some interesting topic ideas for a guest post. 2. You will then choose a topic out of those. 3. I will send you a high- quality article on the topic chosen by you. I would just need a do-follow backlink within the main article. Please let me know if we shall start with the step 1? Best, Anita Gro

Kristel Marquez 24-09-2323

Hi, I hope you are well. I am dropping you a line to present a guest post offer where you can give your website traffic a great boost with a keyword-oriented, SEO optimized, quality content that I’ll provide you. It would be unique for sure. What you’ll have to do? You just need to choose one topic out of three that I’ll send you and I’ll provide you a content on that. I would just need a backlink to my website in return. Let me know if I shall send you the topics? Looking forward to your response. Regards, Kristel Marquez

Kathelene Paul 27-03-2323

Hi, I intend to contribute a guest post to your website that will help you get good traffic as well as interest your readers. Shall I send you the topics then? Best, Kathelene Paul

Wendy Gill 29-12-2222

Hi, I am getting in touch to present a valuable guest post offer for your website which will help boosting your traffic as well as build links. You will just have to publish it on your site with my backlink. Interested in working together on this? If yes, I’ll send you the topics. Looking forward to hearing from you. Best, Wendy Gill

Julie Smith 15-12-2222

Hi, I intend to contribute a guest post to your website that will help you get good traffic as well as interest your readers. Shall I send you the topics then? Best, Julie Smith

Qasim Ashfaq 14-12-2222

Hi, I intend to contribute a guest post to your website that will help you get good traffic as well as interest your readers. Shall I send you the topics then? Best, Qasim Ashfaq

tracfone coupon 30-11-2222

Hi my loved one! I wish to say that this article is awesome, great written and include approximately all significant infos. I'd like to peer more posts like this .

2022 27-11-2222

Hello i am kavin, its my first time to commenting anywhere, when i read this piece of writing i thought i could also create comment due to this sensible article.

Rose Emilie 24-08-2222

Hi, How are you doing? I have got a great guest post offer for you that will help you get more traffic to your site. I will send you a quality article of your readers’ interests and will just need a backlink to my site in return. For that, either you can share the topic ideas of your choice and I will write an article on that or I will share the topic ideas for you to choose one and will send you the article on it. Please share your targeted niche and focus keyword if any. Let me know what you think? Regards, Rose Emilie

Amelia Lopez 17-08-2222

Hi, I hope you are doing well. Would you be interested in a guest post offer that will help you boost your website traffic? I’ve got one for you! I’ll provide you with a unique, SEO optimized, keywords oriented, quality content that will interest your readers and would just need a backlink to my website in return. You’ll just have to choose one topic out of the three I’ll send you in my next email and I will then send over the article on that topic. Shall I send you the topics then? Looking forward to your response. Best, Amelia Lopez

James J. Fair 28-07-2222

Hi, How are you doing? I have got a great guest post offer for you that will help you get more traffic to your site. I will send you a quality article of your readers’ interests and will just need a backlink to my site in return. For that, either you can share the topic ideas of your choice and I will write an article on that or I will share the topic ideas for you to choose one and will send you the article on it. Please share your targeted niche and focus keyword if any. Let me know what you think? Regards, James J. Fair

Lawrence 06-07-2222

Magnificent beat ! I wish to apprentice even as you amend your web site, how could i subscribe for a weblog site? The account aided me a acceptable deal. I were a little bit familiar of this your broadcast provided brilliant transparent idea

Trisha 09-06-2222

Excellent beat ! I wish to apprentice even as you amend your website, how can i subscribe for a weblog web site? The account helped me a appropriate deal. I were a little bit familiar of this your broadcast offered vivid transparent concept

Johnnie Scott 08-06-2222

Hi, How are you doing? I have got a great guest post offer for you that will help you get more traffic to your site. I will send you a quality article of your readers’ interests and will just need a backlink to my site in return. For that, either you can share the topic ideas of your choice and I will write an article on that or I will share the topic ideas for you to choose one and will send you the article on it. Please share your targeted niche and focus keyword if any. Let me know what you think? Regards, Johnnie Scott

Doreen 08-03-2222

Congrats on your new site, get it listed here for free and we'll start sending people to your site

Elijah 01-03-2222

Good job on the new site!

Sophia 06-12-2121

Hi, How are you doing? Will you be interested in doing a high-quality guest post on your site? It is a 3 step process where: 1. I will send you three amazing topic ideas for a post. 2. You need to choose one out of those. 3. I will then send a high-quality, SEO Friendly article on that chosen topic to get it published on your website with one do-follow link to my site. Let me know if I shall start with step 1? Best, Sophia Roy

Ryan 24-11-2121

Hi, I want to contribute high-quality content to your website in form of a guest post through a simple 3 step process. 1. I will send three amazing topic ideas that are up to the trend and your readers' interest 2. You need to choose one topic out of those. 3. I will then send a high-quality, plagiarism-free article on that topic. You will just have to publish it with one do-follow backlink to my website. It will be a win-win. Please let me know if we shall start with step 1? Regards, Ryan Wilson


Leave a comment

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Scroll to Top