Robosoft Systems in association with JNCE presents. Swarm Robotics

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

ATMega128 Rapid Robot Controller Board [RKI-1148]

AVR 40 Pin Rapid Robot controller board

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

Objectives. I/O Ports in AVR. Topics. ATmega16/mega32 pinout. AVR pin out The structure of I/O pins I/O programming Bit manipulating 22/09/2017

C Programming in Atmel Studio 7 Step by Step Tutorial

Using Arduino Boards in Atmel Studio 7

Programming Microcontroller Assembly and C

Introduction to Micro-controllers. Anurag Dwivedi


AVR Board Setup General Purpose Digital Output

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

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

CN310 Microprocessor Systems Design

Various power connectors. 3.3V regulator. 64K Flash (Internal) 2K EEPROM (Internal) 4K SRAM (Internal) JA Mem Adr/ Data. Doc: page 1 of 9

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

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


INTERFACING HARDWARE WITH MICROCONTROLLER

Software debouncing of buttons

Doc: page 1 of 6

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

Doc: page 1 of 6

M32 Development Board

MINI DEVELOPMENT BOARD AVR USERS GUIDE ATMEGA32. make your own intelligent embedded world...

Doc: page 1 of 8

Page 1 of 7. Samtron/Samsung 20S204DA2

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

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

How to use RFpro in Packet Mode

Revision: 05/05/ E Main Suite D Pullman, WA (509) Voice and Fax. Various power connectors. 3.3V regulator

Hardware Manual. Crumb128. Rapid Prototyping Module with the Atmega128 AVR Microcontroller

ET-BASE AVR ATmega64/128

The Atmel ATmega328P Microcontroller

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

Laboratory 1 Introduction to the Arduino boards

Embedded programming, AVR intro

The Atmel ATmega168A Microcontroller

EvB 4.3 v4 User s Guide

COMP2121 Experiment 4

irobot Command Module Owners manual

Wireless Sensor Networks. FireFly 2.2 Datasheet

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

Getting Started with STK200 Dragon

Robotics Training Module ABLab Solutions

Lab Course Microcontroller Programming

Installation and Maintenance

Module 2: Introduction to AVR ATmega 32 Architecture

WEATHER STATION WITH SERIAL COMMUNICATION

Lecture 14. Ali Karimpour Associate Professor Ferdowsi University of Mashhad

Digital and Analogue Project Report

EE 109 Unit 4. Microcontrollers (Arduino) Overview

// sets the position of cursor in row and column

CONTENTS. dspicpro4 KEY FEATURES 4 CONNECTING THE SYSTEM 5 INTRODUCTION 6

RC CAR. Shahadat Hussain Parvez. Jubair Hossain. Tahmid Hassan Talukdar. 12-Apr-12

User s Manual Closer to Real, Zigbee Module ZIG-100. Wireless Communication. ROBOTIS CO.,LTD

2 in 1. BigAVR User s Manual AVR. MikroElektronika. Software and Hardware solutions for Embedded World

ATmega48/88/168 Development Board

Supplementary Materials: Fabrication of a Lab on Chip Device Using Material Extrusion (3D Printing) and Demonstration via Malaria Ab ELISA

Introduction. Unit 4. Numbers in Other Bases in C/C++ BIT FIDDLING. Microcontrollers (Arduino) Overview Digital I/O

Review on Lecture-1. ICT 6641: Advanced Embedded System. Lecture 2 Branch, Call and Delay Loops, AVR I/O port programming

VLSI Design Lab., Konkuk Univ. Yong Beom Cho LSI Design Lab

CHAPTER 6 CONCLUSION AND SCOPE FOR FUTURE WORK

STK User Guide

MAVRIC-IIB Mega AVR Integrated Controller II Revision B Technical Manual

2 in 1. EasyAVR4 User s Manual AVR. MikroElektronika. Software and Hardware solutions for Embedded World

TEVATRON TECHNOLOGIES PVT. LTD Embedded! Robotics! IoT! VLSI Design! Projects! Technical Consultancy! Education! STEM! Software!

AVR XMEGA TM. A New Reference for 8/16-bit Microcontrollers. Ingar Fredriksen AVR Product Marketing Director

CONTENTS BIGAVR2 KEY FEATURES 4 CONNECTING THE SYSTEM 5 INTRODUCTION 6

