Implementation of a Fuzzy Logic-Based Embedded System for Engine RPM Control. (Speed Control)

Similar documents
Implementation of a Temperature Control System using ARDUINO

Dimensions: Specifications:

ME375 Lab Project. Bradley Boane & Jeremy Bourque April 25, 2018

MOBILE ROBOT LOCALIZATION with POSITION CONTROL

Assembly Language. Topic 14 Motion Control. Stepper and Servo Motors

CHAPTER 4 FUZZY LOGIC CONTROLLER

MATHEMATICAL MODELS OF GEAR TOOTH SPEED SENSORS WITH DUAL OUTPUTS

A Comparison of Performance Characteristics of On and Off Axis High Resolution Hall Effect Encoder ICs

Basic NC and CNC. Dr. J. Ramkumar Professor, Department of Mechanical Engineering Micro machining Lab, I.I.T. Kanpur

Lab 5: Inverted Pendulum PID Control

DC Motor and Servo motor Control with ARM and Arduino. Created by:

Product Family: 05, 06, 105, 205, 405, WinPLC, Number: AN-MISC-021 Terminator IO Subject: High speed input/output device

L E C T U R E R, E L E C T R I C A L A N D M I C R O E L E C T R O N I C E N G I N E E R I N G

SPEED CONTROL OF INDUCTION MOTOR WITHOUT SPEED SENSOR AT LOW SPEED OPERATIONS

Computer Numeric Control

Sensors and Sensing Motors, Encoders and Motor Control

DC motor control using arduino

DC Geared Motor with Encoder MO-SPG-30E-XXXK

PIC Functionality. General I/O Dedicated Interrupt Change State Interrupt Input Capture Output Compare PWM ADC RS232

Fuzzy Logic Based Speed Control of BLDC Motor

MIG Encoders BEGE MIG NOVA+ Your drive, our (trans)mission. BEGE Power Transmission

Feedback Devices. By John Mazurkiewicz. Baldor Electric

AEDA-3200-Txx Series Ultra Miniature, High Resolution Incremental Encoders

2.017 DESIGN OF ELECTROMECHANICAL ROBOTIC SYSTEMS Fall 2009 Lab 4: Motor Control. October 5, 2009 Dr. Harrison H. Chin

MEGA Servo setup procedure for driving PMS motor

Micromouse Meeting #3 Lecture #2. Power Motors Encoders

Evaluation Kit: MPS 160 ASIC. Magneto Encoder ASIC

MODEL S15 Incremental Optical Rotary Encoder

Sensors and Sensing Motors, Encoders and Motor Control

Application Note: Pulse and Direction for the Position and Velocity Commands

EEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 11 Motor Control

MICROCONTROLLERS Stepper motor control with Sequential Logic Circuits

Time Response Analysis of a DC Motor Speed Control with PI and Fuzzy Logic Using LAB View Compact RIO

SPEED CONTROL OF DC MOTOR USING PWM TECHNIQUE

Section 11 Electronic Position Controls & Encoders

ELG3331: Digital Tachometer Introduction to Mechatronics by DG Alciatore and M B Histand

Magnetic Encoder MEM 22

A 100MHz voltage to frequency converter

Administrative Notes. DC Motors; Torque and Gearing; Encoders; Motor Control. Today. Early DC Motors. Friday 1pm: Communications lecture

TRWinProg 101by Chris Bowman October 10

Microcontroller Based Closed Loop Speed and Position Control of DC Motor

Error 400. SWF Encoders are Rotary Incremental types, the Encoder provides the information of the direction of the Main shaft.

NEW ADAPTIVE SPEED CONTROLLER FOR IPMSM DRIVE

Electronics Design Laboratory Lecture #6. ECEN2270 Electronics Design Laboratory

FPGA Implementation of a PID Controller with DC Motor Application

MODEL BASED DESIGN OF PID CONTROLLER FOR BLDC MOTOR WITH IMPLEMENTATION OF EMBEDDED ARDUINO MEGA CONTROLLER

Automation of DC Motor Control using PWM Technique for thin film deposition

Castle Creations, INC.

LV-Link 3.0 Software Interface for LabVIEW

Shaft encoders are digital transducers that are used for measuring angular displacements and angular velocities.

Hobby Servo Tutorial. Introduction. Sparkfun:

Application Note. 3-Phase Brushless DC Motor Control with Hall Sensors AN-CM-244

