Code Monkey home page Code Monkey logo

arm-mbed-obstacle-avoiding-car's Introduction

ARM Mbed Obstacle Avoidance Car

This project was created as part of my second year Team Project for University of Essex. I developed the movement code for the RC Car as well as the code for obstacle avoidance using HCSR04 Ultrasonic Sensors. This was a great learning experience for Embedded Software development in C/C++.

Components Used:

  • HCSR04 Ultrasonic Sensor

IMAGE (source):

  • RC Car (Provided by the University):

  • ARM Mbed Cortex M3 (LPC1786).

Libraries used:

  • I used Prabhu Desi's HCR04 sensor library to read distance from the Ultrasonic sensors. Link: HCSR04 Library.
  • The official built in API provided from ARM was used as well.

Overview of the code:

  • main.cpp - Does all the main logic, using the distance values to turn the car away from the object, by moving left or right or reversing the car. The functions are all defined in the movement.h header file.
  • movement.h - A header file defining all the functions/methods used.
  • movement.cpp - Defines all the logic for the turning of the car, and contains all the methods for turning the car, measuring the distance etc. The RC car's brushless motors are all controlled via Pulse Width Modulation.

arm-mbed-obstacle-avoiding-car's People

Contributors

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