Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version without particle #5

Open
eugene-uk opened this issue Oct 30, 2017 · 12 comments
Open

Version without particle #5

eugene-uk opened this issue Oct 30, 2017 · 12 comments

Comments

@eugene-uk
Copy link

Hi,
I have modified the example code but have not been able to get it working without Particle connector.
Do you have version that just connects with a mouse and passes over the data? (to Serial Print for example)

@eugene-uk
Copy link
Author

eugene-uk commented Oct 31, 2017

PS2Mouse-interrupt.zip
The output I am getting:

`-----
FC


F8


FC


FC


F8


FC

FFFFFFFF - not a valid mouse type`

I have connected CLK to Pin3 of Arduino and Data to Pin2.
Of course I have tested the wiring and mouse with the simple PS2 Remote code from another source and it worked.

@ScruffR
Copy link
Owner

ScruffR commented Oct 31, 2017

This library is formost meant for Particle devices, but was built ontop of an old project of mine which was targeted at a Teensy 1.0.
https://www.pjrc.com/teensy/projects.html (search for vKeyboardMouse_BT)

You can have a look at that code (although I don't know in what state this was when I left it)
https://www.dropbox.com/s/6rol0ucezldahuv/PS2Communication.zip?dl=0

I'd have to investigate how to "backport" to Arduino, but can't promise when I'd find time for that.

@eugene-uk
Copy link
Author

Hi,

Thanks for sharing. Couple of months went past but I still haven't figured what the issue is even after using your "Arduino" version.
Here's the device I am trying to use it on:
https://www.youtube.com/watch?v=42_Zoz9P3ks
and of course I tried it on a regular mouse too...

@ScruffR
Copy link
Owner

ScruffR commented Jan 14, 2018

Sorry, I didn't quite get the meaning of your initial post.
What do you mean with "without Particle connector"?

@eugene-uk
Copy link
Author

Sorry, I didn't quite get the meaning of your initial post.
What do you mean with "without Particle connector"?
I meant Particle.io

@ScruffR
Copy link
Owner

ScruffR commented Jan 15, 2018

What device are you using?
Have you adapted the interrupt management to fit your platform? It might be differernt to the Teensy I used for my project.
You may need to watch the signals with an oscilloscope and add some debugging to the library to get a better symptom description.

@eugene-uk
Copy link
Author

Hi. I am using a regular PS/2 mouse with a scroll wheel. I did not modify interrupt management but judging by the code it should be no different. But maybe it's my skills that limit my understanding. Of course I read the PS2 description many times to understand how the protocol works and the code seems to match the protocol. But it did not work for me.

@ScruffR
Copy link
Owner

ScruffR commented Jan 16, 2018

I still don't know what controller you are using.

@eugene-uk
Copy link
Author

I am using standard Arduino Nano - simplest and cheapest. If it helps, I am happy to send you the kit with the nano - that's how keen I am to complete this little project :-) so that I can finally move on

@ScruffR
Copy link
Owner

ScruffR commented Jan 16, 2018

That would definetly help.

You could send me PM via https://community.particle.io for my snail mail address ;-)

@eugene-uk
Copy link
Author

looks like I will have to register on particle.io? do you mind sending me an email please? my address:
contact at lenka.design
I am in Prague so most likely the package will be very fast

@ScruffR
Copy link
Owner

ScruffR commented Jan 28, 2018

After messing about with the Arduino Nano I must admit that I can't get it running either.
I have tried with the Particle Photon and t Teensy 2.0 I dug up and both work as expected just the Nano seems to be a bit stubborn.
However I'll keep on trying - meanwhile when you say the Nano would be the cheapest the Particle Photon isn't that much more expensiv (if at all) and has the ability to act as USB Mouse & Keyboard as well as having WiFi on-board.

Since you are in Prague you should be able to order here for €20,50
https://www.exp-tech.de/plattformen/sonstige/6733/particle-photon-mit-header.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants