Training Material

From OpenMBD
< HANcoder(Redirected from HANcoder/Examples)
Jump to: navigation, search

On this page some examples are provided. Most of the examples are either showcasing real projects or are part of projects done with HANcoder. Each example has been documented in a way that a new user is able to build the same functionality from scratch. However it is not necessary to rebuild the example because the finished model, srec (executable file for on the microcontroller) and a2l (file for HANtune) are all provided. Please contact if you wish to contribute to this page with an example of your own.

Next to the user projects there are also some basic examples which just show how certain blocks can be used.

Basic examples

These examples are just an illustration of the capabilities of the HANcoder blocks, they do not originate from real projects. For an overview of all blocks check the Block overview page.

DIY Workshops


A basic workshop has been developed to show the basic functionality of both HANcoder as HANtune.

A more advanced workshop shows the users how to use Simulation with Model Referencing and Variants to get the most out of Model Based Development.

A workshop about creating a simple control system to turn on a light when it turns dark.

A throttle valve control that uses a potentiometer as input to emulate a throttle pedal.

A step-by-step guide for creating a custom block in MatLAB/Simulink and how to use custom functions written in C-code.

Educational Assignments

These assignments are used by the HAN Automotive education and may require some specific additional hardware.

Model Car - Traction Control


This tutorial will guide you step by step in order to build a traction control system. The model car shown in the picture is needed in order to fulfill this tutorial. The assignment description contains an optional extra to build your own brake assist system.

Download the tutorial assignment here (.docx)

Download the base Simulink model here (.zip)

NTC Thermistor

NTC Thermistor (with lookup table and NTC equation)

User projects

Projects that have been used in the past by users of HANcoder

Vehicle Logger


The vehicle logger saves the position, speed, acceleration, angular rotation and engine information of a car to an SDcard. It consists out of several subsystems which have been described in different pages on this wiki:

ZigBee communication

Xbee-zigbee-XB24CZ WIT-004.jpg

This communication model is part of a larger model where a remote controlled vehicle is controlled using ZigBee modules and an E407

HighwaySurfer Product demo

Rendering assem.jpg

This demonstration material, made by HAN-Automotive students, is provided with all source files, models and material lists to reproduce this (sub)system. It can prove to be very useful as example material.