Download - AVR Peripheral Board
-
8/12/2019 AVR Peripheral Board
1/23
www.campuscomponent.com
Campus
Component
Pvt. Ltd.
AVR Peripheral Board
-
8/12/2019 AVR Peripheral Board
2/23
AVR Peripheral Board
www.campuscomponent.com
DISCLAIMER
Information furnished is believed to be accurate and reliable at the time of publication.
However, Campus Component Pvt. Ltd. assumes no responsibility arising from the use of the
specifications described. The applications mentioned herein are used solely for the purpose ofillustration and Campus component Pvt. Ltd. makes no warranty or representation that such
applications will be suitable without further modification, nor recommends the use of its
products for application that may present a risk to human life due to malfunction or otherwise.
Campus Component Pvt. Ltd. does not assume any liability arising out of the application or use
of any product or circuit described herein; neither does it convey any license under its patents
rights, nor the rights of other. Campus Component Pvt. Ltd. reserves the right to alter its
products without prior notification. For the most up-to-date information, please visit our web
site at
Pictures are representational only and actual product may vary.
Copyright 2011CAMPUS COMPONENT Pvt. Ltd. All rights reserved. Campus Component Pvt.
Ltd., logo and combinations thereof, are registered trademarks of CAMPUS COMPONENT Pvt. Ltd.
Other terms and product names may be trademarks of others.
http://www.campuscomponent.com
http://www.campuscomponent.com/http://www.campuscomponent.com/ -
8/12/2019 AVR Peripheral Board
3/23
AVR Peripheral Board
www.campuscomponent.com
AVR Development Board with Peripherals
Introduction:
AVR Peripherals Development Board is made from single sided non PTH PCB board.Board can work on 7V to 15V AC or DC supply. It has built-in reverse polarity protection.7805 voltage regulatorhas heat sink for heat dissipation so that it can supply 1Amp currentcontinuously without getting over heated. It has switches for reset and power. All the portsare connected to standard 10 pin Box Headerconnectors. Open pads for connectingmicrocontroller's pins to external devices are also provided.
Features: Support the following 40 pin AVR microcontroller
ATmega16
ATmega16L
ATmega32
ATmega32L
ATmega164/V
ATmega324/V
ATmega644/V
ATmega8535
ATmega8535L
Supports LCD with linear 16x1 pin-out
16x1 LCD , 16x2 LCD and 16x4 LCD
20x1 LCD, 20x2 LCD and 20x4 LCD 32x2 LCD and 32x4 LCD
40x2 LCD
-
8/12/2019 AVR Peripheral Board
4/23
AVR Peripheral Board
www.campuscomponent.com
Supports GLCD (Graphical LCD)with linear 20x1 StraightBerg Male Strip
Connector
LCDcontrast adjusting throughPotentiometerprovided
All ports are connected to standard 10 pin Box Headerconnector and also a
separate StraightBerg male strip connectorfor each port
10 pin Box Headerconnector forIn System Programming (ISP) On board 4x4 matrix keypadwith TactileSwitches
On boardRTC (Real Time Clock)and externalEEPROM (Electrically Erasable
Programmable Read only Memory)with provision of CMOS 3.3V disc battery
backup
Provided quadseven segment common cathode 7-segmentdisplay on board
Provides eight LEDs for I/O testing
Buzzer provided on board for testing
Availability of Serial communication throughDB9Serial port
Provision of four miniaturepush-on Tactileswitches on board to get momentary
logic high/low for testing
Array of 8 miniature SPDT slide switches(DIP Packaged Switches)provided onboard to get high/low logic level (1/0) for testing
On board 12 MHz crystal oscillator
AC/DC input Socket for 7V to 15V AC or DC
Reverse polarity protected by using onboardBridge Rectifier
Voltage regulation provided by 7805 Voltage Regulator
Provides facility for resetting the board when required
Power supply ON/OFF switch provided on board
Warning:Current dissipation throughout boards all components and connectors should not
exceed than 1 Amp
-
8/12/2019 AVR Peripheral Board
5/23
AVR Peripheral Board
www.campuscomponent.com
Hardware Description:
D Port
ISP Port
LCD Connector
Reset Switch
LEDs forI/O Trsting
Power LED
VCC
GND
VIN
On/Off Switch AC/DC Socket
Voltage Regulator
Bridge Rectifier
Potentiometer for contrastadjust of LCD and GLCD
Buzzer
Buzzer Connections
4x4 MatrixKeypad
LCD and GLCDData pins Connector
GLCD Connector
GLCD Control Pins
LCD and GLCDControl Pins
Keypad Connector
Quad CommonCathode 7 segment
Display
Quad Common
Cathode 7 segmentDisplay Connector
7 segment SwitchingTransistor Connector
B Port
A PortC Port
C Port A Port
B Port
D Port
USART Rx/Tx Pins
DIP Packaged SlideSwitch
Jumper to switch betweenLCD and GLCD Contrast Pin
LED Port
3V Battery Socket
EEPROM IC
RTC IC
EEPROM Connector
RTC Connector
RS232Communication DB9
onnector and Rx/TxConnections
ULN2003IC and ConnectorTactile Switches for
Momentary Logichigh/low (1/0)
Potentiometer forVoltage Divider Circuit
D Port
Microcontroller IC
-
8/12/2019 AVR Peripheral Board
6/23
Notch
AVR Peripheral Board
www.campuscomponent.com
Power Supply Socket:
This power supply socket which actually named asAC/DC Socketprovides the
functionality to user to connect external power supply from Transformer, Batteryor
AdapterviaDC jack. User can provide maximum of 7V to 15V AC/DC power supply
through AC/DC socket. This is power supply designed into maximum protection
consideration so that it can even prevent reverse polarity DC power supply as well as ACpower Supply. It also includes 7805 Voltage Regulatorwhich provides regulated 5V DC
for Microcontroller and other I/O connectors.
GND, VCCand VINConnector:
This board also provides user to have an extra pins for Power supplies as shown in
figure. These pins are GND(0V), VCC (5V from Voltage Regulator) and VIN(Voltagesupplied to AC/DC Socket minus 1.4V). Five pins are provided for each type of supply.
User can connect these pins to external device by using Single Berg Wire.
On/Off Switch and Reset Switch:
On/Off switch is type of Sliding SPDTswitch which is used for only make power
supply on/off provided throughAC/DC Socket. Reset Switch is type ofPush on DPST
tactile switchwhich is used for only to make program reset.
10 pin Box Header Connector:
Pin Headers with plastic guide box around them are known as Box Headers or
Shrouded Headersand are normally only used in combination with a Flat Ribbon
Cable (FRC)connector. A notch(key) in the guide box normally prevents placing the
connector the wrong way around.Box Headercan be connected usingFRCs and also
Single Berg Wiresfor individual pin connections.
FRC Cable:
Two FRC Connectors can be connected with the help of FRC cable. FRC cable
has following pin configuration.
-
8/12/2019 AVR Peripheral Board
7/23
AVR Peripheral Board
www.campuscomponent.com
A, B, C, D Port Connector:
40 pinATmegaseries microcontroller has four I/O ports generally. These Four
Port are expanded from Microcontroller IC separately by using 10 pinBox Headerfor
each port (A, B, C and D port). Among 10 pins 8 pins represents I/O pin of respective portth th
and 9 and 10 pin representsGNDand VCCrespectively. This is shown in figure.
LED Connector
Eight LEDs used for I/O testing are connected in common cathodeconfiguration.
Other terminal (anode) of LED connected to the LED port. This LED port can be directly
connected to any of A, B, C or D port'sBox HeaderthroughFlat Ribbon Cable(FRC).
LCD and GLCD Connector
This board featured with LCD and GLCD Connections. User can mount LCD or
GLCD on linearly placed Straight Berg Male Stripconnector. One 16 pin connector is
used to mount LCD and another 20 pin connector is used to mount GLCD. Ther is another
16 pin connector which is used to connect LCD or GLCD with I/O pins through SingleBerg Wire or Relimate Connector. Another connector is 10pin Box Header through
which User can connect LCDs or GLCDs Data Pins (D0-D7) to any of I/O port (A, B, C
or D) throughFRC. There are other 2 group of three pins ofBerg Male StripConnector
separately. Among them three pins which represented as RS (Register Select), RW
(Read/Write), EN (Enable) used for LCD as well as GLCD and other three pins CS1
(Chip Select 1), CS2 (Chip Select 2), RST (Reset) used for GLCD only. These Pins can be
connected through Single Berg WireorRelimateCable. Potentiometer used to adjust
contrast for LCD as well as GLCD. User just need to switch between LCD and GLCD by
using Jumper shown in Hardware description diagram.
Note: User can only connect either LCD or GLCD on the board.
Jumper to switch between LCDand GLCD Contrast Pin GLCD
LCD
-
8/12/2019 AVR Peripheral Board
8/23
AVR Peripheral Board
www.campuscomponent.com
4x4 matrix Keypad and Connector:
This is onboard 4x4 matrix Keypad can be used as an input medium for different
applications made by sixteenpush-on Tactile Switches. Through this keypad User can
give numeral input to application as an information or may use as differential input for
make switch devices. This keypad has two types of connections- one is 10 pin Box
Headerand another is 10 pin Straight Berg Male StripConnector. User can use any one of
these as per the convenience.Box Headercan be connected throughFRCandBerg Male
Stripcan be connected through Single Berg WireorRelimate Connector.
Switches for Momentary Logic High/Low (1/0):Fourpush-on TactileSwitches are provided onboard for momentary logic control
i.e. High/Low (1/0). These switches can be connected by using Single Berg Wireor
RelimateConnector to I/O pins of Microcontroller.
Another Switch which is miniature Sliding SwitchinDIP packagealso known as
DIP switches. These used for the same purpose as above. These also can be connected by
using Single Berg WireorRelimateConnector.
Analog O/P Compare Connector:This board featured withAnalog O/P compareconnector which enables User to
connect external analog sensors into Voltage divider form. This connector can be
connected through Single Berg WireorRelimateConnector. To adjust resistance User
just need to tunePotentiometerprovided.
ULN2003 IC and Connector:
This board featured with onboard ULN2003 IC and its connections. The
ULN2003is a monolithic high voltage and high currentDarlington transistorarrays. Itconsists of seven NPN darlington pairs that features high-voltage outputs with common-
cathode clamp diodefor switching inductive loads. It can be used to drive High Voltage
and Current DC as well as Stepper Motors,Relaysand devices with high wattage ratings.
User just need to make connections between I/O pins and ULN I/P pins through Single
Berg wireorRelimateconnector. Devices that needs to control can be connected to O/P
pins as stated in picture.
-
8/12/2019 AVR Peripheral Board
9/23
Connector forTransistor to Toggle
between SevenSegment Display
Seven Segment LEDDisplay Connector
Quad Seven Segment Display
Transistor BC547
AVR Peripheral Board
www.campuscomponent.com
RTC and EEPROM IC and Connector:
This board is also featured with the circuitry ofDS1307IC asRTC (Real Time
Clock)andAT24C02IC asEEPROM (Electrically Erasable Programmable Read Only
Memory). These both ICs are interfaced through TWI (Two Wired Interface)feature of
Microcontroller. User just needs to connect SCL, SDAand SQWpins to microcontrollers
corresponding TWIpins through Single Berg WireorRelimateConnector. ThisRTCIC
also has passive power supply by using 3V CMOS Batterysocket.
Serial Port (DB9 Conector) and Serial Communication:
This port is provided for the purpose of serial communication. This helps themicrocontroller to communicate with the peripheral device through USART feature.
When the user need to communicate through the serial port, the transmit data pin (TxD)
and receive data pin (RxD) need to be connected externally by the User to the
corresponding USART pins of Microcontroller. As there are two channels in MAX232
IC for converting RS232 logic to TTL logic and vice-versa. So this channel I/O is as
shown in picture.
Quad Seven Segment display Circuit and Connections:
This board featured with Quad Seven Segment LED Display circuit which
enables User to use and display into Seven Segment LED Displayin four digits. User just
need to connect any I/O port of microcontroller through Single Berg WireorRelimate
Connector, hereBC547trasnsitor used as a switch which can be used as toggle between
four Seven Segment Display. User can connect these transistor by using Single Berg Wire
orRelimateConnector to any I/O pins of microcontroller.
Serial RS232 logicData In/Out
through Channel 1
TTL logic DataIn/Out
through Channel 1
Serial RS232 logicData In/Out
through Channel 2
TTL logic DataIn/Out
through Channel 2
-
8/12/2019 AVR Peripheral Board
10/23
AVR Peripheral Board
www.campuscomponent.com
ISP Connector
ISP (In System Programming) port provides connection between AVR
Development Board and AVR Programmer Kit. It has following configuration. It also
used as a power supply from USB (Universal Serial Bus) Cable. As this functionality
provided by Microcontroller IC itself, thus pins are directly connected to respective pins.
-
8/12/2019 AVR Peripheral Board
11/23
AVR Peripheral Board
www.campuscomponent.com
Installation of Software:This guide will help User to installation of Software which are recommended for
Program Compiling and Downloading.
Step 1:
Double Click on WinAVRsoftware, then User will see window like this. Select language
and then press OK.
Step 2:
after clicking OK welcome window will appear, Click on Next >
Step 3:
Read License agreement and press I Agree
-
8/12/2019 AVR Peripheral Board
12/23
AVR Peripheral Board
www.campuscomponent.com
Step 4:
Choose destination folder for installation. Press Next >
Step 5:
Select all checkboxes and then press Installbutton
Step 6:
Now Installing window will appear, Let the progress bar be filled completely
-
8/12/2019 AVR Peripheral Board
13/23
AVR Peripheral Board
www.campuscomponent.com
Step 7:
After Installation complete window press Finish
Installation of WinAVR is completed
Now Install AVR Studio4
Step 1:
Double Click on AVRStudio4 installation file, then welcome window will appear, click
on Next >
-
8/12/2019 AVR Peripheral Board
14/23
AVR Peripheral Board
www.campuscomponent.com
Step 2:
Click on I accept the terms of the agreementand then click on Next >
Step 3:
If User want to change destination folder for installation then click on Changeotherwise or after click on Next >
-
8/12/2019 AVR Peripheral Board
15/23
AVR Peripheral Board
www.campuscomponent.com
Step 4:
Check Install/upgrade Jungo USB Driverand then click on Next >
Step 5:Click on InstallButton
-
8/12/2019 AVR Peripheral Board
16/23
AVR Peripheral Board
www.campuscomponent.com
Step 6:
Let the installation be completed
Step 7:
After completion of installation click on FinishButton
-
8/12/2019 AVR Peripheral Board
17/23
AVR Peripheral Board
www.campuscomponent.com
Building Programs in AVR Studio 4
Following are steps show how programming should develop step by step in AVR
Development Board. These steps will demonstrate to User a program which glows eight LEDs
serially. Its recommend User to use compiler 'WinAVR'and Editor 'AVRStudio4'.
Step 1:
Go to StartMenu > SelectAll Programs
Click onAtmel AVR ToolsFolder > Left Click onAVR Studio 4
-
8/12/2019 AVR Peripheral Board
18/23
AVR Peripheral Board
www.campuscomponent.com
Step 2:
Loading Window will appear on Desktop
SelectNew ProjectNote: However if User wants to open existing project then user needs to click o Open Project
Step 3:
InProject typesection selectAVR GCCOption
Note: GCC used to Compiling Program written in Embedded C Language, whereas AVR
Assembler used to Compiling Program written in Assembly Language.
-
8/12/2019 AVR Peripheral Board
19/23
AVR Peripheral Board
www.campuscomponent.com
Step 4:
Give a Project name whatever User wants
Check Crete initial fileand Create folderCheck boxes
PressNextButton
Step 5:
Two lists will be appeared, selectAVR Simulatoroption from left side list
Step 6:
Select Microcontroller for which User wants to write a program, hereATmega16shown as an
example. Press FinishButton
Warning:Don't give space in your Project Name; it will consider it as invalid name
-
8/12/2019 AVR Peripheral Board
20/23
AVR Peripheral Board
www.campuscomponent.com
IDE will generate some windows which created platform to write a program for selected
Microcontroller i.e.ATmega16. User needs to write program in Middle window.
Step 7:
Write Down program to glow eight LEDs serially inEmbedded CLanguage
Step 8:
Once User completed Program go to main menu and then selectBuildoption > Click onBuildtocompile the program
Note:This is sample program User can write any type of program according to application
-
8/12/2019 AVR Peripheral Board
21/23
AVR Peripheral Board
www.campuscomponent.com
Step 9:
If program doesn't contains any error it will give message as shown in picture and will generate
.hex file, else it won't generate .hexfile
Step 10:Now attach Microcontroller Development Board andAVR USB ProgrammerthroughISPPort
only.
Step 11:
Now openSinaprogSoftware, window will look like this
Note:Just deal with errors don't consider warnings, if User gets any number of warnings still
program can generate .hex file
Warning:Programmer should be connected to ISP port only, if you connect programmer via
FRC to any other port it may damage your programmer as well as your development board.
-
8/12/2019 AVR Peripheral Board
22/23
AVR Peripheral Board
www.campuscomponent.com
Step 12:
Select .hexfile of your respective program
Path to find .hexfile
Go to Directory where you put your Project Folder > Open Folder named as your project name >
open defaultfolder > select .hexfile
Step 13:
Click onProgrambutton present in Flashsection
After Program will finish it will give you message Programming FlashOK
-
8/12/2019 AVR Peripheral Board
23/23
AVR Peripheral Board
Step 14:
Take oneFRCand connect its one end toLEDport
Connect another end toA port
Congrats! You successfully executed your Program
Note:Acoording to sample program we have connected LED port to A port, User can use any of
Microcontrollers I/O port acccording to modified program
Contact Us
e-mail Address:
CampusComponent Pvt. Ltd.
Ackruti Chambers,
Office No. 308, 3rd Floor,
Near Laxminarayan Theater,
Swargate, Pune- 411037
Mobile : +91 9767444555
Landline : +91 20 24275291