2016.10.27 Embedded Arduino PID Controller Hans-Petter Halvorsen, M.Sc. System Overview Arduino IDE Download your Application and then remove USB cable ๐พ , ๐ , ๐ ๐ Air Heater " % & Arduino Analog Out Banana Analog In AO Connector DAC ๐ข AI ๐ฆ ๐ฆ Banana Banana Banana Connector ConnectorConnector Breadboard Embedded Arduino PID Controller Test first using HIL Simulation and Testing Feedback System HIL Simulation and Testing Air Heater ๐พ , ๐ , ๐ ๐ " % & Mathematical Model Banana Analog Out Analog In Connector ๐ข USB ๐ฆ Banana ๐ฆ Banana Connector Connectors AI AO Embedded Arduino PID Controller USB-6008 Feedback System Note! It's important that you test it out properly using HIL simulation, so you don't damage the real Air Heater Process. Keywords โข Arduino โข Control Design and Simulations โข Practical Implementation of Control Systems โข PID โข Hardware in the Loop Simulation and Testing Learning Goals โข Learn PID Control, both Control theory and Practical implementations โข Learn Programming, Arduino Programming and LabVIEW โข Learn about Microcontrollers (Arduino) โข Learn about Hardware-Software Interactions โข Learn about Digital to Analog Conversion (DAC) โข Learn SPI Communication โข Learn HIL Simulation and Testing โข Learn about Electronics and Electrical Components Lab Assignment Overview 1. Create Embedded PI(D) Controller + Lowpass Filter in Arduino code โ Create โArduino Libraryโ with functions โ Create โAnalog Outโ, either using DAC chip or use a simple RC circuit on a breadboard (Arduino has no built-in AO). 2. Test PI(D) controller using HIL Simulations and Testing โ Create Model of Air Heater in LabVIEW and connect to Arduino embedded PI(D) controller using a USB-6008 DAQ device 3. Publish Data to Server See next slides for details... Software Software Arduino IDE Air Heater Simulator PID Controller Lowpass Filter HIL Simulation and Testing Hardware Hardware Your Personal Computer DAQ Device, e.g. USB- Arduino 6008, USB-6001, myDAQ Breadboard 9V Battery Multi-meter Air Heater (Arduino Wi-Fi Shield) Banana Plugs/Cables Electrical Components Capacitor Resistor ๐ถ = 0.1๐๐น = 100๐๐น or ๐ถ = 10๐๐น? Try out! ๐ = 3.9๐ฮฉ A capacitor stores and releases electrical energy in a A resistor resists the flow of electrical energy in a circuit. When the circuits voltage is higher than what is circuit, changing the voltage and current as a result stored in the capacitor, it allows current to flow in, giving (according to Ohms law, ๐ = ๐ ๐ผ). Resistor values are the capacitor a charge. When the circuits voltage is lower, measured in ohms (ฮฉ). The color stripes on the sides the stored charge is released. Often used to smooth of the resistor indicate their values. You can also use fluctuations in voltage a Multi-meter in order to find the value of a given resistor. https://en.wikipedia.org/wiki/Capacitor These electronics components are typically included in a โStarter Kitโ, or they can be bought โeverywhereโ for a few bucks. Capacitor ๐ถ = 0.1๐๐น = 100๐๐น The Capacitor is included in the Arduino ๐ถ = 10๐๐น is better? Starter Kit (or similar Kits). If you don't have such a Kit you may buy capacitors from Elfa, Kjell & Company, etc. Note! You can also easily measure the capacitance using a Multi-meter. A Multi-meter that cost from 400-500+ NOK has built-in support for measuring capacitors (same for resistors and resistance).
Description: