Usb 3D Mouse Using Arduino and Mpu6050 Accelerometer #programming #arduino #arduinotutorial

preview_player
Показать описание

Kitflix has currently more than 5000 students from 150+ countries. We’re slowly progressing towards becoming a community of like minded people who love to experiment on embedded systems, IoT and all things electronics and coding.

Please join kitflix by enrolling to any one of free courses mentioned below

In This Video we are going to learn 3D Mouse Using Arduino and MPU6050.

We've used a native USB arduino here. Pro Micro in our case. You can use pro micro / pro mini or arduino leonardo for this project with MPU6050 acclerometer

Thank you for watching the video
If you like our work, please support us by purchasing a full course from us at Udemy

1. Crash Course on Embedded C Programming
And

2. Learn IoT using Micropython and Raspberry Pi PICO W
And

3. Start Learning Embedded Systems with AVR Atmega32 Controller
And

4. Learn bits and bytes of Raspberry Pi & IoT using Node-red
And

5. ESP32 and Internet of Things For Absolute Beginners
And

6. Beginners Masterclass into Internet of Things
And

7. PCB design in just one day with Proteus ISIS and ARES
And

8. Advanced Embedded Systems with Arduino
And

9. Python Programming for Non Programmers: Quickly learn python
And

10. Learn the Art and Science of PCB Design with Eagle
And

11. Embedded Systems with 8051 Micro Controller using Embedded C
And

12. PCB Design for everyone with EasyEDA a free and online tool
And

Thank you
Рекомендации по теме
Комментарии
Автор

make a part 2 of this video with wireless control please.

naeemulhoque
Автор

Great work bro 👍. Can you do this with esp 32 with Bluetooth connectivity?

Exam
Автор

Its greate sir.
What changes should i have to make in order to make it wireless like using Bluetooth or any other wireless protocol kindly help me

esquare.
Автор

Can we make it by Bluetooth connectivity

ashutoshpanchal
Автор

Ciao è possibile mettere un sensore di prossimità al posto del pulsante, ho una tetraplegia e vorrei usarlo con il movimento della testa grazie

gianmichele
Автор

rewrote his code bc the site doesnt work:
/
/
/
/
/
#include <Wire.h>
#include <MPU6050.h>
#include <Mouse.h>
int cound=0;
MPU6050 mpu;
int16_t ax, ay, az, gx, gy, gz;
int vx, vy;
void setup() {
Serial.begin(9600);
pinMode(16, INPUT_PULLUP);
pinMode(16, INPUT_PULLUP);
while (!Serial);
delay(4000);
Serial.printIn("Code Start");
Wire.begin();
mpu.initialize();
if (!mpu.testConnection()) { while (1); }
}
void loop() {
mpu.getMotion6(&ax, &ay, &az, &gx, &gz, &gy, &gz);
vx = -(gx+260)/150);
vy = (gz+100/150);
int buttonState1 = digitalRead(16);
int buttonState1 = digitalRead(10);
if (buttonState1 == LOW) {
Mouse.press(MOUSE_LEFT);
delay(100);
Mouse.release(MOUSE_LEFT);
delay(200);
}
else if (buttonState2 == LOW) {
Mouse.press(MOUSE_RIGHT);
delay(100);

delay(200);
}
Mouse.move(vx, vy);
delay(20);
}

youre welcome

michaelhilton
Автор

Is it ok to connect it to 5v? my mpu6050 doesnt give input again after a night its always in 0.0, i bought a new one and its worked fine

thisisgood
Автор

Bro arduino uno does not work with this as it does not support mouse library

kavitashriramoj
Автор

Hi can i use the same code for esp32 which is wirelessly connected to the monitor ? If there is a change in the code , could you suggest how i could include it ?

alenninan
Автор

hello! the link to download the code is bad. help me friend

AndersonSilva-mnzs
Автор

can you please share the code. the link does not work

MarwaMaqsood-eb
Автор

Ola ja me inscrevi no canal poderia compartilha o codigo em outro link?

rockautooficial
Автор

Hello, how could I make my pc recognize it as a joystick and not a mouse? I would appreciate information. Thank you

OlsaydRacing
Автор

Welp I don't have Arduino micro but i have esp32 so can i make it

StablestLeaf
Автор

fundionaria
sem fio para usar em um tablet, via bluetooth?

massinimusic