An FTDI connection: The ATtiny microcontrollers don t have a hardware UART External Crystal header pins for an optional crystal

Similar documents
Robosoft Systems in association with JNCE presents. Swarm Robotics

AVR Board Setup General Purpose Digital Output

C Programming in Atmel Studio 7 Step by Step Tutorial

Using Arduino Boards in Atmel Studio 7

Layman definition: Gadgets and devices Technical definition: Self-controlled devices Usually, such systems consist of I/O (input/output) devices such

Freeduino USB 1.0. Arduino Compatible Development Board Starter Guide. 1. Overview

Introduction to Micro-controllers. Anurag Dwivedi

AVR 40 Pin Rapid Robot controller board

Getting Started with STK200 Dragon

ATMega128 Rapid Robot Controller Board [RKI-1148]

keyestudio Keyestudio MEGA 2560 R3 Board

Omega MP. Multi-Programming Shield for Atmel Microcontrollers. User Manual

Laboratory 1 Introduction to the Arduino boards

IDUINO for maker s life. User Manual. For IDUINO development Board.

Lab 01 Arduino 程式設計實驗. Essential Arduino Programming and Digital Signal Process

ARDUINO UNO REV3 SMD Code: A The board everybody gets started with, based on the ATmega328 (SMD).

EasyAVR6 Development System

User s Manual of Board Micro Controller ET-EASY168 STAMP ET-EASY168 STAMP. Picture displays structure of Board ET-EASY168 STAMP.

- Open-source and open-hardware modular robotic platform specially created for educational purposes.

ZL10AVR. Versatile Evaluation Board for AVR Microcontrollers

Breeze Board. Type B. User Manual.

2. Tutorial ESC Programming myavr MK2 USB UFO Doctor, June 5 rd, 2010

Goal: We want to build an autonomous vehicle (robot)

Introduction to Arduino. Wilson Wingston Sharon

The RBE Development board is designed to use an AVR644P to control a robotics system. The Board has multiple functions and features.

ARDUINO UNO REV3 Code: A000066

AVRUSBPRG1 USB AVR IN SYSTEM PROGRAMMER

Adafruit Metro Mini. Created by lady ada. Last updated on :12:28 PM UTC

AVR Intermediate Development Board. Product Manual. Contents. 1) Overview 2) Features 3) Using the board 4) Troubleshooting and getting help

Software debouncing of buttons

Rhino Robot Control Board [RKI-1550]

Breeze Board. Type A. User Manual.

8051 Intermidiate Development Board. Product Manual. Contents. 1) Overview 2) Features 3) Using the board 4) Troubleshooting and getting help

arduino mega D4F69C4DABCA73DE7282FD2C4B5B8 Arduino Mega / 6

ET-AVRProg mini. Technical Specifications of ET-AVRProg mini

AVR Development Board

XNUCLEO-F030R8, Improved STM32 NUCLEO Board

M32 Development Board

1/Build a Mintronics: MintDuino

ARDUINO MEGA 2560 REV3 Code: A000067

DEV-1 HamStack Development Board

Arduino Uno. Arduino Uno R3 Front. Arduino Uno R2 Front

IDUINO for maker s life. User Manual. For IDUINO Mega2560 Board(ST1026)

Manual 601: : USB/RS232. Specifications. Contents. Options

Atmel Microprocessor Programming With AVRISPmkii

Alessandra de Vitis. Arduino

Atmega Fuse Repair Programmer Schematic

Programming Microcontroller Assembly and C

ARDUINO MICRO WITHOUT HEADERS Code: A000093

Arduino Dock 2. The Hardware

Building and using JasperMIDI

Manual. Specifications. Contents. Options

ARDUINO MINI 05 Code: A000087

8051 Basic Development Board. Product Manual. Contents. 1) Overview 2) Features 3) Using the board 4) Troubleshooting and getting help

BUILDING YOUR KIT. For the Toadstool Mega328.

Halloween Pumpkinusing. Wednesday, October 17, 12

Now you have the basic hardware tools, its time to setup the software environment. The main softwares you will need are:

Atmel AVR datasheet. Matrix Multimedia Atmel AVR Board EB Contents

