how to send and receive Words " type String " using Bluetooth with arduino

Опубликовано: 28 Сентябрь 2024
на канале: DARKPINK_Electronics
6,455
33

thanks for watching i hope you enjoyed

the code and schema will be available in the future stay tuned:

https://drive.google.com/drive/folder...

0:00 start
0:15 test
0:28 software serial code explication (master code)
0:56 upload code (master code)
0:58 choose right arduino com (master code)
1:33 software serial test (arduino rx = 2; arduino tx = 3; rx bluetooth = tx arduino ; rx arduino = tx bluetooth) (master code)
1:46 my function to send String data (master code)
3:15 define button and use it as sensor (master code)
4:08 receiver code explication (receiver code)
6:06 test error of not using one_time variable (receiver code)
6:35 last test without any errors
6:50 search for pull down resistor (master circuit)
7:06 end

what you need :
1-arduino with cable * 2
2-bluetooth hc-05 already programmed as an slave or master * 2
3-button * 1
4-resistor of 1k ohm * 1 // if you didn't use it, the button as sensor will give you wrong data
5-test board * 2

if you want to know more about c/c++ search for:

- what are the deferent types of data in c/c++?
- what is an integer ?
- what is a string ?
- how while loop work?
- how to get length of a word?

if you want to know more about arduino editor:

- how if statement work?
- how software serial work?
- what does #include function do?
- why do we use serial.began in arduino?
- how to send data using bluetooth hc_05 master and slave? " in my code was bl.write "
- how delay function work?
- how void start work and void loop?
- how can i create my own void in arduino?
- what does pinMode function do ?
- what does define function do ?

in circuit search for:

- how pull down resistor work?
- how microcontroller or arduino work?

follow me on :
soundcloud :   / kz-gamer-290451133  
youtube :    / @darkpink_electronics4523  
twitter :   / darkpinkp