arduino code move servo when serial character is recieved via USB to PC

Closed Posted 6 years ago Paid on delivery
Closed Paid on delivery

Write a code in arduino to move servo 40 degrees, wait 3 sec and return to 0 degrees.

I have a code now but servo keeps vibrating when return to 0 degrees.

Arduino UNO

GOTECK GS-5515MG Servo

6V external supply for servo

This is actual CODE:

// Include the Servo library

#include <Servo.h>

// Declare the Servo pin

int servoPin = 3;

// Create a servo object

Servo Servo1;

void setup() {

// We need to attach the servo to the used pin number

[login to view URL](servoPin);

[login to view URL](9600);

[login to view URL]("<Listo para recibir datos>");

}

char receivedChar;

boolean newData = false;

void loop() {

recvOneChar();

showNewData();

}

void recvOneChar() {

if ([login to view URL]() > 0) {

receivedChar = [login to view URL]();

newData = true;

}

}

void showNewData() {

if (newData == true) {

[login to view URL]("Esta en ... ");

[login to view URL](receivedChar);

// Make servo go to 50 degrees

// Mueve servo a 50 grados

[login to view URL](50);

delay(1000);

[login to view URL](0);

newData = false;

}

}

Arduino

Project ID: #14948544

About the project

49 proposals Remote project Active 6 years ago

49 freelancers are bidding on average $75 for this job

binyameen441

Hi, I'm interested in working on this project. Please, consider sending a message so that we can discuss the project details exclusively. Thank you Stay tuned, I'm still working on this proposal.

$55 USD in 3 days
(153 Reviews)
6.9
maxbul

Hello. I can help you quickly. Please contact me in chat Relevant Skills and Experience I work with Arduino since 2010 and have large experience Proposed Milestones $30 USD - Debug the code for Arduino

$30 USD in 0 days
(100 Reviews)
5.9
microembedded

hi i am an electrical engineer. i have vast experience related to circuit design and micro controller programming. Relevant Skills and Experience i have done many embedded system projects. i have hardware experience m More

$150 USD in 15 days
(10 Reviews)
6.0
jartur

Hola, puedo ayudarte con tu proyecto en la plataforma Arduino, me podrias comentar un poco mas sobre el mismo. Relevant Skills and Experience Si estamos ante un proyecto sencillo el costo sera bajo. Proposed Mileston More

$30 USD in 3 days
(63 Reviews)
5.6
xaainulabideen

A proposal has not yet been provided

$40 USD in 3 days
(26 Reviews)
5.2
riki888vw

Hi, I have experience in Arduino systems developing. I can help you. Best regards. Relevant Skills and Experience Arduino Servo motor Proposed Milestones $55 USD - Miestone

$55 USD in 3 days
(16 Reviews)
5.3
jitendrabaraiya

A proposal has not yet been provided

$275 USD in 4 days
(4 Reviews)
4.9
ahmedmohamed85

A proposal has not yet been provided

$55 USD in 3 days
(15 Reviews)
5.1
sajjadahmed19

A proposal has not yet been provided

$99 USD in 3 days
(14 Reviews)
4.6
gauravsharma132

control servo motor via usb serial in Relevant Skills and Experience We can quickly help you with this. Proposed Milestones $30 USD - Arduino Code

$30 USD in 2 days
(19 Reviews)
4.7
soltracker

Dear Bro,,,,How r u?Its me imad, have done 200+ projects regarding Arduino, PIC, MATLAB, PCB designing, .NET, PHP, HMTL, VB and Java script,,, Relevant Skills and Experience 1. Arduino Nextion LCD full bike monitoring More

$30 USD in 3 days
(56 Reviews)
4.6
rishiajmera

Hello, Greetings! With a proven track record of successful achievements, I am pleased to present my application for your consideration as a Freelancer. Relevant Skills and Experience Please have a look at my profile a More

$55 USD in 3 days
(7 Reviews)
3.9
jinzhenzhu8691

- Android , iPhone, iPad, WindowsPhone ✔ Java ✔ Swift, Objective-C ✔ Xamarin, Ionic, ReactNative - Website ✔ PHP/MySQL ✔ Open Source CMS ✔ CodeIgniter ✔ Angular.js ✔ Wordpress More

$155 USD in 3 days
(1 Review)
3.7
mrjadhav

Hi, I am an Embedded System designer. I have been working on arduino for past 1+ year now. Do not award project before any discussion. Relevant Skills and Experience programming in C, C++, Arduino IDE, etc Proposed M More

$30 USD in 1 day
(4 Reviews)
3.4
OlektraGroup

Dear Sir, My number one priority is customer service and satisfaction! I can complete your project with in time and in an efficient manner following the best industry standards. Relevant Skills and Experience Progra More

$155 USD in 3 days
(6 Reviews)
3.6
ahmedxahid

. Relevant Skills and Experience . Proposed Milestones $30 USD - Arduino .

$30 USD in 3 days
(4 Reviews)
2.8
RationalX

HI, I'm Ushan. I can help you to solve the issue.. feel free to contact me.I have sound knowledge in arduino and severs. Relevant Skills and Experience SERVO driving Arduino Proposed Milestones $155 USD - Cod More

$45 USD in 3 days
(3 Reviews)
2.3
abdulbasitmirza

A proposal has not yet been provided

$60 USD in 7 days
(3 Reviews)
2.3
afifa427

Hello Sir! Electrical Engineer here! I have 4+ years of experience in Arduino Programming. I can provide you with Best solution. Kind Regards, Relevant Skills and Experience Hello Sir! I have completed man More

$66 USD in 1 day
(0 Reviews)
0.0
ankitpitroda

I have already worked on this. The code of this project, circuit or whatever the documentation required is ready with me. Relevant Skills and Experience I am a pro in Arduino, Embedded Linux, RaspberryPI, Shell Scr More

$30 USD in 1 day
(1 Review)
0.0