user-img

Mirko Pavleski

+ Follow

ESP32 Fluid simulation on 16x16 Led Matrix

This is a simple visually interesting toy for describing fluid dynamics.

ESP32 Fluid simulation on 16x16 Led Matrix
 
  • thumbnail-img
 

Hardware Components

  • ESP32 Development Board

    X 1
  • 6 DOF Sensor - MPU6050

    X 1
  • 16x16 Led matrix with WS2812B chips

    X 1
  • Button

    X 1

Tools, APP Software Used etc.

  • soldering kit

  • Arduino IDE

    Arduino IDE

    Arduino

Story

  Fluid simulation is a way of replicating the movement and behavior of liquids and gases in different environments. It’s widely used in fields like gaming, animation, engineering, and physics to create realistic visual effects and solve complex fluid-related problems.

 This time I will present you a very simple way to make a fluid motion simulator using a few components. This is a simulator with a relatively low resolution of 256 dots and for that purpose a Display made of 16x16 LEDs with WS2812B LED chips is used.

Detailed video description and demonstration at: https://youtu.be/AwRup7wAijU

 Specifically, I am using a cheap ready-made module with 16x16 LEDs. However, on this small "Display" I will create some really cool visualizations.

  The device is extremely simple to build and consists of only a few components.

- ESP32 Microcontroller Dev Board

- MPU6050 accelerometer module

- 16x16 Led module with WS2812B chips

- and Button

 Specifically, I am using a cheap ready-made module with 16x16 LEDs. However, on this small "Display" I will create some really cool visualizations.

  The device is extremely simple to build and consists of only a few components.

- ESP32 Microcontroller Dev Board

- MPU6050 accelerometer module

- 16x16 Led module with WS2812B chips

- and Button

 

   Now a few words about the software. The code is designed in a way that allows us to change multiple parameters, so we can simulate the movement of sand particles, liquids, gases, and other fluids.

   First of all, we can change the number of active fluid particles and the light intensity of the LEDs. With the button, we can also choose one of the three colors for the LEDs that we have defined previously. At the beginning of the code, numerical values ​​​​are given for some of the colors. 

I will also present you a version of the code where the color of the particles changes dynamically depending on their location, which gives an even more interesting visual effect.

Then follow the basic physical quantities in the form of constants. By combining their values, various ways of moving fluids are obtained.

 

  Now let's see how the device behaves in real conditions. I'll present you with just a few different situations, and you can experiment with many different combinations of physical constants.

 And finally, a brief conclusion. This simple device serves only as a visual presentation of the way several different fluids move, i.e. primarily as a visually interesting toy for describing fluid dynamics.   

 

Code
  • CODE Colors Button

    CODE_Colors_Button_19081852667b70b9898e17.zip
    Download(2)
  • CODE Color palette

    CODE_Color_palette_5175255467b70baae8c37.zip
    Download(1)
Schematic and Layout
CAD-Custom parts and enclosures
  • Grille for 3D Print

    grille_206506130267b70c7534043.stl
    Download(1)

ESP32 Fluid simulation on 16x16 Led Matrix

This is a simple visually interesting toy for describing fluid dynamics.

29
 
1
0
0

Share your project on social media to expand its influence! Get more people to support it.

  • Comments( 0 )
  • Like( 1 )
/1000
Upload a photo:
You can only upload 1 files in total. Each file cannot exceed 2MB. Supports JPG, JPEG, GIF, PNG, BMP

You May Also Like

View All
Add to cart
Board Type : GerberFile :
Layer : Dimensions :
PCB Qty :
Different PCB Design
PCB Thickness : PCB Color :
Surface Finish : Castellated Hole :
Copper Weight : 1 oz Production Time :
Total: US $
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.

PCB Assembly

PCBA Qty: BomFile:
NO. OF UNIQUE PARTS: NO. of Components:
Assembly Cost: US $
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
3dPrintingFile : Size :
Unit : Volumn :
3D Printing Qty : Material :
Total: US $12.99
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
Acrylic Type : AcrylicFile :
Dimensions: Engrave:
Acrylic Qty :
Acrylic Thickness:
Acrylic Color:
Total: US $12.99
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
CNC Milling File : Size:
Unit: Volumn:
CNC Milling Qty : Material:
Type of Aluminum: Surface Finish:
Tolerance:
Surface Roughness:
Total: US $12.99
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
Item Price Qty Subtotal Delete
Total: US $0.00
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.