Motion detection with a computer mouse and an Arduino Uno

Ғылым және технология

Table Of Content:
00:00 Introduction
00:36 Electromechanical mouse
02:22 Raw camera data of an optical mouse
03:21 Using an optical mouse for motion detection
The project page:
www.homofaciens.de/technics-ba...

Пікірлер: 174

  • @LIVERPOOLFRANK
    @LIVERPOOLFRANK8 жыл бұрын

    Very interesting to see the resolution of the optical mouse.

  • @yllonnoce
    @yllonnoce8 жыл бұрын

    I love this channel and the information it contains. Thank you so much.

  • @hosseinhayati9820
    @hosseinhayati98208 жыл бұрын

    Nice to have you back :)

  • @JeremyCook
    @JeremyCook8 жыл бұрын

    Nice job - enjoyed seeing the optical image.

  • @HomoFaciens

    @HomoFaciens

    8 жыл бұрын

    ...was hard work to center the mouse camera above the 1mm characters.

  • @solidacid1337
    @solidacid13378 жыл бұрын

    I saw this online years ago but completely forgot about it, i wanted to use it for dead-reconing. Thanks for reminding me!

  • @kingco-bruh7271
    @kingco-bruh72718 жыл бұрын

    The Accent will easily give Arnold Shwazernegger a run for his money

  • @HomoFaciens

    @HomoFaciens

    8 жыл бұрын

    ...my Austrian Cousin ;-)

  • @1two299

    @1two299

    5 жыл бұрын

    hahahaha)))) nice one)))

  • @SHINdanny

    @SHINdanny

    5 жыл бұрын

    The UZI 9mm!

  • @pomegranatechannel
    @pomegranatechannel6 жыл бұрын

    I really enjoyed both the video and your accent :)

  • @morteza1405
    @morteza14058 жыл бұрын

    this is fantastic. thanks, this is the tool that everybody can find at home you encouraged me and i finally bought an arduino leonardo and i am trying to learn it with your video. i hope i could rebuild your ideas. thank you for spreading knowledge so fun and nice,

  • @HomoFaciens

    @HomoFaciens

    8 жыл бұрын

    An Arduino Board is a good investment! More details about the mouse sensor are available on my project page: www.homofaciens.de/technics-base-circuits-computer-mouse_en_navion.htm

  • @rhoula
    @rhoula8 жыл бұрын

    Thank you for the great information.

  • @fjn667
    @fjn6674 жыл бұрын

    "I'll be back"

  • @Talaxianer
    @Talaxianer4 жыл бұрын

    Best video about optical mice on YouTUbe

  • @Rouverius
    @Rouverius8 жыл бұрын

    Great video. Thanks for the information. I wonder if the optical mouse camera could be adapted to detect distant motion like a passive IR sensor.

  • @HomoFaciens

    @HomoFaciens

    8 жыл бұрын

    The image is only focused in > 2mm. You will at least have to replace the mouse lens by another optics.

  • @muhammadsameer883
    @muhammadsameer8836 жыл бұрын

    you are awesome. I like your accent. At least non native english speakers can understand every single word.

  • @shaileshsingh1717
    @shaileshsingh17176 жыл бұрын

    u sir, r just awesome. hats off to u gentleman....

  • @ClumsyKlumz
    @ClumsyKlumz7 жыл бұрын

    This will be a newbie question, but is it okay to just remove the PS/2 mouse plug (for the pins) like that? And how do you do it, just force it open? Still kinda new to all this.

  • @HomoFaciens

    @HomoFaciens

    7 жыл бұрын

    If you have male/female jumper cables you don't have to cut off the PS/2 plug as I did and use the mouse without any modifications.

  • @TechBuild
    @TechBuild7 жыл бұрын

    I like Arduino more than a Raspberry pi because it is easier to understand and code an Arduino board rather than a Raspberry pi. Which one do you use more?

  • @HomoFaciens

    @HomoFaciens

    7 жыл бұрын

    What device is better depends on your project. The advantage of the Raspberry Pi is that you have built in network connectivity, the Arduino instead runs very compact code, thus it is more stable (in principle). I definitely like both!

  • @anedosugov
    @anedosugov7 жыл бұрын

    thank you for the video! I have a question: can Arduino not read but send data to the mouse? I need a solution to control the mouse pointer with computer thinking its a real mouse

  • @HomoFaciens

    @HomoFaciens

    7 жыл бұрын

    So you don't need to connect a mouse to an Arduino, but make an Arduino send mouse commands. That's what the Arduino Leonardo (not the Uno) can do: www.arduino.cc/en/Reference/MouseKeyboard

  • @Cuckooonecity
    @Cuckooonecity7 жыл бұрын

    Great work! btw if any of you ever come across a project using air mouse and arduino UNO board to control robotic arm, please let me know. Thanks! Have a great day

  • @beyssac24
    @beyssac245 жыл бұрын

    it is possible to know how you did technically speaking? Indeed I am trying to do the same and I wonder if I must learn the USB protocol or not. Did you use an arduino library. I would be really pleased to get some advices thank you ^^

  • @HomoFaciens

    @HomoFaciens

    5 жыл бұрын

    What you must learn depends on what you are exactly trying to do. The source code of the examples I am using in this video are available on my pages: homofaciens.de/technics-base-circuits-computer-mouse_en.htm

  • @felipegross
    @felipegross4 жыл бұрын

    This is really cool! Unfortunately like quite a few others, using your code and an MX8733 USB/PS2 chip I noticed my program gets stuck in "while(digitalRead(PS2CLOCK)==HIGH);" inside the PS2Write(0xFF); , when it is called in PS2MouseInit. Any suggestions? The datasheet of this chip says it is both USB and PS2, and is internally switched. Maybe I need to set it somehow to PS2.

  • @HomoFaciens

    @HomoFaciens

    4 жыл бұрын

    Yes, this mouse model might have to be switched to PS/2 mode through special commands. It's hard to dive deeper into error detection with only having a PS/2 mouse that works and none that runs into your problem, sorry.

  • @felipegross

    @felipegross

    4 жыл бұрын

    @@HomoFaciens I understand. I will just find a different mouse. Thanks for the reply!

  • @GALENGODIS
    @GALENGODIS8 жыл бұрын

    Thanks! I've been thinking of implementing the camera of a mouse in some kind of project. For example it would be cool to use a mouse to scan an small object. Then create a 3d modell from the data. I find small n fast cameras interesting :)

  • @HomoFaciens

    @HomoFaciens

    8 жыл бұрын

    Small? Yes! Fast? Yes, but only internally. Reading the image sensor data into Arduino memory is time consuming. It's a chip designed for a very special purpose. It's a challenging thought you have...

  • @GALENGODIS

    @GALENGODIS

    8 жыл бұрын

    +HomoFaciens I wasn't planing on using arduino for it, and now I'm sure that it's not the way to go. And my thought was to use an array of many of these sensors. The benefit is that they're mobile and can work together from different angles. Anyways, thanks for these grear videos :)

  • @-na-nomad6247
    @-na-nomad62476 жыл бұрын

    You should seriously consider starting your videos with "GET TO THE SHOPPER !"

  • @howtomakegarmentpattern9215
    @howtomakegarmentpattern92154 жыл бұрын

    how a use for pattern digitizing.

  • @TheLearningChan
    @TheLearningChan7 жыл бұрын

    Hello! Do you know of a similar tutorial for mouse reading that works on USB (hopefully type B) rather than PS/2?

  • @HomoFaciens

    @HomoFaciens

    7 жыл бұрын

    The Arduino can't operate as USB host for a mouse, thus it won't work. You can eventually use a Raspberry Pi for your project, as I did in another Video: kzread.info/dash/bejne/dX2GrbSzp5iaitY.html

  • @MultiFiregame

    @MultiFiregame

    3 жыл бұрын

    @@HomoFaciens So why did it work? 2:29

  • @HomoFaciens

    @HomoFaciens

    3 жыл бұрын

    I was using a Raspberry Pi for that sequence and with Linux reading the mouse data is an easy task.

  • @IlyaShumilov
    @IlyaShumilov8 жыл бұрын

    thx, realy cool, but how I can use in my home or work automation(i have many old mouses)?

  • @HomoFaciens

    @HomoFaciens

    8 жыл бұрын

    I will try to implement an optical mouse in a linear drive, soon. Maybe that's an option.

  • @csabafilip2533
    @csabafilip25334 жыл бұрын

    can you recommend a couple of mouse brands that are sure to work?I tried a USB mouse after checked data sheet copatible for ps2 comunication, but i got 0 value in X, Y Optical sensor name :MX8733 U+P Single Chip Optical Mouse Sensor. Thank you yor answer, and very good project

  • @HomoFaciens

    @HomoFaciens

    4 жыл бұрын

    Work with what software? I have written more than one code example for Arduino as well as PC.

  • @muheydari
    @muheydari4 жыл бұрын

    thanks for video.how would be if we have 2 motor for mouse ball and we set a point on a 2d plane for it and the mouse itself go to that point.

  • @HomoFaciens

    @HomoFaciens

    4 жыл бұрын

    That would work in general, but I would not expect to get a precise positioning. Computer mice always have a drift in position as investigated in another video: kzread.info/dash/bejne/dX2GrbSzp5iaitY.html

  • @danielmartins7970
    @danielmartins79705 жыл бұрын

    Hello, what program do you use on your computer to detect mouse movements?

  • @HomoFaciens

    @HomoFaciens

    5 жыл бұрын

    It's a program written in C running in a Linux Terminal.

  • @danielmartins7970

    @danielmartins7970

    5 жыл бұрын

    @@HomoFaciensok thanks .

  • @isaacguia6416
    @isaacguia64164 жыл бұрын

    Hi excuse me, could you give me a way to communicate with you to ask you some questions about your program?

  • @HomoFaciens

    @HomoFaciens

    4 жыл бұрын

    There are links to my pages in the video and in the video description box. Should not be too hard to find it...

  • @artadio6975
    @artadio69756 жыл бұрын

    I follow your step by step but when it appears on the monitor series just out "setup" and stop there, please help me .....

  • @HomoFaciens

    @HomoFaciens

    6 жыл бұрын

    I have done more than just one project with computer mice. You must tell me EXACTLY what project you are talking about and what goes wrong. Have a look at my pages to see how to get in contact: homofaciens.de/contact_en.htm

  • @Rabianurguven
    @Rabianurguven4 жыл бұрын

    Awsum thanks

  • @zeththedarkmage
    @zeththedarkmage5 жыл бұрын

    I cut the end of my ps/2 mouse and have 4 wires. Red blue green and white. Which wires do I connect to the arduino?

  • @HomoFaciens

    @HomoFaciens

    5 жыл бұрын

    Have a look at figure 7 on my page: homofaciens.de/technics-base-circuits-computer-mouse_en.htm You can use a multimeter to check what color goes to what pin of the PS/2 plug.

  • @johannahoppe5544
    @johannahoppe55442 жыл бұрын

    Can you tell me ps2 mouse model that is supposedto work ? Because I tried what one that wasn’t working at all :(

  • @HomoFaciens

    @HomoFaciens

    2 жыл бұрын

    ...no need to leave the same comment below both language versions of this video ;-) As told below the German video, have a look at my pages: homofaciens.de/technics-base-circuits-computer-mouse_en.htm

  • @gabrielaugustonascimentoso1564
    @gabrielaugustonascimentoso15645 жыл бұрын

    DANKE SCHÖNE!

  • @sureshnair408
    @sureshnair4086 жыл бұрын

    is it possible to read motion using wireless mouse?

  • @HomoFaciens

    @HomoFaciens

    6 жыл бұрын

    With a Raspberry Pi or any other PC, yes.

  • @sureshnair408
    @sureshnair4087 жыл бұрын

    if want to increase the optical mouse cursor x and y position...is it possible ?

  • @HomoFaciens

    @HomoFaciens

    7 жыл бұрын

    The resolution depends on the hardware, thus on the type of computer mouse you are using.

  • @sureshnair408

    @sureshnair408

    7 жыл бұрын

    Do you have any coding for this ?

  • @shakyaikesh3512
    @shakyaikesh35127 жыл бұрын

    how did you read those coordinates exactly?...can you give me info about the codes for arduino

  • @HomoFaciens

    @HomoFaciens

    7 жыл бұрын

    Have a look at the project page for details: homofaciens.de/technics-base-circuits-computer-mouse_en.htm

  • @shakyaikesh3512

    @shakyaikesh3512

    7 жыл бұрын

    thank you

  • @baders2738
    @baders27388 жыл бұрын

    👍 very good

  • @taquenos
    @taquenos8 жыл бұрын

    it's very difficult to find ps2 interface in mouse they are almost all usb, can you do something with it and arduino?

  • @HomoFaciens

    @HomoFaciens

    8 жыл бұрын

    Several USB mice also can transmit data using the PS/2 protocol. It's usually written on the bottom of the mouse or use an USB-to-PS/2 adapter and try it out (reboot your computer after connecting the mouse through a PS/2 adapter). The Arduino Uno can't operate as USB host, thus you need a PS/2 mouse.

  • @ashokurlana6989
    @ashokurlana69897 жыл бұрын

    sir,is it necessary to use the linux os only?...or is there any possible to compile the code in windows os also?

  • @HomoFaciens

    @HomoFaciens

    7 жыл бұрын

    I don't support closed source Windows spyware. You can get open source Linux for free and set up your PC as a free computing machine (or configure it in dual boot mode if you'd like to stay chained on Redmond). Linux rules robotics, IoT and networking. Learn to handle it if you'd like to become a computer expert.

  • @ashokurlana6989

    @ashokurlana6989

    7 жыл бұрын

    thank you sir,actually i used a ps2 mouse and compiled the code as it is in your video,and connectd the connections also as you are connected in the video but still i didn't get the values of x and y coordinates.both values are appearing zeros only(with using linux os).Could you please suggest us what are the necessary changes required to get the desired output.

  • @HomoFaciens

    @HomoFaciens

    7 жыл бұрын

    Make a video and show exactly what you have done - I don't own a crystal ball that makes me see what you did wrong. Does your mouse work when connected to the PS2 port of your your computer? I ckecked it again with a optical and an old ball mouse - both worked fine.

  • @HomoFaciens

    @HomoFaciens

    7 жыл бұрын

    Why don't you say that you are working with PRASANTH BATTULA?!? I can't read your thoughts! Please save my time and don't let me answer questions twice.

  • @ashokurlana6989

    @ashokurlana6989

    7 жыл бұрын

    sir,as you shown in your video the coding is same for both electromechanical mouse and ps2 mouse?...or is there any changes in the coding?

  • @rklauco
    @rklauco8 жыл бұрын

    Unfortunately, I came to a great problem using the optical sensor. To provide better user feedback, the sensor is "dynamic" - e.g. not linear. Fast movements are detected and magnified per each chip to increase the perception of DPI :( If you find a way how to avoid that, it could be very usefull. for 3D printer closed loop (momitoring belt movement).

  • @HomoFaciens

    @HomoFaciens

    8 жыл бұрын

    Thanks for your feedback. I will have a closer look at the properties of those sensors, soon. The problem with the mouse I have (the only type using the PS/2 protocol) is, that there is only poor documentation available. It's a PAW351508 chip. An open source optical sensor would be nice...

  • @Rinux
    @Rinux4 жыл бұрын

    My usb mouse has 4 cables, with the letters: C, D, V, G. V and G are 5V and ground and the other two appear to be Data and clock. Do you think Arduino can read it?

  • @HomoFaciens

    @HomoFaciens

    4 жыл бұрын

    It's worth a try.

  • @Rinux

    @Rinux

    4 жыл бұрын

    @@HomoFaciens I connect the mouse to the arduino and it seems to work, but. when I run the program nothing happens, in the video you say that the microcontroller is responsible for registering the movements, I think my board does not have that microcontroller D: this is my board. articulo.mercadolibre.com.uy/MLU-463206742-arduino-uno-r3-con-cable-usb-oferta--_JM?quantity=1

  • @HomoFaciens

    @HomoFaciens

    4 жыл бұрын

    When you run what program with what command under what operating system (I have written more than just one)? Your board is an Arduino Uno same as mine, so that should be no problem.

  • @Rinux

    @Rinux

    4 жыл бұрын

    @@HomoFaciens I use Win10, and I have the Arduino program installed, I may be doing something wrong.

  • @Rinux

    @Rinux

    4 жыл бұрын

    I downloaded this code from your page: unsigned long millisStart; long MouseX = 0; long MouseY = 0; char stat,x,y; byte PS2ReadByte = 0; #define PS2CLOCK 6 #define PS2DATA 5 void PS2GoHi(int pin){ pinMode(pin, INPUT); digitalWrite(pin, HIGH); } void PS2GoLo(int pin){ pinMode(pin, OUTPUT); digitalWrite(pin, LOW); } void PS2Write(unsigned char data){ unsigned char parity=1; PS2GoHi(PS2DATA); PS2GoHi(PS2CLOCK); delayMicroseconds(300); PS2GoLo(PS2CLOCK); delayMicroseconds(300); PS2GoLo(PS2DATA); delayMicroseconds(10); PS2GoHi(PS2CLOCK); while(digitalRead(PS2CLOCK)==HIGH); for(int i=0; i>1; } if(parity) PS2GoHi(PS2DATA); else PS2GoLo(PS2DATA); while(digitalRead(PS2CLOCK)==LOW); while(digitalRead(PS2CLOCK)==HIGH); PS2GoHi(PS2DATA); delayMicroseconds(50); while(digitalRead(PS2CLOCK)==HIGH); while((digitalRead(PS2CLOCK)==LOW)||(digitalRead(PS2DATA)==LOW)); PS2GoLo(PS2CLOCK); } unsigned char PS2Read(void){ unsigned char data=0, bit=1; PS2GoHi(PS2CLOCK); PS2GoHi(PS2DATA); delayMicroseconds(50); while(digitalRead(PS2CLOCK)==HIGH); delayMicroseconds(5); while(digitalRead(PS2CLOCK)==LOW); for(int i=0; i

  • @sureshnair408
    @sureshnair4087 жыл бұрын

    why the reading drop to '0' when we stop moving mouse ? its suppose have reading right?

  • @HomoFaciens

    @HomoFaciens

    7 жыл бұрын

    The mouse only transmits a change in coordinates and you need to add up those change to get the absolute value of movement. No movement means no change in coordinates, thus the value drops to zero.

  • @sureshnair408

    @sureshnair408

    7 жыл бұрын

    can you help modify your coding and attached here or email me sureshna90@gmail.com...i will appreciate your help

  • @HomoFaciens

    @HomoFaciens

    7 жыл бұрын

    Sorry, but I am too short in time to do coding for projects other than mine.

  • @sureshnair408

    @sureshnair408

    7 жыл бұрын

    +HomoFaciens I can pay you..it's my parts of project

  • @alancastillo7771
    @alancastillo77713 жыл бұрын

    hi i want know how use the library od arduino. can you help me? i replicate this project on a joystick of ps3.

  • @HomoFaciens

    @HomoFaciens

    3 жыл бұрын

    What library? The software examples I have written don't make use of any library. Its all straight forward code.

  • @alancastillo7771

    @alancastillo7771

    3 жыл бұрын

    @@HomoFaciens Thank you I can use the same code in arduino nano with a ps2 mouse ( reconfigure the pins) and add the clicks and scrolling? Thanks a lot for reply.

  • @HomoFaciens

    @HomoFaciens

    3 жыл бұрын

    You're welcome. I haven't tried that with a nano, but I don't see why that should not work since this microcontroller also uses 5V logic levels on the pins.

  • @jeetenderkakkar7570
    @jeetenderkakkar75704 жыл бұрын

    Hello sir Which chip is used in computer mouse

  • @HomoFaciens

    @HomoFaciens

    4 жыл бұрын

    Details on my pages: homofaciens.de/technics-base-circuits-computer-mouse_en.htm

  • @tld8102
    @tld81024 жыл бұрын

    Is the optical mouse using the ps2 interface or usb

  • @HomoFaciens

    @HomoFaciens

    4 жыл бұрын

    PS/2 on the Arduino UNO (it can't handle USB), but USB on the Linux Laptop (it has no PS/2 port).

  • @skrame01
    @skrame016 жыл бұрын

    How about using the new Bluetooth laser mouse that will work on any surface ? Could be used for mobile robot control.

  • @HomoFaciens

    @HomoFaciens

    6 жыл бұрын

    Laser mice are also available with USB interface and even with PS/2, so no need for Bluetooth (however this is another option). Those devices work better, but are still not suitable for absolute motion detection as I demonstrated in another video: kzread.info/dash/bejne/dX2GrbSzp5iaitY.html

  • @Sekir80

    @Sekir80

    5 жыл бұрын

    @@HomoFaciens I think using the mouse "camera" as raw output it can be used to detect "landmarks" not just a grid therefore using it as relative and absolute positioning sensor at the same time. Reliably processing the data can be tricky, though.

  • @HomoFaciens

    @HomoFaciens

    5 жыл бұрын

    Optical computer mice are made for relative positioning as I demonstrated in another video: kzread.info/dash/bejne/dX2GrbSzp5iaitY.html Even using the raw data won't change that, especially when considering that the raw image data can be read only in a really slow frame rate.

  • @turkuas23626
    @turkuas236267 жыл бұрын

    what about the usb mice? is there any way to hack them without usb host shield?

  • @HomoFaciens

    @HomoFaciens

    7 жыл бұрын

    There are USB mice that also talk the ps/2 protocol. You can use them also. If they talk USB only, you can read the values with a Raspberry Pi as I did in another video trying to use mice as linear sensors: kzread.info/dash/bejne/dX2GrbSzp5iaitY.html

  • @mrdummy_nl

    @mrdummy_nl

    7 жыл бұрын

    When the USB mouses are just coming on the market when PS/2 mouses are still in shops, almost all USB mouses have extra USB->PS/2 adapter piece in the package included. Then it's possible to use USB mouse with adapter as PS/2 mouse. Not sure every USB mouse will work.

  • @soul0195
    @soul01956 жыл бұрын

    if any update on this video can u pls share the link

  • @HomoFaciens

    @HomoFaciens

    6 жыл бұрын

    My chapter with additional infos: homofaciens.de/technics-base-circuits-computer-mouse_en.htm

  • @prasanthbattula3416
    @prasanthbattula34167 жыл бұрын

    May i know how to connect USB MOUSE with ARDUINO UNO board. And also please explain the mouse IC pin configuration and it's connections with arduino.

  • @HomoFaciens

    @HomoFaciens

    7 жыл бұрын

    The Arduino Uno can't operate as USB host. You can connect PS/2 mice only. Several USB mice can talks PS/2. Have a look at the manual of your mouse.

  • @prasanthbattula3416

    @prasanthbattula3416

    7 жыл бұрын

    May i know the PS/2 mouse connections with ARDUINO UNO.

  • @prasanthbattula3416

    @prasanthbattula3416

    7 жыл бұрын

    thank you sir...

  • @HomoFaciens

    @HomoFaciens

    7 жыл бұрын

    That's writen on my project page: homofaciens.de/technics-base-circuits-computer-mouse_en.htm

  • @prasanthbattula3416

    @prasanthbattula3416

    7 жыл бұрын

    thank you..

  • @MementoNeli
    @MementoNeli7 жыл бұрын

    BUT if using a Arduino Leonardo, could u just use a USB mouse?

  • @HomoFaciens

    @HomoFaciens

    7 жыл бұрын

    The Leonardo can't work as USB host, just as USB device.

  • @MementoNeli

    @MementoNeli

    7 жыл бұрын

    ow i see, thx tho XD

  • @markjohnson9402
    @markjohnson94026 жыл бұрын

    Please say " Get to da choppah ! " in your next video . ; )

  • @salmanaljaz4334
    @salmanaljaz43348 жыл бұрын

    please give me arduino code for figure 2 mouse

  • @HomoFaciens

    @HomoFaciens

    8 жыл бұрын

    The code is available on my project page: www.homofaciens.de/technics-base-circuits-computer-mouse_en_navion.htm

  • @petertremblay3725
    @petertremblay37253 жыл бұрын

    Asta la vista baby!

  • @rabbitpiet7182
    @rabbitpiet71826 жыл бұрын

    Kommst du aus österreich?

  • @HomoFaciens

    @HomoFaciens

    6 жыл бұрын

    Nö, mitten aus Deutschland. Daher gibt's meine Videos auch zweisprachig: kzread.info/dash/bejne/iWmkksuTiqbbZpM.html

  • @JeremyCook
    @JeremyCook8 жыл бұрын

    I suppose it doesn't matter if the optical mouse is PS/2?

  • @HomoFaciens

    @HomoFaciens

    8 жыл бұрын

    As said in the video, is MUST be PS/2.

  • @JeremyCook

    @JeremyCook

    8 жыл бұрын

    Ahh, OK. Since you hooked up to the chip in the second, I thought that one might be different.

  • @HomoFaciens

    @HomoFaciens

    8 жыл бұрын

    That read-the-raw-camera-data trick only can be done with special chips and you must hook up the Ardino directly to certain pins. The camera can't be read through PS/2.

  • @JeremyCook

    @JeremyCook

    8 жыл бұрын

    Cool. You make great stuff, BTW!

  • @sauravmodak2365
    @sauravmodak23654 жыл бұрын

    can we get high-speed reading form it?

  • @HomoFaciens

    @HomoFaciens

    4 жыл бұрын

    What's high speed to you and what type of reading through what interface do you mean (coordinates or raw image data or what ever I have shown in the video)?

  • @sauravmodak2365

    @sauravmodak2365

    4 жыл бұрын

    @@HomoFaciensI just need the coordinates at a speed of least 60 counts per second.

  • @HomoFaciens

    @HomoFaciens

    4 жыл бұрын

    Read with what Computer / Microcontroller? If you want to read coordinates from a USB mouse, simply plug it into your computer and see if you get 60 readings per seconds. It depends on the mouse model as well as on the computer you are using.

  • @ReyTech7
    @ReyTech75 жыл бұрын

    If use mouse with cable usb how?

  • @HomoFaciens

    @HomoFaciens

    5 жыл бұрын

    You can use an USB mouse e.g. with a Raspberry Pi and read the values. The Arduino Uno only works with PS/2 protocol. Some USB mice also support PS/2.

  • @shrutilad9207
    @shrutilad92073 жыл бұрын

    Can you please provide with it's code

  • @HomoFaciens

    @HomoFaciens

    3 жыл бұрын

    Can you please have a look at the project page as I tell you in the video? homofaciens.de/technics-base-circuits-computer-mouse_en_navion.htm

  • @howtomakegarmentpattern9215
    @howtomakegarmentpattern92154 жыл бұрын

    sir can you share me coding link .

  • @HomoFaciens

    @HomoFaciens

    4 жыл бұрын

    As told in the video and written in the description box, have a look at my pages: homofaciens.de/technics-base-circuits-computer-mouse_en.htm

  • @chborger185
    @chborger1852 жыл бұрын

    thx OCR_E.T_

  • @ahmmedku1007
    @ahmmedku10078 жыл бұрын

    thank you for this video,,,, Hİ TEACHER , if could send me code of programming and interfacing mouse with a with pic ***** ı will very happy *** ı want by write by mouse in the text file ..... this type of file( New Journal Document)

  • @HomoFaciens

    @HomoFaciens

    8 жыл бұрын

    Have a look at my project page: www.homofaciens.de/technics-base-circuits-computer-mouse_en_navion.htm

  • @Cartooncity1900
    @Cartooncity19002 жыл бұрын

    Sir please give me.arduino cord

  • @HomoFaciens

    @HomoFaciens

    2 жыл бұрын

    As told in the video: Have a look at my pages! homofaciens.de/technics-base-circuits-computer-mouse_en.htm

  • @prasanthbattula3416
    @prasanthbattula34167 жыл бұрын

    Sir, even tough i am moving my mouse x,y values are not changing. I am also used ps/2 mouse. I have run the code which you have given. Sir, please tell me where problem is? 1000 delta X=0 delta Y=0 1000 delta X=0 delta Y=0 1000 delta X=0 delta Y=0 1000 delta X=0 delta Y=0 1000 delta X=0 delta Y=0 1000 delta X=0 delta Y=0 1000 delta X=0 delta Y=0 1000 delta X=0 delta Y=0 1000 delta X=0 delta Y=0 1000 delta X=0 delta Y=0 1000 delta X=0 delta Y=0 1000 delta X=0 delta Y=0 1000 delta X=0 delta Y=0 1000 delta X=0 delta Y=0 1000 delta X=0 delta Y=0 1000 delta X=0 delta Y=0 1000 delta X=0 delta Y=0 1000 delta X=0 delta Y=0 1000 delta X=0 delta Y=0 1000 delta X=0 delta Y=0 1000 delta X=0 delta Y=0 1000 delta X=0 delta Y=0 1000 delta X=0 delta Y=0 1000 delta X=0 delta Y=0 1000 delta X=0 delta Y=0 1000 delta X=0 delta Y=0 1000 delta X=0 delta Y=0 1000 delta X=0 delta Y=0 1000 delta X=0 delta Y=0 1000 delta X=0 delta Y=0

  • @HomoFaciens

    @HomoFaciens

    7 жыл бұрын

    Verry likely you did not follow exactly my description. Doubble check the wiring of your circuit and be sure it is a PS/2 mouse you are using. Make a video showing your circuit in operation to make me see what you are doing - I don't own a crystal ball ;-)

  • @HomoFaciens

    @HomoFaciens

    7 жыл бұрын

    Your wiring looks good. Did you try to move the mouse faster or press one of the mouse buttons? A surface with more structure and contrast would be better than the white surface under your mouse.

  • @prasanthbattula3416

    @prasanthbattula3416

    7 жыл бұрын

    Sir, Thank you for your valuable reply. Actually we have tried with both moving the mouse fast and slowly and also by pressing one of the mouse button. There is no any change in the x,y values. Still they were zeros. But the binary values are sometimes changing from 1000 to 1001,1010. Sir, please tell me what i have to get the x,y values?

  • @HomoFaciens

    @HomoFaciens

    7 жыл бұрын

    I guess the binary value changes whenever a mouse button is pressed? Did you try another PS/2 mouse on the arduino? Did you try if your mouse works properly when being connected to the PS2 port of your computer?

  • @prasanthbattula3416

    @prasanthbattula3416

    7 жыл бұрын

    Thank you Sir, Actually we have tried with new PS/2 mouse.

  • 7 жыл бұрын

    never ever thing about your idea

  • @LOCKSHADES
    @LOCKSHADES2 жыл бұрын

    3fps is really disappointing 😭😭.

  • @HomoFaciens

    @HomoFaciens

    2 жыл бұрын

    ...definitely not the HD transmission you were looking for ;-)

  • @lanchanoinguyen2914
    @lanchanoinguyen29146 жыл бұрын

    look that garbage arduino cheap board process data make me feel amateur

Келесі