Download presentation
Published byAndra Phillips Modified over 9 years ago
1
ELCT 201 week 13 Analog ON/OFF control system conversion to Digital ON/OFF control system
2
(Using op amps and a H Bridge)
Analog ON/OFF Control System (Using op amps and a H Bridge) Subsystem 1 Subsystem 2 Subsystem 3 Vin 1 Dead Band (Window height) Window Maker Window Comparator H Bridge (L298n) and DC Motor U.L. Forward L.L. Reverse SP = Vin 2 (Window position) Feedback Mechanical Linkage
3
(Using op amps and a H Bridge)
Analog ON/OFF Control System (Using op amps and a H Bridge) Subsystem 1 Subsystem 2 Subsystem 3 Vin 1 Dead Band (Window height) Window Maker Window Comparator H Bridge (L298n) and DC Motor U.L. Forward L.L. Reverse SP = Vin 2 (Window position) Feedback Mechanical Linkage
4
(Using op amps and a H Bridge)
Analog ON/OFF Control System (Using op amps and a H Bridge) Subsystem 1 Subsystem 2 Subsystem 3 Vin 1 Dead Band (Window height) Window Maker Window Comparator H Bridge (L298n) and DC Motor U.L. Forward L.L. Reverse SP = Vin 2 (Window position) Feedback Mechanical Linkage
5
DIGITAL ON/OFF Control System
Subsystem 1 Subsystem 2 Subsystem 3 Vin 1 Dead Band (Window height) Window Maker Window Comparator H Bridge (L298n) and DC Motor U.L. Forward L.L. Reverse SP = Vin 2 (Window position) Feedback Mechanical Linkage
7
Intro to Arduino “Hardy Friend”
Specifically, the UNO Getting Started Blink
8
A good first program to download and run
/* 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 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
9
DIGITAL ON/OFF Control System
Subsystem 1 Subsystem 2 Subsystem 3 Vin 1 Dead Band (Window height) Window Maker Window Comparator H Bridge (L298n) and DC Motor U.L. Forward L.L. Reverse SP = Vin 2 (Window position) Feedback Mechanical Linkage
10
DIGITAL ON/OFF Control System
Subsystem 1 Subsystem 2 Subsystem 3 Vin 1 Dead Band (Window height) Window Maker Window Comparator H Bridge (L298n) and DC Motor U.L. Forward L.L. Reverse SP = Vin 2 (Window position) Feedback Mechanical Linkage
11
DIGITAL ON/OFF Control System
Arduino Controller Subsystem 1 Subsystem 2 Subsystem 3 Vin 1 Dead Band (Window height) Window Maker Window Comparator H Bridge (L298n) and DC Motor U.L. Forward L.L. Reverse SP = Vin 2 (Window position) Feed back Mechanical Linkage
12
Conversion topics Hardware Software
13
I/O Management Inputs Outputs 2 analog inputs 6 Digital outputs
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
14
DIGITAL ON/OFF Control System
Arduino Controller Subsystem 1 Subsystem 2 Subsystem 3 Window Maker Window Comparator H Bridge (L298n) and DC Motor SP = Vin 2 (Window position) U.L. Forward Digital Out Analog Input A/D (10Bits) L.L. Reverse Digital Out Analog Input A/D (10Bits) Feed back Mechanical Linkage
15
DIGITAL ON/OFF Control System
H Bridge (L298n) and DC Motor Subsystem 3 Forward Reverse Mechanical Linkage SP = Vin 2 (Window position) Arduino Controller Feed back Analog Input A/D (10Bits) Digital Out
16
DIGITAL ON/OFF Control System
H Bridge (L298n) and DC Motor Subsystem 3 Forward Reverse Mechanical Linkage SP = Vin 2 (Window position) Arduino Controller Feed back Analog Input A/D (10Bits) Digital Out
17
DIGITAL ON/OFF Control System
H Bridge (L298n) and DC Motor Subsystem 3 Forward Reverse Mechanical Linkage SP = Vin 2 (Window position) Arduino Controller Feed back Analog Input A/D (10Bits) Digital Out
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.