🔴How to send sensor Data from any Arduino board to MySQL Server(PHPMyAdmin) | IoT | ESP Wi-Fi module

  Рет қаралды 7,861

Makers Group

Makers Group

Күн бұрын

#mysql #IoT #esp8266 #phpmyadmin
The link to both the Arduino and PHP code:- github.com/Mak...
Xampp Full installation:- • 🔴XAMPP Full Installati...
In this comprehensive guide, we will walk you through the process of establishing a reliable connection between an Arduino board and a MySQL server using a WiFi module in the year 2024. By following the steps outlined below, you will be able to seamlessly transmit data from your Arduino to a MySQL database, enabling efficient storage and retrieval of information.
Step 1: Gathering the Required Components
To begin, we will list the necessary components for this project, including the Arduino board, a compatible WiFi module, and a MySQL server with a network connection. We will also recommend specific models and versions that are known to work well together.
Step 2: Setting up the WiFi Module
Next, we will guide you through configuring and connecting the WiFi module to your Arduino board. Clear instructions will be provided, covering aspects such as establishing a connection to the local network and configuring the module to communicate with the MySQL server.
Step 3: Configuring the MySQL Server
This step will focus on preparing your MySQL server to receive data from the Arduino. We will cover essential tasks, such as creating a new database, defining relevant tables, and establishing the necessary user privileges for accessing and modifying data.
Step 4: Programming the Arduino
Here, we will dive into the code required to establish a connection between the Arduino and the MySQL server via the WiFi module. You will learn how to leverage appropriate libraries and APIs, and we will provide a detailed explanation of each code segment to ensure a clear understanding.
Step 5: Transmitting Data to the MySQL Server
With the necessary groundwork laid, we will demonstrate how to read sensor data or any other relevant information from the Arduino and send it to the MySQL server. We will cover techniques for data formatting, establishing a secure connection, and executing queries to insert or update records in the database.
By the end of this tutorial, you will have a fully functional Arduino-to-MySQL integration, allowing you to seamlessly transmit data from your Arduino board to a MySQL server via a WiFi module. With the added ability to search and retrieve specific data from the database, you will have a powerful tool at your disposal for various IoT applications, data logging, and more.

Пікірлер: 19
@evidencew
@evidencew 6 ай бұрын
Thank you! Clear and easy tutorial
@makersgroup
@makersgroup 6 ай бұрын
Glad you liked it!
@nuelhirani9346
@nuelhirani9346 5 ай бұрын
i can't see the code clearly, already in 1080p still got bad video quality.
@makersgroup
@makersgroup 5 ай бұрын
Sorry and I accept your comment. But if you need the code you can use the github link in the discription
@emrehoshikami1854
@emrehoshikami1854 5 ай бұрын
aslında başlığa php üzerinden post yada get işlemi ile veri ekliyorum yazsan hiç izlemeyiz bile. bunlar çok basit kullanışsız yöntemler...
@Andriasgvino
@Andriasgvino 6 ай бұрын
Hello, I am getting compilation error as I cannot find the proper libraries. could you please provide the link for the proper libraries as well?
@tom_mangaka8355
@tom_mangaka8355 5 ай бұрын
hi i am having the same issue here, have you found a solution good sir ?
@Andriasgvino
@Andriasgvino 5 ай бұрын
@@tom_mangaka8355 unfortunately no :(
@mohdshafierahaman4858
@mohdshafierahaman4858 4 ай бұрын
float sensor reading=analogread(D4); why error, when I want to read from real sensor (pin D4) sir
@mohdshafierahaman4858
@mohdshafierahaman4858 4 ай бұрын
Done: int temperature = 0;// you can get the actual value from attached sensor int humidity = 0;// you can get the actual value from attached sensor float sensor_reading=analogRead(A0); sendval = sensor_reading; sendval2 = sensor_reading; postData = "sendval=" + sendval + "&sendval2=" + sendval2; Tq
@FQusyairi
@FQusyairi 5 ай бұрын
Sir, may I ask, is it possible after I finish creating the database and I display the level sensor on my html page
@makersgroup
@makersgroup 5 ай бұрын
Offcource you can !! you have to featch the data from the stored database to display on your html webpage
@FQusyairi
@FQusyairi 5 ай бұрын
@@makersgroup with use your code?
@makersgroup
@makersgroup 5 ай бұрын
The given code is used to store sensor data on to mysql server. Once you used the given code to store data on mysql server , you need to write a new php code to fetch the data and html code to display the featched data.
@sagunrai8689
@sagunrai8689 3 ай бұрын
hey, I'm getting connection refused by the server error.
@makersgroup
@makersgroup 2 ай бұрын
Check if it works after you restart your PC and also you can fix any erroe of Xampp server using one of our video avalioble in this channel
@sagunrai8689
@sagunrai8689 2 ай бұрын
@@makersgroup Did everything. Still didn’t work. So I directly connected to the host of my website.
06. ESP32 + Firebase Realtime Database + Android Studio  - IoT Development
18:33
Люблю детей 💕💕💕🥰 #aminkavitaminka #aminokka #miminka #дети
00:24
Аминка Витаминка
Рет қаралды 1,4 МЛН
Dad Makes Daughter Clean Up Spilled Chips #shorts
00:16
Fabiosa Stories
Рет қаралды 8 МЛН
Fire Detection System in Python using Opencv | English
34:22
GR Tech Institute Tamil
Рет қаралды 181
Send DHT11 data to PHP MySQL Server using NodeMCU ESP8266
9:31
Ahmad Logs
Рет қаралды 15 М.
Cursor Is Beating VS Code (...by forking it)
18:00
Theo - t3․gg
Рет қаралды 68 М.
Sending Temperature and Humidity Data to MySQL Server(PHPMYADMIN) using Arduino
28:32
Embedotronics Technologies
Рет қаралды 211 М.
WEBSOCKETS WITH ESP32 - REAL TIME CONTROL
13:19
Jadsa Tech
Рет қаралды 25 М.