Accelerometer Visualizers

Servo

Visualizing the change of accelerometer with a servo.

BOM:

Arduino Uno x 1

Accelerometer (MPU6050) x 1

Servo x 1

Jumper wires x 8

 

Schematic:

accelerometer servo

 

 

 

 

Code:

X-index turns the servo from 0 to 90 degree and y-index turns the servo from 90 to 180 degree, while z-index changes the speed of servo’s turning.

Demo Video:

Processing

Visualizing the x index, y index, and z index of the accelerometer in processing. The processing program reads the values through the serial port and display a mosaic art based on the users’s interaction with the accelerometer.

BOM:

Arduino Uno x 1

Accelerometer (MPU6050) x 1

Jumper wires x 5

 

Schematic:

processing

 

Code:

Arduino

Processing

Demo Video:

 

LCD Screen

BOM:

Arduino Uno x 1

Accelerometer (MPU6050) x 1

TFT Screen x 1

Jumper wires x 8

 

Schematic:

Unfortunately Fritzing doesn’t have the lcd screen I am using.

97k66v

CS to pin 10

RST to pin 8

RS to pin 9

SDI to pin 11

CLK to pin 13

LED to pin A0

Code:

The LCD screen draws circles of different sizes and colors based on the acceleration directions. X-index = blue, y-index = red, and z-index = green. The size is based on the range of acceleration.

 

Demo Video:

Leave a reply

Skip to toolbar