inav icon indicating copy to clipboard operation
inav copied to clipboard

How to turn on SONAR with iNav 1.7.1?

Open liutairan opened this issue 9 years ago • 17 comments

Just like another post, I cannot find SONAR configuration. I also tried to use CLI feature SONAR, but it shows that invalid command. Is it removed again?

liutairan avatar Jun 23 '17 15:06 liutairan

I saw that sonar was back in 1.7, but cannot find it in the configurator.

liutairan avatar Jun 23 '17 15:06 liutairan

have you specified the sonar hardware ?

set rangefinder_hardware = 
Allowed values: NONE, HCSR04, SRF10

stronnag avatar Jun 23 '17 16:06 stronnag

@liutairan Yeah! use @stronnag command in the CLI to activate it!

johnsilvester avatar Jun 23 '17 16:06 johnsilvester

Not sure if SURFACE mode is working though. A brave test volunteer?

stronnag avatar Jun 23 '17 16:06 stronnag

I'll test it out in the next day or two

johnsilvester avatar Jun 23 '17 16:06 johnsilvester

@stronnag @johnsilvester Thanks~ Just found it. I will test it when the weather get better.

liutairan avatar Jun 23 '17 16:06 liutairan

I connected an HC SR04 to my spracingF3, entered the CLI command, SONAR tab turns red and nothing else.... any ideas?

nerezw avatar Jul 06 '17 08:07 nerezw

@nerezw we are not wizards or prohets, you have to be much more specific. How you connected and what you entered. CLI diff maybe?

DzikuVx avatar Jul 06 '17 08:07 DzikuVx

I have an spracingF3. I connected sonar trigger to IO2/5(yellow) and sonar echo to IO2/6(green) and 5volts Vcc on HC-SR04. I entered : # set rangefinder_hardware and got rangefinder_hardware = NONE Allowed values: NONE, HCSR04, SRF10 and then

set rangefinder_hardware = HCSR04

rangefinder_hardware set to HCSR04

and the save

the SONAR tab on the top of the screen turns RED the SANAR tab in the sensors screen can not be selected

can any body help

On 06 Jul,2017, at 10:44 AM, Paweł Spychalski [email protected] wrote:

@nerezw https://github.com/nerezw we are not wizards or prohets, you have to be much more specific. How you connected and what you entered. CLI diff maybe?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/iNavFlight/inav/issues/1817#issuecomment-313334677, or mute the thread https://github.com/notifications/unsubscribe-auth/ANJdn_6ISFGKMC6_UKLfmINVLuVney9rks5sLJ6IgaJpZM4ODvlL.

nerezw avatar Jul 06 '17 10:07 nerezw

diff please. HC-SR04 works with INAV 1.7.1 since I tested it few days ago. So looks like you are doing something wrong after all

DzikuVx avatar Jul 06 '17 11:07 DzikuVx

Ok... Will have a close look

On Jul 6, 2017 13:09, "Paweł Spychalski" [email protected] wrote:

diff please. HC-SR04 works with INAV 1.7.1 since I tested it few days ago. So looks like you are doing something wrong after all

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/iNavFlight/inav/issues/1817#issuecomment-313366581, or mute the thread https://github.com/notifications/unsubscribe-auth/ANJdn0Xgx5js9mb1jO_25XGKbNeIbhK8ks5sLMBmgaJpZM4ODvlL .

nerezw avatar Jul 06 '17 11:07 nerezw

here is the diff when i go into cli Am I missing anything

Entering CLI Mode, type 'exit' to return, or 'help'

diff

version

INAV/SPRACINGF3 1.7.1 Jun 3 2017 / 08:13:23 (48e1feff)

resources

mixer

servo

servo mix

feature

feature -RX_PPM feature RX_SERIAL feature GPS

beeper

map

serial

serial 1 2 115200 9600 0 115200 serial 2 64 115200 38400 0 115200

led

color

mode_color

aux

adjrange

rxrange

master

set acc_hardware = MPU6050 set acczero_x = 34 set acczero_y = 3 set acczero_z = -188 set accgain_x = 4098 set accgain_y = 4090 set accgain_z = 4082 set rangefinder_hardware = HCSR04 set mag_hardware = HMC5883 set mag_declination = -820 set magzero_x = -73 set magzero_y = -68 set magzero_z = 82 set baro_hardware = MS5611 set serialrx_provider = IBUS

profile

profile 1

On 06 Jul,2017, at 1:09 PM, Paweł Spychalski [email protected] wrote:

diff please. HC-SR04 works with INAV 1.7.1 since I tested it few days ago. So looks like you are doing something wrong after all

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/iNavFlight/inav/issues/1817#issuecomment-313366581, or mute the thread https://github.com/notifications/unsubscribe-auth/ANJdn0Xgx5js9mb1jO_25XGKbNeIbhK8ks5sLMBmgaJpZM4ODvlL.

nerezw avatar Jul 06 '17 14:07 nerezw

Try soldering to the 'Trig' and 'Echo' pins on the bottom side of an spf3

johnsilvester avatar Jul 06 '17 15:07 johnsilvester

Will do... Thanks

On Jul 6, 2017 17:11, "johnsilvester" [email protected] wrote:

Try soldering to the 'Trig' and 'Echo' pins on the bottom side of an spf3

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/iNavFlight/inav/issues/1817#issuecomment-313425683, or mute the thread https://github.com/notifications/unsubscribe-auth/ANJdnzcYOU5bTpvCthyr8MpC-yBguMqFks5sLPkdgaJpZM4ODvlL .

nerezw avatar Jul 06 '17 17:07 nerezw

@nerezw Have you solved your problem? Did you use usb port to connect to the computer? If so, maybe you can try providing extra power to the board. At least for me, the board cannot provide enough power for the sonar if using USB connecting to computer. Once I have the battery connected or other power source connected, the sonar will work well; once I remove the battery, the sonar indicator will get red again.

liutairan avatar Jul 07 '17 20:07 liutairan

I haven't solved it yet. I was going to try 1k resistors on tabs under the board as suggested by someone

On Jul 7, 2017 22:33, "Tairan Liu" [email protected] wrote:

@nerezw https://github.com/nerezw Have you solved your problem? Did you use usb port to connect to the computer? If so, maybe you can try providing extra power to the board. At least for me, the board cannot provide enough power for the sonar if using USB connecting to computer. Once I have the battery connected or other power source connected, the sonar will work well; once I remove the battery, the sonar indicator will get red again.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/iNavFlight/inav/issues/1817#issuecomment-313786136, or mute the thread https://github.com/notifications/unsubscribe-auth/ANJdn8J-aECiOJZzq8wc1XH_e733L3zCks5sLpX5gaJpZM4ODvlL .

nerezw avatar Jul 08 '17 07:07 nerezw

On cleanflight sonar works ok with 1k resistor on sda and sdl. I tried with inav cli enabled, doesnt work its red.

matevz25 avatar Sep 01 '17 09:09 matevz25