Flying Mosquito

THE DESIGN

Design A, the Free Flyer, Rev A. The parts, how they work together, and what we still have to prove before ordering. Numbers marked as estimates get checked with calipers and a scale when the parts arrive.

How one run works

  1. 1Press GO on the control boxThe Pi in the box checks the battery and tells the micro:bit. The micro:bit radios GO to the MS-2000, so the turret starts its run.
  2. 2It takes off and holds stillThe Pi talks to the drone over the drone’s own WiFi. A camera under the drone watches the floor and a laser range finder measures height, so it hovers without anyone steering.
  3. 3It flies its patternSlow loops and bobs inside the net, about 3 feet from the turret, with the white window always facing the turret.
  4. 4The laser tags the windowThe whole white face glows. A light sensor behind it feels the glow.
  5. 5HIT goes back to the turretThe XIAO radio in the body tells the Pi, the Pi tells the micro:bit, and the micro:bit radios HIT on group 7. The turret cheers, and the box saves the hit.
  6. 6It lands on its padAfter 30 seconds the drone comes down onto the cone cups and the box sends STOP.

The pieces

F numbers are the printed parts.

Bought
LiteWing drone
A drone whose frame is its circuit board: ESP32-S3 computer, motion sensor, 4 motors, 55 mm props. 100 x 100 mm and about 45 g. Flown from Python with the same library as the Crazyflie research drone.
Bought
Positioning module
Plugs in under the drone. A floor camera (like a computer mouse) and a laser range finder, so the drone can hold its spot. 8 g.
Printed
F1 prop guard and legs
A fence around the outside of all four props, collars that push onto the motors, and four legs to land on. It never touches the board. 6.9 g.
Printed
F2 mosquito body and hit window
A white 40 mm window on the front (0.8 mm thick so it glows), the light sensor behind it, the XIAO radio inside, and a tail. The battery strap threads through its floor. 8.1 g.
Printed
F4 launch pad
A 150 mm square with four cone cups. The legs drop into the cups, so every run starts in the same spot, facing the turret.
Printed
F5 control box
Sits outside the net. micro:bit window and the big GO button on top; Pi Zero 2 W and a power bank inside; charge port and power switch on the sides.
Bought
The net
A pop-up bug habitat with the front panel rolled open toward the turret. It holds the flight mat, the pad, and any crash.

Who talks to whom

Three links carry a hit from the mosquito to the turret in well under half a second.

Light sensorwire →XIAO (in the body)drone WiFi →Pi (in the box)USB →micro:bit (in the box)radio 7 →MS-2000 turret
Drone WiFi
The drone makes its own WiFi network. The Pi joins it to fly the drone, and the XIAO joins it to report hits.
USB
The Pi and the micro:bit in the box talk over a USB cable.
micro:bit radio, group 7
The micro:bit sends GO, HIT and STOP, exactly like the MS-2000 wand. The turret already knows these words.

Requirements

What it must do, why, and how Rev A does it. Final once Dad approves them and the budget.

  1. 1Flies by itself during a runWhy: Nobody steers it. That is the whole point.Rev A: Python flight script on the Pi, position hold from the floor camera
  2. 2Stays in a zone about 2 ft wide, 2 ft deep, and 1.5 ft tall, centered 3 ft from the turretWhy: That is where the laser and the camera line up, and it fits in the camera view.Rev A: Pattern 0.4 m across at 0.4 m high; lands if it drifts
  3. 3Hit window at least 40 mm wide, hit pod lightWhy: The dot can land 13 mm off the camera aim between 2 and 4 ft.Rev A: 40 mm white window, 8 g body
  4. 4Sends HIT on micro:bit radio group 7 within half a secondWhy: The MS-2000 turret already cheers on HIT, so the turret code does not change.Rev A: XIAO to Pi over WiFi, Pi to micro:bit over USB, micro:bit radio
  5. 5Push button start and a launch padWhy: One press starts a run. The drone always starts in the same spot, facing the turret.Rev A: GO button on the control box; cone cups on the pad
  6. 6Guards on all props, flies inside a netWhy: Spinning props and kids do not mix, and the net stops crashes and the beam.Rev A: Fence guard; pop-up bug habitat with the front open
  7. 7At least 5 minutes of flying per chargeWhy: Five 30 second runs plus takeoffs and landings.Rev A: Three batteries, swap between runs
  8. 8Slow enough for the turret to followWhy: The turret fires at most once a second.Rev A: Starts at 0.2 m/s; the first test sets the top speed
  9. 9Added weight 25 g or lessWhy: That is what the drone can lift with 55 mm props, keeping about 40% extra push in reserve (our math).Rev A: Rev A estimate 26 g: the Can it fly? experiment decides

Weight budget

A drone can only lift so much. The LiteWing lifts about 25 g extra with 55 mm props.

PartGrams
LiteWing drone, no battery45.0
Battery16.0
Positioning moduleADDED8.0
Prop guard and legs (F1)ADDED6.9
Body (F2)ADDED5.5
Hit window (F2)ADDED2.6
XIAO ESP32-C3ADDED1.5
Light sensor and wiresADDED1.0
Wings (clear plastic)ADDED0.4
Added load (rated about 25 g)25.9
Takeoff weight86.9

Rev A is about 1 g over. Our own math says the rating keeps about 40% extra push in reserve, so 1 g over still leaves plenty (see Can it fly?). The December experiment decides: if the drone climbs well and flies 5 minutes, it stays. If not, the fix is 65 mm props, which the LiteWing supports, and a bigger guard. That would be the first change order.

The four designs

A is picked. C is the backup, like Design B was for the MS-2000.

Design APicked

Free Flyer

A palm size ESP32 drone (LiteWing) with a floor camera and a height sensor so it can hold its place. Printed shell, guard, hit pod and pad.

Good: Really flies by itself. Small. The cheapest way to get true hands-off flight.
Hard: The most code, and it has to be tuned so it does not drift.
Design B

Crazyflie

The same idea on a Crazyflie research drone with a flow sensor.

Good: The steadiest flying and the best instructions. The smallest.
Hard: Costs several times more, and needs a laptop at the demo.
Design CBackup

Boom Flyer

The mosquito rides on the end of a light rod that spins on the base. A micro:bit runs everything.

Good: All MakeCode, cheap, safe, the same speed every time.
Hard: It does not really fly free, and the camera sees the rod.
Design D

micro:bit Drone

An Air:bit drone kit with a micro:bit brain and a printed mosquito frame.

Good: Addie codes it in MakeCode and it already speaks micro:bit radio.
Hard: It cannot hold its place by itself, so a person has to fly it. The biggest.

Risks and how we handle them

Too heavy
The added load is about 26 g against 25 g rated. Our math says that still leaves a 1.38 push-to-weight ratio.
Plan: The Can it fly? experiment in December. Fix if needed: go lighter or 65 mm props, as a change order.
Drifting
Position hold uses a floor camera. A shiny or plain floor makes it slide.
Plan: The flight mat, and the script lands if it leaves the zone.
WiFi
The Pi and the XIAO both join the drone WiFi.
Plan: Test both connected at once in week 1.
The turret camera
The turret learns one target at a time.
Plan: Flyer tests only after the MS-2000 experiments; teach the stuffed mosquito back after.
Battery safety
LiPo batteries can swell or catch fire if they are crushed, shorted or overcharged.
Plan: Charge on a hard surface with a grown-up nearby; unplug after flying; store at half charge.
The fair
Drones may not be allowed at the exhibition.
Plan: Ask Miss Taggart. If not, it is a home demo and a video.