DIY Acrylic Water Drone Submarine

Thanks Eliot - for the response on the light Pwm duty cycle I posted the the specs on the the led driver I am using post before.

I went on a wild chase with the software last night and basically install every single one to make sure I was not going crazy but when I did the Pixhawk1-1M it kepts giving me an error too after it installed but kept say I should use the frmuv2 intead of the -1M.

Only way I got it to work again without any error was go back to the 4.1.2 (Fmuv2) ,which calmed me down because I was on a nervous breakdown.

I have added a link to the led driver

https://www.aliexpress.com/item/32825274876.html?spm=a2g0o.order_list.order_list_main.5.48db1802OZ9nXa

Thanks once again - and hopefully I can resolved the light issue which has more priority now.

can I get 5v from the cables off the battery monitor to power my raspberry pi since I am not using any servo? I ordered one that said bec

https://www.aliexpress.com/item/4000483551259.html?spm=a2g0o.cart.0.0.554738dahUIxPJ&mp=1&pdp_npi=5%40dis!CAD!CAD%208.29!CAD%207.91!!!!!%402101ec1f17402790585498601e1e50!10000002004744013!ct!CA!715442682!!1!0

My new nemesis

That depends on what’s connected to it, how much current it draws, and whether the output voltage is outside the range of the components you’re connecting.

We normally recommend using a 5V 6A BEC inside our vehicles, which is used to power a Raspberry Pi + a flight controller board + a camera tilt servo.

That parameter has been removed in recent ArduSub versions, in favour of just directly specifying the type of each servo output. You may need to install a more recent QGroundControl version which knows about the more recent parameters.

I install the lastest Ground Control and I am still getting this error - any help with how to work around this will be highly appreciated - I know you said something about servo .
QC

I install the lastest Ground Control and I am still getting this error - any help with how to work around this will be highly appreciated - I know you said something about servo .
QC

Hi @Spinorose -
Blue Robotics recommends QGC Version 4.2.8

HI Fam - I still cannot get out of the disable mode on my firmware , I did all the updates and no progress or do I make all these setup in the 1.4 stable software in BlueOS? Sorry to drag this too long but I really need help

Hi @Spinorose

Do you mean the message in your second screenshot? Add Eliot explained, it is not possible to eliminate that message while using older versions of QGC
 But it doesn’t impact functionality!
When you try and arm the vehicle, what error do you receive?

Have you tried Cockpit?

Hi Tony- I figure it out and was able to get the light configured on the software side , for some reason, I was trying to get it done on the QC interface which was grayed out - Now , I have to play with Mosfet I bought on Ali Express and if I do recall , some modification will have to be done with the PWM on the prevoius one .

Can you let me know if I still neeed to any modifcation on this one below or it should work right off the Pixhawk

https://www.aliexpress.com/item/1005008570842640.html?spm=a2g0o.order_list.order_list_main.197.4d0b18028et7VJ

A MOSFET just passes out whatever signal you put in, scaled to the MOSFET’s input voltage level.

ArduPilot firmware (like ArduSub, which is running on your Pixhawk) assumes that connected outputs on its servo rails use servo-style PWM values (with pulse durations ranging between ~1000-2000”s, regardless of frequency). For directly driving an LED you likely want duty-cycle PWM, where the pulse durations are instead set to provide a proportion of ON vs OFF time within the period of the pulse frequency - i.e. you want 0-100% pulses[1], and will need to do some extra configuration to enable that.

Assuming you’re still on the old firmware version you managed to get working, the instructions I linked to should still generally be correct. In summary:

Basic lights configuration

  • The lights 1 channel is configured by setting the relevant SERVOn_FUNCTION parameter to RCIN9 (59)
    • BlueOS does this for you (when you choose the Lights 1 channel)
    • Newer firmware versions use a dedicated Lights1 (181) function value, in case that’s relevant
  • The number of steps (between min and max) for the lights increment/decrement joystick button functions is configured using the JS_LIGHTS_STEPS parameter
    • BlueOS does this for you when you set the “Joystick steps” field in the Lights setup

PWM duty-cycle configuration

Frequency checking / configuration

  • Frequency of MAIN outputs 1-8 are controlled (as a group) by the RC_SPEED parameter
    • With your current configuration of Lights 1 on Channel 7, this is the relevant one for you
    • For Navigator flight controller board users this parameter controls all of the servo rail outputs, because there’s only one driver for all the channels
  • Frequency of AUX outputs 1-6 are controlled (as a group) by the SERVO_RATE parameter
    • You may need to change to using one of these outputs if the MAIN outputs cannot manage the fully off or on duty-cycle states, since they’re not really intended for driving non-servo signals

Setting relevant channel limits

  • The lights 1 limits are configured using the RC9_MIN / RC9_MAX parameters
    • Newer firmware versions instead use the SERVOn_MIN/MAX parameters of the channel you’re configuring
    • For a 0% duty-cycle, the minimum value should generally be set to 0”s
      • It’s possible this will skip the lowest joystick button step, which could be annoying, in which case you can try setting it to 1”s (which is probably close enough to off for most use-cases, especially if the frequency is relatively low)
    • For a 100% duty-cycle, the maximum value should be set to the period corresponding to the relevant channel group frequency \left(\frac{1000000}{\text{freq}}\right)
      • e.g. for channel 7, with RC_SPEED set to 50Hz, the max would be 20000”s
      • If the relevant frequency is set to 200Hz, the max would instead be 5000”s

  1. This is commonly visualised as pulse “widths”, filling up some portion of the cycle period ↩