Difference between revisions of "HANcoder/Training Material/AutomaticLightControlSystem"

From OpenMBD
Jump to: navigation, search
(Goal of the tutorial)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
=LED Control System=
  
=LED Control System part 1=
 
 
== Goal of the tutorial ==
 
== Goal of the tutorial ==
  
The goal of this tutorial is to get used to the software tools that are being used to program a microcontroller that works in a model based development environment. Besides experiencing the merits of Matlab Simulink, HANcoder and HANtune, you will learn the meaning of analog voltages with regards to sensors. You will also learn about the use of PWM to regulate the intensity of an LED.  
+
The goal of this tutorial is to get used to the software tools that are being used to program a microcontroller that works in a model based development environment. Besides experiencing the merits of MATLAB Simulink®, HANcoder and HANtune, you will learn the meaning of analog voltages with regards to sensors. You will also learn about the use of PWM to regulate the intensity of an LED.  
  
 
After this tutorial you should be able to:
 
After this tutorial you should be able to:
Line 11: Line 11:
 
*Make a basic control system
 
*Make a basic control system
  
== Needed tools ==
+
== Contents ==
You will need a Windows PC with the following software:
+
*Part 1: [[/1| The things you'll need]]
*Matlab Simulink 2014a with the correct plug-ins (Getting started guide Olimexino)
+
*Part 2: [[/2| Adding analog signals and making them visible in HANtune]]
*A HANcoder directory [http://openmbd.com/download/ Download page]
+
*Part 3: [[/3| Compiling the model and flashing it onto the Olimexino]]
*A HANtune directory (optional: a HANtune.exe shortcut on your desktop) [http://openmbd.com/download/ Download page]
+
*Part 4: [[/4| Using HANtune to visualize signals]]
*GNU ARM Toolchain
+
*Part 5: [[/5| Adding an output to the model]]
*OpenBLT USB driver
+
*Part 6: [[/6| Connecting the input to the output]]
 
+
*Part 7: [[/7| Making a control system]]
*Olimexino STM32 board with a USB bootloader
 
*USB to mini USB cable
 
 
 
*A sensor shield
 
*3 thick cables
 
*A potentiometer sensor brick
 
*A LDR sensor brick
 
*A LED output brick
 
 
 
Be careful with the hardware. Make sure that the power adapter and the USB cable are not plugged into the Olimexino when you insert the sensor shield. To prevent bent pins, you will need to make sure to keep the sensor shield straight, when taking it off the Olimexino.
 
 
 
[[File:shieldinsert.PNG|400px]]
 

Latest revision as of 14:18, 31 May 2018

LED Control System

Goal of the tutorial

The goal of this tutorial is to get used to the software tools that are being used to program a microcontroller that works in a model based development environment. Besides experiencing the merits of MATLAB Simulink®, HANcoder and HANtune, you will learn the meaning of analog voltages with regards to sensors. You will also learn about the use of PWM to regulate the intensity of an LED.

After this tutorial you should be able to:

  • Read in analog inputs
  • Send out PWM signals
  • Visualize signals and parameters within HANtune
  • Make a basic control system

Contents