Softivation

Why T3 Gemstone doesn't set up like a Pixhawk

The T3 Gemstone O1 has no firmware flashing step; ArduPilot is installed on the board as a package. Here is where setup and wiring differ from a Pixhawk.

Furkan IŞIKAY 6 min read

Baykar and the T3 Foundation have introduced the T3 Gemstone O1, which they developed together. TEKNOFEST teams' first question is obvious: can this board replace a Pixhawk?

It can. But the setup doesn't resemble the steps you know, because you don't download firmware and write it from the ground station.

The setup model changes

In today's setup the work is split in two. Flight control sits on the Pixhawk, image processing runs on a companion computer, and a serial link connects the two.

The Gemstone puts both jobs on a single board. Here ArduPilot is not firmware flashed to the board; it is a service running on Linux.

In the figure below, look at where the cables go in the two setups. A single pin header replaces the labeled sockets on the Pixhawk, and the serial link between the two boards disappears.

Where the cables go: two boards versus one board

At the top, the GPS, receiver, and telemetry go to the Pixhawk's labeled sockets, and the Pixhawk connects to the Raspberry Pi over UART. At the bottom, the same three devices go to the GPIO pins on the T3 Gemstone's 40-pin header, with flight control and image processing on the same board
What to look at: the gray socket labels at the top become the yellow-ringed pin names at the bottom, and the UART link between the two boards disappears. The positions on the header are schematic; find each pin by its name in the board's pinout table.

No labeled sockets, just a forty-pin header

On a Pixhawk you plug the GPS into the socket labeled GPS and the receiver into the RC input. On the Gemstone, most flight connections go through a forty-pin header laid out like the Raspberry Pi's.

The RC input is on GPIO-15. The GPS serial line is on GPIO-4 and GPIO-17, the compass I2C line on GPIO-2 and GPIO-3, and telemetry on GPIO-7 and GPIO-24. All of it is in the table below:

PinInterfaceFunction
GPIO-15RCIn SBUSRC receiver
GPIO-4 / GPIO-17UART-MAIN6GPS serial line
GPIO-2 / GPIO-3I2C-MCU0GPS compass, ADS1115
GPIO-7 / GPIO-24UART-WKUP0Telemetry
GPIO-5 / 14 / 6 / 13PWM-0A/0B/1A/1BRCOut 1 to 4
GPIO-12 / 16 / 18PWM-ECAP0/1/2RCOut 5 to 7
GPIO-26BuzzerAudible alert

The table comes from the pinout section of the official Turkish documentation. This makes wiring a more demanding job. A line plugged into the wrong pin doesn't give itself away the way a cable in the wrong socket does.

Example: on a Pixhawk you plugged the GPS into the socket labeled GPS and were done. On the Gemstone, two cables come out of the same module: the serial line goes to GPIO-4 and GPIO-17, and the compass line to GPIO-2 and GPIO-3. If the ground station doesn't see the GPS, these four pins are the first place to look. Since there are no socket labels, you have to find the pin by its name in the pinout table, not by counting along the header.

No firmware flashing step

The official Turkish documentation describes installation with a package manager. You boot the board, install the package, declare the peripherals, then enable the vehicle service.

StepPixhawk · flashing firmwareGemstone · installing a package
1Download the firmware fileBoot the board with Linux
2Connect the board over USBInstall the package
3Write it from the ground stationAdd the device-tree overlay
4The board restartsRestart the board
5Set the parametersEnable the vehicle service

On the Gemstone, Linux boots every time the board powers up and the service starts automatically. The package and service commands look like this:

Output
gemstone@t3-gem-o1:~$ sudo apt install t3-gem-ardupilot
gemstone@t3-gem-o1:~$ sudo systemctl enable arducopter.service
gemstone@t3-gem-o1:~$ sudo systemctl start arducopter.service

These lines are taken verbatim from the official T3 Gemstone Turkish documentation.

The easiest thing to miss about the service model is that only one vehicle service can run at a time. When you switch from Copter to Plane, you first need to disable the current service.

Your Raspberry Pi code won't run as is

The header is described as Raspberry Pi compatible, and some things really do match: the pin names from GPIO-2 to GPIO-27, the physical layout of the header, the 3v3 and 5v supply pins. But if you look at the pin table in ArduPilot's source code (GPIO_T3_GEM_O1.cpp), the numbers behind the names don't match.

Output
[T3_GEM_O1_GPIO_LED_GREEN] = 380,
[T3_GEM_O1_GPIO_LED_RED]   = 381,
[T3_GEM_O1_GPIO2]          = 506,
[T3_GEM_O1_GPIO3]          = 505,
[T3_GEM_O1_GPIO4]          = 439,
[T3_GEM_O1_GPIO5]          = 343,

Here GPIO-2 corresponds to sysfs pin 506. The pin with the same name has a different number on a Raspberry Pi.

That is why code with a pin number hard-coded into it silently drives the wrong pin when you port it. It doesn't raise an error; it just doesn't move the pin you expected.

Error messages and four common situations

The official documentation describes troubleshooting with four situation headings, not with verbatim error messages. Below are those headings and the first commands to check.

The ArduPilot service won't start

First look at the output of systemctl status arducopter.service, then at the log from journalctl -u arducopter.service -r.

First verify the network, then check on the board that the stream is open with netstat -u -n | grep 14550.

GPS isn't detected

You need to connect the GPS to the UART-MAIN6 and I2C-MCU0 lines. Check pins GPIO-4, GPIO-17, GPIO-2, and GPIO-3.

PWM outputs or serial ports don't work

Verify that the overlays are loaded with ls /proc/device-tree/chosen/overlays. If any are missing, go back to the uEnv.txt configuration.

Does ArduPilot officially support this board

Yes, board support has been merged upstream. ArduPilot's common code has a separate subtype number for the board (HAL_BOARD_SUBTYPE_LINUX_T3_GEM_O1, 1029) and its own GPIO file (GPIO_T3_GEM_O1.cpp).

In the Copter 4.7.0 release notes the line reads exactly: T3 Gemstone O1 Linux autopilot support (@ghost, PR:31232). The board's official ArduPilot page is also live.

What's missing is field records. There is no independent user report yet of anyone flying with the board. Upstream support is real; field experience isn't there yet.

Before you decide

A board being good doesn't mean you need to switch today. For a team with a competition calendar, the real question is timing. Before switching, talk through these five questions as a team:

  • When is your competition? You can't rehearse until the board is in your hands.
  • Does anyone on the team know Linux? Managing the service, overlays, and logs is Linux work.
  • Is image processing a requirement? This is where the single board gives its main advantage.
  • Is your current setup flying? Don't change a setup that flies right before a competition.
  • Do you have a backup plan? If the single board fails, you need a second path.

These questions are about your team's situation, not hardware features. Even if the board is good, switching at the wrong time can cost you the competition.

Read more

Choosing an autopilot, when a Linux-based autopilot makes sense, and all the flight connections on the board's header are covered in the Drone Basics: From Sensors to Flight course. For other topics, see the all courses page.

Was this article helpful?

Free resourceTEKNOFEST UAV software readiness checklistCheck off your team's software readiness stage by stage on a printable list.