Top Banner
Analog ON/OFF control system conversion to Digital ON/OFF control system ELCT 201 week 13
17

Analog ON/OFF control system conversion to Digital ON/OFF control system ELCT 201 week 13.

Dec 18, 2015

Download

Documents

Andra Phillips
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Analog ON/OFF control system conversion to Digital ON/OFF control system ELCT 201 week 13.

Analog ON/OFF control system

conversion to

Digital ON/OFF control system

ELCT 201 week 13

Page 2: Analog ON/OFF control system conversion to Digital ON/OFF control system ELCT 201 week 13.

SP = Vin 2

Vin 1

Dead Band(Window height)

WindowMaker

Subsystem 1

WindowComparator

U.L.

L.L.

H Bridge(L298n)

andDC Motor

Subsystem 2 Subsystem 3

Forward

Reverse

Mechanical Linkage

Feedback

Analog ON/OFF Control System(Using op amps and a H Bridge)

(Window position)

Page 3: Analog ON/OFF control system conversion to Digital ON/OFF control system ELCT 201 week 13.

SP = Vin 2

Vin 1

Dead Band(Window height)

WindowMaker

Subsystem 1

WindowComparator

U.L.

L.L.

H Bridge(L298n)

andDC Motor

Subsystem 2 Subsystem 3

Forward

Reverse

Mechanical Linkage

Feedback

Analog ON/OFF Control System(Using op amps and a H Bridge)

(Window position)

Page 4: Analog ON/OFF control system conversion to Digital ON/OFF control system ELCT 201 week 13.

SP = Vin 2

Vin 1

Dead Band(Window height)

WindowMaker

Subsystem 1

WindowComparator

U.L.

L.L.

H Bridge(L298n)

andDC Motor

Subsystem 2 Subsystem 3

Forward

Reverse

Mechanical Linkage

Feedback

Analog ON/OFF Control System(Using op amps and a H Bridge)

(Window position)

Page 5: Analog ON/OFF control system conversion to Digital ON/OFF control system ELCT 201 week 13.

SP = Vin 2

Vin 1

Dead Band(Window height)

WindowMaker

Subsystem 1

WindowComparator

U.L.

L.L.

H Bridge(L298n)

andDC Motor

Subsystem 2 Subsystem 3

Forward

Reverse

Mechanical Linkage

Feedback

DIGITAL ON/OFF Control System

(Window position)

Page 6: Analog ON/OFF control system conversion to Digital ON/OFF control system ELCT 201 week 13.
Page 7: Analog ON/OFF control system conversion to Digital ON/OFF control system ELCT 201 week 13.

Intro to Arduino“Hardy Friend”

• Arduino– http://arduino.cc/

• Specifically, the UNO– http://arduino.cc/en/Main/ArduinoBoardUno

• Getting Started– http://arduino.cc/en/Guide/Windows

• Blink– http://arduino.cc/en/Tutorial/Blink

Page 8: Analog ON/OFF control system conversion to Digital ON/OFF control system ELCT 201 week 13.

• /*• Blink• • Turns on an LED on for one second, then off for one second, repeatedly.• • The circuit:• * LED connected from digital pin 13 to ground.• • * Note: On most Arduino boards, there is already an LED on the board• connected to pin 13, so you don't need any extra components for this example.• • • Created 1 June 2005• By David Cuartielles• • http://arduino.cc/en/Tutorial/Blink• • based on an orginal by H. Barragan for the Wiring i/o board• • This example code is in the public domain.

• • */

• int ledPin = 13; // LED connected to digital pin 13

• // The setup() method runs once, when the sketch starts

