LibrePilot Forum

Users => Vehicles - MultiRotors => Topic started by: Z33 on October 05, 2015, 04:42:11 am

Title: X4r sbus issues
Post by: Z33 on October 05, 2015, 04:42:11 am
Hi guys,

Just checking to see if anyone have this problem.

Am using the nano and have problems getting it working on the radio wizard. Moving throttle does not move the GUI. Everything else is fine.

I have:
Use main port and followed the diagram available on the net.
Swap to a brand new nano to try
Changed cables.
Taranis plus radio latest  official fw  and set to d16.
Taranis radio successfully binds
with rx.
I checked the GUI hardware page and it reads sbus.

I believe my x4r is a non-EU version with stock fw.

I am stumped!

Please help.

Cheers,
Z
Title: Re: X4r sbus issues
Post by: Mateusz on October 05, 2015, 08:54:17 am
Just checking to see if anyone have this problem.

I might have seen something similar, but I wasn't able to reproduce this.
I have the same receiver/setup, so I will try reproducing it today after work.

Did going back and forth in wizard screen help a bit ?

If you don't bother messing with your build, you could try different protocol maybe ppm or if you have maybe even different receiver to see if problem persists. Is it a new build or it worked earlier ?
Title: Re: X4r sbus issues
Post by: RC Madman on October 05, 2015, 09:01:08 am
I just setup a F450 with a CC3D using a Frsky X8R and I could not get SBUS to work at all.

I took the RX off a build that works fine running SBUS with a Nano on OP firmware 15.05.2.

It won't recognize any TX inputs while in SBUS but I was able to plug into the RX output port and use PWM.

Flew great by the way.

I would like to get SBUS working though as I just ordered a new X4R RX for this build. 
Title: Re: X4r sbus issues
Post by: m_thread on October 05, 2015, 09:04:17 am
Hi
I am using the exact setup on both Revolution and Nano and I have it working without any glitches. Do you use the setup wizard to configure your ports or are you doing it manually? If you do it manually you have to remember to restart the controller after you set the port. Please check your connection between the receiver and board. It is easy to get something wrong there :) 
Question: what firmware and GCS are you running?
/F
Title: Re: X4r sbus issues
Post by: Z33 on October 05, 2015, 09:15:45 am
Thanks for quick replies everyone. Here are some bullet points replies as I'm typing on my phone:

I am running the latest fw and GCS for nano.

I have changed my cables just in case but no dice.

I have used a brand new nano board and no dice.

I am using the wizard for both be vehicle and radio setup. Vehicle setup is fine.

Note that I have flown this current nano board with ppm on my d4rii before.

Updates: another forum member could be on to something. Rook62 said he encountered a similar problem as well. He fixed it by closing down the GCS and taking batts off the quad after finishing vehicle setup. He then restarted GCS and went to radio wizard. He had to do this a few times before finally it worked.

I'm at work now but I will try this method and report back tonight when I get home.
Title: Re: X4r sbus issues
Post by: f5soh on October 05, 2015, 10:31:21 am
Hi,

Please post config file and some pictures that shows wiring.

I'm using the same setup with two boards without issue.

Laurent
Title: Re: X4r sbus issues
Post by: Z33 on October 05, 2015, 02:28:51 pm
Can't seem to post any pics! Tried 6th times. The forum is super slow as well to access.  :-[
Title: Re: X4r sbus issues
Post by: m_thread on October 05, 2015, 02:47:54 pm
Hi

Can you host the image and file externally and post links for it here while we are looking at the forum issue?
/F
Title: Re: X4r sbus issues
Post by: Z33 on October 05, 2015, 03:23:40 pm
Hi there,

I managed to post some pics over at RCS groups. If you don't mind, here is the link. Kindly have a look.

http://www.rcgroups.com/forums/showthread.php?t=2453809&page=19

btw, I tried Rook's method above like 5x and it does not work. Fed up, I plugged back my d4rii and presto it's fine again. So I don't think it is the Nano board.
Title: Re: X4r sbus issues
Post by: f5soh on October 05, 2015, 03:38:03 pm
SBUS should work much better if you connect Sbus receiver to Main port, NOT FLEXI :)

There is no Sbus on Flexi port
Title: Re: X4r sbus issues
Post by: Z33 on October 05, 2015, 03:54:44 pm
thanks for your quick reply mate.

I thought there was the main port!!

Ok it works! Feel silly now but thank you sir!
Title: Re: X4r sbus issues
Post by: Z33 on October 08, 2015, 02:41:44 pm
Hi gents,

More noob issues.

I found out that Motor 4 does not spin. So I swapped the signal + ground servo wire to channel 3 to test and motor 4 spins. This suggest there is something wrong with my channel 4 pin on the Nano? Is there a fix for this?

My Nano board is fairly new but I have had some crashes in the previous frame but nothing too serious.

Please advise.

Cheers,
Z
Title: Re: X4r sbus issues
Post by: Mateusz on October 08, 2015, 02:46:18 pm
Hi gents,

More noob issues.

I found out that Motor 4 does not spin. So I swapped the signal + ground servo wire to channel 3 to test and motor 4 spins. This suggest there is something wrong with my channel 4 pin on the Nano? Is there a fix for this?

My Nano board is fairly new but I have had some crashes in the previous frame but nothing too serious.

Please advise.

Cheers,
Z

I would check
Title: Re: X4r sbus issues
Post by: xpantz on October 08, 2015, 02:48:54 pm
Have a close inspection of the board/solder joints for the output pins.

Try resetting the board.

If all else fails use channel 5. 
Title: Re: X4r sbus issues
Post by: Z33 on October 08, 2015, 03:05:11 pm
Thanks for the quick reply gents.

I have checked my soldering, looks ok and I also inspected the nano board. looks new in fact. (I have decased it and shrink wrapped)

1. Initially I thought servo wire #4 could be an issue but it powers motor #3 fine.
2. I also swapped motors but same result.
3. So for some reason pin #4 is not sending signal to spin the motors. In fact, during the GCS motor calibration stage, I notice it could not find the min throttle point easily. (the other 3 motors spun smoothly at 1020 or so but motor 4 did not spin till say a much higher value, can't remember the value but the slider was greater than mid point)

Are you suggesting it is a software problem, assuming the pin 4 structurally looks fine?
Title: Re: X4r sbus issues
Post by: Z33 on October 08, 2015, 03:58:10 pm
I erase the board and tried again but no dice.

How do I select channel 5? I tried plugging my servo #4 into the 5th pin but nothing happens.
Title: Re: X4r sbus issues
Post by: Mateusz on October 08, 2015, 04:11:43 pm
I erase the board and tried again but no dice.

How do I select channel 5? I tried plugging my servo #4 into the 5th pin but nothing happens.

Vehicle -> Multirotors -> Motor output channels, you can change Channel 4 to other output I believe.
I don't think it's a firmware issue, otherwise many people would notice this already, and we dont have such a problem. Motor is a mechanical device, so unlikely to be the problem.
Did you try using pin number 3 to send signal to esc/motor 4 ? Maybe it's your ESC that is behaving wired ?

Title: Re: X4r sbus issues
Post by: Z33 on October 08, 2015, 04:24:47 pm
Thanks let me remap channel 4 to 5 using your method.

Yes, I tested the following:

1. Use pin 3 to send signal to motor 4, and it works.
2. I have another brand new nano board, I just tested it and it works perfect. This implies nothing wrong with my current esc/motor 4.

I find this very odd, I dont believe I have crashed hard in my previous frame to damage pin 4. It's not bent or anything for starters.
Title: Re: X4r sbus issues
Post by: Z33 on October 08, 2015, 04:39:15 pm
Learn of a bug?

I mapped motor 4 to channel 5 and save it in the GCS. I go to the Output page and it shows correctly.

However, when you run through vehicle setup, the program will auto assign sequentially for you! So my motor 4 is map back again to channel 4.

Ok, so I follow through vehicle setup and save everything and when back to GCS to manually re-map and I decided to test "live motors"...it doesn't work. Despite re-mapping, channel 5 now spins motor 3! wtf

Nano is unable to change the sequence of mapping from 1-4 sequentially. You can't skip a number!

Please tell me how to do it if I am missing a step here.

EDIT: I think I managed to remap it. The output page mapping of 1->1 and 2->2 is not sequential. I get bank 3 moving motor 4 and bank 5 moving motor 3.

I do not know how to manually set min throttle anymore as mentioned above because vehicle wizard does not allow a remap.
Title: Re: X4r sbus issues
Post by: Mateusz on October 08, 2015, 04:55:22 pm
Learn of a bug?

I mapped motor 4 to channel 5 and save it in the GCS. I go to the Output page and it shows correctly.

However, when you run through vehicle setup, the program will auto assign sequentially for you! So my motor 4 is map back again to channel 4.

Ok, so I follow through vehicle setup and save everything and when back to GCS to manually re-map and I decided to test "live motors"...it doesn't work. Despite re-mapping, channel 5 now spins motor 3! wtf

Nano is unable to change the sequence of mapping from 1-4 sequentially. You can't skip a number!

Please tell me how to do it if I am missing a step here.

You have to tell which version of LibrePilot you're using. The easiest would be if you could post your exported UAV file.

Title: Re: X4r sbus issues
Post by: Z33 on October 08, 2015, 05:26:17 pm
Thanks Mateusz.

I have to apologise but I am not aware of the version I should be using? I am just using a nano and the latest gcs (before development stopped) I know you guys broke away from the main OP forum but I found LiftBag always helpful, so I came here. Happy to try LPilot software etc.

