Here we are in the Tyrannis, I'm going to Center both of the sticks, and I'm gonna push to the right with a throttle oh
I'm Joshua Barlow
And you're gonna learn something today
Your fpv camera has a whole bunch of settings that affect how the image looks
and if you're like most people
You don't mess with those settings because in order to mess with those settings you need one of these this little joysticks that you plug
into the back of the camera and you
Go access the OSD menu and even if you do have one of those with you
I think if you're a nerd like me who carries one with you to the field and your backpack
You probably got fish it in there and plug it into the back of the camera and who continue can't do that well today
I'm going to show you why you?
Can get rid of these forever because betta flight has the ability to access the camera's OSD
From your transmitter sticks does that sound cool. Yeah stay tuned
The feature that we're talking about today is a real game changer
It's called beta flight camera control or OSD camera control
It's a game changer because those settings in your camera and specifically like brightness and contrast may be automatic gain control
They significantly affect how the camera is responding to the ambient lighting conditions
and if you look out on the Internet you can find lots of videos saying best settings for
1177 rotor is what everybody's got their idea of the best settings
And it's a real shame that we have to search for the best settings for every
Lighting condition would it be nice to be able to change those settings in response to the different lighting conditions
The first thing I'm going to do is I'm going to show you how to physically
Wire the camera up and then the second thing I'm going to do is I'm going to show you what you have to do in
Beta flight in the configurator to make the feature work
And in order to wire it up that you have to choose a pin on the flight controller that you're going to solder to
And the pin that you're going to choose is it's not a UART you might think oh
It's just like a serial connection with the UART. It's not you're going to choose a pin
Well the key thing is that the pin has a dedicated timer. You know promise your developer
you probably definitely is nothing to you a timer is an internal resource in the actual microprocessor on the flight controller and
the with a
Develop though developers assigned timers to different pins and sometimes different pins will share a timer they can do that
well the pin that we use for camera control has to have its own timer and
One way to figure out pins that will work is to go look
in the source code
Yeah, and see what timers are assigned to what pins don't do that the other thing you can do is you can almost oh you?
Can always use the LED strip pin on your flight controller?
If assuming that you're not using programmable LEDs you can use the LED strip pin
And I'll show you how to do that the LED strip. It always has a dedicated timer
if you have a quadcopter with more than four motor outputs as
Like the F. 405 board I'm working with has six motor outputs, and that's great because although very few of us use hexacopters
Many of us have a use for those extra two motor outputs for things like this
the extra motor outputs
Probably also have their own timers and probably can be used so we're gonna be using the LED strip pin because I'm not using
LEDs on this quadcopter if you are using LEDs, then you better, hope you have a board with extra motor outputs
And if you don't have either of those you got to go look at the source code
And you might just not even be able to do it
sorry once you've selected a pin the next thing you're going to need to do is you're going to get a
Resistor and the resistor needs to be between
150 and 600
I have here a handy-dandy little resistor kit
Buying just like one resistor is pretty expensive and hello if you have the internet you could probably buy one resistor
That's all you need, but if you do electronics getting a little kit like this is very handy and much much cheaper
You know you get way more resistors for your fuck, but I'll put a link to this down in the video description
You can find other resistors individual resistors on sites like digi-key or mauser or?
All over the internet now if you have a flight controller that already has a camera control pin on it
And there are a few of them out there when that comes to mind is the CL racing f-4s
That's the second generation flight controller from sail racing
And I've heard from other manufacturers that are adding them to their to their flight controllers
it will already have this resistor installed on it you do not need to do what I'm about to do and
Also, if you have one of those flight controllers with the camera control pin already on it
You also don't need to select a pin or think about a timer or give up your LED strip all
You will do is just solder the wire to that camera control pin on the flight controller
But most of us these days
Don't have a flight controller with a built-in camera control pin six months from now this video is as part of the video may not
really even matter
So I've got my 220 ohm resistor, and then I'm going to connect it in between the camera on
the
signal pin of the
OSD wire now I'm working with this little extension here
That's just a convenient way to get to plug into the OSD on my camera the exact
Whether you do this will depend on how your camera is wired. I'm going to plug this in and
Before I start soldering I'm just gonna take a measurement
With my multimeter. I've got the multimeter set to DC volts. I'm going to plug that into our copter in and
I'm going to measure between the two wires
I'm gonna measure between the two wires coming out of the OSD connector ground and the signal wire
And I'm going to measure the voltage there
And it should be three point three folds, but that's what I want to check
Okay
So here are getting to point eight eight volts
that's
Surprising, but that is what it is. That's why I measured it. I guess two point eight nine volts all right
We're gonna make a note of that in case it matters later
It's easy to do that now while you're getting ready to solder everything up
Just make a note of that number
But measured between the the signal and the ground on your fpv camera same
I'm not not sure. I'm not your video signal the OSD the red wire coming out of the OSD or in this case
It's a blue wire
So solder the resistor here onto the signal wire
And then I'm gonna just add a little bit extra wire here to extend the ground and the signal out
So they can reach where they need to go. I'm gonna be using this this is um
silicon insulated hookup wire
This is really great thing to have around silicon wire of course much better than plastic insulation
It doesn't melt when you solder it. It's very nice flexible easy to strip with your fingernails
this
Hookup wire is on my I just added a new page to my ultimate fpv shopping list for supplies for things like
Heat shrink and glue and solder and wire and there's a link to this on there
I'll put a link in the video description as well this great stuff
It's available all the way down to like from like 22 down to like
32 gauge you get any size you want it comes in different colors very nice to have
So here is my little plug all made up
I've got the resistor on the signal wire
And I've just got an extension on the ground wire if you have a full-size camera
Then that is probably all you need to do, but if you have
some of the mini and
Most if not all of the micro cameras you'll also need to add a capacitor
The larger cameras have enough capacitance already on the signal pin to make this work
the other ones don't and the capacitor needs to be at least 0 point 1
Micro farad and you're going to need to install that and this is critical
You're going to need to install that on the camera side of the adaptor
So here's where the camera is going to plug in and you would solder that
on the resistor like so
I'm just bending these legs to make it clear between signal and ground
Like so and it needs to go on the camera side of the resistor so
that wouldn't work because you can see the camera is going to be here and
This on the it's on the flight controller side of the resistor. That is not where you need it. You need it here
And of course I'm bending the legs just to make it obvious where it goes, but you could make it all neat of course
I'm gonna do I have to install this and solder it up, and I'll just make sure
that I've got enough length to be able to remove this without tugging on it I
Might even want to run it under the flight controller, so it's not rattling on day. This is that two gyro chip right here
I don't like the idea that it would be like rattling on the top of it. It's a little bit
There's a little bit of weight here to the resistor
you could of course have soldered the resistor directed a LED pin if he's so desire but
That's not how I decided to do it
Now we've got the camera OSD connector wired to LED strip here and a ground connection and
The next thing to do is to go over to the computer and set it up in beta flight
I'm gonna connect to the board in beta flight and
I'm gonna go to the command line, and I'm going to type the command
resource and
In the output of that command I'm going to look for the pin
That I soldered the camera control wire to so in my case. It was the LED strip pin
But if you used a motor like motor 5 or motor 6 or gosh some other pin
Then you were going to look for that one
And I'm gonna look for the pin number so the output of this command is that?
These are resource names LED strip is a resource that the board knows about the motor outputs are
Resources that the board knows about that it can use and then these are actual pin
Designations the syntax is a little weird like what is a bo6?
But it's it suffice it to say that bo6 is the way that beta Flight knows what?
Physical pin that this resource is mapped to so I'm going to remember this number
Bo6 if I had used motor number six as my camera control pin
then I would remember a oh eight if I had used motor five I would remember a
15 and so on Bo six is gonna be my magic number
by the way
I need to tell you if you're using a board like the CL Racing f4 or as I said earlier there are more boards coming
Out with the camera control pin built-in if you're using one of those boards
Then you do not need to do any of this your board came from the factory ready to go all you have to do is
Solder the camera control wire to the camera control pin and 99% of the time you're gonna be good to go so
you can skip this whole resource reassignment section of the video if
You have one of those boards you lucky bastard so the next thing I'm going to do is
I'm going to assign the resource to that pin by typing resource
camera underscore control, and then the pin number which in my case is Bo six
And I want you to pay close attention to the output of this command
Goddammit. I really think that's correct
What did I type wrong Oh?
Idiot that's what
Yeah, did I mention that you need to be on beta Flight 3.2? Yeah, okay? You got to be on beta Flight?
3.2. Or this won't work
Let's try that again
Resource oh there we go, I knew I knew that didn't look right?
Bo six is my pin now then
resource
Camera control vo six pay very close attention to the output of the command
notice that the command is telling me that Bo six is already assigned to resource LED strip and
I2c SCL and this is where I remind you of a little bit of background about the resource command the resource command shows
The pin assignments that you would like the board to have
But in this case there's multiple things that have been assigned to this pin
Well only one of them can really have the pin at a time
That's not always true, but it's often true, and we need camera control to be the only thing on this pin
So how do you know what is actually using the pin you know it's like it's like um
You go to a restaurant you place an order right?
That's what you'd like to get
attending the food comes back from the kitchen and that's what you really got well the
Resource command is like we've put our order in that's what we're asking for the way to find what you the board is actually
doing is the command resource list so this is like what you actually got and
Sometimes that will match what you asked for but if what you asked for is
Contradictory you're only going to get one of those things so take a look here if we look at pin Bo six we notice that
Bo six is currently assigned to the resource I to
Cscl even though if we type resource we can see that we would like to put on pin Bo six well
We like it to be LED strip. Yeah. We'd like it to be I to see SCO. Whatever that is and
Sure, we'd like it to be camera control. It's gonna be one of those three things whichever
I don't know how it decides so what we need to do is we need to clear up these resources by typing resource
LED strip one none and
Resource I to see
SCL one none
basically taking everything that is asking to be on pin bo6 and saying no don't ask for that and now when I type save and
reboot the board and
Reconnect and I type resource list
Notice that on pin Bo six
I've got camera control if you do not see this when you type resource list
Camera control will not work for you and again as a reminder if you are a lucky
bugger who has a board with camera control already
Just built-in you don't have to do any of this going back to the wiki
We can see the other thing that we need to do is we need to set camera control key. Delay equals 125
I'll just copy and paste that in and
Save and what that does is it controls?
Basically how long the flight controller is gonna. Hold the button down for and
Sometimes you need that to be a little longer and a little shorter depending on the exact
electrical conditions of the resistor and the capacitor and all that stuff so
basically if you find that when you move your joystick on your transmitter you get a
Double press click click it goes down twice in the menu or sometimes
It'll go over and scroll really fast
Then reduce the camera control key delay if you find that when you tick the joystick nothing happens
So you can try increasing the camera control key delay, maybe if you just hold that button down a little longer
It'll work
But you might need to do things like if you didn't add a capacitor you might need to add a capacitor
And there are various other things in the wiki in the troubleshooting section
For things you can do like measure the reference voltage. I had you do that earlier if your reference voltage was not 3.3
volts you might need to change the reference voltage or you might even need to do this sort of semi
complicated process for checking the internal resistance
But most of us should be able to get this working simply by doing the things I've shown you so far
If the things I've shown you don't work the next thing to do is to add a capacitor
And then if that doesn't work
Then you really you go in and you start screwing with those extra things in the troubleshooting section here. We are in the taranis
I'm gonna Center both of the sticks, and I'm gonna push to the right with a throttle oh
Boom and then I can use this stick to
Go up and down in the menu
Right, and if I want to enter or click the button
It's like that and you can do whatever you need to do and that's so exciting leave any questions
You've got down in the comments. Thanks for watching happy flying