Servo Control

 

Download Project 

 

This example project demonstrates how to create a model to control a servo.

 

Target

Arduino Uno is used in this project. However, any supported micro-controller board can be used.

 

Description

A variable voltage is applied to A0 through a variable resistor and a servo is connected to the pin-3 of the target board as shown in the circuit diagram. A model is created to control the servo angle based on the voltage amplitude at A0. Suitable mapping ranges are configured in the ADC input block and the servo block.

 

Circuit Diagram

 

Model

 

References

Please go through our video tutorials, tutorial projects and CASP main documentation for getting started with CASP.