Git Product home page Git Product logo

arduino's Introduction

arduino's People

Contributors

nicolaskruchten avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

arduino's Issues

Am I doing this wrong?

I have this code to position the servo:
for (pos = 0; pos <= 90; pos += 1) //the servo goes from 90 to 180 degreesin steps of 1 degree
{
myservo.write(pos);//controls the servo
delay(dly3);
SoftwareServo::refresh();
}

and this code to return it to start position:
for (pos = 90; pos >= 0; pos -= 1) // goes from 180 to 90 in increments of 1 degree
myservo.write(pos);
delay(dly3);
SoftwareServo::refresh();
}

my problem is the first one goes slow as I expect, the second one happen almost instantaneously. I would like the return to be as slow as the positioning. I am sure I am missing something. Did not see a method to control the speed. This is for a mode RR crossing gate.

Thank you,
Joe

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.