• Content Count

  • Joined

  • Last visited

  • Days Won


Posts posted by Spitfire76

  1. 15 hours ago, dronepi3 said:

    Any help would be enormously appreciated guys!

    I agree with @Av8Chuck 's suggestion of checking out  http://ardupilot.org/copter/index.html. You can even setup an environment using their simulator to test your python scripts without having to use any drone hardware.


  2. 23 hours ago, SeanMichaels said:

    Has anyone heard about a proposed bill that seeks to clarify and control two significant legal issues that remain unresolved: 1) Establish the airspace to 200 feet in altitude above private property as under the exclusive control of the property owner; and 2) Establish state, tribal and local governments as having exclusive and absolute rights to regulate that airspace?

    Any thoughts on whether this will move forward or not?

    Here's the link to an article regarding the proposed bill.


    Yes, I started this thread on this subject a couple of weeks ago.


  3. 6 hours ago, erfan said:

    This is the controller of the landing gear :  Signal input : PWM signal, <1520us will deploy, >1520us will retract
    this landing gear came with the TAROT x6.

    In that case I don't understand either why its not working. I have the same settings and mine works fine although I am only testing it on the bench as the landing gear is no longer mounted on my drone. 

    One thing that you could try is to go to the "servo" area of the flight data menu and select the "low" and "high" buttons on servo 9. This should set the output to 1100 and 1900 respectively and in my case the landing gear does deploy and retract. 


  4. 2 hours ago, erfan said:
    SERVO9_MAX : 1900

    SERVO9_MAX : 1100

    CH9_OPT :29

    I have the same settings if you really meant SERVO9_MIN: 1100

    2 hours ago, erfan said:

    1) when opening landing gear:   it tries to open but it does not open . 
    2) When closing:  it closes smoothly which is fine. 

    Does open mean deployed and closed mean retracted ? (of course the landing gear needs to be "deployed" for landing)

    3 hours ago, erfan said:

    ch9in min : 982 (can be found in status and radio calibration )
    ch9in max : 2006  (can be found in status and radio calibration )

    Are these the values that you see in the status display when you operate the landing gear switch on you transmitter and is it 982 when the switch is down (deployed) and 2006 when the switch is up (retracted) ?

    What are the values of ch9out  with the switch down and up ?


  5. I need to correct my previous post - I recall that it wasn't that easy to get to work.

    Low/high PWM does not necessarily mean deploy/retract. It depends on the PWM value on the time of startup and the position of the landing gear. I had the landing gear deployed and tried these values as the startup PWM value

    • 1000 - increasing to 2000 landing gear retracted
    • 2000 - decreasing to 1000 landing gear retracted

    So its important when connected to the flight controller that it supplies a low PWM value at startup. 

    LGR_SERVO_DEPLOY 1000  (was 1750)

    LGR_SERVO_RETRACT 2000 (was 1250)

    LGR_STARTUP 2  (was 0, 2 uses the above deploy value)

    You said that you tried this but make sure you didn't reverse the deploy and retract values as the defaults were 1750 and 1250 which might have given you the impression to set them to 2000 and 1000 respectively. 


  6. 17 minutes ago, erfan said:

    yes please that would be good,

    My first test was simply with a servo tester and so not driven by the flight controller. I found that when the PWM is low the landing gear is "deployed" and when its high its "retracted" so maybe I was wrong about the triggering by going high to low or low to high. Its also "deployed" when I remove the servo control cable from the landing gear controller. This would simulate loss of signal from the transmitter if the fail safe on the receiver was set to "no pulses.

    I''l check next with the Pixhawk. 

  7. 4 hours ago, erfan said:

    No I am not sure How it is triggered ? (for me is TL6X001 landing gear )
    what I suppose it is also based on change in PWM,

    I tried what you said gain the same result,

    when closing there is no problem it closes smoothly.
    but when opening it tries to open up in several steps (it opens and closes consistently).

    I also tried with Receiver it worked fine .but don't know where is the problem ?

    ok, did you reboot the flight controller after making those changes ? If you did I'll make some tests here as its been awhile since I used the landing gear. 

  8. 23 minutes ago, erfan said:

    But when I manually close  (retract) the landing gear , it will be done just in one step meaning at one stage it will be closed.

    Do you know how the landing gear is triggered ?.

    For example the landing gear that I have is the HML 650 and I noticed that its triggered by a change in the PWM value rather than a low value being say the deployed state and a high value the retract state. There are 3 other parameters that help with this 




    I believe that I had to change the LGR_STARTUP_DEPLOY to 1000 and the LGR_SERVO_RETRACT to 2000 and LGR_STARTUP from 0 to 2

  9. 2 hours ago, Patton3660 said:

    Hi all, was in an FPV racing club at UCF. And now I want to build my own drone from scratch with my own design. So I have a few questions and hope they can be answered here!

    I'm not a FPV racer but have built several drones from scratch and so maybe able to help.

  10. Congratulations @Alan Perlman and thanks for building UAVCoach.

    This is how I found out about UAVcoach back in 2015.


    I joined this forum shortly after you added it back in January 2016. I followed your training and passed my Part 107 on the second day that it was available from the FAA in August 2016.



    • Like 1

  11. 49 minutes ago, UnoMatt said:

    Im using Joop Brokking code.  

    Interesting, I did not know about this project. I assume that you are building this one as I noticed he has also moved to 32 bit processors on his later build.


    To get back to your original post, yes the ESC have to be connected to the flight controller, in this case the UNO, and not the receiver. Each ESC should be powered directly from the battery in order to drive the motors. These typically are thicker wires to handle the higher current and connect to a power distribution board (PDB). Some ESCs provide +5v as they have a built in BEC (Battery Eliminator Circuit) but you should not use it if the +5v is provided to the UNO and receiver by another source (you diagram shows from the battery using a diode). Does you PDB have a built-in BEC ?. If so you could use that to power the UNO and receiver. 


  12. 12 hours ago, erfan said:

    I have also mapped channel 6 ad relay on and off.

    I don't see how you could have used channel 6. My understanding is that you have to use channels 7 - 12. 7 & 8 can be set from MP's extended tuning screen and you should see in the drop down Relay on/off which would correspond to aux 5 and relay 1 aux 6. 

  13. 6 hours ago, erfan said:

    So you mean when a flight controller wants to control a function (rectractable  landing gear) Then a servo*_function needs to be mapped ,right?

    Let's take a step back and continue to use the retractable landing gear as an example as I've had experience in setting that up. Firstly you have to of course know what is type of signal is required by the landing gear hardware for it to deploy and retract. In my case the landing gear controller required a PWM signal. Originally I did not have this driven from the flight controller but simply use one of the spare PWM outputs of the receiver which was in turn mapped to a switch on my transmitter. This worked but what would have happened if my drone lost the transmitter signal and the failsafe action was RTL  or land ?. If the landing gear was retracted when this occurred there is no way to deploy it before it landed unless I could regain control over the drone. So this is the case when you want the flight controller to drive the PWM to the landing gear controller as the ArdCopter code does deploy it before it lands. Of course you also want to retract and deploy it from a switch on the transmitter. I used the first aux pins and so SERVO9_FUNCTION was set to landing gear and also CHXX_OPT was set to landing gear where XX was the sbus channel I was using from the receiver. 

  14. On 10/9/2019 at 10:29 PM, UnoMatt said:

    Started to build a 3d printed drone with UNO.   From what I've seen no one uses a PDB since they use a built frame with PDB installed.  I see they use resistors from the battery to the UNO.  Since i'm using a PDB I shouldn't have to use resistors correct? 

    Also I see they don't plug the ESC's into the receiver.  Rather into the UNO.  Then output from receiver to UNO?  How would i wire that?  Cut the ESC to receiver wire and solder into UNO?  There doesn't seem to be any step by step on how to do this.

    Hello @UnoMatt and welcome to the Forum. Not sure how to answer your question but it may help me if you explain a bit more about your project. It looks like you are building a flight controller from scratch using an Arduino Uno. 8 bit processors were first used in early flight controllers but these days 32 bit processors are mainly used. For example the open source Ardupilot software that I use for my drones was originally designed to work on Arduino processors, hence the "ardu" in the name but the software evolved so much it required more memory and processing power and several years ago the Arduino hardware was abandoned in favor of 32 bit arm processors.

    So what software were you planning on using in your project or were you going to write your own ?