Wireless RC Robot with Arduino and XBees

Pages
Contributors: bboyho
Favorited Favorite 2

Coding Challenges

Broadcasting to an Army of Robots

Remember the GIF shown at the beginning of the tutorial? They were used to stress test the XBee 3's and examples used in this tutorial. Instead of controlling one robot, try broadcasting the commands from one controller to several robots! Just make sure to configure your XBees with unique addresses and adjust the controller's configuration for broadcasting.

Wireless Joystick Controlling 3 Robots Simultaneously

More with Buttons

The RedBot motor speed was set at one intensity. Instead of one set motor intensity for each character, try dividing the motor intensity for different characters by utilizing the other buttons. Or try adjusting the code to have the robot pivot left or right.

Methods of Transmitting Serial

Instead of sending one character to move, try adjusting the code to transmit different motor intensities and utilize the XBee's API packet structure. Or try sending serial through a mesh network configuration. You'll need to parse the data into an array and convert the string into numbers similar to the example code provided in the Remote Tank Steering Motor Controller. Instead of sending a character to a RedBot, the example had sent a string of characters to an Arduino with the Serial Controlled Motor Driver.

Controlling with Sensors

Instead of using buttons and a joystick, try using a motion sensor to control the RedBot based on movement like the RedBot''s accelerometer included in the kit.

SparkFun Qwiic Flex Glove Controller

SparkFun Qwiic Flex Glove Controller

SEN-14666
$39.95
SparkFun RedBot Sensor - Accelerometer

SparkFun RedBot Sensor - Accelerometer

SEN-12589
$6.95

Or make a glove to control the RedBot based on gestures.

Wireless Glove Controller

April 24, 2019

Build a wireless glove controller with Arduinos to trigger an LED using XBees!

Wireless Gesture Controlled Robot

April 25, 2019

Control the RedBot wirelessly based on the movement of your hand using an accelerometer, Arduino, and XBees!

Hardware Upgrades

Remember, there are spots for additional Actobotics hardware cut into the Shadow Chassis!

Actobotics upgrades!

Try adding a servo claw to pick up a small object like a pen. Here are a servos and Actobotics parts from our catalog to check out.

Servo - Generic (Sub-Micro Size)

Servo - Generic (Sub-Micro Size)

ROB-09065
$8.95 $7.16
11
Pan/Tilt Bracket Kit (Multi Attachment)

Pan/Tilt Bracket Kit (Multi Attachment)

ROB-10335
$5.95
3
Micro Gripper Kit B - Hub Mount

Micro Gripper Kit B - Hub Mount

ROB-13177
$5.95
Aluminum Channel - 4.50"

Aluminum Channel - 4.50"

ROB-12122
$4.99

LiPo Battery Monitoring

If you looked through the guide for the wireless controller, you'll notice that there are examples to monitor your LiPo battery! Try to combine code to control the RedBot with the LiPo Battery Monitor and micro OLED display .

LiPo Battery Monitoring with the micro OLED
LiPo Battery Monitoring with the micro OLED

Sensing the Environment

Try sending data back from the line following sensors or encoders used in the RedBot kit back to the controller. Better yet, add the air quality sensor or humidity & temperature sensor to monitor the environment at a distance like a planetary rover. You'll need either a serial monitor or micro OLED connected to be able to view the data.

SparkFun Air Quality Breakout - CCS811

SparkFun Air Quality Breakout - CCS811

SEN-14193
$20.95 $16.76
7
SparkFun Humidity and Temperature Sensor Breakout - Si7021

SparkFun Humidity and Temperature Sensor Breakout - Si7021

SEN-13763
$7.95
12

Efficiently Sending Commands

Try modifying the code to be efficient and save power instead of constantly sending commands. Currently, the controller repeatedly sends a command to notify the RedBot to stop, even when we are not pressing any buttons.