Avr trainer board 100 user manual

  • 1,660 views
Uploaded on

 

More in: Business , Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
1,660
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
32
Comments
0
Likes
1

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. ABLab Solutions AVR Trainer Board-100 User Manual 1
  • 2. ABLab Solutions Sneha Palace, Plot No.60,Laxmi Vihar, Near Appolo Hospital, Bhubaneswar-751005 Website: www.ablab.in | E-mail: info@ablab.in | Ph: 91-674-6573832 Table of Contents Introduction.............................................................................................................. 4 Specification.............................................................................................................. 4 Package Content........................................................................................................ 5 Hardwares......................................................................................................... 5 Sample Codes & Hex Files .................................................................................. 5 Softwares, Installation Guides, User Guides....................................................... 6 Header Files....................................................................................................... 6 Datasheets......................................................................................................... 6 User Manuals..................................................................................................... 6 Tutorials ............................................................................................................ 6 Microcontrollers Supported....................................................................................... 6 Alphanumeric LCDs Supported .................................................................................. 7 Hardware Description................................................................................................ 8 Port Headers...................................................................................................... 9 ISP Header....................................................................................................... 10 LCD Data Header.............................................................................................. 11 LCD Control Header.......................................................................................... 12 LCD Header...................................................................................................... 12 LED Header...................................................................................................... 13 Buzzer Header.................................................................................................. 14 Power Supply Headers..................................................................................... 15 LCD Preset ....................................................................................................... 15 2
  • 3. ABLab Solutions Sneha Palace, Plot No.60,Laxmi Vihar, Near Appolo Hospital, Bhubaneswar-751005 Website: www.ablab.in | E-mail: info@ablab.in | Ph: 91-674-6573832 Connections Guides................................................................................................. 16 LED Array Connection.............................................................................................. 16 LCD Connection....................................................................................................... 16 Buzzer Connection................................................................................................... 17 Programming Microcontroller ................................................................................. 17 Update Yourself....................................................................................................... 17 3
  • 4. ABLab Solutions Sneha Palace, Plot No.60,Laxmi Vihar, Near Appolo Hospital, Bhubaneswar-751005 Website: www.ablab.in | E-mail: info@ablab.in | Ph: 91-674-6573832 Introduction Congratulation with your new AVR Trainer Board-100 microcontroller starter kit. The AVR Trainer Board-100 is a complete starter kit for the AVR Flash Microcontroller from ABLab Solutions. It is designed to give designers a quick start to develop code on the AVR Flash Microcontrollers, combined with advanced features for using the starter kit for prototyping and testing of new designs. Specification  Input voltage: 8V-12V  Maximum input current: 1A Features  Low cost with high quality.  Easy to get used to board withthe best silk layer.  Standard DC jack for power input.  In-Built regulated5V power supply.  Power indicator LED.  Reset switch.  Power switch.  1X8 LED array.  5V buzzer.  12 MHz crystal oscillator.  1X16 header for mounting alphanumeric LCD.  2X5 ISP header for programming the AVR flash microcontrollers.  Individual 2X5 headers for each I/O port.  2X5 & 1X3 headers for alphanumeric LCD connection.  1X3 header for buzzer connection.  Preset to adjust contrast of alphanumeric LCD.  2X5 header for LED array connection.  12V, 5V and GND headers for external power usage.  Easy to interface with other ABLab Solutions products. 4
  • 5. ABLab Solutions Sneha Palace, Plot No.60,Laxmi Vihar, Near Appolo Hospital, Bhubaneswar-751005 Website: www.ablab.in | E-mail: info@ablab.in | Ph: 91-674-6573832 Package Content Hardwares  AVR Trainer Board-100 - 1pcs  ATmega16 microcontroller - 1pcs  10 to10 FRC female connector - 4pcs  1 to 1 connector - 10pcs Sample Codes & Hex Files  LED interfacing withATmega16  LED blinking withATmega16  LED pattern 1 with ATmega16  LED pattern 2 with ATmega16  LED pattern 3 with ATmega16  LED pattern 4 with ATmega16  LED pattern 5 with ATmega16  LED pattern 6 with ATmega16  LED pattern 7 with ATmega16  LED pattern 8 with ATmega16  LED dancing withATmega16  16X1 alphanumeric LCD interfacing with ATmega16  Horizontal scrolling in 16X1 alphanumeric LCD with ATmega16  16X2 alphanumeric LCD interfacing with ATmega16  Horizontal scrolling in 16X2 alphanumeric LCD with ATmega16  Vertical scrolling in 16X2 alphanumeric LCD with ATmega16  20X4 alphanumeric LCD interfacing with ATmega16  Horizontal scrolling in 20X4 alphanumeric LCD with ATmega16  Vertical scrolling in 20X4 alphanumeric LCD with ATmega16  Buzzer interfacing with ATmega16 5
  • 6. ABLab Solutions Sneha Palace, Plot No.60,Laxmi Vihar, Near Appolo Hospital, Bhubaneswar-751005 Website: www.ablab.in | E-mail: info@ablab.in | Ph: 91-674-6573832 Softwares, Installation Guides, User Guides  AVR Studio 4  WinAVR 2010  SinaProg  USBasp driver(for Window XP, Vista & 7) Header Files  LCD Datasheets  ATmega16  JHD161A  JHD162A  JHD204A User Manuals  AVR Trainer Board-100 user manual Tutorials  Introduction to ATmega16  I/O Ports of ATmega16  Alphanumeric LCD Tutorial  Buzzer Tutorial Microcontrollers Supported The AVR Trainer Board-100 currently has support for the following AVR flash microcontrollers in all speed grades:  ATmega16  ATmega32 6
  • 7. ABLab Solutions Sneha Palace, Plot No.60,Laxmi Vihar, Near Appolo Hospital, Bhubaneswar-751005 Website: www.ablab.in | E-mail: info@ablab.in | Ph: 91-674-6573832 Alphanumeric LCDs Supported The AVR Trainer Board-100 currently has support for the following alphanumeric LCDs:  16X1 Alphanumeric LCD  16X2 Alphanumeric LCD  20X4 Alphanumeric LCD 7
  • 8. ABLab Solutions Sneha Palace, Plot No.60,Laxmi Vihar, Near Appolo Hospital, Bhubaneswar-751005 Website: www.ablab.in | E-mail: info@ablab.in | Ph: 91-674-6573832 Hardware Description PORTB Header ISP Header PORTD Header PORTC Header LED Header PORTA Header LCD Data Header LCD Preset LCD Header Reset Switch Buzzer Header 12MHz Crystal DC Socket Buzzer LCD Control Header 1X8 LED Array Power SwitchPower LED Ground Header 12V Header 5V Header Microcontroller 5V Voltage Regulator Rectifier 8
  • 9. ABLab Solutions Sneha Palace, Plot No.60,Laxmi Vihar, Near Appolo Hospital, Bhubaneswar-751005 Website: www.ablab.in | E-mail: info@ablab.in | Ph: 91-674-6573832 Port Headers All the port headers in AVR Trainer Board-100 can e used to interface on- board and external peripheral devices to the AVR flash microcontroller mounted on it. The port headers are supplied with 5V (VCC) and ground (GND) supply in addition to signal lines so that, no extra power supply connections are required when interfacing on-board and external peripheral devices with AVR flash microcontroller. The pin out for the I/O port headers is explained in the below figure: In the above figure, x refers to the I/O port (A, B, C or D) of AVR flash microcontrollers mounted on AVR Trainer Board-100. Pin Description Px0 Pin 0 of Port x Px1 Pin 1 of Port x Px2 Pin 2 of Port x Px3 Pin 3 of Port x Px4 Pin 4 of Port x Px5 Pin 5 of Port x Px6 Pin 6 of Port x Px7 Pin 7 of Port x VCC +5V GND GND 9
  • 10. ABLab Solutions Sneha Palace, Plot No.60,Laxmi Vihar, Near Appolo Hospital, Bhubaneswar-751005 Website: www.ablab.in | E-mail: info@ablab.in | Ph: 91-674-6573832 ISP Header ISP header in AVR Trainer Board-100 is used to program the AVR flash microcontroller mounted on it. The header is supplied with 5V (VCC) and ground (GND) supply in addition to signal lines so that, no extra power supply connections are required when connecting AVR USB programmer with AVR Trainer Board-100. The pin out for the ISP header is explained in the below figure: Where NC means no connection. Pin Description GND GND VCC +5V NC No Connection SCK SCK Pin of MCU NC No Connection MISO MISO Pin of MCU NC No Connection MOSI MOSI Pin of MCU NC No Connection Reset Reset Pin of MCU 10
  • 11. ABLab Solutions Sneha Palace, Plot No.60,Laxmi Vihar, Near Appolo Hospital, Bhubaneswar-751005 Website: www.ablab.in | E-mail: info@ablab.in | Ph: 91-674-6573832 LCD Data Header LCD data header in AVR Trainer Board-100 is used to connect the data pins of the alphanumeric LCD, which is mounted on LCD header with any of the I/O port of the AVR flash microcontroller. The header is supplied with 5V (VCC) and ground (GND) supply in addition to signal lines so that, no extra power supply connections are required when interfacing alphanumeric LCD with AVR flash microcontroller. The pin out for the LCD data header is explained in the below figure: Pin Description D0 Data Bit 0 of LCD D1 Data Bit 1 of LCD D2 Data Bit 2 of LCD D3 Data Bit 3 of LCD D4 Data Bit 4 of LCD D5 Data Bit 5 of LCD D6 Data Bit 6 of LCD D7 Data Bit 7 of LCD VCC +5V GND GND 11
  • 12. ABLab Solutions Sneha Palace, Plot No.60,Laxmi Vihar, Near Appolo Hospital, Bhubaneswar-751005 Website: www.ablab.in | E-mail: info@ablab.in | Ph: 91-674-6573832 LCD Control Header LCD control header in AVR Trainer Board-100 is used to connect the control pins of alphanumeric LCD, which is mounted on LCD header with any of the I/O port of the AVR flash microcontroller. The pin out for the LCD control header is explained inthe below figure: Pin Description RS Resister Select Pin of LCD R/W Read/Write Pin of LCD EN Enable Pin of LCD LCD Header LCD header in AVR Trainer Board-100 is used to mount the alphanumeric LCD on to the AVR Trainer Board-100. This header is connected to LCD data and control header. The pin out for the LCD header is explained in the below figure: 12
  • 13. ABLab Solutions Sneha Palace, Plot No.60,Laxmi Vihar, Near Appolo Hospital, Bhubaneswar-751005 Website: www.ablab.in | E-mail: info@ablab.in | Ph: 91-674-6573832 LED Header LED header in AVR Trainer Board-100 is used to interface the on-board 1X8 LED array to any of the I/O port of the AVR flash microcontroller. The header is supplied with ground (GND) supply in addition to signal lines so that, no extra power supply connections are required when interfacing 1X8 LED array with AVR flash microcontroller. The pin out for the LED header is explained in the below figure: 13
  • 14. ABLab Solutions Sneha Palace, Plot No.60,Laxmi Vihar, Near Appolo Hospital, Bhubaneswar-751005 Website: www.ablab.in | E-mail: info@ablab.in | Ph: 91-674-6573832 Where NC means no connection. Pin Description LED0 Bit 0 of LED Array LED1 Bit 1 of LED Array LED2 Bit 2 of LED Array LED3 Bit 3 of LED Array LED4 Bit 4 of LED Array LED5 Bit 5 of LED Array LED6 Bit 6 of LED Array LED7 Bit 7 of LED Array NC No Connection GND GND Buzzer Header Buzzer header in AVR Trainer Board-100 is used to interface the on-board buzzer with the AVR flash microcontroller. The pin out for the buzzer header is explained inthe below figure: Pin Description VCC +5V I/P Input to Buzzer GND GND 14
  • 15. ABLab Solutions Sneha Palace, Plot No.60,Laxmi Vihar, Near Appolo Hospital, Bhubaneswar-751005 Website: www.ablab.in | E-mail: info@ablab.in | Ph: 91-674-6573832 Power Supply Headers The three power supply headers, 12V, 5V & GND in AVR Trainer Board-100 is used to supply power to external peripheral devices. The pin out for the power supply header is explained in the below figure: In the above picture, all the points of each box are connected because all the header pins of a supply header are connected to each other. It means five header pins from eachsupply voltage. LCD Preset The LCD Preset is used to control the contrast of the alphanumeric LCD mounted on the LCD header of AVR Trainer Board-100. When rotated in clockwise direction, the contrast of alphanumeric LCD increases and when rotated in anti- clockwise, the contrast of the alphanumeric LCD decreases. 15
  • 16. ABLab Solutions Sneha Palace, Plot No.60,Laxmi Vihar, Near Appolo Hospital, Bhubaneswar-751005 Website: www.ablab.in | E-mail: info@ablab.in | Ph: 91-674-6573832 Connections Guides In this section, you will learn how to connect the on-board peripheral devices with AVR flash microcontroller mounted on 40 pin socket of AVR Trainer Board-100. LED Array Connection The on-board 1X8 LED array can be connected to any of the four I/O ports (PORTA, PORTB, PORTC or PORTD) of AVR flash microcontroller mounted on 40 pin socket of AVR Trainer Board-100. Take a 10 to 10 FRC female connector and connect one side of it to LED header and the other side to any of the port header to which you want to connect the 1X8 LED array. Be careful when connecting 10 to 10 FRC female connector between headers. Check the orientation carefully (GND of one side should be connected to GND of another side). Example: Connect the LED header to PORTB header. LCD Connection Mount the alphanumeric LCD with female flow solder on the LCD to male LCD header of AVR Trainer Board-100. Connect the LCD data header with any I/O port of AVR Flash Microcontroller with a 10 pin FRC female connector. Then, connect the control pins, RS, RW and EN pins of LCD control header to any three pin of another I/O port with 1 to1 connectors. Example- Connect LCD data header with PORTB and RS, RW & EN of LCD control header with PC0, PC1 & PC2 pins of PORTC. Be careful when connecting 10 to 10 FRC female connector between headers. Check the orientation carefully (GND of one side should be connected to GND of another side). 16
  • 17. ABLab Solutions Sneha Palace, Plot No.60,Laxmi Vihar, Near Appolo Hospital, Bhubaneswar-751005 Website: www.ablab.in | E-mail: info@ablab.in | Ph: 91-674-6573832 Buzzer Connection Connect the GND, I/P & VCC pins of buzzer header with GND power supply header, an I/O pin of a port and 5V supply header respectively with 1 to 1 connectors. Example- Connect GND, I/P & VCC pins with GND supply header, PB0 of PORTB and 5V supply header respectively. Programming Microcontroller To program the AVR flash microcontroller mounted on 40 pin socket of AVR Trainer Board-100, connect the ISP header of AVR Trainer Board-100 with ISP header of AVR USB Programmer with a 10 pin FRC female connector. Then, connect the AVR USB programmer to USB port of PC/Laptop directly or with the help of USB AM-FM cable. Then, download the program to the AVR flash microcontroller using SinaProg Hex Downloader. Be careful when connecting 10 to 10 FRC female connector between headers. Check the orientation carefully (GND of one side should be connected to GND of another side). Update Yourself For more Softwares, Tutorials, Sample Codes, Installation Guides, User Guides, User Manuals, Videos, Products & Components and Updates, Please Visit us at: www.ablab.in Mail us at: Info@ablab.in View us at: www.youtube.com/ablabsolutions Like us at: www.facebook.com/ablab.in Join us at: www.facebook.com/groups/ablabsolutions 17