Skip to content

Simple iOS app to connect to an RC controller board over UDP

Notifications You must be signed in to change notification settings

bodri/RcServoControlApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RcServoControlApp

This is a Swift app which connects to an RC Servo controller board wirelessly and controls pitch and roll servos based on the iPhone motion data. The controller board creates a Wifi Access Point and listens for upcomming UDP packets which contains the servo position information as a stream of bytes with the following general format:

Servo index | Position MSB | Position LSB

The servo index is either 1 - pitch or 2 - roll. The servo position is calculated from the phone x, y tilt degrees and converted to microseconds between 1000 and 2000. The refresh rate is 20 milliseconds.

The app is using the new Network.framework to establish the UDP connection, so it is only running on iOS 12 and above. This is a POC app to demostrate how easy to use UDP connection in iOS 12.

The accompanying ESP8266 controller board project can be found here:

Github repository

Please also look at the video how it works:

Youtube video

About

Simple iOS app to connect to an RC controller board over UDP

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages