0
Offline
Newbie
Karma: 0
Posts: 28
Arduino rocks
|
 |
« Reply #15 on: March 30, 2008, 05:56:10 am » |
N'étant pas très à l'aise en électronique je préfère mettre de coté le S2083 de peur de faire une bêtise. :-/
Sinon, j'ai récupéré une autre souris optique avec comme capteur le ADNS-2030 , par contre la tension est de 3.3V re :-/ (normal souris sans fil) , bon la prochaine sera la bonne lol .
|
|
|
|
|
Logged
|
|
|
|
|
The Netherlands
Offline
Newbie
Karma: 0
Posts: 16
Fail faster to succeed sooner!
|
 |
« Reply #16 on: March 30, 2008, 06:27:41 am » |
hmm.. je ne suis pas sûr que je comprends que tu as écrit (like I said, my French is limited...) It looks like the ADNS-2030 is the low power version of ADNS-2051. It uses the same commands/addresses. However, it's maximum supply voltage is 3.6V... So you'll probably break it if you try to connect it to your Arduino (because it's powered with 5V). If you post a detailed scan or picture of the S2083 circuit (both top and bottom sides), I can have look at it for you, peut-être, je peux éloigner un peut de l'incertitude... (forgive if if I'm talking nonsense... I'm trying  )
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 28
Arduino rocks
|
 |
« Reply #17 on: March 30, 2008, 02:25:42 pm » |
Yes you understand about the ADNS-2030.
I post pictures of the s2083 circuit tomorrow. Thanks
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 28
Arduino rocks
|
 |
« Reply #18 on: March 31, 2008, 01:10:02 pm » |
Voici les photos du s2083:   Dis moi si tu veux plus de détails.
|
|
|
|
|
Logged
|
|
|
|
|
The Netherlands
Offline
Newbie
Karma: 0
Posts: 16
Fail faster to succeed sooner!
|
 |
« Reply #19 on: March 31, 2008, 03:55:25 pm » |
This is what I make of it:   So I compared it to the example circuit in the datasheet of the ADNS-2610 (You can download it here: http://www.avagotech.com/products/optical_navigation_sensors/led-based_sensors/a dns-2610/ ) And it's very much alike. I can't be 100% sure if it's right, but I'm pretty sure  As I suggested before, I would measure the voltage over the GND (pin 6) and the Vdd (pin 7) of the S2083 when the mouse is plugged in. You can do this with any simple household voltage meter (multi meter). It should measure around 5V between these two pins (6 & 7) when the mouse is connected to your computer. Then I'd just follow my tutorial from Step 4 ( http://www.martijnthe.nl/optimouse/arduino-optical-mouse.html ). Probably you can skip cutting the connection to the mouse controller (Step 3). I would try the ADNS-2610 driver in the library on my site. (see instructions in the examples in the library) If you have more questions, you know where to pose them  Bonne chance
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 28
Arduino rocks
|
 |
« Reply #20 on: April 02, 2008, 01:28:06 pm » |
merci mthe,
je fais le test dès que possible et je te tiens au courant.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 28
Arduino rocks
|
 |
« Reply #21 on: April 08, 2008, 11:30:38 am » |
Je viens de faire le test. j'ai utilisé le code de Benoît ROUSSEAU , mais pour l'image j'ai une suite de 0 et pour les coordonnées j'ai rien, si le if avant l'affichage j'ai quelque chose du genre 255-255-255-255, 0-255-255-255...
J'ai rebranché la souris sur le PC elle marche très bien. C'est du a quoi? SDIO et SCLK ne sont peu être pas placés en 3 et 4...
|
|
|
|
|
Logged
|
|
|
|
|
Lyon, France
Offline
Newbie
Karma: 0
Posts: 8
Arduino rocks
|
 |
« Reply #22 on: May 14, 2008, 06:01:03 pm » |
bonjour, j'ai une souris qui comporte un capteur PAN3501 d'après le site du constructeur (et ma souris) c'est un interface USB.
est-ce possible de faire communiquer de l'USB sur les entrées de l'arduino ? je voudrais détecter les déplacements d'une plaque de plexiglass avec 2 capteur de ce type (= laser IR, excellent même sur les marières transparentes)
merci
|
|
|
|
|
Logged
|
|
|
|
|
Grenoble/Lyon - France
Offline
Sr. Member
Karma: 0
Posts: 363
|
 |
« Reply #23 on: June 08, 2008, 09:36:38 am » |
About the S2083 chip, I found the datasheet on avagotech website. It's a SDNS2083. http://www.avagotech.com/assets/downloadDocument.do?id=4079I'll give it a try soon, but if anyone makes some progress with this chip, it will be reaaaal good stuff ^^
|
|
|
|
|
Logged
|
|
|
|
|
|
|
Grenoble/Lyon - France
Offline
Sr. Member
Karma: 0
Posts: 363
|
 |
« Reply #25 on: June 08, 2008, 07:29:44 pm » |
Hi mthe I just tested it and it seems to work. For the ADNS-2083, I changed the registers as follow #define Delta_Y 0x42 #define Delta_X 0x43 But I didn't find an equivalent in the datasheet for the Motion Status Register. There's a Status register at 0x41, but it's not quite the same as for the ADNS-2051 so I'm not sure it works with your library... :/ Anyway, I can retrieve dX and dY, the most important ^^ Thanks to you and to Benoit You can download the modified files for the 2083 here > http://play-collective.net/blog/wp-content/uploads/2008/06/optimouse.rarCheers
|
|
|
|
|
Logged
|
|
|
|
|
Grenoble/Lyon - France
Offline
Sr. Member
Karma: 0
Posts: 363
|
 |
« Reply #26 on: June 08, 2008, 09:10:50 pm » |
@Glopp76 : the problem is that the data stored on the chips are not stored on the same registers. you have to change a few things. If you want to use Martijn library, you can use the files I modified, I changed the registers. You have also to edit the code in your sketch in order to use ADNS2083 instead of ADNS2051. That's all. If you want to use Benoit's sketch, then you have to modify a lot of things as a lot of values are not stored with the same scheme.
|
|
|
|
|
Logged
|
|
|
|
|
The Netherlands
Offline
Newbie
Karma: 0
Posts: 16
Fail faster to succeed sooner!
|
 |
« Reply #27 on: June 09, 2008, 02:50:19 am » |
Hi melka,
Perhaps the chip is similar to the ADNS-2610. That one doesn't have a status register like the 2051. It has some other functions though, check out the datasheet of the ADNS-2610.
Can I append your adjustments to the library?
PS: great motion graphics work!!!
Martijn
|
|
|
|
|
Logged
|
|
|
|
|
Grenoble/Lyon - France
Offline
Sr. Member
Karma: 0
Posts: 363
|
 |
« Reply #28 on: June 09, 2008, 09:37:10 pm » |
Hi martijn I looked quickly on the 2610 datasheet and it seems that they share the same kind of memory usage with the 2083. The registers adresses are different though. You can definitely add my little modifications to the lib, yeah ^^ I tried to add a pixelData method returning an 18x18 array but I'm bad with C. I can return something but it's definitely not an array. Would you help me? I have a sketch working for reading the pixeldata register, I just don't understand how I can turn this into a library ^^. void EnvoiImage() { byte val; EcritureRegistre (0x40, 0x01); EcritureRegistre (0x48, 0x00); for (int i=0; i<325; i++) { val = LectureRegistre(0x48); if (i!=0) { // First read will return 0, we don't want it Serial.print(i); Serial.print("\t"); Serial.print(val&63, DEC); // Cleans the value, so that you don't have the Start_of_Frame & Valid_data bits Serial.println(); } } Serial.println (); EcritureRegistre (0x40, 0x00); } I added some datasheets to the zip archive. http://melka.one.free.fr/temp/OptiMouse.rarThanks ^^ PS : Thanks again ^^
|
|
|
|
|
Logged
|
|
|
|
|
Grenoble/Lyon - France
Offline
Sr. Member
Karma: 0
Posts: 363
|
 |
« Reply #29 on: June 11, 2008, 10:51:16 pm » |
Martijn, Benoit, do you think it's possible to unsolder the sensor from it's PCB ? My PCB is the same as the one in the pictures above, and I wonder what I have to keep beside the sensor. Certainly the Xtal but what else? I'd like to use it on some kind of "robot"...
|
|
|
|
|
Logged
|
|
|
|
|
|