Zitat von
stevieman
hi, in case you are having problem with LASER_NEN (always high), then you can try the following step, it solved my problem regarding LASER_NEN
- in manual, Power Up section
... Step 7 "Enable laser by setting Forced_Disable bit (bit-0) of LASER_CTRL0 register (address 0x20) to 0"
after SROM download, instead of writing 0x00 to addr 0x20, try writing 0x80 to addr 0x20
Lovely! Finally someone that can help me out!
Now, I don't think that is the issue. According to my voltmeter, it's low (0.24V).
After downloading the SROM (0x91), which seems to be fine, because I get this reading 0x25 and 0x26:
Code:
Data_Upper:
7 6 5 4 3 2 1 0
0xBE 0b 1 0 1 1 1 1 1 0
Data_Lower:
7 6 5 4 3 2 1 0
0xEF 0b 1 1 1 0 1 1 1 1
Also, I in my infinite loop, I get this:
Code:
7 6 5 4 3 2 1 0
0x91 0b 1 0 0 1 0 0 0 1 (SROM_ID - 0x2a)
7 6 5 4 3 2 1 0
0x20 0b 0 0 1 0 0 0 0 0 (Motion - 0x02)
7 6 5 4 3 2 1 0
0x80 0b 1 0 0 0 0 0 0 0 (LASER_CTRL0 - 0x20)
7 6 5 4 3 2 1 0
0x42 0b 0 1 0 0 0 0 1 0 (LASER_CTRL1 - 0x21)
7 6 5 4 3 2 1 0
0x45 0b 0 1 0 0 0 1 0 1 (Address 0x22)
7 6 5 4 3 2 1 0
0xBA 0b 1 0 1 1 1 0 1 0 (Address 0x23)
And that seems perfectly fine, doesn't it?
But, even if I now move the sensor, I still only get 0x20 from the motion register!
How did you enable your laser?
Lesezeichen