Code Monkey home page Code Monkey logo

ultrasounddistancedetector's Introduction

UltraSoundDistanceDetector

This is an Arduino sketch example that calculates the distance between an ultrasonic sensor and an obstacle, then displays that distance to a 4-digit 7-segment LED display, through a display driver based on MAX-7219.

IMPORTANT! At the time of pushing this sketch to github, I don't have access to my circuits, so this is not tested yet! I will update this repo as soon as I can test it.

The example was created on Eclipse with an Arduino plugin. Hence it can be directly compiled under the same environment but needs some adaptations to be compiled by the usual Arduino IDE. These adaptations are described inside UltraSoundDistanceDetector.cpp.

The sketch uses an HC-SR04 ultrasonic sensor for distance measurements and a special home-made display driver board, based on MAX7219 LED driver.

As the sketch is using the Arduino LedControl library, you have to install it first to your own setup.

The display driver schema was designed according to the following diagram: Display Driver schema

The board is wired on a stripboard according to the following circuits: stripboard component side stripboard copper side

Note that, for designing, I have used sPlan 7.0 for the diagram and LochMaster 4.0 for the stripboard circuit. These are simple and rather cheap tools that I was glad to pay for. Here are the original files for the diagram and stripboard: schema and stripboard

If you don't want to buy sPlan or LochMaster, you can still open these files with free viewers for sPlan and LochMaster.

NOTE In the near future, I will create Arduino libraries for the display driver circuit and for the ultrasound sensor and push these into their own repos, so that the content of the current repo should be simplified.

ultrasounddistancedetector's People

Watchers

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