View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Binary Stopwatch with Arduino

Be the first to rate this file! 5 Downloads (last 30 days) File Size: 680 KB File ID: #52017 Version: 1.0
image thumbnail

Binary Stopwatch with Arduino

by

 

An Arduino stopwatch with a series of LEDs

| Watch this File

File Information
Description

This submission shows how to use Simulink with Arduino Support package to build a binary clock.
What's a binary clock?
https://en.wikipedia.org/wiki/Binary_clock

Several things that can be learnt here include:
1) Using clock block to generate the time.
2) Separating the time value(a number) to individual digits, using the 'fix' and 'mod' function.
3) Converting the decimal value to binary values with a Matlab function block.
4) Sending the binary values to LEDs via digital output pins.

There are 4 sets of 4 LEDs (total 16 LEDs).
Orange is in hundredths of a second, Blue in tenths of a second, green in ones(0-9) and Red in tens.

This model is easily configured to include hundreds if needed.

Acknowledgements

Decimal To Binary Converter (Configurable) and Separate Digits From A Single Number In Simulink inspired this file.

Required Products Gauges Blockset
Simulink
MATLAB
MATLAB release MATLAB 8.5 (R2015a)
MATLAB Search Path
/
Other requirements arduino support package
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
31 Dec 2016 Mahesh Walde

good

Comment only

Contact us