![]() |
| (An example of how the accelerometer function in the IMU) |
Saturday, December 9, 2017
21 November '17- Day 24- Python Visualization and MPU 6050
Day 24 started with a Mega Lab as Mason describes it. This lab was to include a visual representation of objects in motion using Python and also involved the usage of the MPU 6050. The python lab was a bit of a disappointment on my end since my laptop was unable to download all the necessary software to use in the lab. My lab partners were successful in getting the python running on their laptops. I stood by and watched as they adapted the Python code into the Arduino IDE. One of the sensors that first utilized in python was the ultrasonic HC-SR04 sensor. This sensor can give an accurate distance of an object. The Python visualization portion of it allowed the program to change the length of a cylinder by integrating the distance sensors reading when moving your hand toward and away from it. The MPU 6050 is an Inertial Measurement Unit. This device can measure with an integrated accelerometer, gyroscope, magnetometer, and altimeter. Once we got the python visualization to work properly on the computer we then carried on to the sensor and getting data to read back from it. The sensor gave our lab group some initial troubles since our data was not quite exact to what other groups were getting. We found out later on that we had the wrong sensor and had to find the correct one to use. Once we got situated the sensor values came out as predicted.
Subscribe to:
Post Comments (Atom)



No comments:
Post a Comment