Coder Social home page Coder Social logo

clestini-iot's Introduction

clestini-iot

This contains the code for touch detection using SONAR system designed using Arduino UNO and Ulrasonic sensor and servo motor. The Celestini directory contains the C++ code for Questions 2 and 3 of the take home assignment.

To find angle we will be using servo motor to find shortest distance at which the object is placed(while moving the ultrasound sensor slowly from 0 to 90 degree using servo), as shortest distance from ultrasound sensor, the object will be perpendicular to the ultrasound sensor we can then calculate angle thus we can find the angle at which ultrasound is perpendicular thus we can find by how much angle sensor has rotated.


screen shot 2018-03-31 at 10 41 58 pm


๐Ÿƒ Start

Tested on Ardiuno uno

  • connect trigger pin and echo pin of ultra sound sensor to 2 and 4 respectively and vcc to 5v, gnd to gnd
  • connect servo Signal wire to pin number 9 and vcc to 5v and gnd to gnd.
  • upload the code to ardiuno

Observing Serial Output

Serial output contains 3 comma seprated values first one is angle, second one is vertical distance which is shown by red line in fig and third one is horizontal distance which is shown by blue color.

NOTE the code is configured when servo is set to 90 degree which is 45 degree from front face of ultra sound sensor

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.