• void setup() { • // initialize the digital pin as an output:• pinMode(ledPin, OUTPUT); • }

• // the loop() method runs over and over again,• // as long as the Arduino has power

• void loop() • {• digitalWrite(ledPin, HIGH); // set the LED on• delay(1000); // wait for a second• digitalWrite(ledPin, LOW); // set the LED off• delay(1000); // wait for a second• }

A good first program to download and run

Page 9: Analog ON/OFF control system conversion to Digital ON/OFF control system ELCT 201 week 13.

SP = Vin 2

Vin 1

Dead Band(Window height)

WindowMaker

Subsystem 1

WindowComparator

U.L.

L.L.

H Bridge(L298n)

andDC Motor

Subsystem 2 Subsystem 3

Forward

Reverse

Mechanical Linkage

Feedback

DIGITAL ON/OFF Control System

(Window position)

Page 10: Analog ON/OFF control system conversion to Digital ON/OFF control system ELCT 201 week 13.

SP = Vin 2

Vin 1

Dead Band(Window height)

WindowMaker

Subsystem 1

WindowComparator

U.L.

L.L.

H Bridge(L298n)

andDC Motor

Subsystem 2 Subsystem 3

Forward

Reverse

Mechanical Linkage

Feedback

DIGITAL ON/OFF Control System

(Window position)

Page 11: Analog ON/OFF control system conversion to Digital ON/OFF control system ELCT 201 week 13.

SP = Vin 2

Vin 1

Dead Band(Window height)

WindowMaker

Subsystem 1

WindowComparator

U.L.

L.L.

H Bridge(L298n)

andDC Motor

Subsystem 2 Subsystem 3

Forward

Reverse

Mechanical Linkage

DIGITAL ON/OFF Control System

(Window position)

Arduino Controller

Feedback

Page 12: Analog ON/OFF control system conversion to Digital ON/OFF control system ELCT 201 week 13.

Conversion topics

• Hardware

• Software

Page 13: Analog ON/OFF control system conversion to Digital ON/OFF control system ELCT 201 week 13.

I/O Management

• Inputs– 2 analog inputs

• Setpoint• Feedback

• Outputs– 6 Digital outputs

• 1 Forward signal to H Bridge• 1 Reverse signal to H Bridge• 2 Set Point Display• 2 Feedback Display

Page 14: Analog ON/OFF control system conversion to Digital ON/OFF control system ELCT 201 week 13.

WindowMaker

Subsystem 1

WindowComparator

U.L.

L.L.

H Bridge(L298n)

andDC Motor

Subsystem 2 Subsystem 3

Forward

Reverse

Mechanical Linkage

DIGITAL ON/OFF Control System

SP = Vin 2

(Window position)

Arduino Controller

Feedback

Analog InputA/D (10Bits)

Analog InputA/D (10Bits)

Digital Out

Digital Out

Page 15: Analog ON/OFF control system conversion to Digital ON/OFF control system ELCT 201 week 13.

DIGITAL ON/OFF Control System

H Bridge(L298n)

andDC Motor

Subsystem 3

Forward

Reverse

Mechanical Linkage

SP = Vin 2

(Window position)

Arduino Controller

Feedback

Analog InputA/D (10Bits)

Analog InputA/D (10Bits)

Digital Out

Digital Out

Page 16: Analog ON/OFF control system conversion to Digital ON/OFF control system ELCT 201 week 13.

DIGITAL ON/OFF Control System

H Bridge(L298n)

andDC Motor

Subsystem 3

Forward

Reverse

Mechanical Linkage

SP = Vin 2

(Window position)

Arduino Controller

Feedback

Analog InputA/D (10Bits)

Analog InputA/D (10Bits)

Digital Out

Digital Out

Page 17: Analog ON/OFF control system conversion to Digital ON/OFF control system ELCT 201 week 13.

DIGITAL ON/OFF Control System

H Bridge(L298n)

andDC Motor

Subsystem 3

Forward

Reverse

Mechanical Linkage

SP = Vin 2

(Window position)

Arduino Controller

Feedback

Analog InputA/D (10Bits)

Analog InputA/D (10Bits)

Digital Out

Digital Out