advanced energy vehicle n.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
Advanced Energy Vehicle PowerPoint Presentation
Download Presentation
Advanced Energy Vehicle

Loading in 2 Seconds...

play fullscreen
1 / 13

Advanced Energy Vehicle - PowerPoint PPT Presentation


  • 119 Views
  • Uploaded on

Advanced Energy Vehicle. Arduino Programming Basics Reference: AEV Lab Manual Arduino Programming Basics Grading Guidelines. FINAL DESIGN. AEV Project Objective (Problem Definition). Initial Concepts (Brainstorming). experimental Research. (Programming). (System Analysis). PT 1

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Advanced Energy Vehicle' - uzuri


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
advanced energy vehicle

Advanced Energy Vehicle

Arduino Programming Basics

Reference:

AEV Lab Manual

Arduino Programming Basics Grading Guidelines

slide2

FINAL DESIGN

AEV Project Objective

(Problem Definition)

Initial Concepts

(Brainstorming)

experimental Research

(Programming)

(System Analysis)

PT 1

PT 2

PT 3

PT 4

Present AEV Design

lab objectives
Lab Objectives
  • The objectives of this lab are:
  • Become familiar with the automatic control system hardware components
  • Setup the software
  • Program the basic function calls in controlling the AEV
  • Become familiar with uploading programs on the Arduino and testing
    • Become familiar with troubleshooting techniques
hardware
Hardware
  • The heart of the system consists of an ArduinoNano (see Figure 1), controlling two Toshiba motor control chips
  • See AEV Controller Manual
    • For those interested in details
making the connections
Making the Connections
  • Take careful consideration where the motors and battery are connected to the control system!
    • We will only be using the first and second motor ports
    • Male and female connectors are already installed
  • ASK if uncertain!
the arduino software
The Arduino Software
  • The Backbone has been developed for AEV
    • Not expected to be a microprocessor programmer
    • The AEV controller is programmed by the user (you), using a series of function calls which have various integer input types:
      • byte, int, and long
    • More detail can be found in AEV Controller Manual if interested
programming basics
Programming Basics

Arduino Programming Basics Procedure Guidelines:

  • The following slides are a summary of the AEV Lab Manual and Lab Procedure Guidelines
  • First an overview will be given on how to properly upload the AEV sketchbook program
  • Then a review of the function calls available to you
aev controller
AEV Controller

AEV Controller – Loading the executable

  • Copy sketchbook folder from the class drive
    • Paste into and run from a flash drive (or N: drive)
  • Using the AEV Lab Manual load the Arduino Software
aev controller1
AEV Controller

AEV User Manual – Arduino Programming Basics

  • In the Arduino software
    • File – Preference
    • Browse to AEV Controller Folder and select the sketchbook folder
    • ***CLOSE AND RELOAD EXECUTABLE***
  • In the Arduino software
    • File – sketchbook – “Open desired file”
    • Confirm that the right Com Port is selected when uploading control programs
      • Tools – Serial Port – last Com Port listed
aev controller2
AEV Controller

AEV User Manual – Available Keywords

  • celerate( )
    • Four Arguments
      • Motor number 1,2,3, and 4 for all
      • Start speed in % (0 – 100)
      • End speed in % (0 – 100)
      • Time in seconds (1 – 10)
    • Example: celerate(4,20,50,2)
      • Will accerlarate all motors from 20% to 50% full power in 2 seconds.
    • Example: celerate(2,100,20,1)
      • Will decelerate motor 2 from 100% to 20% full power in 1 second.
aev controller3
AEV Controller

AEV User Manual – Available Keywords

  • motorSpeed( )
    • Two Arguments
      • Motor number 1,2,3, and 4 for all
      • Start speed in % (0 – 100)
    • Example: motorSpeed(2,67)
      • Sets motor 2 speed to 67% full power
  • goFor( )
    • One Argument
      • milliseconds
    • Example: goFor(5000)
      • Continues the last command for 5 seconds.
aev controller4
AEV Controller

AEV User Manual – Available Keywords

  • brake( )
    • One Argument
      • Motor number 1,2,3, and 4 for all
    • Example: brake(2)
      • Fully brake motor 2
  • reverse( )
    • No Arguments; reverses all motors
    • Example: reverse()
      • Reverses all motors
arduino programming basics lab
Arduino Programming Basics Lab

Lab Activity

  • Follow AEV Lab Manual and Lab Procedure Guidelines
  • Team:
    • Setup for testing
  • Individual:
    • Copy sketchbook folder on to a flash drive
    • Setup Arduino software with sketchbook
    • Program the following basic commands requested in procedure document
    • Demonstrate to one of the instructional team members (signed)
      • Make sure to include in your INDIVIDUAL summary report