How to control multiple things with Android phone? #flutter #androidapp #learningflutter #bluetooth

preview_player
Показать описание
In this application, we have combined the bluetooth control applications that we have done before. We have seen how to control two different colored led diodes, a buzzer, a DC motor and a 220 volt lamp with the same Android application.
You can check our previous videos about DC motor control, 220 volt lamp control, buzzer control and led control.

The HC05 Bluetooth module works in Slave mode in this application. So it has the task of receiving data from Android phone. In the control application we wrote with Flutter-Dart, the sendData function runs every time a button is pressed and sends string data to the hc05 module. For example; When we press the LedOn button, the data sent is "ledon". The way the other buttons work is the same.
#flutterappdevelopment #flutter #programming #dcmotor #buzzer #hc05

Рекомендации по теме
Комментарии
Автор

I always wanted to ask some important questions about your latest project. From the 3 projects i have been seen from your videos and articles, I always see some repetitive pattern on the code. Some of them are;

1. You always use a string type data to send command into your arduino, can i use int type data to send command to my arduino? and why there is no type_data package while using the Uint8List function? isn't it needed type_data package to run the function?

2. In <Future connect(String address) async {..}>, why do you need to use this function <"sendData('111');">. What is the '111' data refer to? is it the password of the bluetooth module you are using? or something else?

3. You always connect one bluetooth module per project. Then, i want to ask you about can i use two bluetooth module hc-05 with two different buttons to connect to each modules? if so, can i just connect both of them by pressing each button?

Please i need your help for my following final project, hope you can help me sir.

-RahmatRamadhanAtrima
welcome to shbcf.ru