Connect Maduino UNO to Servo Motor

by RonFrtek in Circuits > Arduino

1141 Views, 2 Favorites, 0 Comments

Connect Maduino UNO to Servo Motor

Connect Maduino UNO to Servo Motor

In this tutorial we will use Arduino UNO , servo motor and Visuino to rotate the servo motor. Watch a demonstration video.

What You Will Need

Maduino UNO_2-1000x750.JPG
FIYMZB0JJOK44FK.LARGE.jpg
micro-servo-sg90-3-600x600.png

All the modules are from makerfabs. They have the best quality modules that are Light-years ahead the competition, also with best affordable prices.

Arduino UNO

Jumper wires

Servo motor

Visuino program: Download Visuino

The Circuit

2018-09-04_15-41-28.jpg

Connect Maduino UNO pin (gnd) to Servo motor brown wire

Connect Maduino UNO pin (5V) to Servo motor red wire

Connect Maduino UNO pin Digital (2) to Servo motor red yellow

Start Visuino, and Select the Arduino UNO Board Type

FBN0415JHKUAZBP.LARGE.jpg
F3JTH3DJHKUAZBS.LARGE.jpg

To start programming the Arduino, you will need to have the Arduino IDE installed from here: http://www.arduino.cc/.

Please be aware that there are some critical bugs in Arduino IDE 1.6.6. Make sure that you install 1.6.7 or higher, otherwise this Instructable will not work! If you have not done follow the steps in this Instructable to setup the Arduino IDE to program ESP 8266! The Visuino:https://www.visuino.com also needs to be installed. Start Visuino as shown in the first picture Click on the "Tools" button on the Arduino component (Picture 1) in Visuino When the dialog appears, select "Arduino UNO" as shown on Picture 2

In Visuino Add Components

2018-09-04_15-09-26.jpg
2018-09-04_15-21-07.jpg
  • Add SineAnalogGenerator component and set frequency to 0.5
  • Add Servo component

In Visuino: ​Connecting Components

2018-09-04_15-09-26.jpg

Connect Arduino digital out pin[2] to Servo1 pin[Out]

Connect SineAnalogGenerator1 pin[out] to Servo1 pin[In]

Generate, Compile, and Upload the Arduino Code

FYR2RO8JHKU9T7H.LARGE.jpg
FY7O7QJJHKU9T7G.LARGE.jpg

In Visuino, Press F9 or click on the button shown on Picture 1 to generate the Arduino code, and open the Arduino IDE

In the Arduino IDE, click on the Upload button, to compile and upload the code (Picture 2)

Play

If you power the Maduino UNO module, the servo motor will start to rotate right and left.

Congratulations! You have completed your project with Visuino. Also attached is the Visuino project, that I created for this Instructable. You can download and open it in Visuino: https://www.visuino.eu