Auto Click in mouse 4N35 and arduino

I'm trying to do the left click of a mouse
I send the signal from the arduino
I use a 4N35 optoclopper. but the schemes that I see do not work for me

I need to close the left mouse button

I used this scheme to shoot a camera and it worked for me, but I don't know how to connect it to the mouse button

Any ideas?scanner super 8 mm Arduino

Hi, welcome to the forum.

Which mouse is it ?
Can you give us a broader view of your project ? Why do you want to press that mouse button ?

Any button can be replaced with a reed-relay, but if a optocoupler is possible than that is easier.

1 Like

A mouse left-click is done with a Leonardo board and the Keyboard library.

But perhaps there are other ways, for example a script or something else.

2 Likes

It would help if you posted a schematic, not a frizzy drawing and tell us what you are trying to control.

1 Like

I am making a super 8 film scanner with aduino, the camera sends the video image to the pc and through a video editing program I can capture one by one, with the capture button.
the idea is to leave the mouse over the button, but the arduino is doing the auto clicp.

For some reason the 4N35 optoclopator does not close the mouse click circuit well, I think it is because there is a resistance of 150ohm when it is closed.
perhaps with a mechanical relay it is possible to close the button

Thank you very much for your answers

Have you looked into this: This is an Automated Film Scanner Made from Legos and a Raspberry Pi | PetaPixel
and this: How to Make an Auto 35mm Film Scanner with Arduino Nano and Python | PetaPixel
?

1 Like

I would use, as @Koepel suggested, a Leonardo, Micro or some smaller 32U4 variant.

There are pretty small ones

https://de.aliexpress.com/item/32617886318.html

problem solved
For some reason the wiring was wrong :-), I desoldered and re-soldered the wiring and it worked
4N35 schematic works well as mouse auto click
Thank you very much for your help

I pity the mouse. :wink:

1 Like

It was just Hungry!

1 Like

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.