A
A
Andrey Gostishchev2014-08-14 17:24:30
Arduino
Andrey Gostishchev, 2014-08-14 17:24:30

What's wrong with the chip and/or sketch?

Following the example from this article, I decided to make a scanner. Collected, everything works, but the processing program gives this:

that_same_that
b56f7e615f83427ea17dea7b42679267.JPG

In the processing sketch, I changed the COM8 port to my own.
In the Arduino sketch, I uncommented this:
/*byte x = DriverRead(0x02);
  byte y = DriverRead(0x03);
  if(x || y)
  {
    Serial.print("X:");
    Serial.print(x,DEC);
    Serial.print(" Y:");
    Serial.println(y,DEC);
  }*/
.
Without this section of code, it gives
this is unclear
cb735b0bae1542a3996dd44f97ecfaae.JPG

The chip used first the one that was in the post, then ADNS-3060, and then PAW3502. Yuzal without a lens.
With a lens, the picture is a little more diverse:
spoiler
8c8a56e8aa3c42b19529c84014767fb1.JPG

Board: Arduino Uno r3

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly, 2014-10-28
@vipuhoff

in general, it looks quite realistic, maybe everything works fine, but is it just the surface texture that looks like this?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question