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

From OpenMBD
Jump to: navigation, search
Line 1: Line 1:
=LED Control System part 1=
+
=LED Control System=
 +
 
 
== Goal of the tutorial ==
 
== Goal of the tutorial ==
  
Line 10: 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| Reading analog signals in HANtune]]
*A HANcoder directory [http://openmbd.com/download/ Download page]
 
*A HANtune directory (optional: a HANtune.exe shortcut on your desktop) [http://openmbd.com/download/ Download page]
 
*GNU ARM Toolchain
 
*OpenBLT USB driver
 
 
 
*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]]
 

Revision as of 11:42, 8 November 2017

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