Coder Social home page Coder Social logo

rc-arduino-car's Introduction

RC-Arduino-Car

A remote controlled Arduino car controlled via wireless commands.

Watch my (bad) video of it in action NOTE: This version does not feature collision detection. Hence the scream.

Use

There are several schematics provided in this repository. You can either follow these, and use the stock RC_Drive sketch, or connect to your desired pins and modify the .ino file yourself.

Once the code is uploaded to the Arduino Uno and you have connected to the HC-06 bluetooth module via a serial bluetooth terminal, use is fairly simple.

Controls

If you play PC games, these should be familiar:

  • w: move the car forward
  • a: turn the car left
  • s: move the car backward
  • d: turn the car right
  • q: spin the car left
  • e: spin the car right

The code has been designed to allow you to concatenate actions. Simply typing in 'w' will make the car move forward, but typing in 'was' will make the car move forward, make it turn left, and make it move backward in succession.

By default, sending the arduino one of these instructions will make the car do that action for one second. If you'd like to change that, you can type in a desired duration (in milliseconds) that you'd like to replace this with. For example, typing 6000 into the terminal should change the duration of each action to 6 seconds.

The car also features an ultrasound sensor, allowing it to detect obstacles in the way. It's detection and compensation is fairly rudimentary, but it stops the car from getting smashed up against a wall competently enough.

Note: to connect to the HC-06 Bluetooth module used by this contraption, it is recommended you use a serial bluetooth terminal such as this one for Android. Conventional connection methods may be troublesome.

Materials

To build your own compatible RC car, you will need the following components:

  • x1 Arduino One board
  • x1 L293D half-h driver
  • x1 HC-06 bluetooth module
  • x1 Ultrasound sensor
  • x1 car frame (or building materials to create one yourself)
  • x2 9v rectangle batteries (or equivalent)
  • x2 motors
  • x13 plug in cables (preferably long, I needed extensions for many of them)

rc-arduino-car's People

Contributors

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