Yes its better to keep the wires shorter as shorter as possible. Plus, twist the IIC wires. You could also try wrapping GPS in anti EMI sheet and see which one gives you greater number of satellites.
As mentioned by @ibrahimqazi,
Shorten the wires and twist them. The Luna TF wires too.
General advice: Avoid a rats nest of wires. They work very well as antennae for RF noise.
One more: Check the supply voltage of the Luna. These devices are a pulsating load on the supply line. Not every DC-DC converter (voltage regulator) can handle this.
@ibrahimqazi thanks!
I shielded and shortened the cable. I enclosed all the TF luna in aluminum that I connected to gnd (tested with a multimeter). I moved the GPS even further away. unfortunately the GPS fix is ââvery slow and I still have GPS glitches. do you have any proposal to block EMI, possibly from AliExpress? i donât understand why make a lidar so small, that it should go on small copters (mine is 4") and not design them already adequately shielded.
Without this problem, works well
A few years ago I made a âpoorâs man ground planeâ for the GPS using a single sided PC Board, it really helped
i will also try the pcb as a screen. Thanks.
today, with all the shielding, the GPS caught 14 sats out of 20 sats in view (after 5 minutes in flight). the TF luna still works.
TF-Luna is the cheapest LiDAR in Benewake product list. It has no shielding.
You could also consider buying TFmini-S, the PCB has been modified which does not need that intensive shielding. A little expensive than Luna but less headache of EMI.
NOTE: Remember to buy hardware version 1.8.1 written on back side. Some resellers still have PCB 1.8 version which will cause problem similar to Luna.
Hi guys!
Is it possible to use lidar in Loiter/Poshold to reduce speed down at low altitude to prevent copter damage in manual landing?
In autoland (RTL/ Land) lidar works well
But in Loiter I can use it as avoidance only.
Thks
Practically speaking, itâs possible because there are already applications in which LiDAR is used for this purpose but I think this feature is not available off the shelf in Ardupilot. You will need to develop it.
try to add ferrite bead over all wires coming to Luna (maybe another at GPS) closest possible to the module. Maybe your EMC travel over wires.
This is true. i2C- TFMINI+ lidar doesnât work in current ardupilot firmware (my copter is v4.4) So many hours spent to figure out why doesnât work even though says in the docs by setting param RNGFND1_TYPE=25 (for i2c-benewake tfmini+) and RNGFND1_ADDR =16 (0X10 default i2c addr of tfmp). Looks like its really I2C driver issue within the ardupilot firmware. The UART mode of the tfminiplus works just fine.
For me it works with the same settings in I2C mode in plane 4.4!
Did you connect Luna pin no. 5 to ground to activate i2c mode?
Luna must have also some newer firmware, but piece I bought this summer had it already in.
I donât speak about not confusing SDA with SCL .
Just extra note, that I put a ferrite bead over all four wires from luna to the FC (close to luna) and donât have any problem with RF interference. Itâs in the plane with more space so itâs ~25 cm from GPS, but has no influence to it.
Please can you clarify in the Benewake tfmini+ docs, if you switch to I2C, you send the command
5A 05 0A MODE SU
Im confuse how is that change to â5A 05 0A 01 00â.
Hello,
MODE value can be 00 (for changing to UART) or 01 (for changing to IIC). SU is checksum which is the sum of 4 bytes, you can also put 00 in SU byte, it is acceptable. So, based on this explanation, the two commands will be:
Change to IIC: 5A 05 0A 01 00
Change to UART: 5A 05 0A 00 00
Just for my understanding: Changing mode by the command is equivalent to changing it by grounding pin 5? You canât use this method?
In EN manual I have in hand isnât described changing mode by pin 5, but I google translated description of pin 5 in the chinese manual and there itâs written.
Here you mentioned about TFmini-Plus, right? TFmini-Plus has no 5th pin. It has total 4 pins. 5th pin exists for TF-Luna. Thatâs the case for TF-Luna not TFmini-Plus.
I dont have the TF-Luna. This shoudnât be address to me.
Now I see! Sorry for the confusion. All the time I ment TF-luna.
Hi dear all,
Iâm trying to use the lunar TF sensor to measure the amount of water in the tank. The project has to work remotely and on battery using Arduino Pro Mini. To do this, you have to reduce the consumption of the Lunar TF, putting it in sleep mode to save energy. I tried to follow the procedure in the manual, changing the records but I was unsuccessful. Please, can someone help me with the correct procedure to put the tf lunar to sleep and then wake it up later via software after some time?
Do you have the updater? Im having lot of trouble with my Tfmini-s i2c
Can you please let me know if the configuration parameters for the TF02 Pro lidar i2c. What is the I2c address of this lidar, as i am already using the tfminiS lidar and i want to add both in the drone.