RoboticsControl a Servo with a Knob
Turning a potentiometer swings a servo from 0 to 180 degrees. This is how a robot arm, or any other moving part, works.
Radio controlThe FS-iA6B receiver passes every channel of the transmitter to the Arduino over a single wire (i-BUS). That way the transmitter can drive servos, lights or your own robot.
Written by the RoboHub team. A question? Write to us.
Choose a variation and the parts list updates.
Bind the receiver to the transmitter as usual: BIND jumper, power, BIND KEY on the transmitter.
Turn on the i-BUS output in the FS-i6X menu: System → RX Setup → Output mode → i-BUS.
Connect the signal of the receiver's i-BUS (SERVO) port to the Mega's RX1 pin (19), power to 5V and ground to ground. On an Uno R3 the only serial port is taken by USB, so use a Mega here: the code is written for it.
Install the IBusBM library.
#include <IBusBM.h>
#include <Servo.h>
IBusBM ibus;
Servo servo;
void setup() {
ibus.begin(Serial1); // receiver i-BUS -> Mega RX1 (19)
servo.attach(9);
}
void loop() {
int ch1 = ibus.readChannel(0); // 1000-2000 us
if (ch1 >= 1000) servo.writeMicroseconds(ch1);
delay(20);
}Move the first channel's stick and the servo follows.

Illustration, made with AI
Illustration: at a wooden garden table, hands hold an RC transmitter; on the table are an Arduino Mega, a receiver and a servo.
Step 5: Try it
RoboticsTurning a potentiometer swings a servo from 0 to 180 degrees. This is how a robot arm, or any other moving part, works.
SensorsAn ultrasonic sensor measures the distance. Three LEDs show how close the obstacle is, and the buzzer beeps faster the closer you get.
Home and IoTBring your hand close and the lid lifts by itself. An ultrasonic sensor notices the hand, and a servo opens the lid and closes it three seconds after the hand has gone.