Arduino with accelerometer as game controller

Hey everyone,

So I am quite new to everything Arduino but I really like thinking about all of the possibilities. So now I am trying to build myself a game controller. I am using the A-Star 32U4 and the MPU6050 acc/gyro.

Can anybody please tell me how can I adapt the diagram for connecting the Uno to the MPU6050 in order to connect the 32U4 and the MPU6050?

Thanks!

Find the SCL and SDA pins of your controller, connect them to the SCL and SDA pins of the IMU. If the operating voltage of the controller and IMU differ, you need I2C level shifters.

But the thing is I can't find info about the voltage I should output!? I have a logic converter I can use but I don't know if I should.

Also, can you recommend any links for the coding side of my project? Thanks :slight_smile:

You should know the voltage from which you power the controller and the IMU.

There are many tutorials and projects out in the web. If you use an Arduino, the code does not normally deserve any changes. For a naked 32U4 you'll have to select the right library versions etc., nothing for a newbie like you.