Servers by jDrones

I2C Maxbotix range finder on Pixracer


(cookmangr) #21

ppoirier i get it connected to 2

I use this one

I get sonar range values but i also get bad lidar health in mission planer hud

(ppoirier) #22

Do you have the same pattern as @chris661 ?
I mean can you read OK using the USB ?

(cookmangr) #23

I have pixhawk version 1

I have a i2c splitter and i have connected external compass oled display and the maxbotic i2c range finder

I have conect them only with usb because i m on table testing hardware , havent mount electronics on multirotor yet

Do you think its power too low from usb?

(chris rey) #24

@cookmangr, I bought this one before , but it appears that it is supported only in latest APM 3.2.1 firmware, never get it working with 3.5.x latest firmware.

(ppoirier) #25

I think we might be dealing with 2 differents issues here
@chris661 has an original Mavbotics that works ok on the PixHawk

The sensor you are using is an implementation of a HC-SR04 with an Arduino At Mega 168 based I2C interface. It seems to work according to the comment on the question-comment section “… I get it work by choosing Maxbotix IC2 in range finder bookmark in mission planner”. .

(cookmangr) #26

Ppoierier mine working too

I do get cm values and it looks very pecise, but it show me bad lidar health at mission planner hud

What i try is that i disconnected all extra devices from i2c splitter like the external compass and the osd screen and the bad lidar health disappear

Do you think that i2c conflict when one or more device connected?

What should i do?

(ppoirier) #27

Well the standard Maxbotic is at AP_RANGE_FINDER_MAXSONARI2CXL_DEFAULT_ADDR 0x70
An it does not seems to conflict with the SSD1306 or the HMC5983 according to this:

So it might be a power issue, remember that the PixRacer is limited to 1 Amp for all devices. On my quads, I am using external BEC for the rangefinder and optical flow

(cookmangr) #28

Ok , this is just a testing hardware on the table so when i start the building i will try to power the sonar from an external bec

Thank you very much

(chris rey) #29

@ppoirier, hi, before testing with FDTI, I just get today by post from robotshop another MB1242. I proceed to the same tests and always same problem as described above. So, as I had to modify lot of times my serial values for telemetry and OSD purposes, I really suspect that I modified some parameters and this could be the cause for me. To resume, I have no problem when connected to USB, I get range value (and sometimes Bad Lidar Health message, I do not know why), but when connected WIFI UDP, I have no range displayed. Attached some printscreens of my SERIAL and RNGFND, maybe you will find there something bad…

(ppoirier) #30

Looks ok
If you really want to make sure , save , reset and just set the randefinder to type 2

(chris rey) #31

Thanks, I will do an all reset, it good sometimes, but do you know what I hate with Pixracer and MP? Doing Compass Calibration… So easy to proceed with PX4 and QGC… But a nightmare in MP, compass stays in red zone, and you have to do it again… No problem with Pixhawk… It’s out of topic, I know but is it a simple way to reset everything and keep the compass parameter? Copying manually the parameters? Which one? Thanks, Chris

(chris rey) #32

Ok, with Compare Param, I can get my old parameters I choose, right? Now I have tested with the resseted parameters and I have always my problem. So for me, not possible at all to use Wifi UDP connexion and having range finder working. What do you suggest? Do you have the same config as me? I mean Pixracer with 8266 and range finder?

(ppoirier) #33

@chris661 well… you convinced me to try to put the ESP8266 module back on the PixRacer and check on Mission Planner and I confirm there is NO sonar range being displayed on Mission Planner 1.3.49. on UDP

The RangeFinder signal is transported through MavLinl because I can read it with Qcgroundcontrol.

@Michael_Oborne do you have any suggestions ?

MissionPlanner 1.3.45 cannot connect to PixRacer ESP8266
(chris rey) #34

@ppoirier, @Michael_Oborne, I stay available for testing, and appreciate your help. A nice day, Chris

(chris rey) #35

@ppoirier, now flying without any groundstation Wifi connected. One point, the value Alt that I get from frsky telemetry in my Taranis Display should be a calculation between baro and rangefinder values? Right? But I’m not sure it’s doing it this way, how to check? I take off with Alt Hold Flightmode, I stabilised the Quad at around 1 meter, I read this value on my screen, ok. But then, I landed and took the quad by hand and place it over an 50cm object, but I saw no difference, Like the Alt indicated is only the Baro altitude. What’s your point of view? Thanks, Chris

(ppoirier) #36

If you want to fly with rangefinder as primary, you have to set

(chris rey) #37

sorry not sure to understand, I thought the range finder was used to improve measurements given by gps and baro, this is not the case? reading the link you provided me, I understand that a range finder can only be used in conjunction with an

(ppoirier) #38

yes it is, but by default it is the baro that is the main altimeter

(chris rey) #39

And this parameter WPNAV_RFND_USE set to 1?

(chris rey) #40

do you have some news about this or do I have to open an issue?