Coder Social home page Coder Social logo

sachu47 / control_servo_motors_using_arduino Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 5 KB

You can connect small servo motors directly to an Arduino to control the shaft position very precisely. Because servo motors use feedback to determine the position of the shaft, you can control that position very precisely.

control_servo_motors_using_arduino's Introduction

CONTROLLING SERVO MOTORS WITH ARDUINO UNO AND AN ANDROID APPLICATION

In this project, we are going to control two servo motors using an Arduino UNO and an Android app on a mobile device.

Components Used

Arduino UNO, HC-06 Bluetooth module, Servo Motors, Connecting wires, Breadboard

How to Run

Turn ON your mobile Bluetooth and open the Android app. Connect to the Bluetooth module, and when you move the sliders on the app, the servos will move accordingly.

Whenever the slider on the app is moved, the Bluetooth module will send the data from the Android app to the Arduino. The Arduino will get this data through the serial communication.

When the first slider is moved, Arduino receives a value from 0 to 90. We will map this value to 0โ€“180 to move the first servo motor. When the second slider is moved, we will receive the value from 91 to 180. Similarly, we will map this value to move the second servo.

First, make the connections for the servo motors with the Arduino.

Connect the black wire of both the servo motors with the GND of Arduino Connect the orange wire of both the motors to the 5V of Arduino Connect the yellow wire of the first motor to pin 9 of Arduino Connect the yellow wire of the second motor to pin 8 of Arduino After that, make the connections for the Bluetooth module with the Arduino.

Connect the VCC of the Bluetooth module to 5V of Arduino Connect the GND of Bluetooth module to the GND of Arduino Connect the TX of Bluetooth module to pin 10 of Arduino Connect the RX of Bluetooth module to pin 11 of Arduino

Applications

The user can control the movement of servo motors with the help of an Arduino UNO and an Android Application. The following areas where in this concept can be applied are :

Opening and Closing of doors automatically Adjusting the Solar Panel according to the changing positions of the Sun Opening and Closing Water Motors automatically in Agricultural Fields

control_servo_motors_using_arduino's People

Contributors

sachu47 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.