Difference between revisions of "HANcoder/Training Material"

From OpenMBD
Jump to: navigation, search
 
(24 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
{{HANcoder}}
 
{{HANcoder}}
On this page some examples have been added. Most of the examples are either real project or are part of project 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. It is strongly encouraged to contact Jason.vanKolfschoten@han.nl if you wish to contribute to this page with an example of your own.
+
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 [mailto:jason.vankolfschoten@han.nl?Subject=I%20would%20like%20to%20contribute%20to%20the%openMBD%20Wiki&body=Dear%20Mr.%20van%20Kolfschoten,%0A%0AI%20would%20like%20to%20share%20information%20on%20your%20wiki%20environment.%0ACould%20you%20please%20contact%20me?%0A%0AKind%20Regards,%0A%0Ayou_name_here%0Ayour_email_address_here%0Ayour_phone_nr_here jason.vankolfschoten@han.nl] 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.
 
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 [[HANcoder/STM32/Blocks| '''Block overview''']] page.
 +
* [[HANcoder/Examples/CAN_Communication| CAN Communication]]
 +
* [[HANcoder/Examples/WiFi_Communication| Setting up a WiFi Connection using the TP-Link mini WiFi router]]
 +
 +
== DIY Workshops ==
 +
[[File:STM32WorkshopSetup.png|200px|right]]
 +
A[[HANcoder/Examples/Basic_Workshop| '''basic workshop''']] has been developed to show the basic functionality of both HANcoder as HANtune.
 +
 +
A more [[HANcoder/Examples/Advanced_Workshop| '''advanced workshop''']] shows the users how to use Simulation with Model Referencing and Variants to get the most out of Model Based Development.
 +
 +
A [[HANcoder/Examples/AutomaticLightControlSystem| '''workshop about creating a simple control system''']] to turn on a light when it turns dark.
 +
 +
A [[HANcoder/Examples/ThrottleValveController| throttle valve control]] that uses a potentiometer as input to emulate a throttle pedal.
 +
 +
A step-by-step [[HANcoder/Examples/Adding_a_customized_block| '''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===
 +
[[File:RobotCar.jpg|right|250px]]
 +
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.
 +
 +
[[:File:Olimexino Practicum 2 English.docx| Download the tutorial assignment here (.docx)]]
 +
 +
[[:File:Robot_Car_Algorithm_2014a.zip| Download the base Simulink model here (.zip)]]
 +
 +
=== NTC Thermistor ===
 +
 +
[[HANcoder/Examples/NTC_Thermistor| NTC Thermistor (with lookup table and NTC equation)]]
 +
  
 
== User projects ==
 
== User projects ==
 
Projects that have been used in the past by users of HANcoder
 
Projects that have been used in the past by users of HANcoder
 +
  
 
=== Vehicle Logger ===
 
=== Vehicle Logger ===
 
[[File:VehicleLogger.JPG|right|200px|link=HANcoder/Examples/Vehicle_Logger]]
 
[[File:VehicleLogger.JPG|right|200px|link=HANcoder/Examples/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:
 
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:
*[[HANcoder/Examples/MPU6500|MPU6500]]
+
*[[HANcoder/Examples/Vehicle Logger|Vehicle Logger main description]]
*[[HANcoder/Examples/OBD_Reader| OBD Reader]]
+
**[[HANcoder/Examples/MPU6500|MPU6500]]
*[[HANcoder/Examples/GPS_block| GPS block]]
+
**[[HANcoder/Examples/OBD_Reader| OBD Reader]]
*[[HANcoder/Examples/SD_Card_Logger| SD Card Logger]]
+
**[[HANcoder/Examples/GPS_block| GPS block]]
 +
**[[HANcoder/Examples/SD_Card_Logger| SD Card Logger]]
 +
 
  
 
=== ZigBee communication ===
 
=== ZigBee communication ===
[[File:xbee-zigbee-XB24CZ_WIT-004.jpg|right|200px|link=HANcoder/Examples/ZigBee]]
+
[[File:xbee-zigbee-XB24CZ_WIT-004.jpg|right|50px|link=HANcoder/Examples/ZigBee]]
 
This communication model is part of a larger model where a remote controlled vehicle is controlled using ZigBee modules and an E407
 
This communication model is part of a larger model where a remote controlled vehicle is controlled using ZigBee modules and an E407
 
* [[HANcoder/STM32/Examples/ZigBee| ZigBee communication]]
 
* [[HANcoder/STM32/Examples/ZigBee| ZigBee communication]]
  
== 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 [[HANcoder/STM32/Blocks| '''Block overview'''] page.
+
=== HighwaySurfer Product demo ===
* [[HANcoder/Examples/CAN_Communication| CAN Communication]]
+
[[Image:Rendering assem.jpg|right|200px|none]]
* [[HANcoder/Examples/NTC_Thermistor| NTC Thermistor (with lookup table and NTC equation)]]
+
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.
 +
* [[HANcoder/Examples/Highwaysurfer| HighwaySurfer Example]]

Latest revision as of 10:59, 22 March 2019


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 jason.vankolfschoten@han.nl 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

STM32WorkshopSetup.png

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

RobotCar.jpg

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

VehicleLogger.JPG

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.