How2Use DT-AVR ATMEGA168 BMS. By: IE Team. Picture 1 The layout of DT-AVR ATMEGA168 BMS

Table Of Contents TABLE OF CONTENTS...1

Introduction to Assembly language

Embedded Systems Programming. ETEE 3285 Topic HW3: Coding, Compiling, Simulating

Basic Express BX-01. BX-01 Hardware Reference. Version 1.46

DEV-1 HamStack Development Board

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

AVR- M16 development board Users Manual

ATmega328PB Xplained Mini. Introduction. AVR 8-bit Microcontrollers USER GUIDE

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

INDUSTRIAL TRAINING:6 MONTHS PROGRAM TEVATRON TECHNOLOGIES PVT LTD

CMPE C Programming & Embedded Systems. Discussion I (Version 2.0) August 31, 2014

Programming Microcontroller

Debugging embedded HW/SW systems differs greatly from debugging software or hardware alone. Key steps to debugging: 1

Robotic Kits. AVR SWARM Robot Kits

4. Application Programming

UNIVERSITY OF CONNECTICUT. ECE 3411 Microprocessor Application Lab: Fall Quiz II

AVR Training Board-I. VLSI Design Lab., Konkuk Univ. LSI Design Lab

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

JeeNode V2. A small *duino-ish MPU board with a wireless RF module. Jean-Claude Wippler jeelab.equi4.com March 2009

Table of Contents TABLE OF CONTENTS...1

STK User Guide

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

Introduction to Arduino. Wilson Wingston Sharon

8051 Microcontroller

AVRUSBPRG1 USB AVR IN SYSTEM PROGRAMMER

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

Breeze Board. Type A. User Manual.

ARDUINO MEGA 2560 REV3 Code: A000067

#include <avr/io.h> #include <avr/interrupt.h> #define F_CPU UL // 8 MHz.h> #include <util/delay.h>

Lecture 2. Introduction to Microcontrollers

Transcription:

Robosoft Systems in association with JNCE presents Swarm Robotics

What is a Robot Wall-E Asimo ABB Superior Moti ABB FlexPicker

What is Swarm Robotics RoboCup ~ 07

Lets Prepare for the Robotics Age

The ATmega16 Basic Features (1)

ATmega16 Pinout and Packages (DIP and TQFP)

Pin and Port Overview: GND: Ground (0V) VCC: Digital Supply Voltage (2,7 5,5V) AVCC: Analog Supply Voltage connect to low-pass filtered VCC AREF: Analog Reference Voltage, usually AVCC /Reset: Low level on this pin will generate a reset Port A, Port B, Port C, Port D: General Purpose 8 Bit bidirectional I/O - Ports, optional internal pull-up resistors when configured as input output source capability: 20mA Special Functions of the Ports available as configured using the SFRs: Port A: A/D converters Port B: Analog Comparator, SPI, Timer1, Timer0 Port C: JTAG, TWI Port D: USART/UART, External Interrupts, Timer2

I/O Ports

I/O Ports General Purpose IO : Data Direction Input or Output Internal Pullup can be used for Input Pins Output driver can source 20mA current

I/O Ports 3 I/O-Registers for each port: Data Register (r/w): PORTA, PORTB, PORTC, PORTD Data Direction Register (r/w): DDRA, DDRB, DDRC, DDRD Port Input Pin Register (r): PINA, PINB, PINC, PIND The Bits of these registers set the configuration for one Port Pin.

I/O Ports Configuration and usage C-Example 1 - Configure Pin B3 as output, set output level to VCC: DDRB = (1<<3); PORTB = (1<<3); C-Example 2 - Configure Pin D2 as input with pullup, read pin value: DDRD &= ~(1<<2); PORTD = (1<<2); uint8_t x = PIND & (1<<2);

Know your Board

Hardware Pin outs for LED LED Porting LED1 LED2 1 KΩ 1 KΩ PB0 PB1 GND = 0V

Hardware Pin outs for KEYs Push Button Porting Vcc = 5V PD2 PD3 S1 S2 4.7 KΩ 4.7 KΩ

L293D Pin out

Motor Driver Pin out Vcc = 5V Vs= Motor Supply 12V H bridge Motor Driver IC 4 PD4 PB4 PB5 PD5 PB6 PB7 ENA Input1 Input2 ENB Input3 Input4 H Bridge1 H Bridge2 M M Right Motor Left Motor L293D

