Git Product home page Git Product logo

sdc's Introduction

SDC

Thumbnail ATmega 8 based self driving car.

Watch the YouTube video to develop some comprehension.

SETTING UP ATMEGA 8

The ATmega 8 is programmed using an ICSP programmer. In my case, I used an Arduino UNO as an ICSP programmer. By default, the microcontroller uses the internal 8MHz internal PC oscillator, but we want to use an external 16 MHz oscillator. So we need to make certain changes to the fuse bits of the ATmega 8. Below are the steps to do so:

  1. Download and install AVRDude. AVRDude is the program used by Arduino IDE and PlatformIO to upload your code to an AVR microcontroller.
  2. Open up the Arduino IDE, select ArduinoISP under File/Examples/ and hit upload.
  3. Wire up the Arduino and ATmega8 as shown in the schematic: ATmega8 programmer
  4. By default, the low fuse of the ATmega8 is set to 0xE1. This must be set to 0xE4 to configure the microcontroller to run at 8MHz. Type avrdude -c stk500v1 -P COM5 -p atmega8 -b 19200 -U lfuse:w:0xe4:m -U hfuse:w:0xd9:m. Alternatively, you can use an online AVR fuse bit calculator for your selected microcontroller. Changing lfuse

Note:

The -P <port>argument specifies the connection port. In my case, the arduino is connected to COM5 and hence the argument -P COM5. For -p <partno> either -p m8 or -p atmega8 can be used. Refer this guide for more information.

  1. That is all. The ATmega8 is now ready to be programmed with PlatformIO using the arduino as an ISP programmer.

PART LIST:

You can find the component list here.

The case along with the motor is available here: https://quartzcomponents.com/products/2wd-smart-robot-car-chassis-kit

MOC7811 optical encoders: https://quartzcomponents.com/products/moc-7811-encoder-sensor

Servo: https://quartzcomponents.com/products/tower-pro-sg90-servo-9-gms-mini-micro-servo-motor?_pos=1&_sid=c2dd11a64&_ss=r

HCSR04(Ultrasonic sensor): https://quartzcomponents.com/products/hc-sr04-ultrasonic-sensor-module?_pos=1&_sid=1f37cc7e0&_ss=r

Ultrasonic sensor mount: https://quartzcomponents.com/products/ultrasonic-sensor-mounting-bracket-for-hc-sr04?_pos=3&_sid=1f37cc7e0&_ss=r

sdc's People

Contributors

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