I got the 3D Robotics optical flow device few weeks back. Yesterday I soldered the connecters and loaded the sketch " AP_OpticalFlow_test.pde" to an Arduino mini pro. I selected digital pin 10 to be the chip select pin (NCS).

  This does not work for me as I get the error message "Failed to initialize ADNS3080".  In the library I see that the byte returned should be 0x17. However when I print the value returned, I see that the value returned is 0xFF. As the device is unable to initialize, the error message is reported. Has anyone else faces this issue? How can I rectify this? A picture of my setup is attached. I had the feeling that my wires are too long for the 2Mhz signal to travel from the sensor to the arduino. So I slowed the SPI clock, still I see the same behavior. I would appreciate any help on this.
 
Thanks
 
3690941781?profile=original

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Hello! 
    Could anyone help with connection pinout and working example of Optical flow with any arduino (mini, nano, mega). 
     All my afforts end with: "The sensor not initialised"

    Thank you!".

  • Hi  Cool Dude and the others,

    I am a newbie with arduino. I am trying to setup the Optical Flow sensor on an Arduino Uno Board. I believe this is really similar to your configuration, since the "Arduino mini pro" is a different version of the "Arduino Uno". I am trying to compile the "AP_OpticalFlow_test.pde", but I am having a lot of errors.

    I have basically copied all the libraries from the "ardupilot_mega" folder to my arduino/libraries directory. This has corrected many compile errors, but I am still getting errors from the "SPI3" library.

    How did you manage to compile get the "AP_OpticalFlow_test.pde" code working on the Arduino mini pro?

    Thanks,

  • This is embarrassing for me. It works fine now. I was connecting MISO at sensor side with MOSI at arduino side and vice versa. Once I fix the connection it works fine.

    Thanks

  • AH HA! Just been poking around the comments on the wiki. Looks like for the APM2 you'll need to comment line 22 and uncomment line 23. Looks like it's doing something now.

  • I'm having the same problem too. Connected to an APM2 as directed in the wiki, but fails to initialise.

  • Hi,

    I have the same issue with APM2 and flow sensor.

    I have the same error "Failed to initialise ADNS3080". When I print the config it says:

    Config: 11111111,11111111
        product id:     FF (hex)
        frame rate:     366 (manual)
        resolution:     1600
        shutter speed:  65535 (manual)

    I tested the conectivity with a multimeter and all wires are connected properly.

    Anybody with the same problem/solution?

This reply was deleted.

Activity

DIY Robocars via Twitter
RT @a1k0n: @DanielChiaJH @diyrobocars @circuitlaunch Here's my car's view of that race. About 8.4 second lap times for laps 2 and 3... both…
5 hours ago
DIY Robocars via Twitter
RT @DanielChiaJH: Great racing against @a1k0n today at @diyrobocars! Pretty cool to both break sun-9s at the track today I think I got very…
yesterday
DIY Robocars via Twitter
Broadcasting the @circuitlaunch race live now at https://m.twitch.tv/diyrobocars Races begin around 2:00pm PT
Saturday
DIY Robocars via Twitter
RT @a1k0n: ran a huge number of hyperparameter tuning experiments yesterday; now I can train a new policy, far with better quality, in 15 m…
Saturday
DIY Robocars via Twitter
RT @a1k0n: Did I get rid of hand-tuned parameters? Yes. Am I still hand-tuning more parameters? Also yes. I have a few knobs to address the…
Sep 26
DIY Robocars via Twitter
RT @a1k0n: I'm not going to spoil it, but (after charging the battery) this works way better than it has any right to. The car is now faste…
Sep 26
DIY Robocars via Twitter
RT @a1k0n: Decided to just see what happens if I run the sim-trained neural net on the car, with some safety rails around max throttle slew…
Sep 26
DIY Robocars via Twitter
Sep 24
DIY Robocars via Twitter
RT @SmallpixelCar: @a1k0n @diyrobocars I learned from this. This is my speed profile. Looks like I am too conservative on the right side of…
Sep 24
DIY Robocars via Twitter
RT @a1k0n: @SmallpixelCar @diyrobocars Dot color is speed; brighter is faster. Yeah, it has less room to explore in the tighter part, and t…
Sep 24
DIY Robocars via Twitter
RT @a1k0n: I'm gonna try to do proper offline reinforcement learning for @diyrobocars and throw away all my manual parameter tuning for the…
Sep 23
DIY Robocars via Twitter
RT @circuitlaunch: DIY Robocars & Brazilian BBQ - Sat 10/1. Our track combines hairpin curves with an intersection for max danger. Take tha…
Sep 22
DIY Robocars via Twitter
RT @SmallpixelCar: Had an great test today on @RAMS_RC_Club track. However the car starts to drift at 40mph. Some experts recommended to ch…
Sep 11
DIY Robocars via Twitter
RT @gclue_akira: 世界最速 チームtamiyaのaiカー https://t.co/1Qq2zOeftG
Sep 10
DIY Robocars via Twitter
RT @DanielChiaJH: Always a good time working on my @diyrobocars car at @circuitlaunch. Still got some work to do if I’m to beat @a1k0n howe…
Sep 10
DIY Robocars via Twitter
RT @SmallpixelCar: My new speed profile for @RAMS_RC_Club track https://t.co/RtLb7TcgIJ
Sep 10
More…