Arduino DC motor driver L298 H-Bridge Arduino GUI vs Atmel Studio

Slides:



Advertisements
Similar presentations
ECE 480 Design Team 3 Technical Lecture
Advertisements

What is Arduino?  Arduino is a ATMEL 168 micro-controller kit designed specially for small projects  User friendly IDE(Integrated Development Environment)
Robotics Club, Snt Council2 The 3 Schools of Robotics: Mechanical Design – Types of motors – Material selection –
MICRO-CONTROLLER: A microcontroller is the brain of the robot: These are: 1. Integrated Circuits (ICs) 2. Programmable.
Mark Neil - Microprocessor Course 1 Digital to Analog Converters.
ELECTRICAL. Circuits Outline Power Hub Microcontroller Sensor Inputs Motor Driver.
Introduction of Holtek HT-46 series MCU
ATtiny2313 Timers/Counters CS-423 Dick Steflik. What Do You Use Timers For? Timing of events (internal or external)‏ Scheduling Events Measuring the width.
HT46 A/D Type MCU Series Data Memory (Byte) Program Memory HT46R22 (OTP) HT46C22 (Mask) 2Kx Kx16 4Kx HT46R23 (OTP) HT46C23 (Mask) HT46R24.
Timers and Interrupts Shivendu Bhushan Summer Camp ‘13.
Sensors And Micro-Controllers
Introduction.
ASPPRATECH.
 Main Components:  Sensors  Micro controller  Motor drivers  Chasis.
Khaled A. Al-Utaibi  What is Arduino?  Arduino Boards  Arduino Shields  Arduino Uno Hardware.
Welcome to Workshop 88’s Tiny85 Class Please download Tiny core libs from: (for Arduino 1.0, not 1.5!) Unzip and.
Robotics Research Laboratory Louisiana State University.
Arduino Part 1 Topics: Microcontrollers Programming Basics: structure and variables Digital Output Analog to Digital Conversion.
Colorado Space Grant Consortium Gateway To Space ASEN 1400 / ASTR 2500 Class #12 Gateway To Space ASEN 1400 / ASTR 2500 Class #12 T-58.
AVR  Modern RISC architecture: Compact and FAST.  Tuned for high level languages.  Consistent architecture across entire line.  Small AVR are subsets.
16-Bit Timer/Counter 1 and 3 Counter/Timer 1,3 (TCNT1, TCNT3) are identical in function. Three separate comparison registers exist. Thus, three separate.
Department of Electronic & Electrical Engineering Embedded system Aims: Introduction to: Hardware. Software Ideas for projects ? Robotics/Control/Sensors.
2.0 EMBEDDED CONTROLLER Engr. Hj. Mohamad Fauzi bin Zakaria Department of Mechatronics and Robotics Engineering Faculty of Electrical and Electronic Engineering.
Arduino Josh Villbrandt February 4, Digital Circuits Analog versus digital – What’s the difference? – How to represent an analog signal in a computer?
LVTech / / IRC #makelv on freenode.net Jared Steckel AN INTRODUCTION.
September, 2007ENGR Low-Level Robot Control Mechatronics: Motors, sensors & embedded controls.
Arduino 101 Instructors: Ted Markson / Jim Sweeney.
ELE22MIC Lecture 18 The AVR Sleep Modes The ATMEGA128’s Timer System
Counter/Timer/PWM. incoming Lab. Counter counter is a device which stores the number of times a particular event or process has occurred synchronous/asynchronous.
Atmel Atmega128 Overview ALU Particulars RISC Architecture 133, Mostly single cycle instructions 2 Address instructions (opcode, Rs, Rd, offset) 32x8 Register.
ATtiny23131 A SEMINAR ON AVR MICROCONTROLLER ATtiny2313.
Timers and Interrupts Anurag Dwivedi. Let Us Revise.
Suleyman Demirel University CSS340 Microprocessor Systems – Lecture 2 ATMEGA328P ARCHITECTURE ANALOG INPUTS.
CS-280 Dr. Mark L. Hornick 1 Atmel Timer/Counter System Most microcontrollers include some type of timer system Facilitates real-time monitoring and control.
Automatic accident avoiding system PROJECT MEMBERS MUTHUKUMAR.K (05ME33) SAKTHIDHASAN.S (05ME39) SAKTHIVEL.N (05ME40) VINOTH.S (05ME56) PROJECT GUIDE:
智慧電子應用設計導論(1/3) Arduino MEGA 2560
Microcontroller Applications ELEC 421 Dr. Ron Hayne Images Courtesy of Ramesh Gaonkar and Delmar Learning.
ARDUINO OVERVIEW Bob Wilton – KF5TPQ. ARDUINO UNO.
Microcontroller basics Embedded systems for mortals.
Introduction to AVR Name : 1) Abhishek Yadav ) Prakash Giri ) Kheni Niral ) Bhadresh Langadiya Branch.
NAM S.B MDLAB. Electronic Engineering, Kangwon National University 1.
INTERFACING HARDWARE WITH MICROCONTROLLER GUIDED BY: Prof. ASIF SIR 1. AKSHAY KIRAN 2. DEEP PARIKH 3. JIGAR PATEL 4. TILAK PATEL ,05,D2D06,09.
Arduino.
Servos Elementary Robotics with Servos
Outline Introduction to Arduino UNO Programming environment setup GPIO
Obstacle avoiding robot { pixel }
Scrolling LCD using Arduino.
Application Case Study Security Camera Controller
V.V.P. ENGINEERING COLLEGE,RAJKOT
Arduino Based Industrial appliances control system by decoding dual tone multi frequency signals on GSM / CDMA network. Submitted by:
UMAC 구성예 (1) ▪ CPU (w/ WD Board) - Ethernet (TCP/IP)
Home automation using Arduino & ‘PIR sensor’
Automatic human detector garbage can.
BITS EDU. CAMPUS , VARNAMA
Table 2. Microcontroller pin description[5]
AVR Addressing Modes Subject: Microcontoller & Interfacing
‘SONAR’ using Arduino & ultrasonic distance sensor
The Arduino Microcontroller: Atmel AVR Atmega 328
Timer/Counter Modified from Dr. Lam Phung’s Slides.
Arduino Analog I/O Analog input pins: 0 – 5
8-bit Timer/Counter2 with PWM and Asynchronous Operation
Arduino Board.
8051 Micro Controller.
Introduction to Arduino
Arduino Board.
Arduino म्हणजे काय?.
HOME AUTOMATION SYSTEM BLUETOOTH BASED.  INTRODUCTION  PROBLEM STATEMENT  OBJECTIVES  BLOCK DIAGRAM  CIRCUIT DIAGRAM  METHODOLOGY  APPLICATIONS.
Presented By,  Mamata Yadav (BE Elex & Comm.) Vice R&D Coordinator(HW), PCRT  Payal Shah (BE Elex & Comm.)  Ananta Das (BE Elex & Comm.) R&D Team,PCRT.
Presentation transcript:

