Difference between revisions of "Examples and Tutorials"

From Flowcode Help
Jump to navigationJump to search
Line 1: Line 1:
 +
==Introduction to Microcontrollers Course==
 +
 +
We recommend going through the Flowcode section of the [http://www.matrixmultimedia.com/courses/itm/index.php?n=IntroductionToFlowcode.IntroductionToFlowcode Introduction to Microcontrollers] course which has been updated for the latest version of Flowcode and is available for free at the learning center section on the main [http://www.matrixtsl.com www.matrixtsl.com] website.
 +
 +
 
==Embedded==
 
==Embedded==
  
Line 42: Line 47:
 
*[[CNC Machine]]
 
*[[CNC Machine]]
 
*[[Car Seat]]
 
*[[Car Seat]]
 
 
 
 
 
This page contains structured exercises used throughout [[Flowcode Help Overview|Flowcode Help]] section, and further exercises which are not featured in the Flowcode Help structure, these additional exercises range from expanded exercises on camera control and panel navigation to creating, testing, exporting and importing components.
 
 
 
We recommend going through the Flowcode section of the [http://www.matrixmultimedia.com/courses/itm/index.php?n=IntroductionToFlowcode.IntroductionToFlowcode Introduction to Microcontrollers] course which has been updated for the latest version of Flowcode and is available for free at the learning center section on the main [http://www.matrixtsl.com www.matrixtsl.com] website.
 
 
 
A set of videos are available showing some projects using Flowcode as well as talking you through some example programs.
 
[https://www.youtube.com/watch?v=g5SrkU-5TuU&list=PLCZaPFyK6UlLyg-a8Fm01ZWFvp-GxBLgc Flowcode video playlist]
 
 
==Getting Used To The Flowcode Environment==
 
*[[Exercise - Setting Up the System Panel|Setting Up the System Panel]] - Set up the system panel to your preference following instructions
 
*[[Exercise - Controlling the Camera|Controlling the Camera]] - Learn how to control the camera on the system panel
 
*[[Exercise - Setting Up the Dashboard Panel|Setting Up the Dashboard Panel]] - Learn how to use and configure the dashboard panel effectively
 
*[[Exercise - Creating a Flowchart|Creating a Flowchart]] - Preparing and and planning a program by adding icons to a flowchart to be expanded into a program.
 
*[[Exercise - Configuring Icons and Variables|Configuring Icons and Variables]] - Configuring the flowchart icons and variables to effective operate a program using components.
 
*[[Exercise - Adding Devices to a Program|Adding Devices to a Program]] - Adding, configuring and manipulating components for suitable and effective use in a program.
 
*[[Exercise - Simulating a Program|Simulating a Program]] - Testing and simulating a program in Flowcode using various methods and techniques of simulation.
 
*[[Exercise - Transferring a Program to the Microcontroller|Transferring a Program to the Microcontroller]] - Testing and running a program on hardware, compiling to a chip and the process required to do so.
 
*[[Exercise - Documenting a Flowchart|Documenting a Flowchart]] - Using comments to explain and describe your Flowchart and the process of the program.
 
*[[Exercise - Expanding a Program|Expanding a Program]] - Expanding your program further to increase functionality, effectiveness and efficiency.
 
*[[Exercise - Using Component Macros|Using Component Macros]] - Creating and expanding a program by using icons and components, specifically Component Macros.
 
*[[Exercise - Using Simulation Macros|Using Simulation Macros]] - Creating and expanding a program by using icons and components, specifically Simulation Macros.
 
*[[Exercise - Using Macros|Using Macros]] - Using Macros and local variables to effectively create and organise a program including components.
 
*[[Exercise - Inserting Code Into Flowcode|Inserting Code Into Flowcode]] - Adding custom code into a program and integrating it into the flowchart for use with components.
 
*[[Exercise - Using Interrupts|Using Interrupts]] - Using interrupts, custom interrupts and timers to call macros and configuring interrupt properties.
 
*[[Exercise - Using Analogue Input Devices|Using Analogue Input Devices]] - Creating a functioning program consisting of an LED and an analogue (ADC) dial to drive the system.
 
 
==Using The Component Panels==
 
*[[Exercise - System Panel - Adding Objects|Adding Objects to the System Panel]] - Using the System Panel with components and configuring options for suitable use with components.
 
*[[Exercise - System Panel - Controlling Shapes|Controlling Shapes on the System Panel]] - Manipulating and displaying components on the System Panel and controlling the camera and views.
 
*[[Exercise - Dashboard Panel - Adding Objects|Adding Objects to the Dashboard Panel]] - Configuring the Dashboard Panel to manipulate components and component properties accordingly.
 
*[[Exercise - Dashboard and System Panel - Controlling Multiple Objects|Controlling Multiple Objects]] - Using the Dashboard and System Panel together to effectively program and simulate a system.
 
*[[Exercise - System Panel - Controlling Collisions|Controlling Collisions on the System Panel]] - Configuring the System Panel to display and control object collision using different methods.
 

Revision as of 15:17, 3 May 2023

Introduction to Microcontrollers Course

We recommend going through the Flowcode section of the Introduction to Microcontrollers course which has been updated for the latest version of Flowcode and is available for free at the learning center section on the main www.matrixtsl.com website.


Embedded

Heat Control - Coarse

lots of modern electronic systems include some form of simple closed loop heat control to function. Some examples include a kitchen oven, a microwave oven, an iron, hair straighteners, electric heater, etc.

These devices typically work by monitoring the temperature and then switching on a heating element when the temperature is less then the required temperature. The element is then switched off again when the required temperature is reached.

The electronics involved could be a microcontroller digital output pin connected to a simple transistor, diode and relay to control the heater element and a thermistor to measure the heat.

FC6 Icon.png DSP Heater Coarse Control


Heat Control - Fine

More advanced electronic systems may require a bit more fine control of the temperature to avoid overshoot and improve response to load changes. Some examples include a SMD reflow oven, 3D printer hotend, soldering iron, etc.

These devices typically work by monitoring the temperature and then providing an analogue output to a heating element. The analogue value is calculated using a transfer function in this case we are using PID control.

The electronics involved could be a microcontroller PWM output pin connected to logic level FET or TRIAC to control the heater element and a thermocouple to measure the heat.

FC6 Icon.png DSP Heater Fine Control


App Developer

Freeapp-io-monitor2.png

A range of example App Developer projects are available from here: https://www.flowcode.co.uk/app-developer/free-apps/


Scenarios

This page contains a list of the scenarios included with Flowcode.

The corresponding components can be found in the Runtime section of the component toolbar.