Servo control with a Yún and a Pi

Lead Image © Phil Wohlrab, 123RF.com

In Control

We show how to wirelessly control pan/tilt servos with an Arduino Yún and a Raspberry Pi.

A while back, I gave a talk at Fossetcon about wirelessly controlling pan/tilt servos running on an Arduino Yún [1]. The on-screen sliders worked on a Linux notebook with code written using the Processing language [2]. So, I asked myself, "Could a Raspberry Pi replace the notebook for this job?"

It turns out that moving the Processing code over to a Pi is fairly straightforward. However, there are plenty of moving parts, even for a simple multidevice "system" like this one, and making the pieces all work right together can be a challenge.

The major components of this project include the Arduino Yún, its servos, and the Arduino code needed to interpret the data sent from the Raspberry Pi. There's also the Raspberry Pi hardware and its Processing code used to display and manage the sliders, the local area network (LAN) needed to connect the two parts together, and, finally, the Linux notebook used to program the Yún, which I'll explain in a minute.

[...]

Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF

Pages: 6

Price $2.95
(incl. VAT)

Buy Raspberry Pi Geek

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content