CHAPTER 3 METHODOLOGY

Swinburne Research Bank

Renewable Energy Based Interleaved Boost Converter

For more information on these functions and others please refer to the PRONET-E User s Manual.

Introduction to Relays. ECE/CS 5780/6780: Embedded System Design. Various Relay Configurations. Types of Relays. Drawing of an EM Relay

Mechatronics Engineering and Automation Faculty of Engineering, Ain Shams University MCT-151, Spring 2015 Lab-4: Electric Actuators

Electronic Speed Controls and RC Motors

Agilent AEDA-3200-Txx Series Ultra Miniature, High Resolution Incremental Encoders

νµθωερτψυιοπασδφγηϕκλζξχϖβνµθωερτ ψυιοπασδφγηϕκλζξχϖβνµθωερτψυιοπα σδφγηϕκλζξχϖβνµθωερτψυιοπασδφγηϕκ χϖβνµθωερτψυιοπασδφγηϕκλζξχϖβνµθ

CHAPTER-5 DESIGN OF DIRECT TORQUE CONTROLLED INDUCTION MOTOR DRIVE

Serial communication inverter. Lab bench scenario. Inverter Board, A/D, D/A, PWM, Filters, Encoders. Inverter board. and Dimmer introduction

Laboratory Exercise 1 Microcontroller Board with Driver Board

TMC603EVAL MANUAL Evaluation board for the TMC603 three phase motor driver with BLDC back EMF commutation hallfx

Data Sheet. AEDT-9340 Series High Temperature 115 C 1250/2500 CPR 6-Channel Commutation Encoder. Description. Features.

Application Note Using MagAlpha Devices to Replace Optical Encoders

7 Lab: Motor control for orientation and angular speed

FOC of IM at Very Low Speed Using Low Count Encoders

CHAPTER 4 FUZZY BASED DYNAMIC PWM CONTROL

Optical encoder MEC22 HR

Carlos L. Castillo Corley Building 114A

AC Drive Technology. An Overview for the Converting Industry. Siemens Industry, Inc All rights reserved.

4 / 24,5 2,6 / steel, black coated. clockwise, viewed from the front face. ø15,9 ø17-0,052 ø6-0,05 8,1 ±0,3 2, T

SHAFTED ROTARY POSITION SENSORS

Design and build a prototype digital motor controller with the following features:

EECS 461, Winter 2009, Problem Set 2 1

Index. n A. n B. n C. Base biasing transistor driver circuit, BCD-to-Decode IC, 44 46

Breadboard Traffic Light System

Operation of Separately Excited Switched Reluctance Generator

combine regular DC-motors with a gear-box and an encoder/potentiometer to form a position control loop can only assume a limited range of angular

Lock Cracker S. Lust, E. Skjel, R. LeBlanc, C. Kim

Implementation of Brushless DC motor speed control on STM32F407 Cortex M4

CHAPTER 6 FABRICATION OF PROTOTYPE: PERFORMANCE RESULTS AND DISCUSSIONS

AS5x40/AS5x45. User Manual AS5x40/AS5x45-AB-v bit Rotary Position Sensor with Digital Angle (Interface), ABI, UVW and PWM output

Data Sheet. AEAT-6600-T16 10 to16-bit Programmable Angular Magnetic Encoder IC. Description. Features. Specifications.

ams AG austriamicrosystems AG is now The technical content of this austriamicrosystems application note is still valid. Contact information:

Efficiency Optimized Brushless DC Motor Drive. based on Input Current Harmonic Elimination

EBI7903CAx-DA-IF Incremental Sensor Module

Application Information

Data Sheet. AEDS-9240 Series 360/720 CPR Commutation Encoder Module. Features. Description. Applications

Step vs. Servo Selecting the Best

AUTOMATIC RESISTOR COLOUR CODING DETECTION & ALLOCATION

PSoC Academy: How to Create a PSoC BLE Android App Lesson 9: BLE Robot Schematic 1

Mini Encoder High Resolution

Figure 1. Digilent DC Motor

Where: (J LM ) is the load inertia referred to the motor shaft. 8.0 CONSIDERATIONS FOR THE CONTROL OF DC MICROMOTORS. 8.

A PLC-based Self-tuning PI-Fuzzy Controller for Linear and Non-linear Drives Control

Upgrading from Stepper to Servo

STEPPING MOTOR EMULATION

Transcription:

