# Pixhawk Mini + Lidar v3 + Optical Flow

**URL:** <https://discuss.px4.io/t/pixhawk-mini-lidar-v3-optical-flow/5051>\
**Category:** PX4 Autopilot\
**Created:** [December 5, 2017, 9:53pm UTC](https://discuss.px4.io/t/pixhawk-mini-lidar-v3-optical-flow/5051 "2017-12-05T21:53:04Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![airfed](https://discuss.px4.io/letter_avatar_proxy/v4/letter/a/ecc23a/32.png) [@airfed](https://discuss.px4.io/u/airfed)\
**Post date:** [December 5, 2017, 9:53pm UTC](https://discuss.px4.io/t/pixhawk-mini-lidar-v3-optical-flow/5051/1 "2017-12-05T21:53:04Z")

</div>

Hello Guys,

I have a mini quad running pixhawk with lidar and optical flow for positioning. No gps. Im getting killed on weight and most importantly space and would like to upgrade to the pixhawk mini, but im having a tough time finding info from people that have this particular setup. If I can get a for sure answer on the mini then id like to upgrade asap. At this point I will pay for the information to get this going. My wiring setup on pixhawk is:

Lidar - i2c  
Optical Flow - i2c  
Bluetooth - Telem1  
RX - Rc  
Power Module - Power  
Camera Pitch - Aux  
Led Switch - Aux  
4 Motors

---

<div class="post-metadata">

**Author:** ![dagar](https://discuss.px4.io/user_avatar/discuss.px4.io/dagar/32/22_2.png) [@dagar](https://discuss.px4.io/u/dagar)\
**Post date:** [December 6, 2017, 6:22am UTC](https://discuss.px4.io/t/pixhawk-mini-lidar-v3-optical-flow/5051/2 "2017-12-06T06:22:29Z")

</div>

What info are you looking for? I also quite like the pixracer, which is a similar size, but has more IO. [https://store.mrobotics.io/mRo-PixRacer-R14-Official-p/auav-pxrcr-r14-mr.htm](https://store.mrobotics.io/mRo-PixRacer-R14-Official-p/auav-pxrcr-r14-mr.htm)

---

<div class="post-metadata">

**Author:** ![airfed](https://discuss.px4.io/letter_avatar_proxy/v4/letter/a/ecc23a/32.png) [@airfed](https://discuss.px4.io/u/airfed)\
**Post date:** [December 12, 2017, 4:26pm UTC](https://discuss.px4.io/t/pixhawk-mini-lidar-v3-optical-flow/5051/3 "2017-12-12T16:26:15Z")

</div>

I ordered pixracer cause it does seems as though it is the closest to pixhawk. I just couldn’t get the optical flow to work. The Lidar and everything else works fine but optical flow just wouldn’t give values.

So I swapped back to regular pixhawk and here’s something funny I found out the hard way.

Original pixhawk has many more I/o compared to pixracer on the Servo rail 6 vs 14. Pixracer is 35mm and 12g. When I took pixhawk out of the hard case it had the 35mm holes in the center and only weighed 17g…I was like wtf.

So in the end I’m back on pixhawk 1. Lidar and optical flow work as expected. And I’m at a 5g difference.

---

<div class="post-metadata">

**Author:** ![Al\_B](https://discuss.px4.io/user_avatar/discuss.px4.io/al_b/32/2717_2.png) [@Al\_B](https://discuss.px4.io/u/Al_B)\
**Post date:** [December 12, 2017, 4:40pm UTC](https://discuss.px4.io/t/pixhawk-mini-lidar-v3-optical-flow/5051/4 "2017-12-12T16:40:53Z")

</div>

@airfed, you probably already know this, but it worth mentioning for other. The Pixracer shares the same port for flow and gps. The latter is enable by default so you have to disable it for the optical flow to work.

---

<div class="post-metadata">

**Author:** ![airfed](https://discuss.px4.io/letter_avatar_proxy/v4/letter/a/ecc23a/32.png) [@airfed](https://discuss.px4.io/u/airfed)\
**Post date:** [December 13, 2017, 1:26am UTC](https://discuss.px4.io/t/pixhawk-mini-lidar-v3-optical-flow/5051/5 "2017-12-13T01:26:22Z")

</div>

Thanks al, I will do some searching on disabling GPS. I assumed you could run GPS, and optical flow at the same time. Lidar is also on the same port with a i2c splitter, and your saying specifically optical flow and GPS won’t run together. If so that’s great info.

---

<div class="post-metadata">

**Author:** ![Al\_B](https://discuss.px4.io/user_avatar/discuss.px4.io/al_b/32/2717_2.png) [@Al\_B](https://discuss.px4.io/u/Al_B)\
**Post date:** [December 13, 2017, 2:06am UTC](https://discuss.px4.io/t/pixhawk-mini-lidar-v3-optical-flow/5051/6 "2017-12-13T02:06:38Z")

</div>

@airfed, I personally was never able to have both (OF and GPS) running on the same port (not even with the splitter), but I might have missed something during my configuration. Perhap someone from the PX4 group can provide the correct procedure.

---

<div class="post-metadata">

**Author:** ![airfed](https://discuss.px4.io/letter_avatar_proxy/v4/letter/a/ecc23a/32.png) [@airfed](https://discuss.px4.io/u/airfed)\
**Post date:** [December 16, 2017, 2:32am UTC](https://discuss.px4.io/t/pixhawk-mini-lidar-v3-optical-flow/5051/7 "2017-12-16T02:32:37Z")

</div>

Yea I don’t have or need a gps at all. Do you have pixracer? I’m slowly getting to the bottom of this. I don’t quite understand all the port settings. I see that the gps on pixracer is serial 3, and optical flow needs a mavlink signal. I’m trying to compare to my pixhawk but it’s so confusing since pixhawk has a dedicated i2c. Can someone please tell me how i2c and gps on pixhawk is transferred to the same line on pixracer. I know I can get this to work somehow.

 ![](https://discuss.px4.io/uploads/default/original/2X/4/444cf651361894b1143407f6170df4d18e899386.png)

V3 of my carbon high temp PLA printed frame,

 ![](https://discuss.px4.io/uploads/default/original/2X/6/63a35c9090c800d8eac2abc846ae7587bcced726.jpeg)
