GithubHelp home page GithubHelp logo

egn-3000l's Introduction

EGN-3000L

Code & README text for Arduino Follower Robot

Sparky Features

  • Cost: $18
  • Assembly Time: 3 min by an experienced user and 6 min by a novice user
  • Special Features:
    • Ultrasonic sensor to measure distance
    • Speaker to create sound effects

Brief description of code

The code starts off with initializing all the variables that will be used in the project. Then, under the setup() function, pinMode() is used to configure the specified pins to behave either as an output or as an input. The loop() function contains the main logic of the robot. If the distance between the user’s hand and the ultrasonic sensor is between a certain amount, then the corresponding code within the if block activates. The code within the if block will control the 2 motors. By using the digitalWrite() function, certain pins can be given either a HIGH value or a LOW value depending on the movement that the robot needs to make.

How Sparky works

As soon as Sparky is powered on, it plays a sound effect through the speaker. Then, the ultrasonic sensor starts measuring the distances. If the distance between the sensor and the user's hand is less than or equal to 10 cm, Sparky will move backwards. If the disatnce between the sensor and the user's hand is between 10 cm and 35 cm, Sparky will move forwards. If the distance between the sensor and the user's hand is more than 35 cm, Sparky will keep turning left.

egn-3000l's People

Contributors

noblysp avatar

Watchers

 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.