Control your mouse with Arduino! Automate simple tasks!

Поделиться
HTML-код
  • Опубликовано: 25 окт 2024

Комментарии • 48

  • @devmarboy4045
    @devmarboy4045 Год назад +2

    thanks so much i didnt feel like reading and going through the arduino code so i decided to find a video and you taught me everything i needed to know to code my controller lol

  • @dezmach93
    @dezmach93 Год назад +1

    This video helped me a lot with my Davinci Resolve controller project. Some of the functions are not available from their keyboard shortcut list so I had to program a series of mouse movements and left clicks to get to a specific menu. Awesome tutoria! Thank you!

  • @TheMarbo74
    @TheMarbo74 2 года назад +7

    Great video!
    The mouse moves in a relative way. Would be good to have an "absolute move" function to have mouse click in the same spot repetitively like an icon in the task bar.. I guess a workaround would be to move an incredibly ridiculous amount first to guarantee the mouse is in 0,0. Then move relatively.

  • @frazier283
    @frazier283 2 года назад +5

    One more suggestion ( that I should have mentioned in the last comment) if you put a delay of say 15 seconds somewhere in your setup Loop this will give you a 15-second buffer between when you plug in your Arduino and your sketch starts running giving you the 15 seconds to uploaded a corrected sketch once you've perfected your sketch you simply comment out or remove the delay.

    • @programmingelectronics
      @programmingelectronics  2 года назад +2

      Nice! I love that idea! Thanks for sharing.
      I have a feeling this was learned in the school of hard knocks :)

    • @frazier283
      @frazier283 2 года назад +2

      @@programmingelectronics yes sir, I learned that shorting something out is not the only way to "brick" one. 🙂

    • @PrismaDimensional
      @PrismaDimensional 2 года назад +1

      This is the best tip for everything watching this video!

  • @ProcrastinatingGameCat
    @ProcrastinatingGameCat 2 года назад +2

    At 27:00 you make the "move window" rutine and just say cool it works. It did not do what we expected? Why did the window move twice as far as the mouse?

    • @programmingelectronics
      @programmingelectronics  2 года назад

      This is a great question - I see what you mean! I'll have to investigate and see why that happened...

  • @eni9mv
    @eni9mv 2 года назад

    but when i plugged it in hostshield the cursor not moving any help ????

  • @hadhas404
    @hadhas404 Год назад

    Is there a possible way to do this using an Arduino UNO R3?

  • @TheUnofficialMaker
    @TheUnofficialMaker 2 года назад +1

    Yeah, that's really fun!

  • @bksauamatungkas6071
    @bksauamatungkas6071 Год назад

    hallo, maybe this is a funny question, but how can I do this with Arduino to right mouse button "release the button is pressing and holding, pressing is release the button" its like to reverse the function. :DD

  • @gjsanu
    @gjsanu 2 года назад +2

    Hi Could you make a video on Auto Mouse Clicker/Jiggler for WFH environment to keep system awake🙏

    • @lozD83
      @lozD83 2 года назад +1

      This idea is exactly what brought me here. In fact, the keyboard tutorial might be enough to achieve what you want. Just have it automatically send a certain key press every so often. I haven't tried it yet, but might be easier than relying on something that jiggles the mouse cursor

  • @Fysh-gn2lq
    @Fysh-gn2lq 2 года назад +1

    is there anyway i can make the mouse register only one click. and how to i make the right click aswell?

    • @programmingelectronics
      @programmingelectronics  2 года назад

      Great questions!
      Right click can be done with modifier keys:
      www.arduino.cc/reference/en/language/functions/usb/keyboard/keyboardmodifiers/
      As far as registering one click - do you mean, just having it make one click?

    • @Fysh-gn2lq
      @Fysh-gn2lq 2 года назад

      @@programmingelectronics yeah like one click at a time

  • @talicz9081
    @talicz9081 Год назад

    Does this lobrary allso work on esp8266

  • @sheminasalam
    @sheminasalam 2 года назад +1

    Hi there, awesome video. I have been looking for something like this for project, emulating a mouse over mqtt for my cctv. I have experience with esp8266. Can the mouse library be combined with the Esp8266 modules to make a mouse over mqtt?

    • @programmingelectronics
      @programmingelectronics  2 года назад

      Great question! I do not believe the ESP8266 support the Mouse or Keyboard Library.

    • @sheminasalam
      @sheminasalam 2 года назад

      @@programmingelectronics Yes Esp doesnot support mouse or keyboard but I am trying to use esp8266 over mqtt to make an arduino pin high which can be trigger for the mouse clicks. This could be possible with a common ground or drawing power for esp from arduino itself. But then again the problem I think could happen is that esp gpio works at 3.3v which maybe too little for the arduino to realize as high.

  • @dhanrajverma-h1y
    @dhanrajverma-h1y 4 месяца назад

    Arduino Uno will work ?

  • @jamesoliver8252
    @jamesoliver8252 4 месяца назад +1

    Thank you.

  • @watch54
    @watch54 2 года назад +3

    thanks.

  • @arkodeepchatterjee
    @arkodeepchatterjee Год назад +1

    will this work on Arduino Uno??

  • @Maxko7y
    @Maxko7y Год назад

    my mouse does not move when i connect it to the usb host shiel but it stays on can anyone help me?

  • @TheJimtanker
    @TheJimtanker 2 года назад +1

    What about being able to READ data from a mouse?

    • @programmingelectronics
      @programmingelectronics  2 года назад

      Cool idea! Just to make sure I follow, like to get information about # of clicks?

    • @TheJimtanker
      @TheJimtanker 2 года назад +1

      @@programmingelectronics Mainly I want to get the X and Y movement and then use that to control speed. Mouse buttons would be use do increment/decrement a variable to fine tune the movement. I've found a USB Host shield that is supposed to do what I need and there is a library to use with it. More to come.

    • @michaelcheich2481
      @michaelcheich2481 2 года назад

      Very cool @@TheJimtanker !

    • @TheJimtanker
      @TheJimtanker 2 года назад

      @@michaelcheich2481 Come to find out, I need an Arduino Due to use the USB Host shield. Darn!

  • @firstnamesecondname5341
    @firstnamesecondname5341 2 года назад +6

    Skip Ad button automatically clicked 😁

  • @ownyourself1001
    @ownyourself1001 2 года назад

    i want to connect pc keyboard with arduino and control mouse crouser
    Please

  • @Darkstar327
    @Darkstar327 2 года назад +2

    19:15 who else held there screen trying to guess where the mouse would move

  • @erwahnenswert2344
    @erwahnenswert2344 Год назад

    0:09 no why 😫

  • @ownyourself1001
    @ownyourself1001 2 года назад

    please response me