Arduino DC motor driver L298 H-Bridge Arduino GUI vs Atmel Studio Stefan Pirvu ADCES 2015

Content Arduino board review Serial communication, writing C# app in order to communicate over serial - code Using H-Bridge to power DC motors PWM vs. continuous voltage drive Arduino GUI - code Atmel Studio - code

Arduino board review USB support 16MHz 32k memory 14 I/O pins 5 PWM pins 6 ADC pins

Using H-Bridge to power DC motors

L298 http://www.tech.dmu.ac.uk/~mgongora/Resources/L298N.pdf Cheap aprox. 10-20 RON Dual H-Bridge

PWM vs. continuous voltage drive Analog bad at low voltages needs mechanical switches ranges depend on the number of resistors very resistant over time Digital good at low voltages fine control buzz sounds

Arduino GUI http://arduino.cc/ Serial communication, writing C# app in order to communicate over serial CODE 

Atmel Studio http://www.atmel.com/microsite/atmel_studio6/ But before coding… http://www.atmel.com/images/Atmel-8271-8-bit-AVR-Microcontroller-ATmega48A-48PA-88A-88PA-168A-168PA-328-328P_datasheet_Complete.pdf http://arduino.cc/en/Tutorial/SecretsOfArduinoPWM

ATMEGA328P AIN0/OC0A/PCINT22 – Port D, Bit 6 OC0A, Output Compare Match output: The PD6 pin can serve as an external output for the Timer/Counter0. Compare Match A. The PD6 pin has to be configured as an output (DDD6 set (one)) to serve this function. The OC0A pin is also the output pin for the PWM mode timer function. T1/OC0B/PCINT21 – Port D, Bit 5 OC0B, Output Compare Match output: The PD5 pin can serve as an external output for the Timer/Counter0. Compare Match B. The PD5 pin has to be configured as an output (DDD5 set (one)) to serve this function. The OC0B pin is also the output pin for the PWM mode timer function.

ATMEGA328 Timer/Counter LET’S CODE  Timer Registers Several registers are used to control each timer. The Timer/Counter Control Registers TCCRnA and TCCRnB hold the main control bits for the timer. (Note that TCCRnA and TCCRnB do not correspond to the outputs A and B.) These registers hold several groups of bits: Waveform Generation Mode bits (WGM): these control the overall mode of the timer. (These bits are split between TCCRnA and TCCRnB.) Clock Select bits (CS): these control the clock prescaler Compare Match Output A Mode bits (COMnA): these enable/disable/invert output A Compare Match Output B Mode bits (COMnB): these enable/disable/invert output B LET’S CODE 

Use AVRDude to upload HEX >C:\Program Files\Arduino\hardware\tools\avr\bin avrdude.exe -C”C:Program Files\Arduino\hardware\tools\avr\etc\avrdude.conf” ­f -patmega328p -carduino -P\.COM4 -b115200 -D -Uflash:w:”$(ProjectDir)Debug$(TargetName).hex”:i

Thank you QUESTIONS??