(6/9) Seriously Pro F3 (SP3) Series – Adding GPS

welcome to the sixth in our seriously Pro video series we set up quite a bit of the board now and the next thing we’re going to attempt to do in this video is actually install a GPS receiver so that the board can get GPS coordinates now there’s a couple of things that we need to say right at the very top of the video as I’m recording this in early September there are still problems with the GPS code that’s running in clean flight right now so if you’re looking to install the GPS to get a fantastic GPS hold and a great GPS return to launch you’re not going to get it right now as of the recording the GPS hold feature kind of works the GPS return to launch is still not perfect so I wouldn’t be installing a GPS if you’re looking to actually have those extra two flight modes however if you want to install a GPS to have things like the GPS coordinates and put route to home and all those things appear on your on-screen display and also have those GPS coordinates sent down via the telemetry link onto your trailer’s radio then it’s still a fantastic thing to do for those of you that have seen the nasa 32 videos running clean flight some of the information that we’re going to go through you’ll have seen before we will be manually configuring this GPS unit we’re going to also play with a couple of other GPS units as well here’s one of the Neo zero sixes that we’ve used in the channel on loads of different flight controllers we’re actually going to install this one on here but we’ll play with this one too in the coming video and we’ll show you how to manually configure the controller now in other videos that I’ve used with the NASA 32 I actually shared the configuration file so that if you had one of these older-style u-blox gps units it was a piece of cake to set up i’m actually going to go through and show you step by step how you actually manually configure any GPS unit that is supported by clean flight and that hopefully should mean that nobody gets into trouble so once we’ve done that we’ll also install it onto the board and then I’ll show you it or working in clean flight giving us GPS coordinates to set this up we are going to need a PC we are going to need some other bits and pieces we are also going to need one of these things yes it’s the trusty FTDI adapter if you haven’t seen this on the channel already if you search ref TDI and painless 360 we use it all over the place if you haven’t got an F TDI basic adapter and recommend you get one it’s going to be really handy to help us set up not only this GPS unit but in the next video where we’re actually going to set up the on-screen display as well so now we’ve gone through all that let’s talk about the manual so the documentation as with all the clean flight bits and pieces is changing all the time but you can find it at github comm slash clean flight slash clean flight slash blob slash master bus docks slash blah blah blah so I’m actually going to put the link in the description so that you don’t have to write or copy anything down from the screen but in these pages is everything you need to read about to actually set this up so again at the very top you can see that the very first sentence around the GPS bits and pieces is that the GPS features in clean flight are experimental do not try and rely on these to do the GPS functions that you’d expect to be able to get away with on something like an APM a pixel or even one the old 8-bit multi wheeze it’s not quite there yet as you go down though there are extra pieces here about using something called Jeep GPS auto-configuration that’s where you can actually get the seriously pro three and clean flight to configure the GPS automatically for you you can follow that and that’s that’s one way to try it but we’ll also going to go through the u-blox gps manual of configuration using a bit of software on a pc so we’re going to have to download that software and do it as well the reason I’m going to show you the u-blox manual configuration is because some people are beginning a bit stuck trying to use configuration files because the configuration files tend to be u-blox generation specific and is you block six seven eight nine receivers around there and sometimes you could try and upload the configuration file for the wrong version of the GPS it won’t work so once we have gone through all of that we’ll short talk about how we connect it up so if we go back to the bench here’s the actual wiring so here’s the top of this seriously pro three here’s our USB connector and the connector that’s actually right by the side of the USB is where we’re going to plug our GPS in but we’ll cover that in a lot more detail and I’ll go through a wiring diagram once we’ve done that then we’ll actually go in to clean flight itself will actually configure clean flight so that it knows the GPS is here we’ll conflic figure it with the board rate and also the protocol that the GPS is

actually using once we’ve done all that then the GPS will be running so the first thing we need to talk about then is the hardware and the options for the GPS unit itself there are a couple of things that we need to think about before we get into the rest of the video the first is to make a note of where the GPS is going to connect to on this seriously Pro flight controller and that’s going to be you are – now you aren’t – as we’ve already seen is the little 4 pin connector I think they’re GST – SH connectors you get the cables with the actual board itself that will plug into there and that’s what you’re going to plug the GPS into it’s a 5 volt out connection so it’ll work perfectly with the GPS it’s also one of the you arts that doesn’t share anything else so it can dedicate it to the GPS again be careful double-check where the code is up to with clean flight the GPS flight modes I’m not there yet but we’re going to install this right now so that we can have things on our on-screen display when we get to that in the next video and also when we set up the telemetry so that the GPS coordinates can be seen on our radio – in time I’m sure the GPS code will get more mature and we’ll get the kind of security that we had with the 8-bit multi we implementation of some of the stuff that’s in clean flight that we had two or three years ago but until we get that we’re installing the GPS just for those two purposes not for flight modes there are three ways that we can add a GPS to the actual board itself if you read the GPS MD documentation it will tell you which GPS is have been did and they boiled down to a couple of different options the first is using au blocks style GPS which is all I use here I’ve never used anything else and the other one is a NMEA version as well so there are three ways that you can add the GPS to the seriously pro three the first is to buy a pre-configured unit for clean flight so that all of the settings are already done for you and all you have to do is set up the configuration for the board rate and the protocol which is going to be you blocks in clean flight and you’re good to go they’re starting to appear now but they are tricky to get hold of because once you’ve actually configured it for the nose 832 or clean flight then it you have to unfit for everything else you can use the GNSS you Center configuration software to configure the GPS manually and that’s what we’re going to do in this video and then finally you can use clean flight to auto configure the GPS if it’s a u-blox gps now there’s some really small ones available now that are about centimeter and a half across that are really small that are designed for this and with those ones a lot of the very small ones don’t have any battery backup so you have to use the auto configuration in things like clean flight because the GPS doesn’t remember its configuration settings so it needs resetting every single time you power it on but here we’re using GPS is that have persistent memory that have non-volatile memory so we’re actually going to configure the GPS so it’s sending the right stuff the clean flights likes so now we know what we’re going to do we’re going to use GNSS you Center to configure the GPS itself we just need to have a quick look at the manual so here is a screenshot of part of the seriously pro manual as it stands today and the bit that we’re going to be interested in is this bit here which is you can clearly show it’s pointing to the ur2 connector identified by the blue number two that’s pointing to that little connector by the side of the USB app what’s called the top of the board which actually is confusingly the back of the board but don’t worry about that for now hopefully if you’re watching this you’ve already stalled your clean flight and sp3 into your craft in its way and the other bit down the bottom is it says the UART to connector used for five volt serial i/o GPS etc that’s important most of the GPS units that you’ll be picking up will be five volts and need five volts for them to work to connect the GPS to the PC we’re going to need the FTDI adapter because the FTDI adapter is going to convert the USB connection to a serial connection so we can talk directly to the GPS itself and this is how we’re going to wire it up so we’re gonna get our GPS module and we are going to connect the ground pins together we’re going to connect the plus 5 volt pins together and we’re going to connect the receive on the FTDI adapter to the transmit and the transmitted on the FTDI adapter to the receive on the gps module so that that is going to work so once we’ve done that we can plug it into the PC and we can download the software so let me just jump back to the desk let’s have a look at what that

looks like physically and then once we’ve seen that we’ll jump onto the netbook download the GNSS configuration software and then we’ll plug everything in and then we’ll start manually configuring the GPS in preparation for it to be installed onto the flight controller so this is what it physically looks like when it’s all put together here’s our GPS unit and on the front normally they have it all marked up which is really helpful it’s plus 5 volts at the top then it goes transmit receive and ground on here and then on the actual FTDI unit itself when the camera catches up hopefully you can see now that we actually have +5 volts we have a ground we have a TXO and an Rx eye so what I’ve done is connected the +5 volts to the +5 volts the ground to ground T X I to receive an R X 0 to transmit so those two lines are crossed over now what that means then the other half of the FTD FTDI adapter is actually a USB connector so we can plug the USB cable it’s one end and then the other end we can plug into the PC so now we’ve got it like this we’re ready to jump onto the netbook and plug this cable into a spare USB slot so netbook time so before we can plug the FTDI adapter and the GPS actually into the computer itself we need to download some software so the couple of places we need to visit on the web the first place is actually need to have the instructions handy so that we can go through the configuration so we need to make sure that we’re on github comm slash clean flight slash clean flight / blobs flash master / Docs / GPS – MD and I put that link in the description and we want to make sure that we’ve scrolled down to GPS manual configuration which is in here because this is what we’re going to flick between this and the actual settings themselves to actually configure the GPS ready for installation to the seriously pro m3 other thing we’re going to need is the actual software itself to do this with so to do this we need to download it so if you go to you – blocks comm / en / product – resources / – 779 again I’ll put that link in the description if you just Google GNSS software download or you – Center windows download you’ll usually find this it moves around occasionally if you zoom down on this page you actually eventually get to the software and there is ratchet on version 8.1 7 you can download it install it onto your computer and you’re good to go once you’ve installed it you’ll get the little icon that you can run and now what we need to do is we actually need to plug in the GPS and the FTDI unit into the side of the computer before we start the software that way the comport is ready to rock and roll there it is and we’re not connected to anything at the moment before we go any further we have to tell it which port to the receivers on ours is going to be on comm 7 and immediately it connects now we were lucky there’s all these different board rates that you can choose from typically the board rates with a new uncommitted GPS will either be ninety six hundred or one one five two hundred I’ve occasionally got ones that are 57600 so what we need to do is now we’re connected and if it doesn’t connect automatically you just click on this little button here the top left hand corner and I would always recommend that you just select Auto boarding that way it’ll automatically try and find the best baud rate and I can see here that we’re connected on comm seven at 9600 I’m going to close these windows up because we don’t need these we can see it has a 3d fix we can see the GPS is working properly we need to now configure it so there are two things we need to have a look at now the first is we need our packet console and we also are going to need the configuration view there we go okay so this configuration view is where we’re going to do most of the work and we’re going to go through these settings here at the left-hand side and actually set them up one by one now what we can do is actually default the configuration here so that it’s completely defaults and what the way we do that is we navigate to CFG which is configuration there it is and then we can say revert to default configuration and then we can click send and that if you’re having weird problems happen with

your GPS or sort that out now I’m actually going to do it and then we’re just sure that we are completely happy and there’s nothing set on this GPS that we don’t want so I’ll click send now it looks like we’re still connected which is good sometimes when you do that it’ll change the board rate and other things so you have to go through and again just go through the connect routine make sure that the receiver port is set correctly and then just make sure the auto boarding is set and click on the green connect icon and it should find it and we can see it’s working because we’re getting new information through here all the time so now I have our connection back and I can see we’re now talking on comm seven one one five two hundred worth while jumping back into PRT ports and just making sure that they’re still set how we’ve just set them up so one UART one have the protocol into 0 1 & 2 protocol answer 0 1 and board rate of whatever it is you’re going to set I’ve set this 1 1 5 200 now we know that’s working great and we can see we’re still getting information from the GPS we can see it appearing in the packet console what we need to do now is actually then tell the GPS what information we actually want to hear so we’re going to go back into MSG and MSG is where all these are all the different messages that the GPS can actually send out we only want a handful of them on UART one that we’ve just set up in the previous step so we’re going to go through again this is all the stuff that’s listed in the actual read meas here on the GPS to MD so we’re going to set these up now so we’re going to go back into you Center first one it’s asking us to set up is now plus llh on UART one with an update interval of 1 send that next one we’re going to send is nav DOP again on UART one with an interval of 1 send that next then is nav Sol on UART 1 with an interval of 1 press end next one is nav well Ned UART one with an interval of 1 click send and then nav time UTC which is the actual GPS time on UART 1 click send now the last thing we need to do then is go and select nav sis info – SV info on UART 1 with a frequency of 5 click send excellent there we go so now we should see that those are the only ones that we’re actually getting and you can go back and you can just check that they’re still reading fantastic they’re all there okay so now what we’ve done is we’ve just done all of those and analysis info as well and then what you do is just configure the rest of this just go through each of these step by step like we’ve been doing it until you eventually get to the bottom where you’re going to save current configuration and send once you’ve done that the GPS is configured optimally for the seriously pro flight controller and we’re ready to plug it into the actual board itself what I’ll do is I’ll just finish the setup on here what I’ll do is I’ll actually save the configuration that I created here into a file and I’ll pop that file onto a link in the description so if anyone wants to have a look at it for their own use then that’s there for them so the next thing we need to do then is to connect it up to the seriously pro fright controller now it’s configured so here we actually have a little diagram of how we’re going to connect it up so we have our seriously Pro f3 on the left hand side and we have our GPS module on the right hand side and again the setup is almost identical to how we wire up to our little FTDI adapter first way to do it is to connect the ground on the output on the seriously Pro to the ground on the GPS module similarly connect the +5 volts to the +5 volts and then connect the transmitted on the GPS module to receive on the flight controller and vice versa so it’s pretty straightforward just make a note of which is the UART – because that’s the one we’re going to plug it in so if we jump to the bench so I can show you physically what that looks like so here is my GPS that we’ve configured going through a little cable here and plugged in – you are – there’s the USB connector here’s the front of the craft here’s the back and there is the connections so it’s pretty straightforward to do now I know I had a couple of comments from a couple of subscribers about challenges getting hold of decent GPS units this is actually a u-blox 872 channel GPS it’s nice and small but it’s a full-size cover this will actually came from a

