Coder Social home page Coder Social logo

sonicrobot's Introduction

SonicRobot

Multi sensor install on the 'official' arduino robot.

Starting with tom Igoe's original code http://arduino.cc/en/Tutorial/ping with code provided by [email protected] who got it working for one sensor. I got it working with 3 sensors, and then got the code cleaned up with the help of Andre Bellucci (http://dei.inf.uc3m.es/abellucci/), I now have a fully functioning 3 sensor array using the HC-SR04 sensor. The code adds to the general "go forward until you sense something x CM away, then turn right". When the front sensor is triggered, the other two sensors are checked and the robot will go in the direction that has the longest/farthest ping. If both left and right are identical, then the robot turns around and goes back in the direction it came.

None of this can be understood in terms of the official arduino robot (http://arduino.cc/en/Main/Robot) without recourse to Fabio Ciravegna's blog (http://fabcirablog.weebly.com/blog/archives/12-2013) which explains the crazy pins.

I'll update with photos when things are more stable and I solder the parts on.

I'll be adding a 4th sonic sensor, and a capacitive sensor to watch for actually hitting things.

I'll be adding a mozzi synth function as well.

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.