Pages: 1 2 [3]   Go Down
Author Topic: [APL] Voir au travers d'une souris  (Read 15519 times)
0 Members and 1 Guest are viewing this topic.
Grenoble/Lyon - France
Offline Offline
Sr. Member
****
Karma: 0
Posts: 363
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

^^

Logged


New Jersey
Offline Offline
Full Member
***
Karma: 0
Posts: 193
Ard at work
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Mais il se passe des choses vraiment interessantes dans la partie Gauloise du site! :-)
Logged

----------
Mathieu

0
Offline Offline
Newbie
*
Karma: 0
Posts: 1
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

bonjour :
  actuellement élève en classe CPGE , je souhaite faire mon TIPE sur les souris optique , et je suis tombé sur ce forum super interresant smiley
  mais j'aimerai avoir des details sur le transfere des images souris ->Arduno , plus exactement le programme necessaire pour visualiser l'image sur l'ecran d'un pc
   Pourriez vous me donner 1 coup de main ? merci BCP !!
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 2
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi all,

As previous poster I too must appologize for not writing in French. I hope someone can help me anyways.

I have  a ADNS 5020E that I try to read DeltaX and DeltaY from. But all I get is 255-255 from those registers. What do I do wrong. I have included a modified version of Benoît Rousseau's example. Please if soneone knows why I wont get this working please tell me... The code compiles allright. I have connected +5V and GND as well as SCK and SDIO to the Arduino.

#define CLOCK_PIN 2 //BROCHE_HORLOGE
#define PIN_DATA 3 //BROCHE_DONNEES

#define _BV(bit) (1 << (bit))

byte ReadRegister (byte adress)      //LectureRegistre
{
  int i = 7;
  byte returnRead = 0;

  pinMode (PIN_DATA, OUTPUT);
  for (; i>=0; i--)
  {

     digitalWrite (CLOCK_PIN, LOW);
     digitalWrite (PIN_DATA, adress & (1 << i));
     digitalWrite (CLOCK_PIN, HIGH);
  }

  pinMode (PIN_DATA, INPUT);
  delayMicroseconds(150);

  for (i=7; i>=0; i--)
  {
    digitalWrite (CLOCK_PIN, LOW);
    digitalWrite (CLOCK_PIN, HIGH);
    returnRead |= (digitalRead (PIN_DATA) << i);
  }
  delayMicroseconds(150);

  return returnRead;
}

void setup()
{
  pinMode (CLOCK_PIN, OUTPUT);
  pinMode (PIN_DATA, INPUT);
  Serial.begin(19200);
}

void loop ()
{
  if (ReadRegister (0x02))
  {
    Serial.print ('>');
    Serial.print (ReadRegister (0x03), DEC);
    Serial.print ('-');
    Serial.print (ReadRegister (0x04), DEC);
    Serial.println ();
  }
  if (Serial.available())
  {
    Serial.read();
  }
}
 
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 1
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Once again, sorry for the English.

Has anyone tried interfacing with the A2050 chip? It is supposed to be compatible with the A2051, but I am having trouble. The motion status register is always false. Any suggestions?
Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 51
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

sorry for the english, but i just can't find how to interface with optical mouse in other thread so I think I will post it here..

I`m using ADNS 5020E and get the same result as Magnusg..

can anyone help?

I will try to translate it into french with google, I hope you guys understand what I am asking.. thank you very much..

---------------------------------------------------------------------------

désolé pour l'anglais, mais je n'arrive pas à trouver comment faire l'interface avec la souris optique à fil d'autres donc je pense que je vais le poster ici ..

 Je m `en utilisant 5020E ADNS et obtenir le même résultat que Magnusg ..

 quelqu'un peut-il aider?

 Je vais essayer de le traduire en français avec google, j'espère que vous allez comprendre ce que je demande .. je vous remercie beaucoup ..
Logged

Pages: 1 2 [3]   Go Up
Jump to: