This week, I worked on creating an enclosure for the raspberry pi to place it on the drone. I also helped Ankit and Bhavik train the PID controller for the drone to get it hovering for our video. My part of the project is more or less done now, so I would say that my progress is on schedule. By next week the project will have been due so completion.
Gaurav’s Status Report for 11/30/2024
This week, I worked on creating the enclosure for the Raspberry Pi 5 so that we can drill it onto the drone to test the entire system. Currently I found an STL file of the case online, so I will make some modifications to that to make a way to drill it onto the drone.
Our progress is slightly behind because the PID training took longer than expected. However, the rest of the parts are more or less ready to go as soon as we finish that. My personal progress is on schedule.
By next week, I hope to have the raspberry pi mounted on the drone and all the CV working.
As I was implementing our project, I found it necessary to learn how a PID controller works to better help my teammates get their parts working. I also had to learn how an AI model works to better understand the documentation behind the Hailo App and try to figure out if it is necessary to design our own Hailo application for our data set. In order to learn these tools, I watched a lot of videos and took light notes. This helped me stay concentrated on the videos themselves as they explained how the drone controller works. For the Hailo application, I simply just sat and read the documentation.
Gaurav’s Status Report for 11/16/2024
This week, I was able to get object detection working on the Raspberry Pi 5 as well as transmission of the coordinates to an Arduino. I also worked with Bhavik to get object tracking working and to get radio transmission between an Arduino attached to the Raspberry Pi 5 and an Arduino attached to a computer to simulate our ground station environment. This week much of my time was spent modifying the run script to only transmit detection of humans and the human with the highest confidence. In the picture below, we switched it to a bottle just for that test to make sure that the drone controls were working with the position of the bottle. But as you can see behind the detection of the bottle, the Raspberry Pi is also deciding where the drone should move based on the position of the bottle and is transmitting that to the Arduino. We know this is working because the output that is being seen in the image is actually the Arduino transmitting what it is receiving from the Raspberry Pi.
When we (me and Bhavik) first started working this week, we were trying to compile the balloon detection model we had to work with the Hailo accelerator. However, we noticed that in order to compile the model for the Hailo accelerator, we had to compile the onnx file we had into an hef format. We spent a couple days trying to get that to work on an ARM machine by spawning AWS instances of X86 machines to compile the model. However, when we finally compiled it, we noticed that the model wasn’t working with the script they gave. We finally realized that we would have to write our own TAPPAS app, which is a framework provided by Hailo to optimize inference for the AI accelerator. We then did some additional searching and found a pre-trained, pre-optimized model that would work for our purposes. All we had to do was modify the script to get only information about people, which in and of itself was quite an obstacle. However we were able to achieve 30 FPS on a 640×640 image.
I also worked with Ankit and Bhavik on training the PID controller in the drone cage in Scaife. Much of this work was headed by Ankit as we debugged different parts of the drone that were not working. First we did training for the P portion, and then we moved on to D. However, D exposed problems with the setup, the outdated hardware we were using, as well as parts shaking loose as we tested the functioning of the drone. This is the biggest bottleneck currently.
In order to verify my portion of the design we have run a variety of tests and will run more once it is mounted on the drone. For now, since we have set up the information pipeline from the camera feed straight to the radio, we are checking that the coordinates that the radio is receiving are representative of where the person is in the frame. We also have access to the information at each stage of the communication interface (stdout of the program in the RPi, serial monitor on the sending Arduino, and serial monitor in the receiving raspberry pi) and checking that the information is consistent across all those points. To run more tests, we will test with the object in various other positions and make sure that it is detecting in those scenarios too. We also will test by having multiple objects and no objects in the frame and checking that the arbiter is working properly as well.


Gaurav’s Status Report for 11/09/2024
This week, I was not able to accomplish as much as I would like to because we ran into many issues trying to recompile the model to work with the Hailo accelerator. I was not able to recompile it on my laptop, so we had to try to compile it on Ankit’s laptops but that came with its own set of errors. Currently we are stuck on the recompile step, but once that is ready everything else should work.
Our progress is on schedule. We have talked to the professors about what we will have for our interim demo, and we should definitely have that ready in time. Our drone is very much on track and having the vision component working soon is good for our overall progress.
By next week, I hope to have the model recompiled for the Hailo accelerator and a chassis designed to put the Raspberry Pi on the drone. I also hope to have an idea of how to convert the drone battery power into a current/voltage that the raspberry pi can accept.
Gaurav’s Status Report for 11/02/2024
This week, I ordered all the parts needed to start with the Raspberry Pi transition as well as flashed linux onto the Raspberry Pi. Much of my time was spent reading about how to setup the AI model onto the Raspberry Pi and any peripheral hardware we would need to access the GPIO on the Raspberry Pi to communicate with the Arduino.
Our progress is on schedule. Bhavik and Ankit have done a lot of work getting the drone running and setting up the model onto the Raspberry Pi should be extremely easy. Our next major step is integration and testing.
By next week, I hope to have the model running and figure out how to board the Rpi onto the drone.

