Hi i have a 28m agricultural sprayer and i want to use ultrasonic sensors to control the tilt . I was hoping to add one sensor on each tilt and use them to split the difference to control the hydralic ram to mantain equal distance between each tip im not too worried about mantaining a specific height is tbis possible and how do i go about it
It looks difficult. What is the surface below the ultrasonic sensors? The soil below them is not like a dining room floor and the readings will vary a lot.
Maybe mathematical averaging can give useful data for each sensor but averaging slows down the control cycle.
A 3D accelerometer can be used to accurately measure tilt angles, but only when it is held still.
See this tutorial How_to_Use_a_Three-Axis_Accelerometer_for_Tilt_Sensing-DFRobot
Using the (now-obsolete) MPU-6050 IMU module with the arduino MPU6050_6Axis_MotionApps20 library will access the module's internal Kalman filter to perform sensor fusion between the gyro and accelerometer and provide a stable reference plane even as the sensor moves around. I assume that there's an updated library for the newer versions of that IMU.
I built a small platform that holds a shot glass level as you attempt to drink from it. I haven't been able to tilt it enough yet...
Post the code, and maybe forum members can help fix that problem. Or is it the code?
It's amazing how hard it is to drink from a glass when every time you try to tilt it, a robot makes it level again. I guess a few strategic Serial.print()'s would slow the loop down enough so I can beat it.
TBH, it only stabilizes in one axis, so if I really need my tequila, I can always tilt the machine the other way.
I would probably trick the machine with a bendable straw, or tubing.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.