LoginSignup
4
5

More than 5 years have passed since last update.

ドル円の変動を表現するランプをArduinoで作ってみた

Last updated at Posted at 2016-07-16

LED光らせるだけ試して眠っていたArduinoを出してきて、もう少し高度なことを試してみた。
「Arduinoをはじめよう第2版」の最後のサンプルほぼそのままだけど。

■練習
自分のブログにpeaceという文字列があると青、無ければ赤に光るランプを作ってみた。
本当は為替の上下をリアルタイムに見えるようなものを作りたいのだけど、うまく情報取れるサイトが見つからなくてひとまず断念。また後ほどチャレンジしてみよう。
(為替の上下をスクレイピングできるサイトさあればすぐに実装できる)

動画は↓からご覧ください。
https://www.facebook.com/shen.l.liang/videos/vb.1440292456/10206225487383029/?type=2&theater
 
動画は最新記事にpeaceという単語を入れたり消したりしてみているところ。
私のはてなダイアリーです。

メチャクチャ汚いコードだけど、コードはこちら。
https://github.com/ryogrid/Arduino_learning/tree/master/blog_lamp

■練習2
BTCUSDの一分足できた
http://youtu.be/IExjdCL22jY
https://github.com/ryogrid/Arduino_learning/tree/master/btcusd_lamp

■でけた
https://www.youtube.com/watch?v=LRH5X6kaR2E
https://github.com/ryogrid/Arduino_learning/tree/master/usdjpy_lamp

4
5
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
5