Mini Maestro 12: Official Pololu method for Arduino Uno to select between multiple stored sequences

Title:

Mini Maestro 12: Official Pololu method for Arduino Uno to select between multiple stored sequences

⸻

Hello Pololu Engineers,

I am working on a robot using a Mini Maestro 12 and an Arduino Uno.

The Arduino reads a FlySky receiver CH6 using a 3-position switch. The receiver is working correctly and the Arduino reads approximately:

Position 1 = 990 µs

Position 2 = 1487 µs

Position 3 = 1979 µs

The Arduino TX (Pin 1) is connected to the Maestro RX, with a common ground. The Maestro is configured for UART with a fixed baud rate of 9600.

In Maestro Control Center I have Sequence 1, Sequence 2 and Sequence 3 stored in the same project, and each sequence plays correctly from the Sequence tab.

When I view the compiled code, it appears to contain only the currently selected sequence.

My goal is for the Arduino Uno to select and start Sequence 1, Sequence 2 or Sequence 3 depending on the CH6 switch position.

Before making any changes to my Maestro project, I would like to follow the official Pololu-recommended method.

Could you please advise the correct approach?

Should I:

  • Use “Copy All Sequences to Script”?
  • Create a master script that calls each sequence?
  • Trigger script subroutines from the Arduino?
  • Or is there another method you recommend?

I would prefer to follow the method that Pololu recommends rather than creating my own solution.

I have attached screenshots of my Sequence tab and the compiled code in case they are helpful.

If it would help further, I am happy to provide my Maestro settings file or any additional screenshots.

Thank you very much for your time.

Kind regards,

Charlie


Hello, Charlie.

I recommend you use the “Copy All Sequences to Script” option from the Sequence tab. In the script you should not need a main loop (or you can have an empty main loop), but replace the return commands at the end of your sequence subroutines with quit. Apply those settings.

From there, try out the Script.ino example program from our Maestro library for Arduino with minimal modification. Once that is working, you should be able to modify it as needed or apply the procedure to your larger program.

If you try that and run into problems, please post some pictures of your connections, a copy of your Arduino code, and a copy of your Maestro settings file. You can save a copy of your settings file from the “File” drop-down menu of the Maestro Control Center while the controller is connected.

- Patrick

Hello Patrick,

Thank you very much for your helpful reply and for taking the time to explain the recommended procedure.

I really appreciate your guidance. I will follow your suggested approach step by step:

  • Use Copy All Sequences to Script.
  • Replace the return commands at the end of the sequence subroutines with quit.
  • Apply the script.
  • Then start with the Script.ino example from the Maestro Arduino library before integrating it into my larger FlySky project.

I wanted to make sure I was following the official Pololu method, so your advice has been extremely helpful.

If I run into any problems, I’ll post my wiring, Arduino code, and Maestro settings file as you suggested.

Thank you again for your excellent support.

Kind regards,

Charlie

1 Like

Subject: FlySky CH6 signal problem

Hi Patrick,

Thank you again for your help with our Maestro controllers and servos. Your previous advice about using “Copy All Sequences to Script” and replacing the sequence return commands with quit helped us get the system working.

We now have a new problem and I was hoping you might be able to point us in the right direction.

The system was working correctly, but something has changed and we can no longer get the FlySky CH6 control signal to change at the Arduino.

Our setup is:

  • FlySky FS-i6X transmitter
  • FlySky FS-iA10B receiver
  • Genuine Arduino UNO R3
  • Two Pololu Maestro servo controllers
  • Servos connected to the Maestro controllers

When everything is powered on and connected, and CH6 is connected from the receiver to Arduino D3, the Arduino Serial Monitor shows a CH6 value of approximately 1490 µs, but the number does not change when we move the SWC three-position switch.

(The Serial Monitor is not responding to the transmitter control; it simply stays on the same set value.)

Because the CH6 value is not changing, the CH6 trigger is not activating the programmed Maestro/servo movement. This is why the transmitter control is currently not operating the servos.

We went back to our original Arduino program that previously worked:

Robbie_CH6_TWO-MAESTROS-WORKING-2026-08-26

That program reads CH6 on D3 using pulseIn().

