Code Monkey home page Code Monkey logo

arduinosonar's Introduction

ArudioSonar

Making a Sonar system, controlled with an Arduino

Components:

  1. Arduino Uno
  2. Ultrasonic Sensor (Ultrasonic Sensor HC-SR04)
  3. Stepper Motor (28BYJ-48)

There are two files. One Processing file, and one Arudino file. They communicate through serial communication.

I have used code from other developer's projects:

  1. For the processing code, which controls the graphics: https://learn.sparkfun.com/tutorials/connecting-arduino-to-processing/all
  2. For the Arduino code, which controls the stepper motor: https://github.com/tyhenry/CheapStepper/blob/master/examples/cheapStepper_simple/cheapStepper_simple.ino

[Will post schematic later]

I have modified the code from both these sources to work with my components. The biggest changes are using a stepper motor instead of a servo motor, because that is what I happened to have on-hand, and using custom stepper motor code rather than the built-in stepper library.

Although there is an Arduino library for stepper motors, I had troubles with getting clockWise rotation using the library's built-in functions. Link #2 was a solution that I found to work great with my stepper motor, and it was one of the most easy-to-understand solutions that I found.

arduinosonar's People

Contributors

nirajan-manandhar avatar

Watchers

James Cloos avatar  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.