Upload
shivanshscribd
View
243
Download
0
Embed Size (px)
Citation preview
7/29/2019 ATmega16 or 32 Mini User Manual
1/12
Indias Premier Leader in Robotics
http://www.robosapiensindia.com
mailto:[email protected]
Robosapiens ATMEGA-16
Mini Board for
Robotics & Embedded
Application
7/29/2019 ATmega16 or 32 Mini User Manual
2/12
Indias Premier Leader in Robotics
http://www.robosapiensindia.com
mailto:[email protected]
USER MANUAL
7/29/2019 ATmega16 or 32 Mini User Manual
3/12
Indias Premier Leader in Robotics
http://www.robosapiensindia.com
mailto:[email protected]
Thanks for purchasing Robosapienss
ATMEGA-16 Mini Board for Robotics &
Embedded Application.
This Development Board is speciallydesigned to perform the Robotics
application and embedded
programming using ATMEGA-16 AVR
Microcontrollers.
7/29/2019 ATmega16 or 32 Mini User Manual
4/12
Indias Premier Leader in Robotics
http://www.robosapiensindia.com
mailto:[email protected]
1. Introduction
1.1 Overview
The Mini Board is a complete starter kit and development system for the AVR Atmega16 flashmicrocontrollers from ATMEL
Corporation. It is designed to give designers a quick start to develop
code on the AVR.
This document covers features of this product with detail explanation of each sections and its use.
1.2 Features
Programming through Bootloading through USB or 6-Pin ISP (In System Programming)cable
Driver Software not required ( Plug & Play device) USB Port for Bootloading Exposed Four ports available for user interface
PORTA-8 Data Lines, PORTB-8 Data Lines, PORTC-8 Data Lines, PORTD-8 Data Lines
Port for USART/UART communication Buzzer for sound output Light Dependent Resistor (LDR) interfaced on ADC port External Reset Switch 16x2 LCD interfacing port with on board contrast controlling preset. Two supply inputs: one through battery and second through adapter. On board 5 volt regulated power supply for the board and external peripherals. Two H-Bridge implemented in the board using L293D IC to drive two DC motor with 1A
drive current at voltages 4.5 to 36 volt.
Comes with Built in Black Line Follower Robot Program
1.3 Known Issues
There are at the moment no known issues with the Mini Board.1.4 Precautions
USB Bootloader must be used always. If kit is once programmed using ISP, USBBootloading firmfare will get erased and cannot be used for programming.
Pin A0 is reserved for Bootloading application, it should not be used.NOTE: Novice users must not use ISP Programmer on this kit.
7/29/2019 ATmega16 or 32 Mini User Manual
5/12
Indias Premier Leader in Robotics
http://www.robosapiensindia.com
mailto:[email protected]
2. Getting Started
2.1 Quick Start
The Mini Board can source power to the microcontroller through the USB cable. Remember
that the power available through the USB cable is limited. If your application attaches several
peripherals to the board, you should use an external power source connected to the DC input
socket on Mini Board. The external power supply should be 9-12V DC with positive centre
connector.
The red POWER LED is lit when power is on.
2.2 Connecting the Hardware
The Mini Board must be connected to a host PC with a USB cable for programming. Connect
the cable to a USB port on the PC or on a USB hub. The USB port must be capable of
supplying 500mA. If using a USB hub, make sure it has an external power supply.
Connect the other end of the USB cable to the USB connector on Mini Board.
3. Mini Board Block Diagram
DC JACK POWER
MCU
USB
RESET BUTTON
OSCILLATOR
LDR
BUZZER
PWM LED
UART POR
LCD PORT
ISP PORT A, B, C & D
7/29/2019 ATmega16 or 32 Mini User Manual
6/12
Indias Premier Leader in Robotics
http://www.robosapiensindia.com
mailto:[email protected]
4. Block Description
LCD PORT
RESET
MCU LDRPOWER LED
USB PORT
BUZZER
ISP PWM LED DC JACK
7/29/2019 ATmega16 or 32 Mini User Manual
7/12
Indias Premier Leader in Robotics
http://www.robosapiensindia.com
mailto:[email protected]
4.1 Microcontroller
The Mini Board is designed for AVR Atmega16.
4.2 Power Supply
The supply voltage to the AVR microcontroller is provided either through DC Jack or USB.
It is connected to the AVR's VCC pin.
4.2.1 DC J ack
Connect external power supply to this jack.
4.2.2 USB
Connect USB connector to this Port.
4.2.3 Power LED
LED will glow when Power in On.
7/29/2019 ATmega16 or 32 Mini User Manual
8/12
Indias Premier Leader in Robotics
http://www.robosapiensindia.com
mailto:[email protected]
4.3 USB Port
For programming the Mini Board connect the USB port on Mini Board to
a free USB port on the PC or on a USB hub through cable.
4.4 Reset Button
Press this button to reset the Mini Board.
Reset Button is connected on Pin no. 9 (RESET)
4.5 LDR
LDR (Light Dependent Resistor) is connected to
microcontroller for applications that are dependent on
intensity of external light source.
LDR is connected on Pin no. PA1
4.6 ISP
In-System Programming uses the AVR internal SPI (Serial Peripheral Interface) to download
code into the flash and EEPROM memory of the AVR. ISP programming requires only VCC,
GND, RESET and 3 signal lines for programming.
The AVR can be programmed at the normal operating voltage,
normally 2.7V-6.0V. No high voltage signals are required. The ISP
programmer can program both the internal flash and EEPROM. It alsoprograms fuse bits for selecting clock options, startup time and internal
Brown Out Detector (BOD) for the device.
During ISP programming the 6-wire cable must always be connected to
the header marked ISP (6PIN).
ISP port also acts power source.
ISP is connected on Pin nos.
MOSI MISO SCK RESET VCC GND
PB5 PB6 PB7 RESET (9) VCC GND
7/29/2019 ATmega16 or 32 Mini User Manual
9/12
Indias Premier Leader in Robotics
http://www.robosapiensindia.com
mailto:[email protected]
4.7 Buzzer
Buzzer is connected to microcontroller for applications that need
sound as output.
Buzzer is connected on Pin no PB3
4.8 PWM LED
PWM LED is connected to microcontroller for applications that
require PWM application. LED is used to check proper functioning
of PWM application.PWM LED is connected on Pin no PD5
4.9 LCD Port
LCD Port is connected to microcontroller for
applications that need information display.
These pins are connected on Pin no[.......]
GND VCC VSS RS RW EN D0 D1 D2 D3 D4 D5 D6 D7 VCC GNDGND VCC VSS PB0 PB1 PB2 X X X X PB4 PB5 PB6 PB7 VCC GND
4.12 PORT A, B, C & DThese Ports are connected to microcontroller for interfacing I/O Pins of Microcontroller.
4.12.1 PORT A4.12.2 PORT B
1)Pin B0 (PB0) - Pin B3 (PB3)2)Pin B0 (PB3) - Pin B3 (PB7)
4.12.3 PORT C4.12.4 PORT D
7/29/2019 ATmega16 or 32 Mini User Manual
10/12
Indias Premier Leader in Robotics
http://www.robosapiensindia.com
mailto:[email protected]
5. Example Application
5.1 Connecting LCD
Interfacing LCD to Mini Board is easy and intuitive , just connect LCD Pins to the Board
pins as shown in figure.
5.2 Connecting Sensors
When interfacing sensors, always make sure to connect sensor output pin to MCU pin, VCCto VCC Pin and GND to GND pin of the board.
7/29/2019 ATmega16 or 32 Mini User Manual
11/12
Indias Premier Leader in Robotics
http://www.robosapiensindia.com
mailto:[email protected]
5.3 Connecting Motors
When interfacing motors , you have connect both the pins to the cable to the MCU pins as
shown in the figure.
7/29/2019 ATmega16 or 32 Mini User Manual
12/12
Indias Premier Leader in Robotics
http://www.robosapiensindia.com
mailto:[email protected]
5.4 Ground & VCC Pins GND
VCC