MiniPin II development board

Similar documents
Programming Device Manual Booklet AVR Prog USB v2

ET-BASE AVR ATmega64/128

STK User Guide

User s Manual of Board Microcontroller ET-MEGA2560-ADK ET-MEGA2560-ADK

EvB 5.1 v5 User s Guide

EasyPIC4 User s Manual

Lab Experiment 1: The LPC 2148 Education Board

Programming PIC Microcontrollers in PicBasic Pro Lesson 1 Cornerstone Electronics Technology and Robotics II

Arduino ADK Back. For information on using the board with the Android OS, see Google's ADK documentation.

KTA-223 Arduino Compatible Relay Controller

The Programming Interface

ARDUINO SEVERINO SERIAL SINGLE SIDED VERSION 3 S3v3 (REVISION 2) USER MANUAL

2.0 Command and Data Handling Subsystem

Mobius 3 Circuit Board Programming Instructions

APPLICATION NOTE. AVR042: AVR Hardware Design Considerations. AVR 8-bit Microcontrollers. Features. Description

How To Program A Microcontroller Board (Eb064) With A Psp Microcontroller (B064-74) With An Ios 2.5V (Power) And A Ppt (Power Control) (Power Supply) (

PolyBot Board. User's Guide V1.11 9/20/08

Real Time Clock USB Evaluation Board V3.0

AVR Prog USB v3 MK II Eco Manual

AVR Butterfly Training. Atmel Norway, AVR Applications Group

PICmicro tm Development Board

EVAL-UFDC-1/UFDC-1M-16


Advanced Data Capture and Control Systems

[F/T] [5] [KHz] [AMP] [3] [V] 4 ) To set DC offset to -2.5V press the following keys [OFS] [+/-] [2] [.] [5] [V]

Serial Communications

revolution Contents: Introduction Power 28-pin Project Board with input/output cables

AVR033: Getting Started with the CodeVisionAVR C Compiler. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

PHYS 2P32 Project: MIDI for Arduino/ 8 Note Keyboard

Arduino Due Back. Warning: Unlike other Arduino boards, the Arduino Due board runs at 3.3V. The maximum. Overview

WIZ-Embedded WebServer User s Manual (Ver. 1.0)

AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR

TURBO PROGRAMMER USB, MMC, SIM DEVELOPMENT KIT

POCKET SCOPE 2. The idea 2. Design criteria 3

PICNet 1. PICNet 1 PIC18 Network & SD/MMC Development Board. Features. Applications. Description

Chapter 13. PIC Family Microcontroller

AC-PG-USBASP USBASP AVR Programmer

Introducing AVR Dragon

Controlling a Dot Matrix LED Display with a Microcontroller

The $25 Son of a cheap timer This is not suitable for a beginner. You must have soldering skills in order to build this kit.

APPLICATION NOTE Atmel AT02509: In House Unit with Bluetooth Low Energy Module Hardware User Guide 8-bit Atmel Microcontroller Features Description

INTRODUCTION TO SERIAL ARM

The modular concept of the MPA-3 system is designed to enable easy accommodation to a huge variety of experimental requirements.

Microcontroller Based Low Cost Portable PC Mouse and Keyboard Tester

SKP16C62P Tutorial 1 Software Development Process using HEW. Renesas Technology America Inc.

Hello, and welcome to this presentation of the STM32L4 reset and clock controller.

Bluetooth HC-06 with serial port module Easy guide

Antenna Rotator System

by NetMedia, Inc. All rights reserved. Basic Express, BasicX, BX-01, BX-24 and BX-35 are trademarks of NetMedia, Inc.

Troubleshooting and Diagnostics

BE635 User Manual. Rev. V Bolymin, Inc. All Rights Reserved.

Atmel Norway XMEGA Introduction

Quick Start Guide. TWR-MECH Mechatronics Board TOWER SYSTEM

PN-L702B LCD MONITOR TOUCH PANEL DRIVER OPERATION MANUAL. Version 2.1

Quick Installation. A Series of Intelligent Bar Code Reader with NeuroFuzzy Decoding. Quick Installation

RC2200DK Demonstration Kit User Manual

QUICK START GUIDE FOR DEMONSTRATION CIRCUIT BIT DIFFERENTIAL ADC WITH I2C LTC2485 DESCRIPTION

Display Message on Notice Board using GSM

AVR042: AVR Hardware Design Considerations. Introduction. Features. 8-bit AVR Microcontroller APPLICATION NOTE

A+ Guide to Managing and Maintaining Your PC, 7e. Chapter 1 Introducing Hardware

RS-422/485 Multiport Serial PCI Card. RS-422/485 Multiport Serial PCI Card Installation Guide

FLYPORT Wi-Fi G

RS232 Board datasheet

Accurate Measurement of the Mains Electricity Frequency

Radio sensor powered by a mini solar cell the EnOcean STM 110 now functions with even less light

PRODUCTIVITY THROUGH INNOVATION 600 CONTROL DIRECT DRIVE TECHNICAL/OPERATION MANUAL

Android Controlled Based Interface

USART and Asynchronous Communication

EEL 4924 Electrical Engineering Design (Senior Design) Final Report. 19 April Name: Brandon Kalarovich

Quick Start Guide. MRB-KW01 Development Platform Radio Utility Application Demo MODULAR REFERENCE BOARD

Web Site: Forums: forums.parallax.com Sales: Technical:

Transmitter Interface Program

WICE-SPI Hardware Operation Manual

DS2438EVKIT+ Smart Battery Monitor Evaluation Kit

DATA LOGGER AND REMOTE MONITORING SYSTEM FOR MULTIPLE PARAMETER MEASUREMENT APPLICATIONS. G.S. Nhivekar, R.R.Mudholker

Microcontroller Display Interfacing Techniques

Real Time Clock USB Evaluation Board

USBSPYDER08 Discovery Kit for Freescale MC9RS08KA, MC9S08QD and MC9S08QG Microcontrollers User s Manual

AVR126: ADC of megaavr in Single Ended Mode. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE

Microcontroller Systems. ELET 3232 Topic 8: Slot Machine Example

Digital I/O: OUTPUT: Basic, Count, Count+, Smart+

How To Use An Ams 5812 Pressure Sensor With A Usb Starter Kit

MANUAL FOR RX700 LR and NR

Operator Touch Panel PC OTP/57V esom2586 / x86

C8051F020 Utilization in an Embedded Digital Design Project Course. Daren R. Wilcox Southern Polytechnic State University Marietta, Georgia

MODULE BOUSSOLE ÉLECTRONIQUE CMPS03 Référence :

ABACOM - netpio.

Data Acquisition Module with I2C interface «I2C-FLEXEL» User s Guide

Tire pressure monitoring

ezsystem elab16m Project 1F: Alarm System (Full Project description)

The Quadcopter Controller

Conversion Between Analog and Digital Signals

QL-PROG Microchip MCU Programmer User s Manual Qianlongsheng Electronic Technology Co., Ltd.

Cell Phone Operated Land Rover

DDS VFO CONSTRUCTION MANUAL. DDS VFO Construction Manual Issue 1 Page 1

User Manual. AS-Interface Programmer

Designing VM2 Application Boards

Open1788 User Manual. Features

- 35mA Standby, mA Speaking pre-defined phrases with up to 1925 total characters.

ECIO40P ECIO28P ECRM40. Page 1. USB programmable microcontrollers. 0.6 DIP footprint. Supplied with a free version of Flowcode. E-blocks compatible

Transcription:

MiniPin II development board BY JURIJ MIKELN www.svet-el.si\english MiniPin II is a smaller brother of MegaPin. Smaller, but still very user friendly and versatile development board, where programs for AVRs may be tested and evaluated. Key MiniPin II features: 1. supports all AVR microcontrollers in 8-pin, 28-pin & 40 pin DIL packages (except ATmega8515, 8535, i.e. older AVRs), 2. 6 built-in sockets for 1-Wire DS18S20 temperature sensors, which can be connected to any I/O Port, 3. 8 LEDs on each of four I/O ports (PortA, PortB, PortC & PortD), 4. IDC I/O connectors on four ports: (PortA, PortB, PortC, PortD), 5. built-in 250 ma fuse to protect USB from short circuit on board, 6. built-in USB communication to UART (not on MiniPin II B version!), 7. built-in external oscillator circuit to clock microcontroller from an external quartz crystal, 8. built-in 3-pin socket for ceramic resonator, 9. built-in 2-pin socket for 32,768 khz quartz crystal, 10. built-in adjustable reference voltage for the AVRs ADC, 11. built-in keyswitch array which can be connected to any I/O Port, 12. built-in Power-ON LED, 13. built-in serial communication Tx/Rx LEDs. 107

Connecting your programmer to the MiniPin II board. When connecting your programmer to the MiniPin II board, be sure that you connect the programmer s socket to the socket labelled PROGGY, as shown in Figure1. If you don t own a Proggy programmer, make sure that you connect it s signals to the MiniPin II board, as follows: Figure 3: Select microcontroller Figure 1: SPI Signals on Proggy IDC connector The MiniPin II board is powered by the programmer and it has a 250 ma fuse in series with the Vcc power line, to protect your PC s USB port in case you have a shortcircuit on your MiniPin II extension board. Programming AVRs in MiniPin II MiniPin II can program AVR microcontrollers that are mounted on the MiniPin II board itself - just mount your AVR chip in the appropriate socket, connect your programmer to MiniPin II and your AVR chip is ready for programming. To insure that communication is OK, and that you have selected the correct microcontroller, press the Read Signature button. If the read signature corresponds to the microcontroller you are programming, then you may proceed with programming. If the signature doesn t match, then select the correct microcontroller from the list. If the program can t even read the microcontroller s signature, then there is something wrong with either the microcontroller, or some connections on the MiniPin II board are wrong (i.e. remove load from PortB). ISP programming from within Bascom-AVR Mount your AVR microcontroller in an appropriate socket, and within Bascom-AVR select Options/Programmer. A window like that shown in Figure 4 will pop-up. ISP programming from within AVR Studio 4 Mount your AVR microcontroller in the appropriate socket and click the AVR icon from within the AVR Studio 4 program (Figure2). Using the Main tab, select the microcontroller that you want to program (Figure 3). Figure 4: Bascom programming setting Figure 2: Connect to Programmer icon In the Programmer window, select STK500 (requires stk500.exe), and set COM-port to the same COM port number as seen in the Device Manager program (see the full description regarding this subject in the MegaPin chapter). Then double-click the folder icon (to the right of the STK500 EXE window) and select the path to your STK500.exe file (which is usually the same as that shown 108

in Figure 4). Set the Baud rate to 57,600. Click OK and your Bascom-AVR settings are all done. ISP programming in Bascom-AVR the STK500 Native driver Figure 5 shows the proper settings for programming using the STK500 native driver. Keyboard The MiniPin II board has 8 keyswitches built-in, with protection resistors and a connector which allows the user to connect the keyswitches to any free I/O Port connector on MiniPin II. Figure 5: STK500 native programmer settings Figure 7 1-Wire sensors The MiniPin II board has circuitry built-in to allow the use of popular DS18S20 temperature sensors. Please note that three sensors (J10-J12) are individually connected to their own I/O pin while those connected to J13 J15 share the same I/O pin. For easier programming, sockets are labelled as follows: J10 connects to PortX.0, J 11 connects to PortX.1 etc. All data lines are pulled up to Vcc by 4k7 resistors. Connect CON5 to any I/O port (PortA, PortB, PortC, PortD) with a flat cable and you can now measure temperature with your sensor(s). For a Bascom sample program, please refer to Bascom-AVR sample programs for use with MiniPin II at the end of this chapter. To use the keyswitches, connect CON2 to any I/O port (PortA, PortB, PortC, PortD) with a flat cable. External Crystal oscillator Figure 8 MiniPin II has a built-in External oscillator, where you can mount any crystal from below 1 MHz to up to 16 MHz. The External oscillator can be enabled with jumper J9. When using it with 8-pin AVRs you must also place a jumper at J5. Figure 6: 1-Wire connections The external oscillator is very handy to have onboard when a microcontroller has its fuse bits 109

Figure 9 set (usually) accidently to External Oscillator. With the external oscillator enabled (and a crystal placed in socket X2) we can restore a wrongly-programmed AVR. AREF and 32,768 khz XTAL The MiniPin II board has a built-in external reference voltage, which can be enabled with jumper J8 (AREF Enable). With the TP1 trimpot, the user can set AREF from nearly 5V down to 2.5 Volts. An external AREF is handy when performing analog to digital conversion (A/D) on voltages between 2.5 and 5.0 Volts. Most AVRs have both a built in Vcc (generally 5.0V) and an accurate 2.5V reference voltage. Using the Vcc reference voltage (generally 5.0V), the resolution of the 10-bit A/D conversion is 4.88 milivolts. If we perform A/D conversions of input voltages in the 3.0 V full-scale range, and we are looking for the best resolution, we would quickly see that a 5V reference is not suitable. With a 3.0 V reference voltage, we can achieve a resolution of 2.93 milivolts, which is nearly twice as good as that with 5.0 V reference voltage. NOTE With ATmega8 and ATmega168 connect a 32,768 khz crystal to socket J6 and set fuse bits to Ext. Low freq. crystal! Figure 10 Use of a resonator or Quartz crystal The MiniPin II board can also use a resonator or XTAL, if it is placed in socket J6. The capacitors needed for use with the crystal are pre-placed on the PCB., A 32,768 khz (watch) crystal is very handy with AVRs that have a Timer2 which can operate in asynchronous mode. With a little Bascom code and 32,768 khz watch crystal (see RTC chapter), we can make a Real Time Clock with actual date & time and not using too many microcontroller resources. RTC (Real Time Clock) clock routines can also wake-up the AVR microcontroller while in the Powersave mode, thus conserving battery power. Figure 12 Figure 11 Figure 13 110

Figure 14 LED signalization The MiniPin II board features many LEDs:» Power supply OK,» Rx/Tx communication,» 8 LEDs on all four I/O Ports. Communications The MiniPin II board supports the following communications methods: Serial bi-directional communications: bi-directional communication between the target microcontroller and the USB port using an FT232RL USB bridge. 1-Wire Place a DS18S20 in any of the sockets J10 to J15, connect CON5 with a flat cable to any Port connector (CON3, CON4, CON6, CON7). Socket J10 corresponds to PortX.0, J11 corresponds to PortX.1 etc. See the 1-Wire sensor section earlier in the chapter for more details. 1Wire_4.BAS Testing circuit: Figure 6 Multiple 1-Wire sensors, one on each Port For_loop.BAS Testing circuit: / Simple FOR-Next loop for testing LEDs on all ports 1Wire_1.BAS Testing circuit: Figure 16 Single 1-Wire sensor on a bus, temperature is displayed on LCD GLCD_1.BAS ATmega AVRs Testing circuit: Figure 1, page 67 (GLCD chapter) Use of graphical LCD with table drawn on LCD and 8x8 font 1Wire_2.BAS Testing circuit: Figure 6 Program displays 1-Wire ID of two sensors on the bus GLCD_2.BAS ATmega AVRs Testing circuit: Figure 1, page 67 (GLCD chapter) GLCD with fonts that can be placed anywhere on GLCD 1Wire_3.BAS Testing circuit: Figure 6 Same as 1Wire_2.BAS but ID of sensors are stored in EEPROM GLCD_3.BAS ATmega AVRs Testing circuit: Figure 1, page 67 (GLCD chapter) GLCD with the use of a touch panel including simple calibration of the touch panel 111

112