IoT of MCU
Ultra-highspeed real-time monitor of WebSocket on Microcontroller [STM32Nucleo]

I managed to send data from a microcontroller (STM32Nucleo) implementing WebSocket to a browser and display it on the monitor, but when I increased the update rate, the system became unstable and would stop or disconnect. At first I thought it was due to browser or WebSocket specifications, but when I found the cause and […]

Read more
IoT of MCU
Bidirectional communication via WebSocket on Microcontroller[STM32Nucleo]

In the previous article "Bidirectional communication via WebSocket on Microcontroller", I explained how to develop IoT for devices more closely by installing a web server in MCU and accessing it from a browser such as a PC or smartphone without using a dedicated application. Browsers usually communicate with devices according to the HTTP protocol, but […]

Read more
IoT of MCU
Microcontroller system with the HTTP protocol [STM32Nucleo]

If the microcontroller is equipped with a TCP server, which I explain in the section "Socket communication with TCP server", it can easily be developed into a web server configured with the HTTP protocol. The advantage of a system equipped with a web server is that it can be accessed from a browser, allowing communication […]

Read more
IoT of MCU
Socket communication with TCP server[STM32Nucleo]

Simply making MCU Ethernet-enabled and joining the network with ping passing through it does not mean anything, but by installing protocols such as TCP and UDP in the upper transport layer, communication between the server and the client becomes possible. Socket communication is a means of communication according to the TCP protocol, which belongs to […]

Read more
IoT of MCU
Microcontroller Ethernet-enabled system design [STM32Nucleo]

Table of contents1 Fundamentals for connecting MCUs to the Internet1.1 Network hierarchy2 Selecting a LAN Controller for Ethernet Support2.1 XPORT2.2 ENC28J60 Lan controller2.3 W5500 Lan controller2.4 LAN8720 Lan controller3 Controller W5500 with built-in TCP/IP protocol stack3.1 NUCLEO-F103RB and W5500 module4 STM32 and W5500 driver4.1 What is W5500 driver?4.2 SPI communication and driver customization for W55004.3 […]

Read more
Measurement Applications
Let's clarify the mechanism of the complementary filter [acceleration/gyro sensor]

Complementary filters are often used to combine accelerometers and gyroscopes, but there are few explanations on the details of these filters. It is interesting to know how the complementary filter equation is derived and what the equation means. I will explain the calculation process to show that there is a deep meaning in a relatively […]

Read more
Measurement Applications
Posture detection by accelerometer and gyro sensor [STM32Nucleo]

The GY-521 Sensor Board with Accelerometer and Gyro Sensor (MPU-6050) can easily acquire 3-axis acceleration and 3-axis gyro data via I2C interface, and is recommended for its high information content and low cost. However, most of the information on the Internet is for Arduino, and while the programming can be easily utilized by anyone using […]

Read more
Measurement Applications
Graphing and collecting sensor data via serial communication on STM32 MCU

When creating applications, it is often necessary to collect digital data such as sensor data captured by MCU while graphing it in real time like an oscilloscope. We introduce an easy-to-use data logger that can import data into Microsoft Excel while displaying the data on a PC monitor using serial communication. Table of contents1 What […]

Read more
Measurement Applications
Accelerometer using STM32 Nucleo

Table of contents1 What is an Accelerometer?2 About Gravity and Acceleration3 Application using acceleration sensors What is an Accelerometer? Among various sensors, accelerometers are often used in invisible places in products, so many people may not know what they are, despite their high utilization. For example, it is used in smartphones to change the orientation […]

Read more
Measurement Applications
Thermometer using STM32 Nucleo

I will create an application to realize a thermometer using an inexpensive thermistor as a sensor element with an STM32 MCU (Nucleo board). It is a simple program, but it can be developed into various other arithmetic applications using floating point arithmetic with the Cortex-M3 core MCU. Colum The STM32F103RB in the NUCLEO-F103RB is a […]

Read more