GithubHelp home page GithubHelp logo

rushil23 / the_newton_drop Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3.19 MB

The Newton Drop is an Autonomous Candy Dispensing Robot that uses sensors and motors to automate commercial vending machines

C 100.00%

the_newton_drop's Introduction

Newton Drop - The Autonomous Candy Dispenser

The Newton Drop is an Autonomous Candy Dispensing Robot. The robot was controlled by a single program that controls the sensors & movements of the robot. The Newton Drop uses two main motors (Rotator motor and the Tetrix Gripper motor) and three sensors (Ultrasonic, Touch & Color Sensor). The code also uses Sound Files, Sound Tones, and File I/O System.


Front View


Top View

Code Implementation

Robot Tasks

  • Rotating the Cylinders
  • Releasing the Candy
  • Initial Calibration Setup
  • Consumer Recognition
  • Coin Recognition
  • Reading the Input File Data
  • Transferring the sales data into the output file
  • Playing a sound file

Special Features of the Code:

  1. The Golden Wait Time: The EV3 Color Sensor given to us couldn’t detect a Green Colored Coin that well. This was presumed to be because it was perceiving a color of Half Green and Half White (Back Ground), as the color Blue.

Golden Wait Time
Golden Wait Time Demonstration

Hence, we added a wait time of 60 milliseconds, which is basically the time interval between the detection of a green coin, and the time it takes the green coin to reach the center of the Color Sensor Recognition Frame. This “Golden Wait Time” was experimentally determined after several tests. These experimental tests included averaging several time intervals and selecting the most consistent one. The experiments also account for the speed at which the coin is inserted, and this wait time works for most of the speeds.

  1. Smart Consumer Recognition:

This feature automatically recognizes a consumer and prompts a command upon recognition. The code ensures that a consumer is detected if and only if it stands in front of the sensor (at an appropriate distance), for a minimum time interval. Hence, it does not recognize a random person walking past the robot.

  1. Text-To-Speech Instructions:

Another special feature of the Newton Drop is that it provides instructions (in words!) to the consumer. This was done using the Sound Files System on the EV3. The sound files were downloaded from online text-to-speech converters and then were downloaded onto the EV3.

  1. Showboat: The robot ends by spinning the cylinders, and playing the Mission Impossible Tune. It also displays the total sales for the day on the EV3 Screen.

  2. Emergency-Exit: The code ensures that the Robot can be stopped immediately in case of emergencies by holding the touch sensor.

the_newton_drop's People

Contributors

rushil23 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.