インターフェース 2013年 08月号 寄稿しました。
Posted by arms22 on 2013年06月24日

インターフェース 2013年 08月号 にソフトモデムを使った温度・湿度計の記事を寄稿しました(書いたのは去年の暮れぐらいですけどw)。スマホとマイコンの通信と言えばもっぱらBLE(Bluetooth low energy)が主流のようですが、オーディオ端子を使った通信のお手軽さもまだまだ捨てたもんじゃないと思います。スマホ側のソフトウェアの実装が面倒ですが、それはBLEも同じ、、はず。。ぜひご覧ください!
ソースコードはCQ出版サイトからダウンロードできます。また次のURLからもダウンロードできます。
ソフトモデムソフトウェア.zip
Interface (インターフェース) 2013年 08月号 [雑誌]
posted with amazlet at 13.06.21
CQ出版 (2013-06-25)
Ads by Google
4 Comments
はじめまして。SoftModemを利用し開発を行っている物です。
以下の内容で開発を行っています。
----------------------------
Arduino 1.0.5
SoftModem-005 を使用し
Arduino MICROで開発
----------------------------
コンパイルは通り、Arduinoに書き込もうとすると下記のようなエラーが表示され
書き込む事は出来ません。ArduinoUNOで行ったところ問題なく書き込めたのですが
MICROでは対応していないのでしょうか。
また、解決策などございましたらご教授頂ければ幸いです。
/Users/Documents/Arduino/libraries/SoftModem/SoftModem.cpp: In member function 'void SoftModem::begin()':
/Users/Documents/Arduino/libraries/SoftModem/SoftModem.cpp:99: error: 'TCNT2' was not declared in this scope
/Users/Documents/Arduino/libraries/SoftModem/SoftModem.cpp:102: error: 'TCCR2A' was not declared in this scope
/Users/Documents/Arduino/libraries/SoftModem/SoftModem.cpp:103: error: 'TCCR2B' was not declared in this scope
/Users/Documents/Arduino/libraries/SoftModem/SoftModem.cpp: In member function 'void SoftModem::demodulate()':
/Users/Documents/Arduino/libraries/SoftModem/SoftModem.cpp:118: error: 'TCNT2' was not declared in this scope
/Users/Documents/Arduino/libraries/SoftModem/SoftModem.cpp:146: error: 'OCR2A' was not declared in this scope
/Users/Documents/Arduino/libraries/SoftModem/SoftModem.cpp: In function 'void TIMER2_COMPA_vect()':
/Users/Documents/Arduino/libraries/SoftModem/SoftModem.cpp:211: error: 'OCR2A' was not declared in this scope
/Users/Documents/Arduino/libraries/SoftModem/SoftModem.cpp: In member function 'void SoftModem::modulate(uint8_t)':
/Users/Documents/Arduino/libraries/SoftModem/SoftModem.cpp:259: error: 'OCR2B' was not declared in this scope
/Users/Documents/Arduino/libraries/SoftModem/SoftModem.cpp:265: error: 'OCR2B' was not declared in this scope
以下の内容で開発を行っています。
----------------------------
Arduino 1.0.5
SoftModem-005 を使用し
Arduino MICROで開発
----------------------------
コンパイルは通り、Arduinoに書き込もうとすると下記のようなエラーが表示され
書き込む事は出来ません。ArduinoUNOで行ったところ問題なく書き込めたのですが
MICROでは対応していないのでしょうか。
また、解決策などございましたらご教授頂ければ幸いです。
/Users/Documents/Arduino/libraries/SoftModem/SoftModem.cpp: In member function 'void SoftModem::begin()':
/Users/Documents/Arduino/libraries/SoftModem/SoftModem.cpp:99: error: 'TCNT2' was not declared in this scope
/Users/Documents/Arduino/libraries/SoftModem/SoftModem.cpp:102: error: 'TCCR2A' was not declared in this scope
/Users/Documents/Arduino/libraries/SoftModem/SoftModem.cpp:103: error: 'TCCR2B' was not declared in this scope
/Users/Documents/Arduino/libraries/SoftModem/SoftModem.cpp: In member function 'void SoftModem::demodulate()':
/Users/Documents/Arduino/libraries/SoftModem/SoftModem.cpp:118: error: 'TCNT2' was not declared in this scope
/Users/Documents/Arduino/libraries/SoftModem/SoftModem.cpp:146: error: 'OCR2A' was not declared in this scope
/Users/Documents/Arduino/libraries/SoftModem/SoftModem.cpp: In function 'void TIMER2_COMPA_vect()':
/Users/Documents/Arduino/libraries/SoftModem/SoftModem.cpp:211: error: 'OCR2A' was not declared in this scope
/Users/Documents/Arduino/libraries/SoftModem/SoftModem.cpp: In member function 'void SoftModem::modulate(uint8_t)':
/Users/Documents/Arduino/libraries/SoftModem/SoftModem.cpp:259: error: 'OCR2B' was not declared in this scope
/Users/Documents/Arduino/libraries/SoftModem/SoftModem.cpp:265: error: 'OCR2B' was not declared in this scope
現在の実装ではMicroやLeonardoには対応していません。
Timer2を別のタイマーに置き換えれば使えると思いますよ。
いい感じに修正していただけると助かります ;)
Timer2を別のタイマーに置き換えれば使えると思いますよ。
いい感じに修正していただけると助かります ;)
ありがとうございます。
修正してみます。動きましたらまた連絡させて頂きます。
修正してみます。動きましたらまた連絡させて頂きます。
あー、AIN-がADCのマルチプレクサ出力のみになってて非常にめんどくさいことに。。analogReadつかうとうまくうごかなくなりそう。AIN-はバンドギャップリファレンスにするしかないかも。
Leave a reply
該当の記事は見つかりませんでした。