「Arduino Mega 2560」の版間の差分
(→体験記事) |
編集の要約なし |
||
| (同じ利用者による、間の4版が非表示) | |||
| 16行目: | 16行目: | ||
*[[Arduino Mega 2560 LESSON:6 アクティブブザー]] | *[[Arduino Mega 2560 LESSON:6 アクティブブザー]] | ||
*[[Arduino Mega 2560 LESSON:7 パッシブブザー]] | *[[Arduino Mega 2560 LESSON:7 パッシブブザー]] | ||
*[[Arduino Mega 2560 LESSON:8 チルトボールスイッチ]] | |||
*[[Arduino Mega 2560 LESSON:9 サーボ]] | |||
<yjavascript></script> | <yjavascript></script> | ||
<!-- | <!-- | ||
<yjavascript></script> | |||
<script> | |||
// 最初に実行されるスクリプト | |||
document.addEventListener('DOMContentLoaded', () => { | |||
const observer = new MutationObserver((mutations) => { | |||
mutations.forEach((mutation) => { | |||
mutation.addedNodes.forEach((node) => { | |||
if (node.tagName === 'SCRIPT' &@@& node.textContent) { | |||
// JavaScriptコードを変換 | |||
const originalCode = node.textContent; | |||
const transformedCode = originalCode.replace("&&", "&@@&"); | |||
// 元のスクリプトを置き換え | |||
const newScript = document.createElement('script'); | |||
newScript.textContent = transformedCode; | |||
node.replaceWith(newScript); | |||
} | |||
}); | |||
}); | |||
}); | |||
// `<head>` または `<body>` に挿入されるスクリプトを監視 | |||
observer.observe(document.head, { childList: true }); | |||
observer.observe(document.body, { childList: true }); | |||
}); | |||
</script> | |||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/styles/vs2015.css"> | |||
<link rel="stylesheet" href="https://wiki.yo-net.jp/custom.css"> | |||
<script src="https://wiki.yo-net.jp/highlight/highlight.js"></script> | |||
<script src="https://wiki.yo-net.jp/custom.js"></script> | |||
<script type="text/x-mathjax-config"> | |||
MathJax.Ajax.config.path["Contrib"]="https://wiki.yo-net.jp/mathjax/"; | |||
MathJax.Hub.Register.StartupHook("TeX Jax Ready",function (){ | |||
MathJax.Hub.Insert( | |||
MathJax.InputJax.TeX.Definitions.macros,{ | |||
cancel: ["Extension","cancel"], | |||
bcancel: ["Extension","cancel"], | |||
xcancel: ["Extension","cancel"], | |||
cancelto: ["Extension","cancel"] | |||
} | |||
); | |||
}); | |||
MathJax.Hub.Config({ | |||
tex2jax:{ | |||
displayMath: [['$$', '$$'],['\\[', '\\]']], //displayスタイル数式に利用する記号の指定 | |||
inlineMath: [['\\@', '\\@'],['\\(', '\\)']],//inlineスタイル数式に利用する記号の指定 | |||
//ここは使う人が自由に設定する部分です。 | |||
processEscapes: true | |||
}, | |||
TeX:{ | |||
// equationNumbers:{autoNumber: "AMS"}, | |||
extensions: ["[Contrib]/physics/physics.js","[Contrib]/siunitx/siunitx.js", "color.js", "cancel.js"] | |||
}, | |||
"HTML-CSS": { | |||
availableFonts: [], | |||
preferredFont: null, | |||
webFont: "Neo-Euler" | |||
}, | |||
}); | |||
</script> | |||
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.9/MathJax.js?config=TeX-AMS_HTML-full"></script> | |||
<script></yjavascript> | |||
[[Arduino Mega 2560]]に戻る。 | [[Arduino Mega 2560]]に戻る。 | ||
== '''概要''' == | == '''概要''' == | ||
<freescript></script><div class="hljs-wrap"><pre data-label="Arduino Code" class="pre-wrap"> | |||
<code class="cpp"> | |||
</code></pre></div><script></freescript> | |||
[[Arduino Mega 2560]]に戻る。 | [[Arduino Mega 2560]]に戻る。 | ||
2026年10月9日 (金) 18:02時点における最新版
メインページ#電子回路工学に戻る。
概要
Mega 2560は非営利団体Arduino Foundationや営利団体Arduino Holdingが管理するマイクロコンピュータです。ELEGOOがこのマイクロコンピュータのスターターキットを販売していて、いろいろ部品がついてきて5000円ほどで手に入る。電子工作初心者向けのキットです。ELEGOO Mega 2560のスターターキットには30のレッスン項目があるので、レッスンの実験体験記事をここに残す感じになります。
体験記事
- Arduino Mega 2560 LESSON:0 Arduino IDEの導入
- Arduino Mega 2560 LESSON:2 Board上のLEDの点滅速度の調整
- Arduino Mega 2560 LESSON:3 異なる値の抵抗を使用してLEDの輝度を変更する
- Arduino Mega 2560 LESSON:4 RGB LED
- Arduino Mega 2560 LESSON:5 LEDをオン/オフするためにデジタル入力付きのプッシュボタンを使用する方法
- Arduino Mega 2560 LESSON:6 アクティブブザー
- Arduino Mega 2560 LESSON:7 パッシブブザー
- Arduino Mega 2560 LESSON:8 チルトボールスイッチ
- Arduino Mega 2560 LESSON:9 サーボ