Arduino PID Control System (Ball and Beam)
This is a ball-and-beam control system I designed and 3D printed to learn about PID control. I've posted the CAD and code for this project on my Github page here: https://github.com/IVProjects/Enginee... The control electronics consist of an Arduino Uno, a CNC shield, and a TMC2209 stepper motor driver. The TMC2209 motor driver allows the stepper motor to operate very quietly by interpolating step signals into 1/256 microstepping. The distance sensor I used is an HC-SR04 ultrasonic distance sensor. This sensor typically provides rather noisy data, so I used a moving average to act as a low-pass filter and attenuate the high frequencies. I also added some simple outlier rejection to remove the occasional erroneous measurement. I used a 12-bit AS5600 absolute magnetic encoder on the stepper motor to track the position of the motor. These sensors operate on the Hall effect and use I2C protocol to communicate with microcontrollers. I designed and printed a housing that attaches to the back of a NEMA-17 stepper motor and holds the encoder board in the correct location relative to the magnet. The encoder magnet is diametrically magnetized and is attached to the back of the motor shaft. I originally planned to use a ping pong ball as the rolling element of the system, but the distance sensor was not able to reliably provide clean data. I think the reflected sound from the sphere was too small in this case. That's why I made the cart with a large acoustically reflective surface. To set the PID target position, I mapped the output of a 10k potentiometer to the position along the beam.

What is a PID Controller? | DigiKey

Revealing The SPECIAL TECHNIQUE Of A Pakistani Man To EXTRACT GOLD From Used Motherboard Waste

Kinetisches Bildobjekt / Allerlei auf Blech 2

65 Unbelievable Aviation Moments Caught on Camera

Nobody Breaks Celebrities Like Mr.Bean!

Stop Buying the Wrong Board — Arduino vs ESP32 vs STM32 vs Raspberry Pi vs BeagleBone vs Jetson Nano

Die lächerlichsten Fehler von Arbeitern, gefilmt mit der Kamera

See How a 453kg Giant Bluefin Tuna Is Flawlessly Carved in Seconds

Ukrainian Drones STRIKE Russia’s Largest Port – Then THIS Happened...

Why China Built The World’s Most Unprofitable Train Network

What does a PID controller do?

Incredible Street Performers – Caught on Camera

Unbelievable Smart Worker & Hilarious Fails | Construction Compilation #7 #adamrose #smartworkers

What Is PID Control? | Understanding PID Control, Part 1

Totale Idioten bei der Arbeit mit der Kamera gefilmt

I Modified My Bicycle To Run Lightning Fast. Everyone Was Amazed!

The BEST Mechanical Display You've EVER Seen!!
![PINK & ORANGE GRADIENT IN HD [3 HOURS]](https://i.ytimg.com/vi/6ih8zppfQSQ/hqdefault.jpg?sqp=-oaymwE9CNACELwBSFryq4qpAy8IARUAAAAAGAElAADIQj0AgKJDeAHwAQH4Af4JgALQBYoCDAgAEAEYfyAsKBMwDw==&rs=AOn4CLDvw6mQM98bfl572zfE7r4GdUG8dg)
PINK & ORANGE GRADIENT IN HD [3 HOURS]

Never Buy a Water Pump Again! A 65-Year-Old Plumber Made His Own Water Pump Using PVC Pipes | Update

