Binary Stopwatch with Arduino

An Arduino stopwatch with a series of LEDs
ダウンロード: 609
更新 2015/7/7

ライセンスの表示

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.

引用

Techsource Technical Team (2024). Binary Stopwatch with Arduino (https://www.mathworks.com/matlabcentral/fileexchange/52017-binary-stopwatch-with-arduino), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2015a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersInstrument Control Toolbox についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0