Search found 12 matches

by gcgrant
Sun Apr 08, 2018 10:06 am
Forum: Technical Discussion
Topic: I2C troubles
Replies: 10
Views: 1308

Re: I2C troubles

Hi, can you share this script ? we're going to add it to the built-in examples. Sure, it would be a pleasure! # OpenMV M7 I2C interface with Garmin Lidar Lite V3 - By: Grant Phillips - Sun Apr 8 2018 # Returns a basic distance reading from the lidar in cm for the target point and prints to console ...
by gcgrant
Fri Mar 30, 2018 12:28 am
Forum: Technical Discussion
Topic: Pixel coordinates/ frame size different in IDE than when running independently
Replies: 2
Views: 561

Re: Pixel coordinates/ frame size different in IDE than when running independently

Ok figured it out now that I have had a chance to look. It was simple mistake, I was initialising the sensor as QVGA after I had already found the centre of the sensor using sensor.width()/2 and sensor.height()/2, by initialising as QVGA first, it fixed it.
by gcgrant
Mon Mar 26, 2018 5:32 am
Forum: Technical Discussion
Topic: Pixel coordinates/ frame size different in IDE than when running independently
Replies: 2
Views: 561

Pixel coordinates/ frame size different in IDE than when running independently

Just wondering if the pixel coords or frame size are different from when viewed in the IDE frame buffer compared to when it's purely running off the STM32? I have the camera mounted on a gimble controlling servos to centre itself on a blob, and it works very well through the IDE, however it seems to...
by gcgrant
Mon Mar 26, 2018 5:23 am
Forum: Technical Discussion
Topic: I2C troubles
Replies: 10
Views: 1308

Re: I2C troubles

Note that I have this working now, and will upload the code once the competition and university assignment are completed, so that others wanting to integrate this Lidar with the OpenMV may do so.
by gcgrant
Sun Mar 18, 2018 12:48 am
Forum: Technical Discussion
Topic: I2C troubles
Replies: 10
Views: 1308

Re: I2C troubles

Sorry might be a misunderstanding; it's returning the device address fine when scan is used. So hardware is working. But all zeros when reading from memory addresses/registers. Will try examining protocol, I have a Seleae logic analyser at work, so that might help. Where do I look for the underlying...
by gcgrant
Sat Mar 17, 2018 8:47 pm
Forum: Technical Discussion
Topic: I2C troubles
Replies: 10
Views: 1308

Re: I2C troubles

edit: after reading the posts below and the manual for the Lidar Lite V3 stating it doesn't support repeated start commands, I think I will have to step down an abstraction layer and see if I can do it manually using the primitive commands on machine.i2c. Does anyone have good examples of this? Hi t...
by gcgrant
Sat Mar 17, 2018 7:43 am
Forum: Technical Discussion
Topic: I2C troubles
Replies: 10
Views: 1308

Re: I2C troubles

Also, when I view the IR laser output of the Lidar with my phone camera, I can see that it is operating (flashing) when the OpenMV is sending i2c commands to it, and is idle (dark) when there is no I2C communications.
by gcgrant
Sat Mar 17, 2018 7:11 am
Forum: Technical Discussion
Topic: I2C troubles
Replies: 10
Views: 1308

Re: I2C troubles

Ok, so I have managed to get a non-zero value. When I do I2C.scan(), I get 0x62 back, which is expected, as it is the default address for the Lidar. So now I am thinking perhaps I am handling the data incorrectly.
by gcgrant
Sat Mar 17, 2018 2:33 am
Forum: Technical Discussion
Topic: I2C troubles
Replies: 10
Views: 1308

I2C troubles

EDIT: I have managed to get my code to work, however it is now only returning zeros for anything, including if I read the serial numbers for the device. It seems to be actually communicating over i2c because if I turn power off to the Lidar, I get a timeout error. But I cannot seem to read a non-zer...
by gcgrant
Sat Mar 10, 2018 9:40 pm
Forum: Project Discussion
Topic: Robotics competition entry- seeking hints
Replies: 5
Views: 2584

Re: Robotics competition entry- seeking hints

So we're planning on having the camera looking down from an arbitrary height at roughly 45°(also arbitrary at this stage) angle so it can see the floor markings and target objects in front of it. Will probably also have pan/tilt or the like. I like the ROI idea, this will be good for reactive "avoid...
by gcgrant
Fri Mar 09, 2018 3:52 am
Forum: Project Discussion
Topic: Robotics competition entry- seeking hints
Replies: 5
Views: 2584

Re: Robotics competition entry- seeking hints

Thanks Kwabena. Yes we want to stay inside the black areas, so I am wondering if we could get a version of 'line following' happening where we pick up the white edges on the black areas and return this info to the locomotion controller. As for deriving location, I was wanting to play around with fid...
by gcgrant
Wed Mar 07, 2018 5:19 pm
Forum: Project Discussion
Topic: Robotics competition entry- seeking hints
Replies: 5
Views: 2584

Robotics competition entry- seeking hints

Hi I'm an Australian mechatronics engineering student working in a team of 6 students from Australia, and other countries, to create an autonomous agent capable of navigating a black and white floor and locating red and blue cubes within this world. I have selected the OpenMV to try and develop a pr...

Go to advanced search