html5-img
1 / 9

DC Motor Neurocontroller

DC Motor Neurocontroller. ECE 504: Supervisory Control & Critical Infrastructures University of Idaho Udhay Ravishankar. Objectives. Build DC Motor control circuit Control DC Motor via PC/Laptop using serial communication

katoka
Download Presentation

DC Motor Neurocontroller

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. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. DC Motor Neurocontroller ECE 504: Supervisory Control & Critical Infrastructures University of Idaho UdhayRavishankar

  2. Objectives • Build DC Motor control circuit • Control DC Motor via PC/Laptop using serial communication • Build a GUI that sends control commands to the DC Motor circuit and displays real-time RPM sensor data • Acquire data from GUI and train a Neurocontroller • Use Neurocontroller to control DC Motor’s RPM at user-defined RPM set point

  3. DC Motor Circuit • Built using • Microchip’s PIC18f2331 microcontroller (PIC: Programmable Interrupt Controller) • Allegro Microsystem’s AS3953SB-T full bridge PWM driver. • Hanseng DC Motor • US Digital QME-01 optical encoder

  4. Serial Communication • Microchip’s PIC18f2331 microcontroller has EUSART pins that enable serial communication. (EUSART: Enhanced Universal Synchronous Asynchronous Receiver Transmitter) • Baud Rate of 9600 bps was selected

  5. Control Commands • PC to DC Motor Circuit: • [PWM Duty Cycle, Phase] • DC Motor Circuit to PC: • [Start Byte, Timer High Byte, Timer Low Byte, Checksum Byte] • Example Commands: • PC to DC Motor: • [005 000] <5% PWM Duty Cycle, Clockwise> • [020 001] <20% PWM Duty Cycle, Counterclockwise> • DC Motor to PC: • [128 0 205 179] <RPM = 60/(120*(256*0+205)*0.5e-6) = 4878.05>

  6. GUI • Matlab’s GUI GUIDE Tool was used to build the GUI.

  7. Training Data Acquisition • A ‘Log Training Data’ button was embedded on the GUI. • On the click of the button, the GUI will begin to send control commands that vary the PWM Duty Cycle between 60% to 0% and back and acquire the RPM data. All data was logged into a file called ‘MotorData0.mat’. • The Neurocontroller was trained from this data.

  8. Neurocontroller Demonstration

  9. Conclusion • An example SCADA system was built for the DC Motor circuit. This system sent control commands as well as acquired data. • A Neurocontroller was trained from data acquired and then used to control the DC Motor hardware.

More Related