Lesson 5 Arduino Prototype Development Platforms. Chapter-8 L05: "Internet of Things ", Raj Kamal, Publs.: McGraw-Hill Education

ECE 353 Lab 4. General MIDI Explorer. Professor Daniel Holcomb Fall 2015

ARDUINO M0 PRO Code: A000111

3.3V regulator. JA H-bridge. Doc: page 1 of 7

Omega-328 SB. Rapid Prototyping tool with Shield Base for Atmel AtmegaXX8 Microcontrollers. User Manual

Lab Course Microcontroller Programming

BUS=="usb", ACTION=="add", SYSFS{product}=="AVRISP mkii", MODE="0666", SYMLINK+="avrdev"

AVRminiV3.1 Manual. 1. AVRminiV3.1 Overview. 2. AVRminiV3.1 Features and Specifications Standard Features: 2.2. Optional Features:

PART 1 : MR-162. PART 2 : CPU Board. PART 3 : Software Tools. PART 4 : Compile and Download. 1. Introduction 2. Features

ARDUINO MEGA ADK REV3 Code: A000069

Arduino Diecimila Pinouts 697B B8D-A50A-61944C26074F

ARDUINO LEONARDO WITH HEADERS Code: A000057

MINITRONICS v1.0 DATASHEET

Educato. Assembly Instructions

AVR-P20 development board Users Manual

Page 1 of 7. Samtron/Samsung 20S204DA2

CHAPTER 6 CONCLUSION AND SCOPE FOR FUTURE WORK

AlphaBot2 robot building kit for Arduino

Thank you for purchasing the RGB Multi-MCU base and driver board from SuperTech-IT and TheLEDCube.com

AVR MICROCONTROLLER PROJECT TUTORIAL E-PUB

Mega128-DEVelopment Board Progressive Resources LLC 4105 Vincennes Road Indianapolis, IN (317) (317) FAX

General-Purpose Microcontroller Module 12a Hardware Reference Release 1.4a (October 11, 2017)

Lab 2.2 Ohm s Law and Introduction to Arduinos

Atmel Startup 3: Binky One PORT, PIN, DDR and LED

COMP2121 Experiment 4

ET-BASE AVR ATmega64/128

University of Hawaii EE 361L MPLab Quick Tutorial and Project 2.1 Last updated September 1, 2011

USER MANUAL ARDUINO I/O EXPANSION SHIELD


Quick Start by JP Liew

Figure 1-1 ISPAVRU1 application

This week we will learn about embedded programming. The agenda:

STK User Guide

Doc: page 1 of 6

Installation and Maintenance

AN-103 Preparing ZBasic Generic Target Devices

CEIBO FE-5111 Development System

Cerebot Nano Reference Manual. Overview. Revised April 15, 2016 This manual applies to the Cerebot Nano rev. A

Sanguino TSB. Introduction: Features:

CEIBO FE-51RD2 Development System

Doc: page 1 of 8

ATmega48/88/168 Development Board

Transcription:

Getting Started with the T-Board The T-Board modules were designed to speed up your AVR prototyping. This guide will show you just how quickly you can get up and running with the Hello World for microcontrollers a blinking LED. Variants There are three T-Board variants: T-Board 328: a 28-pin version supporting ATmega8/48/88/168/328 microcontrollers T-Board 24/44/84: a 14-pin version supporting ATtiny20/24/44/84/441/841 microcontrollers T-Board 25/45/85: an 8-pin version supporting ATtiny13/25/45/85 microcontrollers The T-Board 328 has two features not supported by the other variants: An FTDI connection: The ATtiny microcontrollers don t have a hardware UART External Crystal header pins for an optional crystal Module Layout and Function 2014 **T-Board 328 only A. Power Connector: A standard 2.1mm centre-positive jack (DC, max 9V) B. Voltage Selection Jumper: Allows the microcontroller to operate at either 5V or 3.3V C. **FTDI Connector: Connect an FTDI breakout board for Serial communication over USB D. Reset switch E. **Crystal header pins: Gives you the option of connecting an external crystal F. ICSP Connector: Connect an ISP programmer to program the microcontroller G. Power LED What Software Should I Use? The T-Board works with all AVR Integrated Development Environments, including WinAVR, Atmel Studio and the Arduino IDE. We recommend Atmel Studio as it is simple to use, has advanced debugging functionality, and supports the T-Board without any additional configuration. It does however require Microsoft Windows. If you don t already have Atmel Studio installed then you ll need to download and install it. Installation is straightforward, and covered on the Atmel website.

Hello World Blink For the Hello World project you will need: 1. 1 x T-Board 2. 1 x Breadboard 3. 1 x LED 4. 1 x Resistor (matched to the LED) 5. 1 x jumper wire 6. 1 x ISP Programmer Step 1: Setup the Breadboard 1. Place the T-Board on the breadboard 2. Move the Voltage Selection jumper to the 5V position 3. Connect the jumper wire between GND and the negative power rail 4. Connect the resistor between an empty row on the breadboard and a. PB0on the T-Board 328 b. PA5 on the T-Board 24/44/84 c. PB4 on the T-Board 25/45/85 5. Connect the anode of the LED to the resistor and the cathode to the negative power rail Step 2: Write the Program 1. Create a new project in Atmel Studio: a. Click the File menu, then New, then Project b. Choose GCC C Executable Project, give the project a name, choose where to save it and click OK.

c. Choose the correct device: T-Board 328: ATmega328P T-Board 24/44/84: ATtiny 84 T-Board 25/45/85: ATtiny 85 2. Type the following code into Atmel Studio

/* * T_Board_Blink.c * * Created: 24/05/2014 11:54:26 * Author: Andrew Retallack, Crash-Bang Prototyping * */ #define F_CPU 16000000UL //We are running at 16MHz. Used to time the delay #include <avr/io.h> #include <util/delay.h> int main(void) { //Configure the LED port DDRB = (1<<DDB0); //Set Pin PB0 as an output pin } while(1) { PORTB = (1<<PORTB0); _delay_ms(1000); PORTB &= ~(1<<PORTB0); _delay_ms(1000); } //Turn the LED on, by making PB0 high //Delay 1 second //Turn the LED off, by making PB0 low //Delay 1 second If you are not using the T-Board 328 then change the above code to refer to the LED pin: Existing T-Board 24/44/84 T-Board 25/45/85 DDRB DDRA DDRB DDB0 DDA5 DDB4 PORTB PORTA PORTB PORTB0 PORTA5 PORTB4 3. Compile the code a. Set this to a release version (on the toolbar, look for a drop-down box that may say Debug, Release or Configuration Manager. Select Release). b. Press F7 to build the solution c. There should be no errors Step 3: Upload the Program to the T-Board 4. Connect the ISP programmer you ll be using to the T-Board and Computer 5. Select the ISP Programmer that you will be using, by select the Project menu, then properties 6. On the Tool tab, select the debugger/programmer you re using. 7. Upload the program to the T-Board: Click on Debug menu, then Start without Debugging 8. The LED should start blinking.

9. If you like you can now disconnect the T-Board from the ISP programmer, and connect it to a 9V battery to operate in stand-alone mode. Using the FTDI Connector By connecting an FTDI breakout board or cable, you re able to communicate with your computer using the serial protocol. The T-Board was designed to work with Sparkfun s Basic FTDI breakout board, but can be used with any (including the Elektor FT232R USB/Serial Bridge) - just ensure the correct pins are connected. You can also use the FTDI breakout board to program your T-Board, however this requires a bootloader on your microcontroller. This is a great way to program your board if you re using the Arduino IDE. Additional Resources Atmel Studio Documentation: http://www.atmel.no/webdoc/atmelstudio/index.html Atmel Programmer: http://www.atmel.com/tools/avrispmkii.aspx USBTiny Programmer: https://learn.adafruit.com/usbtinyisp or https://www.sparkfun.com/products/9825 Using Atmel Studio with a USBTiny Programmer: http://www.crash-bang.com/getting-startedatmel-studio/ Atmel In-System Debuggers: http://www.atmel.com/microsite/atmel_studio6/debugging_simulation.aspx Sparkfun s FTDI Breakout: https://www.sparkfun.com/products/9716 Arduino IDE: http://arduino.cc/en/main/software Atmel Studio: http://www.atmel.com/tools/atmelstudio.aspx