We also tested the Arduino D3 input independently by generating a PWM signal from Arduino D9 and connecting D9 → D3. D3 consistently measured approximately 1516–1523 µs, so D3 itself appears to be working.

We have thoroughly checked all the wiring and connections, including changing and rechecking the signal connections during troubleshooting. We have returned everything to the known-working arrangement:

Receiver CH1 → Arduino D2
Receiver CH6 → Arduino D3
Receiver + → Arduino 5V
Receiver GND → Arduino GND

We have also checked the physical connections and confirmed that the wires are seated correctly.

The Maestro boards are currently disconnected while we diagnose this basic signal problem.

At this stage, we are not sure whether the problem is with the FlySky FS-i6X transmitter configuration, the FS-iA10B receiver’s CH6 output, or somewhere else in the signal path.

Could you please advise us on what you think is the most likely cause and what you would check next?

If this is outside the Maestro side of things, do you know of another Pololu engineer or someone you would recommend who could help us diagnose the FlySky/Arduino signal problem?

Thank you again for your previous help, Patrick.

Kind regards,
Charlie

Your CH6 readings look nicely separated, so I think it is better to keep the Arduino side very simple and let the Maestro handle the sequence logic.

Hi, thanks for your reply.

Just to clarify, the CH6 readings are not separated anymore. That is actually the problem we are trying to diagnose.

The system was working correctly before, but now the Serial Monitor stays around 1490 µs and does not change at all when we move the SWC three-position switch.

We can see a CH6 value, but it is essentially fixed at the same value regardless of the switch position. Because of this, the CH6 trigger cannot activate the Maestro/servo movement.

We have independently tested Arduino D3 with a known PWM signal from D9, and D3 reads correctly.

We are trying to determine why the CH6 signal from the FS-iA10B receiver is no longer changing at D3 even though this setup previously worked.

Any advice on where you would look next would be greatly appreciated

Since the issue does not seem related to any of our products, the support we can offer will be limited, but here are a few ideas to consider.

You mentioned going back and trying an older Arduino program that previously worked. Can you clarify whether that program still works now? If it does, then given the other things you checked so far, you are probably dealing with a code problem in your new program.

If the old program does not work, then it seems likely that you are dealing with either a connection issue or some problem with the signal from the FlySky channel. The easiest way to confirm that would be to separate that signal from the rest of your system and look at it with an oscilloscope.

- Patrick

Hi Patrick,

Thank you very much for taking the time to look into this and for giving us those steps to try. I really appreciate your help.

I will work through those steps and see how we go. I’ll let you know what we find.

Thanks again, Patrick. We really appreciate your assistance.

Kind regards,

Charlie

Hi Patrick,

You won’t believe what we finally discovered! :joy:

I carried out all of the tests you suggested, including going back to the older Arduino program, and everything was actually working. We couldn’t find any fault with the FlySky transmitter, receiver, Arduino or the program.

After all that troubleshooting, I eventually found the problem.

It was the little lock/AutoScroll button on the right-hand side at the top of the black Serial Monitor/output screen in the Arduino IDE. I must have accidentally pressed it, which meant the monitor wasn’t showing the live changing readings properly. Because it was such a small button and was right up there on the side of the black screen, I couldn’t see what was causing the problem.

Once I unlocked it and had the AutoScroll working properly, CH6 immediately started changing as it should.

So after everything we went through, Robbie was actually working perfectly all along!

Thank you very much, Patrick, for your advice and for taking the time to help us. I did carry out all the tests you suggested, and they helped me confirm that there wasn’t actually a fault with the hardware.

I really appreciate your help and patience.

Kind regards,

Charlie

1 Like

I’m glad to hear that you figured it out! Thanks for letting us know.

By the way, I also like keeping the show timestamps option enabled when I’m using the Arduino Serial Monitor since that’s another way that you can quickly know that new data is coming in.

- Patrick

Patrick,

Thanks again for your help. I really appreciate it.

And thanks for the tip about keeping the timestamps enabled in the Arduino Serial Monitor. I’ll definitely keep that in mind it will make it much easier to see when new data is coming through.

Thanks again, Patrick.

Charlie