Motor Driver Pin out Vcc = 5V Vs= Motor Supply 12V H bridge Motor Driver IC 5 PB3 PC0 PC1 PD7 PC6 PC7 ENA Input1 Input2 ENB Input3 Input4 H Bridge1 H Bridge2 M M Right Motor Left Motor L293D

Grid Solving Sensor The figure shown is of the IR sensor which we have used to detect the line and follow it. The fig. b shows the function of the sensor schematically. The transmitter is a PHOTODIODE and at the receiver end it is PHOTO TRANSISTOR

Vcc Vcc Sensor S0 S1 S2 S3 S4 Pin A0 A1 A2 A3 A4 Vcc

CUBE Detector IR Module Works on the same principle as the Grid Solving Sensor Module Consist of an IR pair which For a full white CUBE both Sensor modules will give a logic high on output For a half white half black CUBE only one sensor will give a logic high on output

Software Tools Required WinAVR Open Source GCC Compiler AVR Studio Free Atmel Debugger / Simulator Ponyprog Open source Programmer Avrdude Open source programmer ( Reqd for USB Programmer)

Starting Avr Studio

Menu Project panel Programmer s Notepad I/O view panel Debug panel Message window

Downloading through AVRDUDE avrdude -c usbtiny -p m16 avrdude -c siprog P com1 -p m16 For USB Programmer For Serial Programmer

Response if programmer is not found

Response after connecting the programmer to the board

AVR Dude command to program using USB Programmer avrdude -c usbtiny p m16 -U flash:w:test_leds.hex AVR Dude command to program using Serial Programmer avrdude -c siprog P com1 p m16 -U flash:w:test_leds.hex

Programming through PonyProg

Led Blink Program ( Software Delay) // LED Blink Program using Software Delay //#define F_CPU 8000000UL /* 8MHz CPU clock */ #include <util/delay.h> #include <avr/io.h> int main(void) { DDRB = 0xff; // Make Port B as Output for(;;) // endless loop { PORTB = 0x55; // led1 ON & led2 OFF _delay_ms(500); // Wait for delay of.5sec. PORTB = 0xaa; _delay_ms(500); // led1 OFF & led2 ON // Wait for delay of.5sec. } } // Never reached. return(0);

End of Day 1

RF Module Features:- Supply voltage of 5V to 12V. Operates in ISM [industrial, scientific and medical and Short Range Devices] Frequency at 2.4-2.4835GHz. Supports 256 channels i.e. From 0-255. Supports 255 devices per channel. Supports variable BAUD rate. RS232 compatible.

Jumper Setting CONFIG MODE Closed : Configuration mode Open : Run mode PACKET MODE Closed : Variable Packet Length (with device address selection)* Open : Single Byte Transfer (Broadcast) (80msec delay between 2 char) PACKET MODE CONFIG MODE Note: To switch between modes, you have to power on reset module

Configuration Mode:- Sr. Entity Min Max 1 Channel Number 0 255 2 Device Address 0 255 3 UART baud rate 300 bps 9600 bps

RUN Mode:- Sr. No. Data Transmit Receive Mode Min Length Max Length Delay 1 Single Character Mode 1 1 80 2 Packet Mode 2 40 variable

Packet structure # Character Packet length Device ID Purpose # Start of packet Packet length Device ID Data field Data field = Device ID + Data field (Range: 0x02 0x40) Identifies the device (Range: 0x00 0xFF) Data

Channel and Device ID config:- To choose and select among 256 channels and 256 devices per channel

PORT config:- To choose and select available com ports

If you have already chosen the required port then the TAB turns GREEN indicating that the port is available but not open.

If you have already OPENED the selected port then the TAB turns RED indicating that the port is not available and after its use you can close the port.

If you have not already chosen the required port then the TAB turns RED indicating that the port is not selected and the TAB is DISABLED.

If you have any problem in using this software then use the HELP tab for relevant topic.

AVR Fuse Calculation http://www.engbedded.com/fusecalc

www.robosoftsystems.co.in SWARM Robotics

www.robosoftsystems.co.in SWARM Robotics

www.robosoftsystems.co.in SWARM Robotics