Skip to content

This curriculum module contains interactive MATLAB® live scripts introducing fundamental concepts of modern engineering using Arduino Hardware. The whole module is designed to explore these concepts using hardware using Arduino. You will explore the signals, data analysis, sensing, control, and Internet of Things (IoT).

License

Notifications You must be signed in to change notification settings

MathWorks-Teaching-Resources/Intro-To-Engineering

Repository files navigation

Introduction to Engineering:

A Hands-On Exploration with Arduino

View on File Exchange or Open in MATLAB Online

MATLAB Versions Tested

Curriculum Module

Created with R2024a. Compatible with R2024a and later releases.

Information

This curriculum module contains interactive MATLAB® live scripts introducing fundamental concepts of modern engineering using Arduino Hardware. The whole module is designed to explore these concepts using hardware using Arduino. You will explore the signals, data analysis, sensing, control and Internet of Things (IoT).

Background

You can use these live scripts as demonstrations in lectures, class activities, or interactive assignments outside class. This module covers the concepts of signals, control, and technical writing. It also includes examples of the Internet of Things and physical modeling.

The instructions inside the live scripts will guide you through the exercises and activities. Get started with each live script by running it one section at a time. To stop running the script or a section midway (for example, when an animation is in progress), use the image_0.png Stop button in the RUN section of the Live Editor tab in the MATLAB Toolstrip.

Contact Us

Solutions are available upon instructor request. Contact the MathWorks teaching resources team if you would like to request solutions, provide feedback, or if you have a question.

Prerequisites

These scripts assume no prior knowledge of hardware programming and wiring. There is minimal MATLAB & Simulink knowledge required to complete the module. It is highly encouraged to follow online self-paced training to complete most of the activities:

Getting Started

Download this repository. Open MATLAB, navigate to the folder containing these scripts, and double-click on intro-to-engineering.prj. It will add the appropriate files to your MATLAB path and open an app that asks you where you would like to start.

To clone this repository, you can copy and paste the following command directly into your MATLAB Command Window:

gitclone("https://github.com/MathWorks-Teaching-Resources/Intro-To-Engineering.git")

Ensure you have all the required products (listed below) installed. If you need to include a product, add it using the Add-On Explorer. To install an add-on, go to the Home tab and select image_1.png Add-Ons > Get Add-Ons.

Products

MATLAB®, Simulink®, Stateflow™, Symbolic Math Toolbox™, MATLAB Support package for Arduino, Simulink Support package for Arduino.

Scripts

image_2.png
In this script, students will...
$\bullet$ Check their Arduino board compatibility.
$\bullet$ Install MATLAB and Simulink support packages for Arduino Hardware.
$\bullet$ Setup ThingSpeak channel for IoT.
image_3.png
In this script, students will...
$\bullet$ Learn the fundamental type of signals supported on and Arduino board.
$\bullet$ Wire a simple LED to their Arduino board.
$\bullet$ Control the LED from a simple blink to encoding Morse code.
image_4.png
In this script, students will...
$\bullet$ Learn how to control Arduino with a Stateflow diagram.
$\bullet$ Learn data analysis techniques.
$\bullet$ Write and export experiment report from MATLAB.
image_5.png
In this script, students will...
$\bullet$ Use a temperature sensor.
$\bullet$ Develop a control algorithm.
$\bullet$ Test their control algorithm.
image_6.png
In this script, students will...
$\bullet$ Use a Simscape thermal model.
$\bullet$ Simulate the greenhouse over a full year of data.
$\bullet$ Test multiple fans to validate the design.
image_7.png
In this script, students will...
$\bullet$ Learn how to read and write from a ThingSpeak channel.
$\bullet$ Log the temperature in the greenhouse on their own channel.
$\bullet$ Create an alert when the temperature exceeds the acceptable range.

Related Courseware Modules

image_8.png
Available on:
image_9.png
image_10.png
GitHub

Or feel free to explore our other modular courseware content.

Educator Resources

Contribute

Looking for more? Find an issue? Have a suggestion? Please contact the MathWorks teaching resources team. If you want to contribute directly to this project, you can find information about how to do so in the CONTRIBUTING.md page on GitHub.

Copyright 2023 The MathWorks™, Inc

About

This curriculum module contains interactive MATLAB® live scripts introducing fundamental concepts of modern engineering using Arduino Hardware. The whole module is designed to explore these concepts using hardware using Arduino. You will explore the signals, data analysis, sensing, control, and Internet of Things (IoT).

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages