To all the followers: here is a Facebook community where you can post projects, ideas, and questions. Open to everyone who wants to learn robotics... having fun Like the page and start posting facebook.com/tizianotutorials/
@RajPatel-vc6mg2 жыл бұрын
Is it possible to connect to the onboard Rasberry pi with rfd 900 telemetry or herelink telemetry? If so, can you make a video on how to set it up ? The short WiFi range for Rasberry pi communication is a big limitation and 4g is unreliable where I live. Thanks
@satyamraj68814 жыл бұрын
Hi, Tiziano. Thank you for making these tutorials. I learnt how to program drones using your video and made an agricultural drone prototype for which I won a contest in college. Please upload more drone videos in the future:)
@prandtlmayer4 жыл бұрын
Great to hear! Never stop learning and be passionate, post your experiments tests and fails
@prandtlmayer7 жыл бұрын
In the video I forgot to DISABLE THE BLUETOOTH. Open the file /boot/config.txt and add the following line: dtoverlay=pi3-disable-bt
@Jonasmelonas5 жыл бұрын
Based on the audio, I believe this is Darth Vader's younger geeky italian brother
@yusufduran24224 жыл бұрын
Thanks from turkey. Grazie mille Tiziano, da un turco-italiano. Sei il migliore.
@prandtlmayer6 жыл бұрын
I didn't add any system like that, but you can use a maverick image for that purpose. In my case I just set the host name up with a unique name (i.e. raspi-uav) so then I can refer to the host name as name.local (i.e. raspi-uav.local) rather than warring about fundung the ip address
@noahorosw7 жыл бұрын
Just a tip for all of you doing this project ! The pixhawk telemetry port 2 will not power the raspberrypi . You will have to solder power outlet wires from the main board , and connect a ubec to power the pi . Then you can ssh wireless to windows pc . Otherwise no connection .
@noahorosw7 жыл бұрын
At least for me the pi was just constantly rebooting , never actually starting . I hdmi a monitor to pi to find this .
@noahorosw7 жыл бұрын
Definitely install the ubec ! After finally loading Ubuntu Mate , the power cord that was supplied with the pi wasn't enough to power it ...
@maroquio5 жыл бұрын
Hello! Did you get it working using RPi GPIO UART connected to UART telemetry port of the flight controller?
@PankajMali4 жыл бұрын
Hello I powered my rpi3b via the telemetry 2 port and it runs perfectly, the thing you said got me in a glitch as the setup is perfect running.
@alparslangazimemis3 жыл бұрын
@@PankajMali Hi bro, did you use the UBEC?
@jasonlobo93795 жыл бұрын
Sir you are truly a great teacher. Hats off. I haven't seen any teacher be such great at teaching complex mechanisms like you have. Thanks a ton
@prandtlmayer5 жыл бұрын
Thanks, your feedback is what makes me doing that
@noahorosw7 жыл бұрын
Perfect timing ! I have 10 days to make this happen .
@prandtlmayer7 жыл бұрын
Glad it was helpful
@noahorosw7 жыл бұрын
It's actually the project I'm working on ! Raspberrypi to Pixhawk on a HMF U580 quadcopter perfect for my project .
@atw986 жыл бұрын
How did you go? did you get it going? and are you using 3/4g or just as an inboard companion?
@angelleal30054 жыл бұрын
@@noahorosw How did it go ? Same for me but with a Jetson nano instead of the pi.
@Lunasa0x013 ай бұрын
Thank you. I’ve been trying to do this for a long time!
@umutcanargun51082 жыл бұрын
Hi, Tiziano. Thanks for the tutorial, it's an excellent work. I have a question also: I have a raspberry pi which is to run a Dronekit-based object detection program; How can i access to my raspberry pi over the Mission Planner to get the object detection program started before the drone takes off?
@prandtlmayer2 жыл бұрын
Connect through wifi and build a simple user interface in python for example. Send UDP messages to command your raspberry pi
@sundaresann47497 жыл бұрын
For next video, object tracking using opencv as you said (or) tracking mobile GPS as my suggestion. Great Video! Thanks
@prandtlmayer7 жыл бұрын
Sundaresan .N it probably won't be the next, but definitely a must do. Thanks
@delugemetric69343 ай бұрын
Hi, i see this project is several years old. I am considering attempting this with the PixHawk6x and RPI cm4 Could you offer any imput on this?
@ais_robotic9 ай бұрын
brother your teaching style is very good --Thank u . brother i have a problem that Mode change not work in dronekit ! no response in pychon3 but python 2.7 work properly . how i fix it??
@MrSiciro5 жыл бұрын
Thank you very much but please slow down a little :-)
@TheMagogi6 жыл бұрын
how the (public?) IP address is managed? Is there an AWS-like service to connect and reach the drone "node" when we go connected?
@angelleal30054 жыл бұрын
Hey Great Work. Can you make a video with a Jetson nano connected to the Pixhawk ?
@ahmetakifsaglam56753 жыл бұрын
Do you find anything?
@valentinibars80414 жыл бұрын
I am using pixhawk 4 and a Raspberry pi 4 and connected them in serial through telem2 port on pixhawk 4. So I am using /dev/ttyAMA0 with baud rate fixed at 921600 (following ardupilot.org/dev/docs/raspberry-pi-via-mavlink.html) but I have no heartbeat. Can you help me when I run test_connect.py
@yusufduran24224 жыл бұрын
if you used pixhawk before, you should delete all files into pixhawk sd card.
@anghao70504 жыл бұрын
Please Help me. at 6:07 I have a problem like this Package python-wxgtk2.8 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'python-wxgtk2.8' has no installation candidate E: Unable to locate package pyhton-matplotlib E: Unable to locate package pyhton-numpy E: Unable to locate package libxm12-dev thanks!
@prandtlmayer4 жыл бұрын
Are you on python 2.7?
@anghao70504 жыл бұрын
@@prandtlmayer Oh! thank you so much. I fixed it
@vishalbharati93844 жыл бұрын
thank you sir, will this work for fixed wings too?
@prandtlmayer4 жыл бұрын
Yes, I have a video and a library that I developed just for fixed wing
@vishalbharati93844 жыл бұрын
@@prandtlmayerthank you for replying 😊.. yes sir i have watched it . its only about simulation will it work real models?
@raafsports17283 жыл бұрын
can you show us how to run any Python script on RPi and see the simulation on mission planner ? A small video this would be very helpful, thank you in advance
@ashokkummar76613 жыл бұрын
hi Tiziano, Thanks for this awesome tutorial video, I have one question, is the procedure explained in the video same for CC3D flight controller also ?
@prandtlmayer3 жыл бұрын
As long as is Mavlink and runs Ardupilot it should be ok
@JARC99_4 жыл бұрын
Hello, excellent video really helpful. I have a question, I'm looking into adding a linux computer to my projects but I am still not sure wether is better to add a Raspberry pi to a pixhawk controller or if I should go with a controller that alredy has the computer inside of it like the Beagle Bone Blue, what would you recommend?
@prandtlmayer4 жыл бұрын
If this is your first built I'd say keep things separated, a microcontroller based flight computer and a Linux companion PC.
@JARC99_4 жыл бұрын
Tiziano Fiorenzani thank you. Do you have a recommendation on which pixhawk to buy?
@BrianLMurphy6 жыл бұрын
I noticed that at the start of this video you you listed the Intel Edison as an option. That seems, to me a better option, so can you do a video on that setup? Or tell us how to use this instead?
@_tyrannus6 жыл бұрын
Intel recently dropped the whole Edison project, in case you haven't heard already.
@reecejackson72103 жыл бұрын
Would it be possible to connect a raspberry Pi to other flight controllers like the Mamba F405 directly with a raspberry pi? I am trying to do so using serial or PPM or SBUS but cannot find out how. It seems like the raspberry pi must act like a radio-controller. Would I need to use Betaflight or something else?
@prandtlmayer3 жыл бұрын
As long as you know the protocol, you can connect with whatever you want. The very least interface level is using Servoblaster for controlling Gpios as servo and interface to the board as a radio receiver
@luisfcoleon31534 жыл бұрын
Hi. I am very interested in this tutorial, but I don't know if you already updated the repositories of how_do_drones_work. Could you do a new tutorial? Good evening Bye
@alexkim15324 жыл бұрын
Hello, Hope all is well. Just a quick question on your companion computer (RPi) interface. How's the reliability with connection between micro USB port on Pixhawk to USB A port on RPi? Will it be reliable enough for running control loops on RPi while flying? Thank you in advance, AK
@prandtlmayer4 жыл бұрын
Reliability is good, but I would not go that way. Use the serial port instead. You can go as fast as 1Mbps and does not have all of the hurdle and fragility of USB
@alexkim15324 жыл бұрын
@@prandtlmayer Thank you for your input! Will set up to use serial port instead of USB.
@luishernandez49646 жыл бұрын
Great, thanks. i am anxious to learn more about the capabilities of a companion pc. Are you going to be making more videos about writing your own scripts. can you point me to some good resourcers on this topic.
@karatugba3 жыл бұрын
I am always confusing about onboard and offboard topic... Could you answer it ? For instance, If I connect my any NVIDIA Jetson to my pixhawk though the UART, what will we say about it? Onboard or opposite?
@prandtlmayer3 жыл бұрын
For offboard you mean the state in which PX4 accepts external commands?
@marcoHammond7 жыл бұрын
Very interesting ! it's just what i'm trying to make! If I would like to buy a new drone (or make myself...) with pixhawk connectable to Rpi3 the way you show, where can I try ?
@prandtlmayer7 жыл бұрын
marcoHammond check out the Ardupilot.org or px4.io website, in their companion pc page. You can find even other all in one solutions
@xiaoxiao28386 жыл бұрын
Thanks for the great tutorial Tiziano, something I was looking for. I have a little and strange problem though. I am not able to connect over USB (ttyACM0), connection times out. I do see ttyACM0 appear and disappear (ls /dev/tty*) as I plug and unplug USB cable but the following python script keeps on failing >> vehicle = connect ("/dev/ttyACM0", baud="115200", wait_ready=True)
@nebil.b5 жыл бұрын
Hi Tiziano, great video, how can I chose my flight controller? I'm seeking a more cheaper FC instead of Pixhawk that can run with raspberry pi + px4/ardupilot.. Because I'm in a project that will involve multiple autopiloting drones with flightpaths. Thank you.
@prandtlmayer5 жыл бұрын
There are many flavors and I do have my favorites. As for you, it depends on your budget. If you are setting up a cheap system, go with any 32 bit "pixhawk" clone (hobbyking, holybro, rctimer...) They will work fine, run Ardupilot or PX4 and they connect to any companion. If you need smaller boards, there is the pixfalcon and similar you can check out. The difference is that the smaller boards usually have only one IMU. Otherwise you can lean towards a RaspberyyPi hat type, like the Navio
@nebil.b5 жыл бұрын
@@prandtlmayer Thank you very much.
@nebil.b5 жыл бұрын
Sorry to bother you again Tiziano. Ciao, I will go for pixhawk or navio2 like you suggest, my project involves gps missions with the support of ardupilot or maybe px4. I've seek info about the pros and cons of both flight controllers but it seems that there isn't a reliable reviews about witch one chose. Seems like Navio2 has a better gps tracker (?). Any suggestions? And thank you again. Regards from Verona, Italy.
@rohaya-_-4 жыл бұрын
Is dronkit supported raspberry pi 4 + rasbian buster sir ?
@maroquio5 жыл бұрын
First of all, thank you for your time on providing usefull tips for us. I'm really trying to do this connection using the FC telemetry port and RPi3 UART, but without success. My python code using dronekit works well using NanoPi NEO Air companion computer, but not using RPi3B+. I tried with RPi4B too, nut without success. I followed a lot of tutorials to config the UART ports in Raspberry Pi, but none of them made the thing works. Some data is arriving at /dev/ttyAMA0 according to minicom, but dronekit cannot stablish connection. Could you please give me any help with this? Thanks in advance!
@prandtlmayer5 жыл бұрын
Probably you have still AMA0 assigned to Bluetooth. Check ttyS0
@maroquio5 жыл бұрын
Tiziano Fiorenzani, it was the ground cable. I forgot it was mandatory to close the circuit with the UARTs. Thanks a lot for your time.
@최정훈-x9n6 жыл бұрын
Great video. One question. I want to run dronekit python code from Raspberry Pi while connected to Pixhawk. And I want to see the process from mission planner which is connected with Piaxhawk with telemetry radios. When I tried it, it says mode 0 not available on mavlink definition. Don't know how to solve. Thank you
@prandtlmayer6 жыл бұрын
최정훈 stick with the tutorial. Have you followed step by step?
@anshularora6 жыл бұрын
I am a little new at this and I am trying to build a Drone capable of autonomous flight. what can we do with connecting a raspberry pie? could send and receive data wirelessly (using Bluetooth or something else) ? and also could you connect a raspberry pie in a similar fashion to a audupilot? Thanks a lot :)
@prandtlmayer6 жыл бұрын
Anshul Arora but this series is about that. I think you need first to step back and study deeper Ardupilot on Ardupilot.org, go through the wiki and then you can think of doing more advanced things
@The_Unobtainium4 жыл бұрын
4:49 - shouldn't it be "browsable' instead of 'browesable'?
@prandtlmayer4 жыл бұрын
Actually is "browseable" : www.samba.org/samba/docs/current/man-html/smb.conf.5.html
@luishernandez49646 жыл бұрын
do this steps apply to the raspberry pi zero? I want to set it up as a companion pc and write python scipts and maybe opencv.
@prandtlmayer6 жыл бұрын
luis hernandez i setup the pi zero in the same way. Works nice, but not as powerful as the 3
@WimVandenBergh-t4c Жыл бұрын
Can you connect the telem2 of the pix hawk to giout tx and rx pin of the raspi if you have a 4ghat on the raspi already?
@prandtlmayer Жыл бұрын
As long as those pins are unused, yes. You can also use a USB connection
@WimVandenBergh-t4c Жыл бұрын
@@prandtlmayer how can you check they are not used ? I could not find any video explaining the commands to change to have it connected to usb of raspi.
@angusfraser55626 жыл бұрын
Tiziano, firstly thank you so much producing all of the onderful videos. I have a question though I got copter working just great I cant get plane to work as when it tries to download the plave zip file it says the file is not available. is there a super secret location where all the planes are kept:) thanks in advance#
@prandtlmayer6 жыл бұрын
I don't understand what file is trying to download. Anyway, my next video is about plane. Hold on
@angusfraser55626 жыл бұрын
Sorry I was talking about using dronekit-sitl. It turns out the AWS instance that holds the plane image was down. I followed these instructions and in addition I configured USB as eth so that I can sh direct over USB by using this guide www.thepolyglotdeveloper.com/2016/06/connect-raspberry-pi-zero-usb-cable-ssh/
@prandtlmayer6 жыл бұрын
I personally don't use dronekit-sitl anymore, only if you want to test basic control, but the version of the firmware is outdated. If you run on Linux machine (not raspbian), you can run the ardupilot sitl with sim_vehicle.py. In windows you can do the same (even though it's a little bit more involved) or you can use Mission Planner and let it download the latest master rerlease and simulate it. I have a video about this
@atw986 жыл бұрын
very greatful Thankyou for the push, got everything to get going just 1 question. Do you need both drone kit and Mavlink on the RPi. In the documentation it says you can load dronekit if you want to do tracking and add other features but is not clear if it is required to run just mavlink over 3/4g? If all you want is to control the drone not have video tracking and such, also it states that most of dronekit is in the mavlink API. After your little push I have done a lottttttt of reading and taken the huge learning curve as you suggested and followed your advice and I am very grateful that you pushed me to do that. Your right it is much more fun to do it yourself, I just didn't think I had the time so thanks for pushing me off my lazy Butt. Also did you every get around to do a dronekit Fixed wing/Plane setup? You mentioned that you had been working on such a video. I have not been able to find your video if so, so if you have could you please link it. Thank you again really appreciate it Gus
@prandtlmayer6 жыл бұрын
I am just collaborating with the local College for a paper about Fixed Wing and Obstacle Avoidance. I am developing the libraries and the SITL. So I will probably come out with a video about it soon. As for your question, Mavlink is just a protocol, dronekit is sort of a wrapper around the library pymavlink. It makes things much easier for you to handle a vehicle through mavlink interface, creating the object vehicle with lots of properties and methods and giving you the chance of creating your own messages and reading other messages using listeners. You can run dronekit on the companion pc as well as on the ground: it does not matter, as long as you specify the connection port. I have been using mavlink-router a lot to share the connection with the system to all the other nodes running on the same network. It's sort of mavproxy but lighter weight
@atw986 жыл бұрын
Tiziano Fiorenzani so on your github repository would the mavlink api's work for a plane? Also just so you know after some reashearch all I want to do is be able to control my plane over3/4g with mavlink. Mavlink would give me the ability to actually do really long controled flights with a joypad or stick over mission planner GCS. I will obviously want to go further as I get into it but as for now its so I can switch to cruise mode then take over with FBWA and simple controls. Not image recognition or avoidance at the moment. Although that would be a fantastic thing for a plane but would need better than hobby grade sensors. If you could let me know if you feel that simple control through a GCS with just mavlink is achievable such as some of the videos on youtube of people just using gamepads to fly 15km it would be great. O and thank you not only have you made me study up on drone stuff I am making a RPi magic mirror for a family member with dementia to help them and integrating it with google home to try and make their life a little easier and it was your comment 'what fun would that be when I ask if I could just buy a RPi setup for flight so you have help in many ways, I am very greatful.
@prandtlmayer6 жыл бұрын
Studying is the key. Never give up on studying, never feel lazy. Nothing is worse than laziness for an engineer. I had done that mistake in the past, never again. Anyway, I just setup a very nice python library for controlling a plane and I will be releasing the first issue with a video. It won't be long. You can arm and takeoff as a copter, control altitude and heading angle... very nice to expand.
@atw986 жыл бұрын
Tiziano Fiorenzani looking forward to it. Am subscribed so look forward to a notice about the video.
@diegocamporeale63227 жыл бұрын
ciao tiziano!video fantastico! tutto questo serve per avere una connessione remota dal drone al pc? ma é una connessione 4g ?spero di essermi fatto capire! grazie in anticipo!
@prandtlmayer7 жыл бұрын
Il tipo di connessione e' indipendente. Puoi connetterti con il companion pc tramite il wifi (che per quanto mi riguarda e' la cosa che faccio solitamente). Puoi certamente connettere un modem 4G all Raspberry e connetterti ad internet. Questo e' ottimo se vuoi gestire il tuo sistema da remoto, molto remoto. La Pi3 ha il wifi built in, e con un access point di buona fattura puoi avere un range di alcune centinaia di metri
@muhammadsaroshali22745 жыл бұрын
I have an APM 2.8, If I connect the RPI on the telem port, then where will I connect the telemetry module used for connecting to the ground station through the Mission planner? There is only one TELEM port. Is there any way I could use both with APM?
@prandtlmayer5 жыл бұрын
Apm is not a good choice. Use any 32 bit board
@vitorhugolalanda19786 жыл бұрын
Dear sir, fantastic vídeo! Can se aplly thís to a homnibus f4 or f3 series flight controles boards?
@prandtlmayer6 жыл бұрын
As long as you flash Arducopter on it
@jimitjaishwal4 жыл бұрын
Sir, can we connect pixhawk 2.4.8 with raspberry Pi and install drone kit?
@noahorosw7 жыл бұрын
I did it ! I got it to connect with test_connect.py at 57600 baudrate on the modified file ... COOL !!!!
@noahorosw7 жыл бұрын
Now that wasn't hard at all ...
@noahorosw7 жыл бұрын
I'm blown away ! Totally amazing .
@noahorosw6 жыл бұрын
I can't get the compasses consistent on the pixhawk with mission planner or mavproxy , I continue to receive bad AHRS , something about pos terrain all kinds of crazy stuff . Do I have to pull the pixhawk from the craft or is there a way around this ? The gyros are spinning out of control as compass - motor calibration .
@prandtlmayer6 жыл бұрын
Noah Wheeler that sounds like a hardware problem. I'd post it on the forum. Mind as well doing a complete recalibration
@noahorosw6 жыл бұрын
I'm ready to do the flight test with the Raspberry pi but the craft just keeps flipping over , and mowing my lawn for me . The internal compass on the pixhawk I suppose is where I'm having the issue ? I don't suppose it would be the gps
@noahorosw6 жыл бұрын
Almost considering swapping out with the APM 2.8 so I can do the test . That will be a bit of work .
@prandtlmayer6 жыл бұрын
I think you got to change the autopilot. Post it on the forum
@noahorosw6 жыл бұрын
I think I fixed it I had to remove it from the quad , and Calibrate it without the gps connected so I knew which one I was calibrating . The GPS is Compass #2 in mission planner will re assemble and check everything , and recal the gps hopefully I will be good to go
@zeynepzelalkeles67464 жыл бұрын
4:59 We can't access to scripts folder before enter our password. Eventhough we write the password correctly we can't open the pidrone and access to scripts. The error is "Access is denied".
@zeynepzelalkeles67464 жыл бұрын
It says we don't have permission to access to the RASPBERRYPI network
@prandtlmayer4 жыл бұрын
Verify you have followed all of the steps for setting up the board. You can also switch to "Mobaxterm" that includes an ftp server with drag and drop, so you can skip samba completely
@zeynepzelalkeles67464 жыл бұрын
@@prandtlmayer Thanks a lot for your answer, we opened file on PuTTy and made changes in it but we ended up with an error: Traceback (most recent call last): File "test_connect.py", line 80, in print("Maximum Throttle: %d"%vehicle.parameters['THR_MIN']) File "build/bdist.linux-armv7l/egg/dronekit/__init__.py", line 2714, in getitem KeyError: 'THR_MIN' We couldn't understand the error and we don't have much time. Can you tell what's wrong?
@zeynepzelalkeles67464 жыл бұрын
@@prandtlmayer We suppose 'THR_MIN' is no longer available as a parameter, what should we use instead of 'THR_MIN' ? Will 'THR_PASS_STAB' work?
@eto94323 жыл бұрын
Hello. the same problem happened with me. how did you solve the problem.
@redbearrc67064 жыл бұрын
Hi. I am new to RP. Does all the programs work with RP 4 version? Thanks.
@prandtlmayer4 жыл бұрын
Every single board computer running a Linux distribution would work. Some are better than others, but the raspberry Pi covers most of your projects and has a good support from the community
@FelipeLopez-ky3jp5 жыл бұрын
Hi, can i use the first generation of raspberry pi?
@prandtlmayer5 жыл бұрын
Yep
@anujregmi45824 жыл бұрын
Hi tiziano can you please provide the details for the file, as i think you have removed or edited the python file dronekit_test_03.py
@joehannes233 жыл бұрын
its renamed but still file 3 so just use that
@tejasu52596 жыл бұрын
Hello again. I'm trying to autonomously fly the quadcopter to a particular altitude using a raspberry PI. But each time I test it, the quadcopter seems to move in a diagonal direction to the desired altitude. It's never straight. Any reason why?
@prandtlmayer6 жыл бұрын
what copter version are you running?
@tejasu52596 жыл бұрын
Hi. I've been trying to connect an APM 2.6 to Raspberry PI. The mavproxy.py executes correctly wherein I can arm the motors. But when I run the dronekit_test program is not able to arm the motors. In both case I'm accessing port /dev/ttyACM0. Can you please help me out? Thank you.
@prandtlmayer6 жыл бұрын
Do not use APM2.6. It's too old. Use any 32 bit platform
@noahorosw7 жыл бұрын
I just want to say one more thing . You're awesome for doing all of this , for all of us . Weather we figure it out or not ? We should have to pay for this type of education you give away for free ... Thank you
@prandtlmayer7 жыл бұрын
Thanks Noah, that means a lot to me
@noahorosw7 жыл бұрын
Tiziano Fiorenzani did you get a chance to look at the connection logs ?
@prandtlmayer7 жыл бұрын
It looks like you are trying to connect with SS0. That is not possible. You need to stick with AMA0, but check the updated description for a missing part of the video
@noahorosw7 жыл бұрын
Tiziano Fiorenzani Okay I will soon as I get home
@noahorosw7 жыл бұрын
Okay I got it ... I can take it from here ... I will always follow your videos , and continue to build awesome QuadCopters .
@arpitsrivastava84316 жыл бұрын
Can i use pixracer along raspberry pi? Is there any difference between pixhawk and pixracer and pixhawk mini?
@prandtlmayer6 жыл бұрын
arpit srivastava course you can. Any autopilot running ardupilot will do
@DavidKaden3697 жыл бұрын
Can you do a video how to setup Ardupilot with a cellular radio control link?
@prandtlmayer7 жыл бұрын
That is something I should learn myself first
@atw986 жыл бұрын
David Kaden have a look at ANDRUAV. There are not many videos which I hope to rectify but it works straight out of the box with a phone one drone conected to pix and phone as GCS. I use it and works really well. I am trying to muddle my way through getting a RPI setup going then will swap over and see if any better than ANDRUAV. Free download only works on android. O and its free.
@MrSiciro5 жыл бұрын
Perhaps we can do a python script to display osd information ?
@prandtlmayer5 жыл бұрын
Yes. Try it out!
@hafizawais47565 жыл бұрын
plz tel me one thing how i can find coordinates while ardu connected with GPS and we take image from picamera ?????
@prandtlmayer5 жыл бұрын
Once connected, use the vehicle.location field
@andrewwilkins42384 жыл бұрын
earlier in the video it shows connection by serial to the raspberry pi. later it shows connection via micro usb. which one should we use?
@prandtlmayer4 жыл бұрын
For a quick debug you can use the USB. I'd recommend the serial port for your application, as sometimes the USB could trigger some debugging mode you don't want during the flight.
@richardoboyd4 жыл бұрын
i am running a sub rov and its set up using Raspi3 with a holybro Pix4. the Pix4 died on me and was given a a radiolink pixhawk4. Looks the same but it would not connect to the RSPi. So i updated the Pix4 with a pix4 firmware and still nothing. I am new to this and so been searching all over the net for 3 days for a solution. any suggestion? Thank you.
@prandtlmayer4 жыл бұрын
What firmware are you running
@richardoboyd4 жыл бұрын
@@prandtlmayer good news i manage to get the sub rov to work. I use the Qground control. Discovered i had lost power to the dc distribution system because of a faulty hobbywing ESC. Got that changed out bit now my sub's thruster will only turn in one direction. I swapped the thruster with a brand new unit but still the same result. Tried to swap channel on the Pixhawk but the results are the same. The ESC is the identical make and model as the faulty unit. Maybe it needs to be setup as its a new esc? Any advise?
@akshaytimmalapur6 жыл бұрын
Hello Tiziano. Its a good video I must say. I am working on similar project. I want to communicate with dropix flight controller using Matlab script via Rpi 3 model B. Can you please suggest me any of your tutorial on this or the steps I need to carry out to successfully do what I want. I am new to using flight controllers, Mission planner (Qgroundcontrol) and Rpi so any help would be appreciated. Thanks
@prandtlmayer6 жыл бұрын
First be sure you can connect with the autopilot as show in the video. After that is just a matter of writing your python script in the Raspi to control your vehicle. You can chose dronekit, mavros (recomended in your case probably) or, if you plan to use a PX4 stack, Dronecore (dronecore.io/). Matlab will run on your PC on the same network and you are to be sending UDP packets to the Raspberry pi, that must interpret the packets and command the vehicle accordingly. You can either write your protocol or use ROS and standard messages
@akshaytimmalapur6 жыл бұрын
I am following the steps of your video. I was able to put OS image on sd card. I do not have a monitor and keyboard and mouse for Rpi, so I am trying to connect Rpi from Laptop running windows, using puTTy. But I am unable to connect to the Rpi and error is "connection timed-out". Any sugguestions whats happening and what should be done? Thanks
@prandtlmayer6 жыл бұрын
Actually there are a few ways of doing that. The first and easiest was to put a /boot/wpa_supplicant.conf file as specified here: raspberrypi.stackexchange.com/questions/10251/prepare-sd-card-for-wifi-on-headless-pi . This will make your pi connect with the wifi, so you can use putty to connect to pi@raspberrypi.local . Or, you can connect an ethernet cable to the pi and connect the same way through putty. Then modify the wpa_cupplicant.conf for setting up your wifi
@TurBull4nc34 жыл бұрын
Hi i did all the steps following the video and even disable rpi 3 bluetooth, however i got an error which state serial.serialutil.SerialException: [Errno 2] could not open port /dev/ttACM0: [Errno 2] No such file or directory: '/dev/ttACM0'
@prandtlmayer4 жыл бұрын
Ok, by default ACM0 is given to the bluetooth. Check again that step. Otherwise you can use the default port, should be ttyS0 (?). You can check with ls /dev/tty*
@AldoMauricioCastroFreire4 жыл бұрын
I am getting this error in the throttle part any reason why ? print("Maximum Throttle: %s" % vehicle.parameters['THR_MIN']) File "build/bdist.linux-armv7l/egg/dronekit/__init__.py", line 2714, in __getitem__ KeyError: 'THR_MIN'
@prandtlmayer4 жыл бұрын
Since the time of the video, they changed the name of the parameter
@AldoMauricioCastroFreire4 жыл бұрын
@@prandtlmayer is there a new name, also I have been researching, does it support pixhawk 4 ?
@mendiguinhomarinheiro5 жыл бұрын
hello! I can use a RBPi zero?
@prandtlmayer5 жыл бұрын
Yes. The pi0 can do everything. Just much more slowly. It depends on the complexity of your application.
@eliasgeiger54454 жыл бұрын
I can confirm that the combination pixhawk (mRo) and raspi zero w works. But make sure to avoid any performance bottlenecks to make the best out of the limited resources. 1. only use raspian lite image without gui and any unnecessary packages 2. Disable BT AND the service hciuart to use the real hardware UART (ttyAMA0) device instead of miniUART (ttyS0) 3. Create/enlarge swapfile to prevent memory shortage problems 4. Disable all services that aren't required for your application 5. power it over a reliant source that can provide enough current at a stable voltage (e.g. BEC) and also check the power consumption of your USB peripherals, the raspi zero USB OTG port can't output much power by default and therefore is often a troublemaker
@RohitPatil-xz9jj6 жыл бұрын
Great video, sir. I am getting an error that /dev/ttyACM0 doesn't exist (can't open the port ttyACM0) Can you help me, please?
@prandtlmayer6 жыл бұрын
type ls /dev/tty* and check what ports you have. If you plug the autopilot with a USB cable (not recommended for real flight, use the UART instead), the port is usually ttyACM0 unless there is something else on that port or the port is still appended to the previous session. It will then assign ttyACM1 or ttyACM2.... If you use the UART, the predefined port on the Pi3 is ttyS0 or ttyAMA0 if you have disabled the bluetooth (as stated in the description)
@circuitbender40137 жыл бұрын
to ssh into raspberry pi 3 just take the ssd card, install ubuntu on it, then go to the roots folder and create a folder called ssh then get your ip scanner of choice, connect the raspberry via LAN and scan for your pi everything else is common, go to terminal, ssh pi@ip and your in like flinn with raspberry as password
@prandtlmayer7 жыл бұрын
Course you can, but when you have multiple boards connected, the easiest way to me is to give each of them a different host name and then connect with name.local, rather that sniffing their ip every time
@AhmetOmerOzgen6 жыл бұрын
Can I install win10iot core for rasp pi 3, (I will plug a small stick 4g modem I hope drivers will work on win10 core). And then install mission planner windows version to rasperry pi 3 and control the pix hawk 4 via bluetooth or wired connection?
@prandtlmayer6 жыл бұрын
I don't know, but it's worth trying
@PAWELEKTRONIK4 жыл бұрын
Witam. poproszę podaj linki do pobieranie, wsady oprogram dla rapberry pi? czekam odpowiedzi, dzięki.
@prandtlmayer3 жыл бұрын
Spróbuj w opisie
@khtan55315 жыл бұрын
Dear sir, I have followed the steps in the tutorial to modify the Samba smb.conf file but I am not able to see the Raspberry device under network in Windows nor any shared folder. The settings I used in the smb.conf file is workgroup=WORKGROUP, wins support= yes, netbios name= raspberry. Did I make any mistakes ? What is the purpose of the shared folder ? is it critical for communications between the Raspberry Pi and Pixhawk controller ?
@prandtlmayer5 жыл бұрын
Did you set the samba password?
@khtan55315 жыл бұрын
@@prandtlmayer, yes I did. Does it have anything to do with windows? I am using win10 on a laptop.
@prandtlmayer5 жыл бұрын
Sometimes it's just windows. Try and force the research of your device, typing the address on the address line on top of your windows. Like //raspberrypi.local
@dheerajchaudhary71326 жыл бұрын
Hi, I want to integrate my own Android app with Tower. My current app connects through raspberry pi hotspot. But tower requires internet access. So how should I integrate my app with tower provided my raspberry pi acting as a hotspot(access point).
@prandtlmayer6 жыл бұрын
Dheeraj Chaudhary tower requires internet only for downloading the map. After that you should be good. I used it in conjunction with mavproxy on the pi multiple time
@dheerajchaudhary71326 жыл бұрын
okay got it, will try again.
@ahmetakifsaglam56753 жыл бұрын
What about connection of Pixhawk and Jetson Nano?
@prandtlmayer3 жыл бұрын
It works the same way
@annoying2282 жыл бұрын
Hello, Can i use the ARDUCOPTER instead of the PIXHAWK?
@prandtlmayer2 жыл бұрын
Arducopter is the name of the firmware running on the Pixhawk, which is the name of the autopilot I have used
@annoying2282 жыл бұрын
@@prandtlmayer My apologies i meant APM 2.8 Flight controller
@prandtlmayer2 жыл бұрын
No problem. No, the APM are not supported anymore
@TurksihBoy3 жыл бұрын
Hi everybody. Does Ardusub support to connect pixhawk 2.4.8 with pi 3 model B ?
@prandtlmayer3 жыл бұрын
Are you using a 32bit board?
@TurksihBoy3 жыл бұрын
@@prandtlmayer yes. Pixhawk is a 32 bit board. ArduSub firmware is provided for many of these platforms, but only the Pixhawk 1 is fully tested and supported. So i just want to know there is someone test pixhawk 2.4.8 with ardusub
@arpitsrivastava84316 жыл бұрын
But i have one question that how to power raspberry pi, extenally using 5V usb or through pixhawk only.
@prandtlmayer6 жыл бұрын
arpit srivastava you power the pi directly from the dc/dc or a separate battery. If you have a good 5v dcdc you can use pin 2 and 4 to power it, otherwise use the micro usb port, that has its protections.
@arpitsrivastava84316 жыл бұрын
Tiziano Fiorenzani Means i have to just connect receive an transmission wire in raspberry pi if i use external power supply of 5V Or power raspberry pi using pixhawk
@arpitsrivastava84316 жыл бұрын
Please give full tutorial along with all wiring connection
@prandtlmayer6 жыл бұрын
Check it out on the official documentation page: it's all there: ardupilot.org/dev/docs/raspberry-pi-via-mavlink.html
@arpitsrivastava84316 жыл бұрын
Tiziano Fiorenzani Thanks ...How can i autotune my drone using dronekit..means automatic pid tuning
@AldoMauricioCastroFreire4 жыл бұрын
is there any reason why we use the lite version of raspbian ?
@prandtlmayer4 жыл бұрын
You don't need a lot of the included software
@arpitsrivastava84316 жыл бұрын
Bro can you tell how to install latest firmware on pixhawk of arducopter 3.4
@prandtlmayer6 жыл бұрын
Well, bro, 3.4 is probably a two year old version. In any case, you can use any Control station software you like, like Mission Planner. Follow the wiki on ardupilot.org
@rayanlobo54556 жыл бұрын
Could you do a video on companion computer systems like APsync: ardupilot.org/dev/docs/apsync-intro.html or maverick: goodrobots.github.io/maverick/current/#/ and connecting them to the mission planner on the groundstation
@prandtlmayer6 жыл бұрын
Yes, those are two serious projects. They are on my list
@selinayyazici84244 жыл бұрын
Hello sir, now i am working on a autonomous UAV fixed-wing project. I was happy and pleasured to see your working. Thank for that. I have an issue that when i tried to install samba i am having problems as temporary faliure resolving 'raspbian.raspberrypi.org'. I searched for solution but couldnt find helpful one. Hopethat you will help me about that. Have a nice day
@prandtlmayer4 жыл бұрын
Samba is just a tool for helping you sharing content. You could also use an ftp server (Like the one already included in MobaxTerm), or git
@ismaellayth3 жыл бұрын
Can I connect Arduino mega to Pixhawk through the USB port?
@prandtlmayer3 жыл бұрын
I would not recommend that, but if you run mavlink on Arduino, then yes
@ismaellayth3 жыл бұрын
@@prandtlmayer Thanks for the answer ❤💐
@matfen79783 жыл бұрын
Simply amazing, grazie!
@siddhivinayaksahoo50483 жыл бұрын
Sir can you please guide me about how do i connect apm 2.8 with raspberry using usb..... I tried connecting it using uart but failed miserably now not even connecting to mission planner..... Please help sir
@prandtlmayer3 жыл бұрын
Do not use 8bit boards
@mrzfpv7871 Жыл бұрын
hello i have been following your tutorial for some time and i was able to this raspberry Pi and Pixhawk connection successfully and now i have to use a different controller the cuav v5++ but i tried the same way as the Pixhawk but it's not able to send data i will be happy if you could assist because it is for my 2nd year project i will be happy to share the progress of the new drone with you if you are interested
@nurashams40936 жыл бұрын
Is there other board can be connected with raspberry pie
@prandtlmayer6 жыл бұрын
Every autopilot compatible with Mavlink in general. For dronekit, better Ardupilot
@arpitsrivastava84317 жыл бұрын
How can we spin drone 360 degree or flip it using pyhton dronekit
@prandtlmayer7 жыл бұрын
arpit srivastava use servo override, if you dare
@arpitsrivastava84317 жыл бұрын
But how can you explain
@prandtlmayer7 жыл бұрын
Put in Acro mode and use the servo override to control the attitude rates. Check the dronekit api page for more details on servo override
@arpitsrivastava84317 жыл бұрын
I am unable to understand can you give me links?
@prandtlmayer7 жыл бұрын
Here you find all the documents you need to start understanding: python.dronekit.io/ I do not recommend you to do it though. The communication is not fast enough to let you program something like that on the companion. Branch out the ardupilot or px4 firmware and go straight into the autopilot
@robobillgr6 жыл бұрын
Hello very good job. I am trying to connect RPI to ardupilot 2.8. Is it possible? If yes i would appreciate some feedback and if no I would also appreciate some feedback. Thanks! :)
@prandtlmayer6 жыл бұрын
I don't recommend going this road. Use a 32 bit instead. Any board
@b5nj1m9n5 жыл бұрын
It would be helpful if you explained what and why you were doing things instead of just telling the steps... I do know how to set it up but I have no clue why you changed the memory to 1024 and what’s X11 tunneling is
@prandtlmayer5 жыл бұрын
If you watch the other videos of the playlist they might answer you why I am setting up a companion PC. In this video I just show how. The swap memory is jist the virtual memory, that is a little small but default.
@b5nj1m9n4 жыл бұрын
@@prandtlmayer Thank you for your answer, indeed it helped.
@edinhthong51396 жыл бұрын
many thanks for a very helpful video
@prandtlmayer6 жыл бұрын
Sure, I am glad it did help you
@erberkuyar59963 жыл бұрын
I can not installing samba to raspberry pi 4 . There is many errors occurs. can u help
@prandtlmayer3 жыл бұрын
I don't understand why. In my case, you can Use MobaxTerm for ssh and SFTP all in one tool
@LNasterio6 жыл бұрын
I'm only here to check how he made his wire, but I don't see him showing it??? Did I miss out anything????
@prandtlmayer6 жыл бұрын
Asterio No, "he" doesn't show the wiring, but refers to a detailed documentation in the description: ardupilot.org/dev/docs/raspberry-pi-via-mavlink.html
@LNasterio6 жыл бұрын
Sorry I just realised what an idiot I was... Thanks so much for the video! it helped a lot.
@ravipashchapur58034 жыл бұрын
Can we use ardupilot instead of pixhawk...
@prandtlmayer4 жыл бұрын
Ardupilot is the op n source firmware running on a pixhawk. Pixhawk identifies the hardware and is a brand.
@dinesh12866 жыл бұрын
Is there a way to connect pixhawk 2.1 to raspberry pi?
@prandtlmayer6 жыл бұрын
Same way. Through the telemetry port
@Capozzi34 жыл бұрын
Any updates?
@MinePossu5 жыл бұрын
It qould be amazing to controll the drone with 3g network. Nice video btw
@prandtlmayer5 жыл бұрын
It actually is. For example check this video: kzbin.info/www/bejne/n4bGpYljqdabla8 or even this example with a Navio2 (basically a Raspberry Pi on steroids) diydrones.com/profiles/blogs/navio-awsome-flight-controller-from-emlid-tested-with-4g-cellular
@eliasgeiger54454 жыл бұрын
Yeah that's exactly what I am currently working on. I use a Huawei 4G LTE USB modem with a Sim inside. I created a crontab entry that automatically connects to an openvpn Network after system boot. This way the drone is reachable over the internet from any GCS that is connected to the same OVPN network. Additionally mavlink-router service must be installed, configured and running in background so that the telemetry traffic is routed from udp socket to the serial port and back. It takes a bit of work but once it runs stable it is indeed very powerful. The remote control range over mavlink of your drone is now unlimited as long as mobile reception is available.
@mandyooi99635 жыл бұрын
Hi! Thank you for this video. May I ask, after connecting rpi and pixhawk, how do I execute an .elf file through pixhawk? Through a flip switch or button? (editted: ps i'm using existing raspbian_jessie because working with MATLAB)
@prandtlmayer5 жыл бұрын
An elf file? Why?
@mandyooi99635 жыл бұрын
@@prandtlmayer Hello! This is because I typed my algorithm in MATLAB, MATLAB converted my .m file into a c code thus, exported an .elf file into rpi
@prandtlmayer5 жыл бұрын
I can't help you on that
@lukeconnolly71853 жыл бұрын
I keep getting "CRITICAL:autopilot:Connection to ground station lost" when I run the test script, does anyone know why this is?
@joehannes233 жыл бұрын
Apparently you need to have the gps module connected. Had the same problem and connecting it worked
@lukeconnolly71853 жыл бұрын
@@joehannes23 from what I've researched since my comment, I believe you're right, its that I need a gps. Do you happen to know if there is a work around for this or will I just have to get a gps module?
@joehannes233 жыл бұрын
@@lukeconnolly7185 hey sorry I just realized I'm a little Dumb lol xD just set the wait_ready parameter to false and it will work without the GPS module
@lukeconnolly71853 жыл бұрын
@@joehannes23 Ha no problem, thank you. Do you happen to know the name of this parameter in QGroundControl using PX4?
@joehannes233 жыл бұрын
@@lukeconnolly7185 no idea. I'm really new to this and never used qgroundcontrol. But I would assume if it's possible you will find something googling for it.
@viviersstrauss35474 жыл бұрын
I am running raspberry pi 3B+ with APM 2.8 When running your python test script my program terminate at "CRITICAL: Initialize APM..." the exact message displayed can be seen bellow. PLEASE HELP >>>> Connecting with the UAV > %Run dronekit_test_03.py
@prandtlmayer4 жыл бұрын
APM 2.8 is not compatible. Move to a 32 bit controller
@dr.kamaljitbasan2454 жыл бұрын
Can I use Raspberry Pi 4 with Pixhawk
@prandtlmayer4 жыл бұрын
Anything will work, any Linux or windows board
@mikaellucas21745 жыл бұрын
I can't connect with the network, how can i create the network?
@prandtlmayer5 жыл бұрын
What network?
@mikaellucas21745 жыл бұрын
The folder shared with raspberry pi and OS, like in 7:03
@prandtlmayer5 жыл бұрын
You mean using samba?
@arumugarajar29305 жыл бұрын
Where is test_connect.py! i didnt find any
@prandtlmayer5 жыл бұрын
I just restored the missing file as 01_test_connect.py
@trojanX30006 жыл бұрын
I am getting this error even after ensuring that all the above steps are correctly done. Please help ! >>>> Connecting with the UAV > Link timeout, no heartbeat in last 5 seconds >>> No heartbeat in 30 seconds, aborting. Traceback (most recent call last): File "test_connect.py", line 18, in vehicle = connect(connection_string, baud=baud_rate, wait_ready=True) #- wait_ready flag hold the program untill all the parameters are been read (=, not .) File "/home/pi/.local/lib/python2.7/site-packages/dronekit/__init__.py", line 2845, in connect vehicle.initialize(rate=rate, heartbeat_timeout=heartbeat_timeout) File "/home/pi/.local/lib/python2.7/site-packages/dronekit/__init__.py", line 2117, in initialize raise APIException('Timeout in initializing connection.') dronekit.APIException: Timeout in initializing connection.
@prandtlmayer6 жыл бұрын
What arguments do you pass to th script? How are you physically connected to the autopilot? What hardware are you using?