AVR Peripheral Board Campus Component Pvt. Ltd.
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 of illustration 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 http:// 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.
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 regulator has heat sink for heat dissipation so that it can supply 1Amp current continuously without getting over heated. It has switches for reset and power. All the ports are connected to standard 10 pin Box Header connectors. Open pads for connecting microcontroller'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
Supports GLCD (Graphical LCD) with linear 20x1 Straight Berg Male Strip Connector LCD contrast adjusting through Potentiometer provided All ports are connected to standard 10 pin Box Header connector and also a separate Straight Berg male strip connector for each port 10 pin Box Header connector for In System Programming (ISP) On board 4x4 matrix keypad with Tactile Switches On board RTC (Real Time Clock) and external EEPROM (Electrically Erasable Programmable Read only Memory) with provision of CMOS 3.3V disc battery backup Provided quad seven segment common cathode 7-segment display on board Provides eight LEDs for I/O testing Buzzer provided on board for testing Availability of Serial communication through DB9 Serial port Provision of four miniature push-on Tactile switches on board to get momentary logic high/low for testing Array of 8 miniature SPDT slide switches (DIP Packaged Switches) provided on board 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 onboard Bridge 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 board s all components and connectors should not exceed than 1 Amp
AVR Peripheral Board Hardware Description: Quad Common Cathode 7 segment Display On/Off Switch 7 segment Switching Transistor Connector AC/DC Socket Voltage Regulator Bridge Rectifier USART Rx/Tx Pins Quad Common Cathode 7 segment Display Connector Power LED Buzzer B Port D Port Reset Switch Buzzer Connections D Port B Port VIN Microcontroller IC DIP Packaged Slide Switch ISP Port C Port A Port GND C Port A Port Keypad Connector VCC RS232 Communication DB9 Connector and Rx/Tx Connections Potentiometer for Voltage Divider Circuit ULN2003 IC and Connector Tactile Switches for Momentary Logic high/low (1/0) RTC Connector 4x4 Matrix Keypad RTC IC 3V Battery Socket EEPROM IC EEPROM Connector LCD and GLCD Control Pins LCD and GLCD Data pins Connector LED Port LEDs for I/O Trsting GLCD Control Pins LCD Connector GLCD Connector Jumper to switch between LCD and GLCD Contrast Pin Potentiometer for contrast adjust of LCD and GLCD
Power Supply Socket: This power supply socket which actually named as AC/DC Socket provides the functionality to user to connect external power supply from Transformer, Battery or Adapter via DC 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 AC power Supply. It also includes 7805 Voltage Regulator which provides regulated 5V DC for Microcontroller and other I/O connectors. GND, VCC and VIN Connector: 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 (Voltage supplied 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 SPDT switch which is used for only make power supply on/off provided through AC/DC Socket. Reset Switch is type of Push on DPST tactile switch which 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 Headers and 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 Header can be connected using FRCs and also Single Berg Wires for individual pin connections. Notch Ÿ FRC Cable: Two FRC Connectors can be connected with the help of FRC cable. FRC cable has following pin configuration.
A, B, C, D Port Connector: 40 pin ATmega series microcontroller has four I/O ports generally. These Four Port are expanded from Microcontroller IC separately by using 10 pin Box Header for each port (A, B, C and D port). Among 10 pins 8 pins represents I/O pin of respective port th th and 9 and 10 pin represents GND and VCC respectively. This is shown in figure. LED Connector Eight LEDs used for I/O testing are connected in common cathode configuration. 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's Box Header through Flat 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 Strip connector. 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 Single Berg Wire or Relimate Connector. Another connector is 10pin Box Header through which User can connect LCD s or GLCD s Data Pins (D0-D7) to any of I/O port (A, B, C or D) through FRC. There are other 2 group of three pins of Berg Male Strip Connector 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 Wire or Relimate Cable. 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. Jumper to switch between LCD and GLCD Contrast Pin LCD GLCD Note: User can only connect either LCD or GLCD on the board.
4x4 matrix Keypad and Connector: This is onboard 4x4 matrix Keypad can be used as an input medium for different applications made by sixteen push-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 Header and another is 10 pin Straight Berg Male Strip Connector. User can use any one of these as per the convenience. Box Header can be connected through FRC and Berg Male Strip can be connected through Single Berg Wire or Relimate Connector. Switches for Momentary Logic High/Low (1/0): Four push-on Tactile Switches are provided onboard for momentary logic control i.e. High/Low (1/0). These switches can be connected by using Single Berg Wire or Relimate Connector to I/O pins of Microcontroller. Another Switch which is miniature Sliding Switch in DIP package also known as DIP switches. These used for the same purpose as above. These also can be connected by using Single Berg Wire or Relimate Connector. Analog O/P Compare Connector: This board featured with Analog O/P compare connector which enables User to connect external analog sensors into Voltage divider form. This connector can be connected through Single Berg Wire or Relimate Connector. To adjust resistance User just need to tune Potentiometer provided. ULN2003 IC and Connector: This board featured with onboard ULN2003 IC and its connections. The ULN2003 is a monolithic high voltage and high current Darlington transistor arrays. It consists of seven NPN darlington pairs that features high-voltage outputs with commoncathode clamp diode for switching inductive loads. It can be used to drive High Voltage and Current DC as well as Stepper Motors, Relays and devices with high wattage ratings. User just need to make connections between I/O pins and ULN I/P pins through Single Berg wire or Relimate connector. Devices that needs to control can be connected to O/P pins as stated in picture.
RTC and EEPROM IC and Connector: This board is also featured with the circuitry of DS1307 IC as RTC (Real Time Clock) and AT24C02 IC as EEPROM (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, SDA and SQW pins to microcontroller s corresponding TWI pins through Single Berg Wire or Relimate Connector. This RTC IC also has passive power supply by using 3V CMOS Battery socket. Serial Port (DB9 Conector) and Serial Communication: This port is provided for the purpose of serial communication. This helps the microcontroller 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. Serial RS232 logic Data In/Out through Channel 1 Serial RS232 logic Data In/Out through Channel 2 TTL logic Data In/Out through Channel 1 TTL logic Data In/Out through Channel 2 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 Display in four digits. User just need to connect any I/O port of microcontroller through Single Berg Wire or Relimate Connector, here BC547 trasnsitor 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 or Relimate Connector to any I/O pins of microcontroller. Transistor BC547 Connector for Transistor to Toggle between Seven Segment Display Quad Seven Segment Display Seven Segment LED Display Connector
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.
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 WinAVR software, 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
Step 4: Choose destination folder for installation. Press Next > Step 5: Select all checkboxes and then press Install button Step 6: Now Installing window will appear, Let the progress bar be filled completely
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 >
Step 2: Click on I accept the terms of the agreement and then click on Next > Step 3: If User want to change destination folder for installation then click on Change otherwise or after click on Next >
Step 4: Check Install/upgrade Jungo USB Driver and then click on Next > Step 5: Click on Install Button
Step 6: Let the installation be completed Step 7: After completion of installation click on Finish Button
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 Start Menu > Select All Programs Click on Atmel AVR Tools Folder > Left Click on AVR Studio 4
Step 2: Loading Window will appear on Desktop Select New Project Note: However if User wants to open existing project then user needs to click o Open Project Step 3: In Project type section select AVR GCC Option Note: GCC used to Compiling Program written in Embedded C Language, whereas AVR Assembler used to Compiling Program written in Assembly Language.
Step 4: Give a Project name whatever User wants Warning: Don't give space in your Project Name; it will consider it as invalid name Check Crete initial file and Create folder Check boxes Press Next Button Step 5: Two lists will be appeared, select AVR Simulator option from left side list Step 6: Select Microcontroller for which User wants to write a program, here ATmega16 shown as an example. Press Finish Button
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 in Embedded C Language Note: This is sample program User can write any type of program according to application Step 8: Once User completed Program go to main menu and then select Build option > Click on Build to compile the program
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.hex file Note: Just deal with errors don't consider warnings, if User gets any number of warnings still program can generate.hex file Step 10: Now attach Microcontroller Development Board and AVR USB Programmer through ISP Port only. 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. Step 11: Now open Sinaprog Software, window will look like this
Step 12: Select.hex file of your respective program Path to find.hex file Go to Directory where you put your Project Folder > Open Folder named as your project name > open default folder > select.hex file Step 13: Click on Program button present in Flash section After Program will finish it will give you message Programming Flash OK
Step 14: Take one FRC and connect its one end to LED port Connect another end to A port Note: Acoording to sample program we have connected LED port to A port, User can use any of Microcontroller s I/O port acccording to modified program Congrats! You successfully executed your Program Contact Us Campus Component Pvt. Ltd. Ackruti Chambers, Office No. 308, 3rd Floor, Near Laxminarayan Theater, Swargate, Pune- 411037 Mobile : +91 9767444555 Landline : +91 20 24275291 e-mail Address: sales@campuscomponent.com