Project Background

Week 6 was about capacitive sensors. I looked at 3D positioning to prepare for my final project and also created a water level sensor.

3D Positioning Process

Materials



  • Arduino UNO
  • MPU6050 Accelerometer and Gyroscope sensor
  • Breadboard
  • Wires
  • Soldering tools



Testing the gyroscope and accelerometer

I wired the MPU6050 to the Arduino UNO.

diagram uno and mpu6050

And used the code from this tutorial to read from the sensor.

gif moving the mpu6050 gif moving the mpu6050 gif moving the mpu6050

I then tested different movements. For example, when laying flat on a table the z-axis of the accelerometer should equal the acceleration of gravity (~9.8 m/s^2). As we can see below, it is fairly close, but not exact. This would need to be fixed for more precise applications such as my potential final project.

graph





Water level sensor process



Materials



  • Copper tape
  • Plastic cup with measuring marks
  • Breadboard
  • Alligator clips
  • Wires
  • 2x10MOhm resistor

I tried to build the cup sensor as outlined in the class instructions page.

capacitive sensor cup

I used this code, but was getting a ton of variation on the y axis.

graph

I tried this set up capacitive sensor cup try 2

There was a relationship between the water level and the reading. To get accurate calibration next time, I would solder the set up, shorten the wires, and try both methods of capacitive sensing.