Embedded Local Database Storage: MySQL
Capture STM32 sensor readings over UART and store them locally in MySQL with a Node.js application.
About this course
This project keeps the data pipeline local. It connects the device-side ADC and serial driver to a Node.js receiver and a SQL database.
Practise database connections and operations, implement the serial parser, then test the complete path from a sensor reading to a stored record.
Read moreShow less
This course explores the intersection of UART communication, and NodeJS, coming together in the creation of efficient embedded systems that seamlessly store data in MySQL databases.
This course brings you face-to-face with MySQL Workbench, where you'll learn to design, create, and manage robust databases and understand the essentials of SQL commands and database operations.
...brings everything together, configuring STM32 to send data via USB, received and processed by NodeJS, and eventually stored efficiently in the MySQL database.
After completing this course, you will be able to:
- Integrate STM32, NodeJS, and MySQL to create an embedded system that sends data via USB and stores it efficiently in a MySQL database.
- Set up and use a NodeJS environment for device communication and data handling.
- Design, create, and manage a MySQL database using MySQL Workbench.
- ...much more
What you’ll be able to do
Explain the local sensor data pipeline
- Trace a reading from the ADC through UART, Node.js, and MySQL.
- Explain the role of the serial parser between incoming bytes and stored records.
- Distinguish a SQL database from other database models covered in the course.
- Compare local and hosted storage for an embedded project.
- Describe how a Node.js application manages its database connection.
- Explain which checks help distinguish a serial connection fault from a database fault.
Build and test local sensor storage
- Set up Node.js and MySQL and connect them.
- Run insert and delete operations from Node.js.
- Configure STM32 peripherals for acquiring and sending readings.
- Implement the Node.js serial receive driver and parser.
- Initialise the database and handle incoming connections.
- Test the full application and confirm that sensor records are stored.
Course curriculum
This course explores the intersection of UART communication, and NodeJS, coming together in the creation of efficient embedded systems that seamlessly store data in MySQL databases.
This course brings you face-to-face with MySQL Workbench, where you'll learn to design, create, and manage robust databases and understand the essentials of SQL commands and database operations.
...brings everything together, configuring STM32 to send data via USB, received and processed by NodeJS, and eventually stored efficiently in the MySQL database.
After completing this course, you will be able to:
- Integrate STM32, NodeJS, and MySQL to create an embedded system that sends data via USB and stores it efficiently in a MySQL database.
- Set up and use a NodeJS environment for device communication and data handling.
- Design, create, and manage a MySQL database using MySQL Workbench.
- ...much more
Frequently Asked Questions
Your Instructor
EmbeddedExpertIO represents a vibrant collective dedicated to the mastery of sophisticated embedded systems software development for professionals.
Our core objective is to equip individuals and organizations with the indispensable skills to thrive in the swiftly evolving embedded systems sector. We achieve this by providing immersive, hands-on education under the guidance of seasoned industry specialists. Our ambition is to emerge as the favored learning platform for embedded systems development professionals across the globe.
Course Curriculum
-
StartIntroduction to NodeJS (5:51)
-
StartSetting Up NodeJS and MySQL (7:51)
-
StartSetting Up VSCode (8:16)
-
StartProgramming: Writing your first NodeJS Script (6:01)
-
StartProgramming: Creating a Server with NodeJS (9:44)
-
StartProgramming: Connecting to MySQL database (12:55)
-
StartProgramming: Inserting Data into the Database (5:43)
-
StartProgramming: Fetching Data from the Database (3:28)
-
StartProgramming: Updating Database Rows (3:50)
-
StartProgramming: Deleting Data from the Database (8:11)
-
StartSource Code Download
-
StartNotice
-
StartProgramming : Enabling the Floating Point Unit (FPU) (18:00)
-
StartOverview of UART Communication (1:53)
-
StartProgramming : Developing a UART Driver - Analyzing the Documentation (11:35)
-
StartProgramming : Developing a UART Driver - Listing out the steps (4:00)
-
StartProgramming : Developing a UART Driver - Implementing the Init. function (22:13)
-
StartProgramming : Developing a UART Driver - Implementing the Write function (5:39)
-
StartProgramming : Developing a UART Driver - Testing the Driver (6:39)
-
StartProgramming : Developing the System Timebase - Analyzing the Documentation (8:28)
-
StartProgramming : Developing the System Timebase - Implementing the Init. function (9:52)
-
StartProgramming : Developing the System Timebase - The rest of the functions (12:15)
-
StartProgramming : Developing the System Timebase - Testing the Timebase (5:34)
-
StartProgramming : BSP : Listing the out the Required Functions (7:55)
-
StartProgramming : Writing the LED Driver (5:01)
-
StartProgramming : Writing the PushButton Driver (4:00)
-
StartProgramming : Testing the Board Support Package (3:35)
-
StartProgramming : Analyzing the Documentation (5:21)
-
StartProgramming : Listing out the steps for developing the ADC Driver (5:27)
-
StartProgramming : Writing the ADC Initialization function (13:21)
-
StartProgramming : Writing the ADC Read function (14:05)