JOURNAL

Project log · newest first

New entry

Posting and editing need a GitHub token, saved in this browser only. Make a fine-grained token with resource owner dockingconfirmed, access to only the site repository, and Contents: Read and write.

New entries and edits show up here about a minute after saving.
If you edit an entry directly on GitHub, avoid {{ and {% in the text and keep titles in quotes. You don't need to worry about either here.

Edit

Raven 0 - Build Day 11

~5h of building

More flight tests were completed.

First thing we did for the day was to setup the ESP32 DroneBridge telemetry so we could get live logs on Mission Planner while flying. After that, we went straight into another flight test. During this flight test, we noted some behaviors that needed some fixing such as the drone drifting in position as well as lowering down even in altitude hold mode.

We learned that the vibration levels of the drone, or the VIBE parameter in mission planner, ranged from 5-15 m/s2, which was well under the acceptable value of 30 m/s2, so that was good. We also were able to filter out the motor noise for better gyro readings using harmonic notch filtering. The peaks were at 55-67 Hz so setting the INS_HNTCH_FREQ parameter to 58 filtered the motor noise out from the gyro readings. We also widened the altitude hold band so there would be more room for the stick to be in hover mode.

After those fixes, altitude hold worked perfectly, maintaining a 5.67 m altitude with ±5 cm error for about 20 seconds. The position drift was never fixed because we needed the compass to work and we have reason to believe it’s defective. Although there might be a way to do position hold with just the GPS and the gyro that we were not aware of earlier.

Next, we attempted to tune the PID controller using the AutoTune feature. We can only do one axis per flight because of the undersized battery. We chose the roll axis for the attempt. Unfortunately, the attempt failed because the battery ran out of charge. The position drift meant we had to constantly interrupt the AutoTune process which consumed power and occasionally reset the progress bar.

And… that is probably where Raven 0 ends. We learned a lot. We went from literally zero knowledge about drones to building one ourselves and successfully performing flight tests in just about a month. The first Raven did its job well. Even though we weren’t able to smooth out the rough edges, it’s time to move on and carry on the learnings to Raven 1. It will feature a camera for relative positioning as well as the docking mechanism, the main attraction for Project Raven.

albert

Photo 1 of 2Photo 2 of 2
1 / 2
Edit

Raven 0 - Build Days 9, 10

~10h of building

The first successful flight tests have been completed.

We completed the build on Day 9. The defective ESC board was replaced and all the motors drew the expected amount of current at 5% throttle. After we finished assembling the drone, we performed a number of tests. First, we pushed the overcurrent protection of the power supply to 5 A. I held down the drone and Tom pushed the throttle to reach 5 A. Next, we moved on to testing the battery. We initially used a smoke stopper but had to abandon it because it was only rated for 0.5A. It didn’t matter anyway because the drone worked in the bench supply tests.

Next, we tested if the attitude and throttle commands were being sent correctly from the transmitter and if the correct motors were adjusting. I held the drone at the bottom to feel if the drone was reacting correctly while Tom sent the commands from the RC transmitter. After a bit of finagling in Mission Planner, we got it right. We ended the day with hover tests that unfortunately became flip tests since the drone would flip aggressively even if only throttle commands were sent.

On the next day, we looked for a nice spot to test: grassy and no people in the near vicinity. Again, we started with a quick hover test. And again, the drone just flipped over and broke a propeller in the process. So we troubleshooted for a while and figured out that the drone was basically compensating roll errors incorrectly such that a positive feedback loop was occurring. After some configurations, we did another flight test and the thing flew! In fact, it flew so high that Tom lost control of the drone and it crashed once again, breaking another 2 propellers. With only 1 more extra propeller, we hoped for the best in the next test.

The next test went really well. The drone was successfully switched to the Altitude Hold state so it held its altitude for a while, then an auto land command was sent, which also worked nicely. But the drone was rotating in the yaw axis uncontrollably. After a bit of thinking, we figured out that it must be the same problem as before with the roll. So after changing a single configuration, it was time for another test.

Finally, an actual stable flight test in all attitudes was demonstrated. Numerous more tests were performed, testing pitch, roll, and yaw, as well as practicing as a drone operator. No more propellers were lost.

Next, we plan to switch to another control mode that is easier to manage, use the ESP32 to transmit telemetry to a ground station, fix the compass issue, as well as perform waypoint navigation.

albert

Photo 1 of 4Photo 2 of 4Photo 3 of 4Photo 4 of 4
1 / 4
Edit

Raven 0 - Build Days 6, 7, 8

~13h of building and troubleshooting

It has been a while since the last update. We accomplished quite a lot but it has been quite stressful.

On Day 6, we were able to 3D print the mounts using TPU but it had to be remodeled and reprinted overnight because the supports were too thin and some dimensions were off. The solder wires we bought sucked so we bought another one. Then we found a high quality one in the lab whose owner we do not know but we tried it anyway and it worked perfectly. So we planned to use that the next day instead.

On Day 7, the reprint was tested and it fit perfectly. The motors were soldered to the ESC board and the ESP32 C3 was soldered to the FC. The whole thing was assembled. The only thing between us and a flight test is another ground test. That ground test failed. A motor was acting up and was drawing too much current, about 10x as much current as the other ones at the same throttle. We felt some resistance to the rotation so we figured it might be the motor’s connections or something inside. So I opened the motor and found nothing. When it was resoldered, the resistance disappeared, so it must have been a short producing the resistance. Again, I tested it and got the same result: a 10x increase in current draw for that motor. It was time to rest.

On Day 8 (today), we did a swap test to determine whether it was the motor’s or the ESC board’s fault. It turned out to be the ESC board because the motor in question ran perfectly with normal current draw when using another ESC slot. Hence, unfortunately, we had to buy another one and wait it to arrive next week before attempting the flight tests.

As amateur drone builders, failure is the most likely option; and it is why we build prototypes in the first place.

Other than that, Tom also set up the arming switch in the transmitter earlier and a new and working LiPo battery was tested.

albert

Photo 1 of 4Photo 2 of 4Photo 3 of 4Photo 4 of 4
1 / 4
Edit

Raven 0 - Build Day 5

4h of building + 1h of troubleshooting

Today, we assembled the frame, estimated the wire extension lengths for the motors, soldered the wire extensions, then attempted to solder them all to the ESC board. Again, we had difficulty soldering to the solder pads and we ran out of solder wires.

After that, we did a little bit of troubleshooting. We tested the battery again with the charger and, for some reason, it’s only detecting 1 cell instead of 3. We may need to buy another battery if the one we have is really defective. But we’ll look for other ways to confirm it.

Lastly, we fixed the stuck filament at the lab’s 3D printer and was able to start drying the TPU. So we might be able to print and test the mounts tomorrow.

albert

Photo 1 of 2Photo 2 of 2
1 / 2
Edit

Raven 0 - Build Day 4

2h:40m of building

Tom successfully configured the RC to control the motors. The throttle and attitude controls both worked, although, whether the adjustments being made to each motor were correct is still not verified.

We learned a few things about how ArduPilot operates the motors:

  1. At idle, when the transmitter throttle stick is set to its lowest, the motors still spin at a certain level of throttle. We’re not sure what throttle percent it’s running at when it’s idle.
  2. If idle for a certain amount of time, ArduPilot automatically disarms the system which completely halts the motors.

We also did a propeller fit test and did a quick motor test with a propeller on. We did throttle tests at 5% and 10%. The tests were successful. At 10%, the motor was consuming about 0.1 A of current.

Lastly, I successfully flashed the DroneBridge firmware to ESP32-C3. I was hoping to do more than this but the firmware ran at ESP-IDF’s default (near-maximum) transmit power, which is too high for the ESP32-C3 SuperMini. As a result, its Wi-Fi access point was not detectable by other devices. I had to clone the DroneBridge repo and manually lower the transmit power to 8.5 dBm which made the access point detectable.

Next session, we should be able to finish the ESP32 DroneBridge setup, test the RC receiver and GPS mounts, and extend the motor lead wires to fit the F450 frame. If time permits, a quick flight test may be possible. No rush though.

albert

Photo 1 of 3Photo 2 of 3Photo 3 of 3
1 / 3
Edit

Raven 0 - Build Day 3

3h of building

I soldered the motors (barely) to the ESC board and tested all of them successfully in Mission Planner. It didn’t go very smoothly though. The motors wouldn’t run at first because of a loose connection from the FC to the ESC plus shorted power pins that resulted from fixing the loose connection. Thankfully, we we’re testing with a power supply (with OCP) instead of a battery because the boards could have been cooked due to the short. We lost a lot of time because we tried messing with the configurations in Mission Planner which obviously got us nowhere since it was a hardware issue.

Anyhow, we still got the motors to run and we tested it up to 15% throttle at 11.1 V simultaneously, consuming about 1.1 A of current from the power supply.

Tom was also able to successfully connect the RC receiver to the FC yesterday so the transmitter inputs have been tested and calibrated in Mission Planner. But we weren’t able to arm the system and control the motors using the RC transmitter yet.

Next up, we’ll test the motors with RC, test the ESP32 telemetry bridge, and plan the complete layout of components on the frame in preparation for flight testing next week.

albert

Photo 1 of 3Photo 2 of 3Photo 3 of 3
1 / 3
Edit

Raven 0 - Build Day 2

4h of building

Lots of soldering today, especially for the battery port of the ESC board, which took forever to do because the solder wasn’t sticking to the pads. But we finished it anyway and successfully powered up the ESC board, FC, and GPS module using a bench power supply set to 11 V and 0.5 A.

Testing the GPS was pretty fun. We had to move to the very edge of the building floor to get some signal from the satellites. Since sky was still partially covered there, we were only able to make contact with 6 satellites, which is below the recommended 10. Although we did get a 3D fix in Mission Planner and the position in the map was pretty accurate to where we were.

We weren’t able to test the RC receiver so we plan on doing that tomorrow as well as testing the motors.

albert

Photo 1 of 3Photo 2 of 3Photo 3 of 3
1 / 3
Edit

Checking out FlySky FS-i6X

Bought a AA battery pack as a temporary battery for the FS-i6X. Planning on getting rechargeable AA batteries.

Binded FS-iA6B receiver and transmitter. I hooked up a 5V power supply to channel 2 (could hook to any channel). More info on receiver:

  • hook to VCC a power supply of 4.0-8.4 V DC
  • red LED blinking = attempting to bind
  • red LED ON = bounded and connected to transmitter
  • that loop cord thing included with the receiver is used for binding the receiver to the transmitter –> insert to B
  • to enter bind mode, hold the bind key button while turning the transmitter on; wait for the ‘done’ sound

Set up a Raven mode with type airplane / glider as recommended in the internet since there is no quadcopter mode –> allows mixing of the 6 channels.

-Tom2

Photo 1 of 4Photo 2 of 4Photo 3 of 4Photo 4 of 4
1 / 4
Edit

Raven 0 - Build Day 1

2h:50m of building

We successfully flashed ArduPilot firmware into the 9iMOD flight controller (Betaflight worked out-of-the-box but we couldn’t flash the ArduPilot firmware using the Betaflight Configurator so we used dfu-util).

The accelerometer, gyroscope, and barometer all worked well and produced accurate altitude and attitude readings. We were surprised that the FC was able to accurately measure relative yaw angle as well with just the gyroscope.

The GPS module was not detected. It was receiving power but the LED power indicator was faint and flickering so the USB connection might not have enough current. That also made us defer testing the RC receiver.

The layout for the components on the frame was also planned. I will be be designing mounts for the ESP32, GPS module, and the RC receiver, and then 3D print it next session.

Next session, we plan on doing tests using a power supply. Hopefully the GPS module powers up.

albert

Photo 1 of 3Photo 2 of 3Photo 3 of 3
1 / 3
Edit

Hello

Thanks for taking an interest in Raven and Geminus!

We are Docking Confirmed. By the end of this academic year, we hope to achieve two things:

  1. Rigid, aerial, and vertical docking of two identical quadrotors
  2. Design and development of a reliable drone testing rig

We will be documenting the projects here and on YouTube (channel to be created). Stay tuned!