place called hobby our seed at UK I use them a couple of times to get things from and they’re pretty good so I’ll I’m not going to put a link in the description to it but say thank you for those guys for stocking this stuff it’s nice to be able to get hold of pieces like this within a couple of days rather than waiting two or three weeks if you search for you blocks eight small 72 channel GPS on hobby RC car you okay you’ll find this identical unit that I’m actually using here they do also stock the smaller unit that’s probably about a third of this size which doesn’t have an onboard memory but it talks about how you can set it up did come quite nicely with some nice little instructions on it as well which was useful so now we have it all set up configured and wired up the next thing we need to do is plug the seriously Pro 3 back into the computer fire up clean flight and let clean flight now it’s now got a GPS to talk to so let’s do that next so just before we plug it back into the computer we’re about to try everything here so here’s the GPS by the side of the unit we’re going to have to apply main power here via the battery to power everything up because the USB when we plug it in will not provide the 5 volts to run the GPS unit so we’re going to have to do actually power it first let it boot and then we’ll plug it in now I haven’t taken my props off here I would always recommend if you’re doing it absolutely take your pops off you don’t want to risk an uncommanded start I do have my taranis radio all set here so that’s when we power up I’m also getting a nice radio signal – so which hopefully should be safe so first thing we can do is power it up and you’ll hear the buzzer and everything go off and then it will show its happy once it’s happy we’ll plug it into the computer and we’ll start clean flight so plug it in here we go which is ready and we can see on the back of the USB we have a red power light but we don’t have a lock light yet we don’t need to worry about that that’s happy so we have a USB cable in the back of the board so if we go on to the computer let me plug this in so once we’ve connected back up to the board you can see the GPS is all working two things you have to do here to get it all ok first thing you do is go into ports we need to click the box by GPS remember you are – we’ve installed everything on so we click GPS and also set the baud rate that we configured so we set it as 1 1 5 200 so that’s the first thing we do then click Save and reboot next thing to do then go into configuration down towards the very bottom and here you need to click and enable GPS select u-blox as the protocol select Auto detect as the ground assistance type and then you need to look up the magnetometer declination in degrees now the magnetometer declination is pretty easy to find so if you just Google a magnetic – declination you can either move around the map and actually click on where you are and it will give you the declaration for that actual position or you can actually enter your city that declination there is the one you actually want to put in to clean flight so that it knows the magnetic declination at your position that might sound like a lot but where I am at the moment is about one and a half to two degrees off so I have to put that in here so put that in click Save and reboot and the next time it reboots your little GPS indicator here in the top right hand corner should go green if it does everything’s working and the board can see the GPS if it doesn’t go green then you probably have the receive and transmit why is the wrong way around if you swap those receive and transmit wires between the seriously pro3 and the GPS and the GPS light still doesn’t come on here in clean flight then I would unplug it go back to the you box configuration software step and redo all of that to make sure it’s complete happy you can just confirm that we’re all working if you click on GPS then we can see here we have a true 3d fix and we can see all of the activity here now finally if we go into mode we have two new modes that we can see that we didn’t have before we have GPS home and GPS hold GPS hold is the ability to retain its position in kind of 3d space using the barometer and other things as well and that is one of the modes that kind of works ok right now GPS home is one of those where at the moment it doesn’t work very well and as I said at the beginning just be careful of that caveat caveat caveat look it up before you go any further last tip before we finish the video be very

careful about where you actually site the GPS on the frame the GPS needs to be away from all the magnetic interference that you’ve got on the craft and with some of the large currents that flow around for the motors and the high frequency changes of signal you can sometimes get that so make sure when you’re mounting your GPS mount it as far away as you possibly can from everything else particularly the buzzer because when that making sound is also making an awful lot of radio frequency and electronic interference as well so hopefully that will help those of you that are looking to do this this should be the foolproof way of configuring your GPS and adding it to your craft in the next video we’ll have a look at how to set up minim OSD to create an on screen display for fpv flying and to have things like those GPS coordinates appear in the display as well thank you for taking the time to watch that video there are lots of other videos on the channel and they’re carefully ordered into playlists so you may find that there are other videos on this same subject that you can go and watch so I would recommend going into the playlist area of painless 360 youtube channel and looking around and seeing what there is you never know what you might find thanks for watching please like subscribe and happy flying