Skip to content

mathworks/Low-Cost-Hardware-with-MATLAB-Online

Repository files navigation

Project-Based Learning with Low-Cost Hardware using MATLAB Online

Overview

This workshop serves as a resource for educators seeking to enhance experiential learning with MATLAB® and Simulink® in online, hybrid, and remote environments. By leveraging MATLAB Online in conjunction with affordable hardware, educators can offer students engaging projects and activities without the need for costly lab equipment, extensive software installations, or complex desktop configurations. The repository includes guidance on using MATLAB Online with low-cost hardware platforms, such as Arduino, and other devices via MATLAB Mobile and ThingSpeak, to facilitate project-based learning. It also provides instructions on connecting hardware to MATLAB Online and designing effective project-based learning activities for remote settings.

Technical Requirements

It is recommended that Google Chrome™ be used for this workshop.

Material Requirements

If you would like to follow along with all of the workshop activities, a basic Arduino kit is required. The below links are some options that are available online.

ELEGOO Super Starter Kit

Arduino Starter Kit

This workshop will be recorded and available following the EXPO, so even if you do not have the materials or time required to perform every activity, you can consult this repository and the recording at a later time.

Getting Started

1. Create a MathWorks Account

Click on the link below to create a MathWorks account if you do not already have one:

https://www.mathworks.com/mwaccount/account/create

Troubleshooting:

https://www.mathworks.com/matlabcentral/answers/361072-how-do-i-create-a-mathworks-account

2. Download MATLAB Mobile

Scan the QR code below to download the app on your smart device:

image_0.png

3. Install MATLAB Connector

Follow the instructions at the link below to install MATLAB Connector, which allows you to interface your Arduino hardware with MATLAB Online:

https://www.mathworks.com/products/matlab-drive.html?s_tid=AO_MLConnector#matlab-drive-connector

4. Configure MATLAB Connector for Arduino Hardware

Unlike MATLAB Desktop, the MATLAB and Simulink Support Packages for Arduino are automatically installed on MATLAB Online.

  • After you have successfully installed MATLAB Connector, plug in your Arduino board.
  • Log in to MATLAB Online and run the following command in the Command Window:
arduinosetup
  • Follow the instructions, accepting the default libraries.
  • When complete, run the following command and ensure the status of your board is "Ready to connect":
arduinolist

You will see an error in MATLAB Online when running Arduino commands if your region is not yet ready for this feature.

Arduino support for EDU customers will be rolled out in all regions in a future update to 2024b

5. Clone this Repository to your MATLAB Drive

Click the button below to clone the repository for this workshop to your MATLAB Drive to use in MATLAB Online.

image_1.png

Activities

Demo 1: Advanced Arduino Control

image_2.png

https://www.mathworks.com/help/matlab/supportpkg/iot-automatic-cooling-fan-arduino-example.html

image_3.png

https://www.mathworks.com/help/matlabmobile/ug/sensor-data-collection-with-matlab-mobile.html

image_4.png

image_5.png

image_6.png

License

The license for this module is available in the LICENSE.txt

Products

MATLAB®, Image Processing Toolbox

Educator Resources

https://www.mathworks.com/academia.html

  • Access tools and resources for delivering great MATLAB based courses, including lectures, project-based learning, and assessments
  • Browse courseware and examples from MathWorks and educators

https://www.mathworks.com/hardware-support/arduino.html

  • Get support for MATLAB, Simulink, and hardware support packages
  • Contact your Customer Success team for assistance with curriculum

https://github.com/mathworks https://github.com/MathWorks-Teaching-Resources

Additional Resources

MATLAB Mobile

https://www.mathworks.com/help/matlabmobile/matlab-mobile-fundamentals.html

Webcams

https://www.mathworks.com/help/matlab/cameras-and-mobile-sensing.html

ThingSpeak

https://www.mathworks.com/help/thingspeak/

Arduino

https://www.mathworks.com/help/matlab/examples.html?category=arduinoio&exampleproduct=all&newonly=&s_tid=CRUX_lftnav https://www.mathworks.com/help/matlab/supportpkg/using-arduino-explorer.html

Raspberry Pi

https://www.mathworks.com/help/matlab/supportpkg/connect-to-raspberry-pi-hardware-board-in-matlab-online.html

https://www.mathworks.com/help/matlab/examples.html?category=raspberrypiio&exampleproduct=all&newonly=&s_tid=CRUX_lftnav

© Copyright 2024 The MathWorks™, Inc

About

Project-Based Learning with Low-Cost Hardware using MATLAB Online

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published