Pluto Logo

by Drona Aviation

Profile
Menu
All Projects
Hooter
ADD-ON MODULE
Hooter on Drone

Hooter

ACTUATORBeginner
X2_HOOTR

Start your drone programming journey with this beginner-friendly project. You'll learn the fundamentals of GPIO pin control and timer-based scheduling by creating a beeping buzzer system - the building blocks for all sensor-actuator interactions in drone programming.

DIFFICULTYBeginner
PORTRC
SIGNALDigital (GPIO)

WHAT YOU'LL LEARN

  • Controlling GPIO pins (setting HIGH and LOW states)
  • Setting up and using repeating timers for periodic events
  • Understanding the On Start / Pluto Loop / On Stop program structure
  • Basic actuator interfacing with the RC port

DOWNLOADS

PlutoBlocks Code
Coming Soon
HEX Firmware File
GitHub Latest.hex
1

The Challenge

✨

Build a program to add audio generating ability to the Pluto drone. Use the buzzer module to create a rhythmic beeping sound.

2

Understanding the Add-On

The Hooter module contains an active buzzer that produces a loud beep when powered. Unlike passive buzzers that need a specific frequency signal, active buzzers simply need a HIGH signal to activate. This makes them ideal for beginners learning GPIO control - just set the pin HIGH to beep, LOW to silence.

3

Wiring & Connections

Connect the Hooter to the RC port on the Primus V5/X2 board. The Hooter uses only GND and Signal pins. When Signal goes HIGH, the buzzer activates. Make sure the connector is firmly seated in the RC port.

Primus V5/X2 PinPeripheral
GND on RC portGND on Hooter_module
Signal on RC portVCC on Hooter_module
4

How It Works

Approach We utilise a repeating timer to create a 1-second delay between toggling the buzzer GPIO pin ON and OFF, creating a rhythmic beeping pattern. Code Logic Explained On Start: GPIO_1 (RC port signal pin) is set to LOW, ensuring the buzzer starts silent. Timer1 is configured as a repeating timer with a 1000ms (1 second) interval.Pluto Loop: The loop checks Timer1 on each cycle. When Timer1 triggers (every 1 second), GPIO_1 is set HIGH, turning the buzzer ON for one loop cycle. On all other cycles, GPIO_1 is set LOW, keeping the buzzer silent. This creates a periodic beep pattern where the buzzer sounds briefly every second.On Stop: Timer1 is reset to prevent any lingering timer events.

5

Real-World Applications

Drone proximity warning system Audio-based drone locator Emergency alert siren on drones

6

Try Further

Ready for the next challenge? Try these extensions to deepen your understanding. 1Use multiple hooter modules with different timer values to create a simple melody. 2Connect a sensor to dynamically change Timer1's duration based on environmental input. 3Build a text-to-Morse-Code generator that buzzes out messages. Pluto Drone Add-On Projects — Compatible with Pluto 1.2 (Primus V5) & Pluto X (Primus X2) — Drona Aviation

7

PlutoBlocks Code

Open this code in PlutoBlocks to program your drone. The visual blocks below show the complete solution.

PlutoBlocks Code

PlutoBlocks visual code for Hooter project

8

PlutoIDE Code (C++)

✨

PlutoIDE C++ code for this module is coming soon. Stay tuned for updates!

9

Real-World Applications

Drone proximity warning system
Audio-based drone locator
Emergency alert siren on drones
10

Try Further

Ready for the next challenge? Try these extensions to deepen your understanding.

1
Use multiple hooter modules with different timer values to create a simple melody.
2
Connect a sensor to dynamically change Timer1's duration based on environmental input.
3
Build a text-to-Morse-Code generator that buzzes out messages.