Gaurav’s Status Report for 10/26/2024
This week, I repeatedly met with Bhavik and Ankit to decide how to move forward. There were a couple things that we had realized that we wanted to reevaluate
- We realized that our battery may not be large enough. We had chosen a 2200 mAh Li-Po battery, but since we needed it to supply 40 Amps, that would mean that we only have about 5 minutes of flight time. So we have decided to resize our battery to get a larger flight time.
- We realized that our FPGA acceleration was not worth it.

Taken from https://www.raspberrypi.com/products/ai-kit/ 
Taken from https://xilinx.github.io/kria-apps-docs/kv260/2022.1/build/html/docs/nlp-smartvision/docs/hw_arch_accel_nlp.html As you can see from the pictures above, the Raspberry PI with AI acceleration has a significant performance boost, and in a smaller form factor because it is a hat for a Raspberry Pi 5. As such it makes sense to switch to this instead of the Kria acceleration.
We are very much on schedule. Since the issues with the Kria was causing some of our schedule to be pushed back, changing to the Raspberry PI will put us ahead of schedule because we are all much more familiar with the platform.
By next week, I hope to have helped Bhavik run the CNN on the Raspberry Pi as we wait for the AI kit to arrive. I will also help Ankit run some of the controls on the drone to check that it can stabilize itself.
Gaurav’s Status Report for 10/20/2024
These last 2 weeks, I was able to accomplish many of my tasks. The first task I was able to accomplish was the design report. I worked with my teammates extensively in order to complete the design report and accomplish all the requirements. I was also able to get much of my own tasks done. I was able to finish the basic setup and start work on the DPU setup for the Kria. I also setup Vitis AI on my laptop and have been working with the AMD contact, Varun, and Bhavik in order to run our own PyTorch model on my laptop. I also worked on flashing Petalinux onto the Kria so I can connect my laptop to the Kria and upload any necessary files. This is partially working, since I am having some issues getting the internet to work.


My progress is on schedule. Since I was able to setup the architecture on the FPGA that can actually accept the object detection model, then if I can resolve the issues I’m having with the Kria and Vitis AI then we can actually test the model. I just have to get the internet running on the Kria so that the Kria can download the necessary package and try running Bhavik’s Pytorch model in Vitis AI.
By next week, I hope to have the Kria board running with the internet and having the necessary Vitis AI files on it. I also hope to have the DPU architecture flashed onto the FPGA fabric so that the Kria is ready to run tests.
Gaurav’s Status Report for 10/05/2024
This week, I created an example Vivado project and got the complete workflow working. I also started on getting the Vision AI working, and I plan to finish that by the end of this weekend. I also worked on the Design presentation with Bhavik and Ankit and helped finalize the design and order all the parts.
I am slightly behind the schedule because I was hoping to have more of the toolchain working on the KRIA itself. However, because I do not have a good way to connect to the KRIA until the parts come in which they have not yet. However, once the adapter comes I will be able to flash the SD card with the linux image and test the vision AI on the board itself.
Next week, I hope to have the camera connected to the KRIA and a basic vision model working. I also want to have tried using Bhavik’s parameters to see if that can identify the target (which is a balloon).
Gaurav’s Status Report for 09/28/24
This week I was able to flash petalinux onto the KRIA, as well as read through more of Varun’s documentation on how to setup Vitis AI on the KRIA. With the group, I met with Ankit and Bhavik to finalize the entire design as well as get ready for part ordering. This weekend, I will be ordering a KRIA compatible camera and setup a basic vision model, as well as ordering other hardware to connect to the KRIA. Much of the work I did this week was reading documentation and understanding the tools available to me and checking that I can connect to the KRIA.
My personal progress is on schedule. I was hoping to get more of the Vitis AI setup working, however I knew that it may take longer than expected and compensated as such with my plan to complete my work.
By next week, I hope to have a basic vision model running on the KRIA and have it connected to the camera or have the camera on the way.
Gaurav Savant’s Status Report for 09/21/2024
Accomplishments:
This week, I gained some familiarity with the Kria platform as well as read documentation related to the Kria boards and using the vision platform. I also met up with Ankit and Bhavik multiple times to discuss our design and work through any changes that needed to be made to make our MVP more realistic. Earlier in the week, I spent time building the slide deck for the Proposal Presentation. and practicing the presentation.
I am currently on schedule. Since we have decided against the custom PCB and custom drone frame, my main job is getting the PyTorch model working on the Kria Robotics board, which I will definitely be able to complete in time. I will especially be able to complete this due to the abundance of documentation online for the Kria KR260.
In the next week, I hope to have the Vitis AI platform set up and a better understanding on how to use the Vitis platform with the Kria by reading through Varun’s documentation. I also want to have flashed the Linux image onto the Kria and test running a simple program on the ARM chip.
