Awesome thank you much for that! So all I do is splice (not cut and replace as the GPS still needs it?) in the appropriate wires into the GPS1 port with the I2C plug and then I should be able to have AP read the sonar connected?
Can by any chance I connect an additional sonar, or does the additional need to be seen separately on another port?
Why do you say be careful with the 5V from the pixhawk? Just make sure im not over driving it? So to be safe run a 5v PS?
Im not sure how to hook it up to the 2.1, its ADC port has 3 wires, and I cant find a pinout like you provided above. Could you let me know where to findthe 2.1 pinouts? I dont see them in the literature here from the downloads folder:
Can someone explain how the compass is the GPS can work if the range finder is also wired to the SCL and SDA pins? I’m can’t see how both the compass and rangefinder can be wired to the same pins?
I2C is a serial bus : all devices have an indivifdual adress and the FC is the master that initiate conmunication by sending the sensor adress first and then send an instruction or read a value
Ah right great, that makes sense. Didn’t realise it worked like that with my analog brain. Might actually consider hacking my Here GPS cable now. I have the 1240 sensor which I’ve had some success using the analog output (cos i ddidn’t want to hack the GPS cable without knowing it would work). When I say some success I mean I’m getting a voltage that roughly changes when I move the copter around on the bench.
When I arm and fly however it’s not current working. In the field it just got stuck at 6.5m and didn’t do anything else. Read the troubleshooting guide and I think it’s most likely noise on the power supply for which I’m going to wire in a filter as advised here:
It could also be radiated noise, acoustic noise or vibration but I’m trying the power filter first, then Ill try moving the sensor further away from the motors etc onto the copter landing gear. Soft mounting is also something i’ll try.
If all that doesn’t work I’ll try I2C but one quick question - reading the manual it looks like I can output either I2C or analog becasue it has pins for both, however elsewhere on the internet it says you need to order a different sensor depending on whether you want analog or I2C.
Can anyone clarify that.
Thanks
Hi, friends, pls allow me to share, the Benewake inexpensive micro LiDAR sensor TFmini is available. You could pls check OzRobotics link for more details.
Can this be used in Arducopter/Pixhawk yet? I guess this will still need a driver writing for it to work? This looks like the same one as referenced above?
@Michael_Brooks I suppose you are asking about TFmini? TFmini is compatible with Arduino, Pixhawk, APM. It does not need a driver like Sonar.
You can please check this TFmini LiDAR development routines on Arduino for reference. Thanks. Development Routines of TF LiDAR on Arduino-170726.pdf (778.3 KB)
Yes, I am talking about the TFmini. I’ve just bought one since it will work with Pixhawk.
I’m sorry but the document you’ve attached is way over my head.
In mission planner there is an option to setup a range finder and you have to select the type. Is this now listed as an available lidar in the latest firmware version?