Implementation of a Fuzzy Logic-Based Embedded System for Engine RPM Control (Speed Control)

Introduction implements an embedded system for the Engine RPM control based on a development board developed around an Arduino Mega board fuzzy logic system as controller offers an easy understanding of the main concepts regarding embedded systems

System implementation Block diagram

DC-Motor: Gear ratio: 30:1 Free run speed at 6V: 1000RPM Free run current at 6V: 120mA Stall current at 6V: 1600mA

Hall Effect Sensor B [What is Hall Effect and How Hall Effect Sensors Work, https://www.youtube.com/watch?v=wpaa3qeoyii] The Hall effect: the production of a voltage difference (the Hall voltage) across an electrical conductor: transverse to an electric current in the conductor an applied magnetic field perpendicular to the current.

Hall Effect Sensor cont. [https://howtomechatronics.com/how -it-works/electrical-engineering/halleffect-hall-effect-sensors-work/]

Quadrature Encoder: Six pole magnetic disk +PCB Dual Channel 12 counts/revolution 2.8V -18V Output signal of the encoder

Motor Driver: L298 - Dual Full Bridge Driver (H bridge) Middle class 2 Motors Sensors power supply

Motor Driver: L298 - Dual Full Bridge Driver (H bridge) Middle class 2 Motors Sensors power supply How the RPM can be controlled?

Arduino Mega Pinout LCD screen

The Arduino Mega board is the brain of the entire system. It is primarily responsible for the update of the digital control signal u, at every time instance. The actual RPM, RPM k is read and the actual RPM error (err k ) and change of RPM error (cerr k ) are updated, as follows: err k = RPM k RPM ref cerr k = err k err k 1 where err k 1 is the RPM error in the previous time instance. The star of the entire system is the fuzzy logic controller, whose role is to infer the best modification in the control signal, in every time instance. The digital version of the actual control signal is updated using the relation: u k = u k 1 + Δu k

To obtain the actual RPM: RPM computation a method based on a fixed time interval (time window) to count the revolutions of the main motor shaft. a counter is triggered at the initial time t i and it counts the pulses received from the Hall effect sensor up to the final increment t f. The RPM is computed using the relation : C f - final value of the counter C i - initial value of the counter C r = 12 counts per revolution G r = 30, the gear ratio (30:1) t f, t i are measured in seconds RPM = 1000 60 C f C i t f t i 1 C r 1 G r

RPM computation C f - final value of the counter C i - initial value of the counter RPM = 1000 60 C f C i 1 1 C r = 12 counts per revolution t f t i C r G r G r = 30, the gear ratio (30:1) t f, t i are measured in milliseconds

first-order Takagi-Sugeno two inputs errfls and cerrfls one output ΔuFls The Fuzzy Logic Controller Fuzzy sets for the inputs Fuzzy sets for the output

Block diagram of the fuzzy logic controller errfls cerrfls Neg Zero Pos Neg N N Z Zero N Z P Pos Z P P Rule base of the fuzzy logic system

The defuzzification method, used to transform the partial output fuzzy sets resulted from the inference process into a crisp value is the weighted average method.

output Control surface of the fuzzy logic controller Err cerr

Control Circuit RPM ref + _ RPM err 1 z _ + cerr s e s c -1-1 +1 +1 errfls cerrfls Fuzzy logic system ΔuFls s u Δu - + 0 1 z 255 u Motor Driver u a DC Motor

System setup

Experimental results RPM from 0 to 1000 rise time = 8.8 s; max. positive error = 5 rpm ; max. negative error = 5rpm; RPM from 1000 to 500 fall time = 6.75 s; max. positive error = 6 rpm ; max. negative error = 9rpm; RPM from 500 to 750 rise time = 4.75 s; max. positive error = 8 rpm ; max. negative error = 6rpm; RPM from 750 to 0 fall time = 6.5 s;

Decreasing the time response To drastically decrease the time response of the control system, the control strategy should be slightly modified. Because the control characteristic of the DC motor driven by the H-Bridge is almost liner, when a large variation of the motor speed is required (larger than 60 rpm), the control signal is not determined by the fuzzy logic system, but it is estimated by a simple linear interpolation, that acts as a course adjustment of the control signal. Then, the fuzzy logic system regains its role for the fine adjustment of the speed.

Tracking mode operation: RPM tracks the temperature variation

Duty Cycle 23% Low Speed 55% Medium Speed 90% High Speed