Author Topic: connect optical mouse to atmega168 help  (Read 3065 times)

0 Members and 1 Guest are viewing this topic.

Offline byuriTopic starter

  • Jr. Member
  • **
  • Posts: 27
  • Helpful? 0
connect optical mouse to atmega168 help
« on: February 08, 2009, 12:42:32 PM »
hi, i found this tutorial The "Seeing-Eye-Mouse" on http://imakeprojects.com/Projects/seeing-eye-mouse/
and i want to connect the mouse to 50$ robot, its possible?
on the tutorial he use PIC controller, in my case i have atmega168.
http://imakeprojects.com/Projects/seeing-eye-mouse/Gfx/fullsize/Seeing-Eye-Mouse-minimum.jpg

anybody know what is CLK,DATA on PIC and where is in atmega168?

What command is responsible for input data from digital port?

tnx.

Offline Soeren

  • Supreme Robot
  • *****
  • Posts: 4,672
  • Helpful? 227
  • Mind Reading: 0.0
Re: connect optical mouse to atmega168 help
« Reply #1 on: February 08, 2009, 02:43:44 PM »
Hi,

Just compare the pin out of both processors:
Here's the PIC16F628


That said... From what you write, I get a feeling that you won't be able to port code from a processor core with Harvard architecture to a core with von Neumann architecture, so perhaps you would be better of modifying the PIC to send the mouse data to the AVR (via SPI, I2C or something similar) and just run both processors.
Regards,
Søren

A rather fast and fairly heavy robot with quite large wheels needs what? A lot of power?
Please remember...
Engineering is based on numbers - not adjectives

 

SMF spam blocked by CleanTalk