Giter VIP home page Giter VIP logo

hw5_1's Introduction

hw5_1

How to set up this program?

  1. Import bbcar.h and PwmIn.h to control the car, and and uLCD_4DGL to utilize the uLCD.
  2. Connect the PwmOut and PwmIn of the two servos, four QTI sensor pin, and Tx and Rx of uLCD.
  3. Connect the board and then compile and run the program.
  4. Press the reset button.
  5. Connect the mbed board and the two servos to the power supply.
  6. Put the car infront of and between the two objects, whose distance are going to be measured.
  7. Before using the car to measure the distance between the two objects, we have to make the ping direct at the object at the right hand side.

What are the results?

  1. After setting up the car and pressing the reset button, the car will start to turn left continuously until it scan the left edge of the objects at the right hand side.
  2. The car will stop for a moment and then display the distance between the first scanned object and the car.
  3. After that, the car will start to turn left again until it scan the right edge of the objects at the left hand side.
  4. The car will stop again and then display the distance between the second scanned object and the car.
  5. The car will then calculate and display the angle between the car to object1 and the car to object2, and finally show the distance between the two objects.
  6. After many times of trial, the measured distance and the actual distance have an error about 20 %.

hw5_1's People

Contributors

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