Hello sir, Are there any prerequisites or settings before following this video or I can simply jump to the tutorial as you've shown with pixhawk & r.pi ?
Yes you need to do some settings in pixhawk parameters Connect pixhawk to mission planner and get into config/tuning >> full parameter list And then change below two setting values SERIAL2_PROTOCOL = 2 (the default) to enable MAVLink 2 on the serial port. SERIAL2_BAUD = 921 so the flight controller can communicate with the RPi at 921600 baud. LOG_BACKEND_TYPE = 3 if you are using APSync to stream the dataflash log files to the RPi( optional so leave as it is to default)
@@PankajMali Thank you for the detailed response! Can I find these settings exactly on QGroundcontrol? Basically I'm using QGC.. And what about the OS, means which OS should be flashed into the rpi through SD card before doing all stuffs?
@@PankajMali Hey Pankaj, I am following this video for pixhawk and raspi setup and as mentioned in the above comment by you I connected pixhawk to mission planner and got into config and then into full parameter list but I cannot see any option of SERIAL2_PROTOCOL or SERIAL2_BAUD or LOG_BACKEND_TYPE. Can you suggest what might be the issue?
Hello sir, I need to collect some telemetry data from drone ( data logging from pixhawk using sd card and sd card reader. Can you make a video please) I am interested to collect load current, voltage, position, orientation and control inputs
Hello Duane Hope you are doing well Here pixhawk is the flight controller with all the primary sensor setup required to keep you vehicle stable. Here you upload the firmware and go ahead What if you need to do some extra computation like running a code or adding few more sensors like some lidar or any according to your apllication. Pixhawk is limited with its operational capability its designed for the specific tasks not more than a micro controller So if you want to do this extra processing then you need a computer onboard, so that you can run your codes on the computer and send send the mavlink messages to the pixhawk via serial communication, its bi directional communication You can actually implement real time apllication which uses AI/machine learning algorithms.
Hello Sir, very interesting video. I am interested in collecting the load current, and battery voltage along with telemetry data. I want to use it for battery usage estimation. Have you ever done such experiments?
Till now i have tried both the ways 1. Power from pixhawk to rpi 2. Power from external power module to rpi Both worked fine ....few people faced some issues as found in some forum discussions but i didn't face any .
Hello sir, May I ask if you installed Raspbian OS or Ubuntu into the RPi? I encountered the error "command not found" when keying in "sudo raspi-config" into my Ubuntu RPi? Thank you very much for your help sir :)
Hello, It depends on the requirements, if you want to use ros for your project then you xan go with ubuntu or else for this setup raspbian is fine . Can you please elaborate on your error
Hi I have a question or maybe a clarification. I been seeing everywhere,whenever RPI and Pix are connected - it is suggested to do over Telem1/2 to RPI seriial Pins or use a FTDI connector to a RPI USB. What should happen if we connect it directly from Pixhawk USB to RPI USB? I tried that connection and it still works atleast for reading Flight data using Dronekit. Just wanted to know , why it is recommened to connect over telem port! Thanks in advance !
Yes you are correct we mainly use telemetry 1/2 to setup communication with raspberry pi or any companion computer. As pixhawk has 5 serial ports among which tele2 and tele1 are used for mavlink messages and this serial ports have flow control over data . And if you connect to the micro usb port (serial 0) of pixhawk , which is mainly preferred for connecting ground control station to pixhawk then you will get the mavlink messages and you will be able to communicate properly but only when your aircraft is stationary. This should not be connected in flight because the flight code assumes that if it is receiving power through this port that it is stationary .
Hi Pankaj In the initial , i connected my Rpi4 to the monitor and i gave the 5v to it through adopter. How about Pixhawk, Do i need to connect it to laptop or i can just simply connect it with battery because i already setup everything of mission planner for pixhwak in my laptop before connecting Rpi.
You can power it via battery from power module to pixhawk and when you want to test your drone out in the fields you can power rpi via separate 5v BEC or also power rpi from the telemetry 2 port vcc and gnd.
Is it necessary to connect rc remote with the drone for the first time?? Because i haven't bought it and no plans to use it in future(I also haven't calibrated the radio channel)
If its just limited for checking whether the system is communicating then its ok to not have the radio connected, but when it comes to actually getting the system for demonstration in the field then you need the radio connected or else you will end you with error( like the fc wont be able to able to send mavlink messages to the rpi on the currents status of the radio ) and won't take off. Even though you are having the autonomous missions you need a radio to be connected
When you plan for BVLOS fligts ,you need to turn off failsafe in auto/guided mode in the full parameter list ,so that when the vehicle goes out of the rc range still it will continue to carry on its mission.
Nice video Pankaj just need your help, which cable you are using to connect the RaspberryPi 4 and Pixhawk2.4.8? I am assuming its female 6 pin dupont to df13 connector. From were i can get the cable to connect my raspberrypi with pixhawk.
Hello dhananjay, The cable that is used is df13 6pin which goes straight to the telemetry port on the pixhawk and at the rpi end you can connect the futaba cable or female jumper wire . You need to replace rhe other end.
No we cannot connect as far as i know mainly bcoz its doesnt have any ports for uart or spi. As in pixhawk mavlink is used ...one has to figure out the communication protocol used
You can use naze 32 or cc3d flight controllers, these fc's are pretty old and outdated . You need to install the arducopter firmware on this fc and do the setup or any flight controller where you can upload arducopter firmware
I have build gesture control using nvidia nx xavier and a usb web camera, I'll publish the video soon . I'll try to see if i can make my model and trained data lighter to support rpi.
Yes you can use but you need to find right firmware version and latest mission planner doesnt support apm board so check archives for older version. Check this fir more details : discuss.ardupilot.org/t/apm-2-8-is-it-supported/82880
Hi mr. Pankaj, I have some questions about coding RP4 with PixHawk. We are trying to making a VTOL UAV and it has a simple task that it will change servo angle at the determined location and altitude. So, I want write a code for RP4 that will get this mission. How can I do that, can u help me? I am an amateur on RP4. Do you have some simple examples about that? :)
Hello gggg , If you are concerned only about vtol autonomous mission using Pixhawk autopilot then you can just refer the ardupilot documentation. You dont have to add rpi to perform this autonomous mission ....if you want to have some more computation or task than auto mission then rpi will make a point. Please refere the documentation: ardupilot.org/plane/docs/quadplane-auto-mode.html
Any possibility to fly Pixhawk drone autonomously without using GPS in an enclosed area.(Area of the arena will be known but no GPS signals will be available)
Yes its possible You can go with arruco marker array or you can go with slam navigatio Using depth camera isn't recommended as its results vary according to the light in the surrounding.
Nice Work, may i ask you about the maximum distance range of Raspberry's Wifi and The ground computer since you used Raspberry as access point to connect it with Ground computer via SSH.
Hello mohamed, Thank you, the range with rpi wifi is around 25-30m. Once the command is given to execute tit will carry on the execution even the copter goes out of range.
Hello, i would like to ask what to substitute in wxgtk4.0? it doesn't work for me, i always get the error 'package wxgtk4.0 has no installation candidate'. Thank you for replying.
Hello , Kindly update and upgrade and then run this commands sudo apt-get update -y sudo apt-get install -y python-wxgtk4.0 ' -y ' flag is for silently installing without any questioning
@@PankajMali hello sir, thank you for replying I seem to have a problem with the solution you gave: i installed wxgtk4.0 with the -y flag but it still displays that package wxgtk4.0 has no installation candidate Thanks
@@PankajMali omg!! mind-blowing great, I thought you have bought it from somewhere... Could you please suggest where can I get a reliable quadrotor model as you have made...
Hi nidal Yes it is absolutely possible to use RPI A+ model ....its just the matter with the amount of RAM it holds in comparison with B/B+, but will work fine .
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? On board or opposite?
It depends on the board you are using like rpi3/4/5, jetson nano and their serial communication architecture. You can just check the port being used by ls /dev/tty* when you connect your hardware to rpi
ha timing! Ive just spent the last week trying to figure this out too! Trying to figure out the port of uart=1 and dev/ttys0 took me ages! NIce video I wish I had seen it last week! :)
Yeah mavlink router and mavproxy are bit different as mavproxy is command line interface gcs and mavlink routing helps is routing connection string from serial , tcp, udp to the end connection
You dont have to use tcp and udp ports now, just connect pixhawk and a new device will show up in the list , you will get a sound notification when you connect pixhawk to computer .....if not then check if you have drivers installed for the usb ...usually drivers are installed automatically while installing mission planner
@@PankajMali i have changed those ports by connecting it through usb and followed the video i got everything correct bt i want to monitor it using missionplanner frn long range not using telemetry bt using internet . Could u help me with this?
@@teamudaan9783 thats great !! ... to give internet access to your rpi you can use 4g hat for that or you can use and portable wireless router with sim on the drone and connect it to rpi via wifi And then once your rpi gets access to internet You can use udp port to connect and pass commands remotely to flight controller Video on adding internet access to your drone will be out and cover the setup with both 4g hat and wireless router
Halo The Drone Dojo.. I have a problem when the run syntax "mavproxy.py --master=/dev/ttyAMA0" When i run the syntax, the command is error " link 1 down".. Can you help me to solve the problem.. Thank you..
Hello Sir, 1. What the telemetry module exactly do, I mean what if we don't incude it ?? 2. Here you have talked about ip address of raspberry pi, I think IP addresss are of networks and not of devices ??
Hello, 1.Basically telemetry allows the communication between ground control station and aircraft or any system with bi- directinal data transfer . 2. Yes, you are correct ip address are of network but they are assigned to a particular device .
Get in to mission planner and then on the home page , you will see config/tunning option Config/tunning 》》full parameter list On this page in the right-side search box is present search below parameters and set the values SERIAL2_PROTOCOL=2 (to set telemetry 2 port for serial communication ) SERIAL2_BAUD=921 ( if you follow this video then set 921 if you are using raspbian jessie then set 57) LOG_BACKEND_TYPE = keep it default dont change as for now .
Ok no worries, please follow the procedure below 1. Connect pixhawk to you computer via usb 2.open mission planner and you will see a drop down menu and you see your flight controller in the options so select that and hit the connect button in top right corner. 3.no need to connect raspberry pi now 4.go in config > full paramater list and then search those parameters and set them 5.after changing dont forget to save parameters to fc but hitting the save button 6. Now you are good to go ...diconnect fc and get started with rpi setup but connecting rpi gpio to telemetry 2 port on pixhawk and follow the process as in video👍
Yes you can upload missions remotely in both the conditions 1. When you just want to have waypoint mission in AUTO mode, you can upload mossions via telemetry connected to pixhawk ( witu direct link or also via internet) 2.you can upload python scripts on your rpi remotely, in such a way that your script will call the way points stored in you pixhawk fc and take action according what you want the drone to do at particular waypoint.
After this process of setting the communication between the rpi and pixhawk, next thing you can do is install dronekit and required python dependencies as dronekit provide powerful API support for drone application development you can write python script to control your drone Check dronekit documentation for the API examples that you can use and control the drone autonomously or even you can control it via you keyboard (not recommended) You can also check the very basic example of how the process takes place in my other video
Yes you are correct you can't install sitl simply you can build your code rpi and install dronekit-sitl on your local machine connecting both to same network. So now you can run your script on rpi and connect it to sitl on your local machine along with mission planner or what ever simulator you want to use
Local machine is your laptop where i prefer ubuntu ,you can even use windows for dronekit-sitl 1. Launch dronekit sitl in 1st terminal 2. Launch mavproxy in second terminal which will send tcp messages to stil and udp connection (like udp connection on mission planner ) 3. Launch mission n connect with udp port (optional ) 4.run your python script on raspberry with connection string like 127.0.0.1:14550 Raspberry and your unbuntu/windows machine should be connected to same network (router)/mobile hotspot. Refer dronekit documentation Hope it helps you, good luck with your project 👍
I am also trying to make something like that Pankaj jii , could you please provide me with the drone 3d parts files and specifications (like the battery needed to power all motors and raspberry, motor rating , esc , total flight time , rc and all. that would really be my starting point, thanks a lot
With the full raspberry pi os + recommended software, wt will be it's size on sd card? For full os package should I get the 16gb or 32gb sd card, as I want at least 4gb of memory should remained on sd card.
Yes ....you can go with 16gb and still have 4gb reserved but i would recommend to get 32gb as in future you might need it if you are planning on up-gradation on your projects, to be on safer side go with 32gb.
Hey Pankaj. My connection was working fine I was able to communicate pixhawk with raspi. But by mistake I pressed 'ctrl+z' on raspi command window and now again it shows me 'MAV> link 1 down' and I cannot get back to setting up their communication. can you please help?
Hello Sir, Firstly thank you for video. I want to ask a question. I need to connect the pi and pixhawk together and in this system, the pi has to have camera because pi has to recognize the red area. After pi recognize the red area, that system will drop the balls. Servo motors must run for the ball to drop. How can i connect the servos of this system? Should it connect to pi or pixhawk? which one? Thank you very much in advance. Sincerely.
Hello alparslan Nice question, You follow this video to set up the connection between you rpi and pixhawk once done, check next video where you will get to know how to run your python scripts on the real vehicle. Lastly check the lastest video where you will find gazebo simulation and demonstration on real vehicle, where the pi camera detects a aruco marker and run the land command to make the copter land. Check the python script on my git In your case the copter will detect the red area and instead of landing it will drop a ball. To drop a ball, you can attach a servo and to control a servo, plug it into an empty channel on the pixhawk and use mission planner to set that channel as a servo channel. Using dronekit you can send mavlink messages to pixhawk. Hope it helps you
Really appreciated sir Could you please explain how can I setup/configure) my RC Transmitter(remote) with it. I am using Flysky FS-i6 remote and FS-iA6B receiver.
Hello farooq, You don't need to specially configure your tx to get running with companion computer, you must have a drone ready with pixhawk which has your tx caliberated via mission planner /qgc and that's it you can start setting up the connections with rpi
Hello pratik Yeah we will go towards implementation of actual applications once this basics get completed, all this basic setup you will require while using ROS Next video is on opencv for drones
hola hermano podrias ayudarme con el tema de la telemetria ? no me aclaro con las explicaciones ,pago por la ayuda gracias espero tu respuesta pronto buen dia
Yes you can connect rpi4 to pixhawk cube . Follow the camera calibration video where the aruco detection code is tetsed ...similarly use tvec and rvec vectors in opencv to track the object and send the object x y errors with respect to the camera lens to pixhawk via mavlink messages
Just check with the tx rx pins , and also the baudrate in the mission planner configuration and baudrate while running the mavproxy.py command ....it should match
Hello sir,
Are there any prerequisites or settings before following this video or I can simply jump to the tutorial as you've shown with pixhawk & r.pi ?
Yes you need to do some settings in pixhawk parameters
Connect pixhawk to mission planner and get into config/tuning >> full parameter list
And then change below two setting values
SERIAL2_PROTOCOL = 2 (the default) to enable MAVLink 2 on the serial port.
SERIAL2_BAUD = 921 so the flight controller can communicate with the RPi at 921600 baud.
LOG_BACKEND_TYPE = 3 if you are using APSync to stream the dataflash log files to the RPi( optional so leave as it is to default)
@@PankajMali Thank you for the detailed response!
Can I find these settings exactly on QGroundcontrol? Basically I'm using QGC..
And what about the OS, means which OS should be flashed into the rpi through SD card before doing all stuffs?
Follow this link if using QGC
dev.px4.io/master/en/companion_computer/pixhawk_companion.html
Install raspbian buster stretch desktop
@@PankajMali okay thanks..
@@PankajMali Hey Pankaj, I am following this video for pixhawk and raspi setup and as mentioned in the above comment by you I connected pixhawk to mission planner and got into config and then into full parameter list but I cannot see any option of SERIAL2_PROTOCOL or SERIAL2_BAUD or LOG_BACKEND_TYPE. Can you suggest what might be the issue?
Was waiting for this video from soo long.... Nice job 👍
Thank you very much ❣❣
where did you get the connector for connecting rpi to pixhawk ?
Hello ,
I got the connector from robu.in
@@PankajMali can you share the product link please. I have searched and could not find it
Can this frame be fold or they are stationary?
Hello, this frame is foldable at the main joint between the carbon fiber plates
Hello sir, I need to collect some telemetry data from drone ( data logging from pixhawk using sd card and sd card reader. Can you make a video please)
I am interested to collect load current, voltage, position, orientation and control inputs
I would like to know why I should/need to put a Pi on my PX4? What will it give me that the PX4 gives me? Thank You
Hello Duane
Hope you are doing well
Here pixhawk is the flight controller with all the primary sensor setup required to keep you vehicle stable. Here you upload the firmware and go ahead
What if you need to do some extra computation like running a code or adding few more sensors like some lidar or any according to your apllication.
Pixhawk is limited with its operational capability its designed for the specific tasks not more than a micro controller
So if you want to do this extra processing then you need a computer onboard, so that you can run your codes on the computer and send send the mavlink messages to the pixhawk via serial communication, its bi directional communication
You can actually implement real time apllication which uses AI/machine learning algorithms.
@@PankajMali Thank You!! you are the first one to give a answer ! and a good one!! So mow you get a sub
Thank you very much, i really appreciate it❣
Hello Sir, very interesting video. I am interested in collecting the load current, and battery voltage along with telemetry data. I want to use it for battery usage estimation. Have you ever done such experiments?
For powering the raspberry pi from the pixhawk's telem2 ports, will the rpi get enough power ?
Till now i have tried both the ways
1. Power from pixhawk to rpi
2. Power from external power module to rpi
Both worked fine ....few people faced some issues as found in some forum discussions but i didn't face any .
@@PankajMali thanks but i think powering externally would be better using buck converters
Yes , you are correct it's always better to be on the safer side
Hello sir,
May I ask if you installed Raspbian OS or Ubuntu into the RPi? I encountered the error "command not found" when keying in "sudo raspi-config" into my Ubuntu RPi? Thank you very much for your help sir :)
Hello,
It depends on the requirements, if you want to use ros for your project then you xan go with ubuntu or else for this setup raspbian is fine .
Can you please elaborate on your error
Hi
I have a question or maybe a clarification.
I been seeing everywhere,whenever RPI and Pix are connected - it is suggested to do over Telem1/2 to RPI seriial Pins or use a FTDI connector to a RPI USB.
What should happen if we connect it directly from Pixhawk USB to RPI USB?
I tried that connection and it still works atleast for reading Flight data using Dronekit. Just wanted to know , why it is recommened to connect over telem port!
Thanks in advance !
Yes you are correct we mainly use telemetry 1/2 to setup communication with raspberry pi or any companion computer.
As pixhawk has 5 serial ports among which tele2 and tele1 are used for mavlink messages and this serial ports have flow control over data .
And if you connect to the micro usb port (serial 0) of pixhawk , which is mainly preferred for connecting ground control station to pixhawk then you will get the mavlink messages and you will be able to communicate properly but only when your aircraft is stationary.
This should not be connected in flight because the flight code assumes that if it is receiving power through this port that it is stationary .
@@PankajMali thank you! Appreciate it :)
Hi...In this video you said for Raspberry pi 3 ttyAM0 is used.
I have raspberry pi 4.
Can you please tell me which tty I should use their ?
Hello iqra
Yes you can connect your rpi4 in Serial0 port
Hi,
I am new to drones. Does it work with PX4 autopilot Stack as well? (Not Ardupilot)
Yes it works with px4 stack also
Hi Pankaj
In the initial , i connected my Rpi4 to the monitor and i gave the 5v to it through adopter. How about Pixhawk, Do i need to connect it to laptop or i can just simply connect it with battery because i already setup everything of mission planner for pixhwak in my laptop before connecting Rpi.
You can power it via battery from power module to pixhawk and when you want to test your drone out in the fields you can power rpi via separate 5v BEC or also power rpi from the telemetry 2 port vcc and gnd.
Is it necessary to connect rc remote with the drone for the first time?? Because i haven't bought it and no plans to use it in future(I also haven't calibrated the radio channel)
Can you provide me the solution?
If its just limited for checking whether the system is communicating then its ok to not have the radio connected, but when it comes to actually getting the system for demonstration in the field then you need the radio connected or else you will end you with error( like the fc wont be able to able to send mavlink messages to the rpi on the currents status of the radio ) and won't take off.
Even though you are having the autonomous missions you need a radio to be connected
So its like your drone to work you should have rc remote connected to the drone but what about beyond line of sight drones how do they manage to fly?
When you plan for BVLOS fligts ,you need to turn off failsafe in auto/guided mode in the full parameter list ,so that when the vehicle goes out of the rc range still it will continue to carry on its mission.
@@PankajMali i don't want to configure rc controller and still want to control the drone. Is it possible?
Hello again, I hava a question, is your raspberry Pi running Rpi OS or Rpi OS Lite or Ubuntu? and which version specifically?
As of now its rpi os ( buster)
Nice video Pankaj
just need your help, which cable you are using to connect the RaspberryPi 4 and Pixhawk2.4.8? I am assuming its female 6 pin dupont to df13 connector.
From were i can get the cable to connect my raspberrypi with pixhawk.
Hello dhananjay,
The cable that is used is df13 6pin which goes straight to the telemetry port on the pixhawk and at the rpi end you can connect the futaba cable or female jumper wire .
You need to replace rhe other end.
@@PankajMali Thanks for the suggestion, I will try your idea!
In what time the rasberrypi gives commands to the pixhawk. How to put codes in the rasberrypi.
Hello,
Its immediate once you start the code, you can find detailed video : ua-cam.com/video/LqtGI_iaqj0/v-deo.htmlsi=EruMwqTMzJaOTTN3
Are you doing anything with object recognition using Pi with Pixhawk cube
Yeah
Hii sir can we use resbiry pi for tracking features
Hello rajendra,
Yes you can use rpi for tracking features
@@PankajMali ok please can you help me for this
Please reply me in whatsapp
Pls sir
Please give me your contact no
I want to talk with you
You can catch me up on instagram @punky_pankaj
can you make a video where you setup the ardupilot firmware on the pixhawk 2.4.8? or maybe just comment here how you did it thanks..
Yeah sure .... i can share you my parameter list file so that you can compair the changes i did
Can we connect raspberry pi to dji naza m lite flight controller instead of pixhawk
No we cannot connect as far as i know mainly bcoz its doesnt have any ports for uart or spi.
As in pixhawk mavlink is used ...one has to figure out the communication protocol used
@@PankajMali then to which flight controller i can connect the raspberry pi instead of pixhawk
You can use naze 32 or cc3d flight controllers, these fc's are pretty old and outdated . You need to install the arducopter firmware on this fc and do the setup or any flight controller where you can upload arducopter firmware
Sir is pixhawk is needed for raspberrypi, can I use Apm2.8 instead of Pixhawk?
Yes you can use apm2.8 instead of pixhawk . Try to get piixhawk as apm is pretty old now with less flash memory
I mean for a try I can use APM2.8 after getting successful I will replace it from pixhwak
And sir please make a video gesture controlled and person tracking or face tracking drone using raspberrypi and camera module
I have build gesture control using nvidia nx xavier and a usb web camera, I'll publish the video soon .
I'll try to see if i can make my model and trained data lighter to support rpi.
Yes you can use but you need to find right firmware version and latest mission planner doesnt support apm board so check archives for older version.
Check this fir more details : discuss.ardupilot.org/t/apm-2-8-is-it-supported/82880
Which version of raspberry pi ur using sir and also where we can get that raspberry pi online with cheaper price
Hello nagamaa,
In this video it's rpi 3b.
You can check robu.in for rpi
@@PankajMali tqsm sir continue to upload more videos about drone sir🙏
@@nagammanagamma289 sure
@@PankajMali tqsm sir♥️
Awesome Video ! I have a question how to connect Ardupilot to Raspi and run code
Thank a lot for the video
This is exactly where I was stuck, your detailed video helped me , cheers mate keep up the good work👌👌
Hope it helped you, keep building 🤘🤘
Hi mr. Pankaj, I have some questions about coding RP4 with PixHawk. We are trying to making a VTOL UAV and it has a simple task that it will change servo angle at the determined location and altitude. So, I want write a code for RP4 that will get this mission. How can I do that, can u help me? I am an amateur on RP4. Do you have some simple examples about that? :)
Hello gggg ,
If you are concerned only about vtol autonomous mission using Pixhawk autopilot then you can just refer the ardupilot documentation.
You dont have to add rpi to perform this autonomous mission ....if you want to have some more computation or task than auto mission then rpi will make a point.
Please refere the documentation:
ardupilot.org/plane/docs/quadplane-auto-mode.html
Any possibility to fly Pixhawk drone autonomously without using GPS in an enclosed area.(Area of the arena will be known but no GPS signals will be available)
Yes its possible
You can go with arruco marker array or you can go with slam navigatio
Using depth camera isn't recommended as its results vary according to the light in the surrounding.
@@PankajMali Thanks. Can I have your contact?
You can catch me up on Instagram @punky_pankaj
Nice Work, may i ask you about the maximum distance range of Raspberry's Wifi and The ground computer since you used Raspberry as access point to connect it with Ground computer via SSH.
Hello mohamed,
Thank you, the range with rpi wifi is around 25-30m. Once the command is given to execute tit will carry on the execution even the copter goes out of range.
Is there any data of ardupilot is stored in raspberry pi??
No data is stored on this of ardupilot ,if you want to get telemetry logs on your pi then you can get it.
bruh from where did you bought that drone frame ?
Its custom designed and built
Hello, i would like to ask what to substitute in wxgtk4.0? it doesn't work for me, i always get the error 'package wxgtk4.0 has no installation candidate'. Thank you for replying.
Hello ,
Kindly update and upgrade and then run this commands
sudo apt-get update -y
sudo apt-get install -y python-wxgtk4.0
' -y ' flag is for silently installing without any questioning
@@PankajMali hello sir, thank you for replying
I seem to have a problem with the solution you gave: i installed wxgtk4.0 with the -y flag but it still displays that package wxgtk4.0 has no installation candidate
Thanks
Where did you buy this UAV model?
Hello arindam,
I have designed and built it on my own with carbon fiber and 3d printed parts.
@@PankajMali omg!! mind-blowing great, I thought you have bought it from somewhere... Could you please suggest where can I get a reliable quadrotor model as you have made...
@@PankajMali Also send you a request on LinkedIn, please accept...
Hello, kindly is it possible to use RPi A+ model instead of B+ ?
Hi nidal
Yes it is absolutely possible to use RPI A+ model ....its just the matter with the amount of RAM it holds in comparison with B/B+, but will work fine .
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? On board or opposite?
Hi tugba kara,
On-board means you have the jetson connected to pixhawk on the drone itself and then you take off .
@@PankajMali I really appreciate for that, finally it comes up the result, thanks a lot!
Have a nice day :)
can't we use serial0 to connect raspberry pi and pixhawk?
It depends on the board you are using like rpi3/4/5, jetson nano and their serial communication architecture. You can just check the port being used by ls /dev/tty* when you connect your hardware to rpi
So, ttyAMA0 is not mandatory, we may use another like serial0. @@PankajMali
Can I use a Pi zero?
ha timing! Ive just spent the last week trying to figure this out too! Trying to figure out the port of uart=1 and dev/ttys0 took me ages! NIce video I wish I had seen it last week! :)
i was installing mavlink-router, is there any advantage of mavlink-proxy? Or is it pretty much the same thing?
Good to see that you got it ❣❣keep building
Yeah mavlink router and mavproxy are bit different as mavproxy is command line interface gcs and mavlink routing helps is routing connection string from serial , tcp, udp to the end connection
best video on establishing connection between pixhawk and rp3
Thank you....hope it helped you ❣
im stuck at waiting for the heartbeat from /dev/ttyAMO and after that it is showing only mav> please help me with this
Can you give me more details on what baud rate did you set and other settings
@@PankajMali problem solved i have just use /dev/tty/AMA0
Great 👍
@@PankajMali Is there any data of ardupilot is stored in raspberry pi??
Very useful! Appreciate your effort
Hello BB ,
I'm glad it helped you ☺
Hi Pankaj, have you tryed the navio2 fligth controller with raspberrypi?
Im not yet on navio😬
Could you help me out in connecting missionplanner through TCP or UDP?
You dont have to use tcp and udp ports now, just connect pixhawk and a new device will show up in the list , you will get a sound notification when you connect pixhawk to computer .....if not then check if you have drivers installed for the usb ...usually drivers are installed automatically while installing mission planner
@@PankajMali i have changed those ports by connecting it through usb and followed the video i got everything correct bt i want to monitor it using missionplanner frn long range not using telemetry bt using internet . Could u help me with this?
@@teamudaan9783 thats great !! ... to give internet access to your rpi you can use 4g hat for that or you can use and portable wireless router with sim on the drone and connect it to rpi via wifi
And then once your rpi gets access to internet
You can use udp port to connect and pass commands remotely to flight controller
Video on adding internet access to your drone will be out and cover the setup with both 4g hat and wireless router
techship.com/faq/ you can refer this for now
@@PankajMali tysm i ll go through it
Halo The Drone Dojo..
I have a problem when the run syntax "mavproxy.py --master=/dev/ttyAMA0"
When i run the syntax, the command is error " link 1 down"..
Can you help me to solve the problem..
Thank you..
Can you please provide me more details , so that we can steo by step cross check eaxctly where the error is
Hello Sir,
1. What the telemetry module exactly do, I mean what if we don't incude it ??
2. Here you have talked about ip address of raspberry pi, I think IP addresss are of networks and not of devices ??
Hello,
1.Basically telemetry allows the communication between ground control station and aircraft or any system with bi- directinal data transfer .
2. Yes, you are correct ip address are of network but they are assigned to a particular device .
Hello Sir, Can I follow the same video for connecting raspberry pi 3 to APM 2.8, instead of pixhawk?
Yes you can follow the same
@@PankajMali Thank you Sir
Awesome stuff. I am inspired to work on something similar. Keep up the good work!
Thanks a lot ❣❣😊
Hey ty for the video can i know how to do those missionplanner settings i have missionplanner version 1.3.74
Get in to mission planner and then on the home page , you will see config/tunning option
Config/tunning 》》full parameter list
On this page in the right-side search box is present search below parameters and set the values
SERIAL2_PROTOCOL=2 (to set telemetry 2 port for serial communication )
SERIAL2_BAUD=921 ( if you follow this video then set 921 if you are using raspbian jessie then set 57)
LOG_BACKEND_TYPE = keep it default dont change as for now .
Hope this helps you 👍👍
Ty for ur reply bt when i search im not getting it should i connect raspi to mission planner physically and do connections? And to which ports
Ok no worries, please follow the procedure below
1. Connect pixhawk to you computer via usb
2.open mission planner and you will see a drop down menu and you see your flight controller in the options so select that and hit the connect button in top right corner.
3.no need to connect raspberry pi now
4.go in config > full paramater list and then search those parameters and set them
5.after changing dont forget to save parameters to fc but hitting the save button
6. Now you are good to go ...diconnect fc and get started with rpi setup but connecting rpi gpio to telemetry 2 port on pixhawk and follow the process as in video👍
@@PankajMali tysm i ll try this it was veryusefull
Beautifully explained 🔥🔥
Thank you ❣❣
Hello sir, is it possible to connect my raspberry pi to the ground station say for instance mission planner. And be able to upload missions remotely.
Yes you can upload missions remotely in both the conditions
1. When you just want to have waypoint mission in AUTO mode, you can upload mossions via telemetry connected to pixhawk ( witu direct link or also via internet)
2.you can upload python scripts on your rpi remotely, in such a way that your script will call the way points stored in you pixhawk fc and take action according what you want the drone to do at particular waypoint.
hi
i have a question,
How do i control the drone movement through raspberry pi via Pixhawk?
After this process of setting the communication between the rpi and pixhawk, next thing you can do is install dronekit and required python dependencies as dronekit provide powerful API support for drone application development you can write python script to control your drone
Check dronekit documentation for the API examples that you can use and control the drone autonomously or even you can control it via you keyboard (not recommended)
You can also check the very basic example of how the process takes place in my other video
@@PankajMali i have error installing dronekit sitl on my raspberry pi as it doesnt support ARM.. How do i install?
Yes you are correct you can't install sitl simply you can build your code rpi and install dronekit-sitl on your local machine connecting both to same network.
So now you can run your script on rpi and connect it to sitl on your local machine along with mission planner or what ever simulator you want to use
@@PankajMali how do i setup a local machine? I am kinde rushing to finish up my final year project due next week
Local machine is your laptop where i prefer ubuntu ,you can even use windows for dronekit-sitl
1. Launch dronekit sitl in 1st terminal
2. Launch mavproxy in second terminal which will send tcp messages to stil and udp connection (like udp connection on mission planner )
3. Launch mission n connect with udp port (optional )
4.run your python script on raspberry with connection string like 127.0.0.1:14550
Raspberry and your unbuntu/windows machine should be connected to same network (router)/mobile hotspot.
Refer dronekit documentation
Hope it helps you, good luck with your project 👍
I am also trying to make something like that Pankaj jii , could you please provide me with the drone 3d parts files and specifications (like the battery needed to power all motors and raspberry, motor rating , esc , total flight time , rc and all. that would really be my starting point, thanks a lot
Hii, probably I'll update with this in next video and also design files for your reference .
With the full raspberry pi os + recommended software, wt will be it's size on sd card? For full os package should I get the 16gb or 32gb sd card, as I want at least 4gb of memory should remained on sd card.
Yes ....you can go with 16gb and still have 4gb reserved but i would recommend to get 32gb as in future you might need it if you are planning on up-gradation on your projects, to be on safer side go with 32gb.
32gb or 16gb.....???
32gb
Hey Pankaj. My connection was working fine I was able to communicate pixhawk with raspi. But by mistake I pressed 'ctrl+z' on raspi command window and now again it shows me 'MAV> link 1 down' and I cannot get back to setting up their communication. can you please help?
Ok so tell me are you still running the mavproxy.py command as root user like after running "sudo -s" command ?
@@PankajMali Yes
But still the error MAV>link 1 down persist
Hello Sir,
Firstly thank you for video. I want to ask a question. I need to connect the pi and pixhawk together and in this system, the pi has to have camera because pi has to recognize the red area. After pi recognize the red area, that system will drop the balls. Servo motors must run for the ball to drop. How can i connect the servos of this system? Should it connect to pi or pixhawk? which one? Thank you very much in advance.
Sincerely.
Hello alparslan
Nice question,
You follow this video to set up the connection between you rpi and pixhawk once done, check next video where you will get to know how to run your python scripts on the real vehicle.
Lastly check the lastest video where you will find gazebo simulation and demonstration on real vehicle, where the pi camera detects a aruco marker and run the land command to make the copter land.
Check the python script on my git
In your case the copter will detect the red area and instead of landing it will drop a ball.
To drop a ball, you can attach a servo and to control a servo, plug it into an empty channel on the pixhawk and use mission planner to set that channel as a servo channel. Using dronekit you can send mavlink messages to pixhawk.
Hope it helps you
@@PankajMaliThank you so much for your informations.
Where can i buy pixhawk px4 flight controller....
amzn.to/3iHsgoX buy from here
Really appreciated sir
Could you please explain how can I setup/configure) my RC Transmitter(remote) with it. I am using Flysky FS-i6 remote and FS-iA6B receiver.
Hello farooq,
You don't need to specially configure your tx to get running with companion computer, you must have a drone ready with pixhawk which has your tx caliberated via mission planner /qgc and that's it you can start setting up the connections with rpi
@@PankajMali Thank you boss, lemme try
Hello sir,
I have always the same problem, i can't download wxgtk4.0
Can you please elaborate your error .......are you working with python2 or python3?
Sir, can you please make a video on actual practical uses of raspberry pie connected to pixhawk.
Hello pratik
Yeah we will go towards implementation of actual applications once this basics get completed, all this basic setup you will require while using ROS
Next video is on opencv for drones
Tysm your guidelines was very usefull
Glad it was helpful!
İts givin me error Mav >Link 1 down what did wrong brother ?
Check tx rx pins , baudrate
Can I use Python 3.7?
Yes you can use but its very much limited only to some packages so it's better to go with python 2.7
@@PankajMali thanks for the explanation, I'll try with the 2.7!
Yeah good luck
Good explanation 👌
Sir please upload video to build drone from scratch using apm 2.8 flight controller with raspberry pi sir plzz
When ever If possible plz upload sir tqsm in advance sir 🙌
Thanks for sharing!!
Do you have the specs for the drone? Or a way or plans to build it?
Thanks for sharing :)
Yes i will share all the details shortly
When I run command it shows no collaboration
Hello abhijit,
Can you please elaborate your issue
Bro I have APM 2.8 and RPI 3A and not able to give power to RPI using APM ,please guide me if possible then please send the circuit diagram also
Hi,
Please refer this link
www.instructables.com/Autonomous-Line-Follower-Drone-With-Raspberry-Pi/?amp_page=true
Why do people put music background on technical videos i do not know?... but good content.
Yeah background music is not required i have stopped adding music on my new videos.
Thank you
🔥🔥🔥🔥🔥🔥 kdkkk
hola hermano podrias ayudarme con el tema de la telemetria ? no me aclaro con las explicaciones ,pago por la ayuda gracias espero tu respuesta pronto buen dia
Hola, ¿Puede por favor explicar su problema? También puedes verme en Instagram @punky_pankaj
Merhaba güzel kurulum ellerinize sağlık olsun. Pixhawk 3d yazıcı ile baskısı yapılmış kırmızı olanın stl dosyası ni paylaşabilirmisiniz?
Hello sir
I have a few questions :)
1-Can I connect my rspi4 on Pixhawk Cube ?
2-How do I object tracking on RaspberryPi using Python-Opencv ?
hi there. were you sucessfull on that connection? i keep receiving mav>line down no matter what i try... it you were sucessfull please help me.
Yes you can connect rpi4 to pixhawk cube .
Follow the camera calibration video where the aruco detection code is tetsed ...similarly use tvec and rvec vectors in opencv to track the object and send the object x y errors with respect to the camera lens to pixhawk via mavlink messages
suprb.. i will try this raspberry pie..
Hello ak47
Good luck with that ❣❣
Extraordinary explanation good job can share cad files of the frame
Thank you , dm on Instagram
Gud work 👍
Thank you ❣
Nice explain
Thank you
Hello, how can I contact you?
You can catch me up in Instagram @punky_pankaj
Thank you so much 😊
Kdk🎉🎉🎉
Thank you ❣❣
Great job
Waiting for heartbeat from /dev/ttyMA0. Is showing
What is problem
In your video showing online system 1
Are you using raspberry pi 3 or pi4
Rpi 3 b
Just check with the tx rx pins , and also the baudrate in the mission planner configuration and baudrate while running the mavproxy.py command ....it should match
Ok sir
Thank bro
❣❣
why are you using python 2
You can go with python 3 also... have tested the setup with python3
👍👍
Sir can you please provide your contact info🙏. I have some doubt to clear and i need some help for my project
Hi, you can catch me up on instagram @punky_pankaj
Good bro..plz contact no chahi a aapka bro
Thank you
Instagram @punky_pankaj
Hi, bro please respond to my mail
You can catch me on Instagram @punky_pankaj
Hawaa
Thank you ❣❣