Edit 2: I played around a bit, reset, reboot, unplug lipo etc and went through the wizard a few times. As usual motor 4 is mapped by default to channel 4. My motor 4 now works but it cannot start at a min output of 1020 compared to other 3 motors. So whenI throttle up on my radio, motor 4 will lag the rest.

I am going into blheli suite to check the esc 4 one more time. I don't feel comfortable when I can't get it right because on my previous frame it was fine.

A kind reminder, my brand new Nano doesn't have this issue when I tested it. Maybe this pin 4 has gone wonky! LOL

Thanks all.
Title: Re: X4r sbus issues
Post by: f5soh on October 08, 2015, 06:20:27 pm
Please post your Output tab with a screenshot.
Title: Re: X4r sbus issues
Post by: TheOtherCliff on October 08, 2015, 07:18:48 pm
Edit: To be clear, this shows how to do this for a Revo, but the procedure is the same for other FC's.  :)

I generally run the setup wizard one time, and from then on use the Configuration tab and set what I need to set.

If you run the wizard again it will set the motors to 1->1, 2->2, ...

First use Vehicle tab to set motor 4 to use channel 5 as in attachment "motor output channel5.png" (and Save)

It sounds like you need to do a manual ESC calibration (take props OFF!).  Do it before proceeding.

Then go to Output tab and set Bank(channels) Mode and Update Rate for #4 (channels 5 and 6) to match #1,#2,#3
Note that this may be different for other flight controllers.  You need to make sure that channel 5 Mode is the same as 1,2,3.  The numbers in parenthesis are the channel numbers you need to match.
Set Max on VTOLMotorSW (the motor you moved) to match the others. then set Min, then set Neutral (about 1020 for you). See attachment "output channels.png"
Title: Re: X4r sbus issues
Post by: Z33 on October 09, 2015, 02:59:05 am
Appreciate the replies f5/cliff.

I will definitely check it out the remapping sequence this weekend.

Final conclusion last night, I remapped sequentially with channel 4 to motor 4. Then I went back to manually adjust the motor neutral speed for motor 4 using the GCS. Recall the wizard could not do it.

So I pushed the slider and finally got motor 4 to spin at around 1090. Weird huh?

Now I tested with my radio and all motors spinning nicely.

But I would like to know the reason for this. Also any issues running one motor with higher neutral points?

Title: Re: X4r sbus issues
Post by: TheOtherCliff on October 09, 2015, 04:26:30 am
That is usually caused by bad ESC calibration.  You need to do ESC calibration before you do motor neutral (slowest speed that still spins).
Title: Re: X4r sbus issues
Post by: Z33 on October 11, 2015, 02:26:51 am
Hi there,

Yes I did the esc calibration a couple of times via wizard. that stage comes before motor neutral points setting.

Conclusion: I maiden my new copter and she flies great, just a little twitchy for my liking. Probably need to dial down my yaw rate. Motor 4 on pin 4 remains a mystery. The neutral point is higher at 1080-1090 compared to 1020 for the other 3. Will keep monitoring.

Thanks all.
Title: Re: X4r sbus issues
Post by: quadfather on October 11, 2015, 02:39:06 am
Are they Emax 12A ESCs by any chance?
Title: Re: X4r sbus issues
Post by: Z33 on October 11, 2015, 12:08:22 pm
Nope not Emax esc but I am running Emax 1806 motors. Don't recommend them. PITA to solder and they use stiff wires. Plus on HQ props, the motor shaft is a little short for a solid hold using nutlocks. Won't get them for my future builds or upgrades.

I am using little bees 20a. :)
Title: Re: X4r sbus issues
Post by: Z33 on October 13, 2015, 06:20:36 am
Updates:

I'm still investigating this but it happened this morning when I wanted to hover test my quad at home.

I could not get the quad to arm. Weird thing is that on the bench last night with USB plugged into GCS, it arms and throttles nicely.

Spoke to a friend and he encountered the same issue and found a solution by putting in a pull down resistor) to the servo cable. He documented his solution at the OP forum. He believes there is an issue with the boards when it comes to sbus connection.

I'm going to see if my problem is related. To test: unplug the servo from FC to X4r and power on the Lipo. After that plug the servo in. Finally arm as usual.

I have checked the obvious, saved settings etc.

Will report back tonight but if anyone have issues please jump in. Maybe developers can look into this as well.
Title: Re: X4r sbus issues
Post by: f5soh on October 13, 2015, 07:26:41 am
Hi,

Some users add a capacitor connected to receiver. I'm pretty sure this solution just allow hiding another hardware issue like bad connection/wires...

If you can reproduce your arm issue, it should be great if you check SystemHealth panel and see what appends.

Title: Re: X4r sbus issues
Post by: Z33 on October 14, 2015, 02:18:51 am
Updates #2:

I tried the method above but no luck so maybe it is a different issue I have. Anyway I ran radio wizard again and it arms. I tested three more times after that to make sure I can arm and hover. (Without having usb plugged in for GCS)

I am going to test flight it today during lunch hopefully and see if I get any issues.