このページはEtoJ逐語翻訳フィルタによって翻訳生成されました。

翻訳前ページへ


詳細(に述べる)s of how I worked with the nuelectronics datalogging 保護物,者 for Arduino - ar3ne1ser HOME  > >  ARDUINO MAIN PAGE > >  HINTS AND HOW-TOs > >  NuELEC DATALOG  t.o.c.     Delicious Bookmark this on Delicious   Recommend to StumbleUpon

Working with the nuElectronics Datalogging 保護物,者


As ever: The devil is in the 詳細(に述べる)s!

This page covers some points which 適用する to the family of pages of which it is a part.

Much of what you read here "should" not be important... but if you've used computers for a week, you know that "little 詳細(に述べる)s" can 事柄. Sigh.

The other pages in the family mostly 演説(する)/住所 the use of 明確な/細部 elements of the excellent (c.$16, 7/10) datalogging 保護物,者 for Arduinos, which was produced for us by nuelectronics.com. They also sell a useful 範囲 of sensors and accuators (effectors), already wired up so you can just plug them into the 保護物,者, at reasonable prices. Much of the 構成要素 in this family of pages can be used by a 保護物,者 owner to 統合する sensors, etc into his 事業/計画(する). The (警察などへの)密告,告訴(状) can also be useful to sensor owners 統合するing the sensors into other 事業/計画(する)s, even without the nuelectronics 保護物,者.

Serial 監視する

Let's consider the page about using the DS18B20 気温 sensor as an example of how I was working while 令状ing the tutorials.

... and that's about it! However, that may be a little bit different from what the writers of the デモ ソフトウェア nuelectronics was 供給(する)ing in June 2010... and the differences 事柄 in some instances. And let's look a little at the bits relating to the serial 監視する, in 事例/患者 you aren't old friends.

Forget about the 保護物,者 and the 気温 sensor for a moment.

If you ran the に引き続いて in an Arduino, it would 陳列する,発揮する "Hello world" somewhere. If you know where, skim for a bit... but there's more, even for you, in a moment.

無効の 体制/機構(){
Serial.begin(9600);
}

無効の 宙返り飛行(){
Serial.println("Hello World");
}

The two lines starting "Serial." are to do with "the serial 監視する". If you just want to wink some LEDs, you don't need to know about the serial 監視する, and if you are a beginner you may not have seen it yet. It is "hidden" until you "turn it on"... but it is always 利用できる, and a very useful 道具 it is!

To see it in 活動/戦闘: Put the little "Hello world" example into your Arduino. Wait for the message "Done uploading" to appear on the 妨げる/法廷,弁護士業 between the パネル盤 you typed the code into and the messages area below, where you hope to see "Binary sketch size...", the message that says your code had no syntax errors.

After you've been told the 開発 環境 is done uploading, if you click on the 権利 手渡す icon of the toolbar... the one that is a rectangle with a vertical line out the 最高の,を越す to a tiny circle, the one that gives rise to the "Serial 監視する" message just to it's 権利 when you put the mouse pointer on the icon... if you click it, a new window should open, and a moment later your "Hello World" should appear.

(A little "gotcha": If you are impatient, if you click the Serial 監視する icon before the "Done Uploading" message, nothing happens. The system isn't broken. You just can't have the serial 監視する until your code has been uploaded to your Arduino.)

(Another little "gotcha": The number in "Serial.begin(9600);" must be the same as the "baud" number in the lower left of the serial 監視する window. The nuelectronics programs use different numbers in the 同等(の) places. Don't hesitate to change them to 控訴 the 詳細(に述べる)s of how you are working. If you are getting gibberish, 特に if simple text headers are 緊急発進するd, look for a mis-match between your program and the settings in 影響 for your serial 監視する. (They are changed by the "baud" window... and どこかよそで.... but you "shouldn't" have this problem if you can upload programs to the Arduino, and the "Serial.begin" lines in them have the 権利 number.)

Not only does the serial 監視する give you a place to 陳列する,発揮する messages from the Arduino, it also gives you a way to send messages to it. Those messages are only sent after you 圧力(をかける) "enter"... they are not sent character by character as you type the message. The "get_line" subrouting which is part of many of my デモ programs is at the heart of using messages from the 使用者. It was adapted from the "get_line" in the nuelectronics デモ programs. It uses some techniques which, 率直に, somewhat puzzle me... but it 作品!... when you work as I did. E.g. 経由で the serial 監視する, etc.

I 嫌疑者,容疑者/疑う that the nuelectronics people were interacting with their Arduino 経由で a separate 終点 program. In the Windows world, Hyperterminal used to be "基準", used to routinely be 供給(する)d with the operating system. Nowadays, I think that the 解放する/自由な "PuTTY" is the program I'd use for such things. (I've done a 令状 up of PuTTY and other good freeware どこかよそで.)

You may be able to get away with having two things connected to your Arduino at the same time... the developement 環境 and Hyperterminal... but it makes me nervous. Hence my preference for working 経由で the serial 終点. 陳謝s for any difficulties this gives rise to. They should, I hope, be 制限するd to needing to tweak "get_line" and how you interact with what's in your Arduino and 保護物,者, while working with the デモs. These 問題/発行するs become 大部分は 討議する in any "real" 使用/適用 of the 金物類/武器類.

Libraries

As a general 支配する, I prefer not to clutter my system with libraries. In a some 事例/患者s, you will need libraries to work with the デモs I've done. In each 事例/患者, I hope the library needs are (疑いを)晴らす in the text of the 明確な/細部 デモ. You do not, by the way, need to 任命する/導入する the library for Dallas "1-wire" 半導体素子s, supported by the general Arduino community.

I will try to produce a separate beginner's guide to general "use of libraries" points. (If ar3ne1lib.htm has become 利用できる, please remind me to edit this page!)

A 詳細(に述べる), which I've discussed again on ar3ne1onetwo.htmits own page... You will see "one wire" and "one wire interface" in the nuelectronics documentation. This is not always connected with "1-Wire" (a Dallas trademark) at all, and even when you are connecting a 1-Wire 装置 to a nuelectronics "one wire" 関係 point, you won't often (ever?) get dragged into some of the more コンビナート/複合体 1-Wire 問題/発行するs. Don't get me wrong... I like 1-Wire... it is powerful. But to get everything you can from 1-Wire gets 危険に の近くに to Serious Work. nuElectonics lets you use some of the (marvelous) 1-Wire 装置s without the work!

許す...?

許す the abrupt end... I want to 令状 up the tutorial on using the SD card reader/writer... you'd rather I did that than polish this, wouldn't you?





-------------------

See Also: The Arduino programming course from Sheepdog Guides:

その上の to the Arduino ideas the page you are reading now will take you to, I have 地位,任命するd a 一連の essays which try to help you become a better Arduino programmer and engineer... but, for the best result, you will have to buckle 負かす/撃墜する and work your way through them in sequence. The "How To's" here can be 接近d in whatever order you like.


Feel 解放する/自由な to use this (警察などへの)密告,告訴(状) in programming courses, etc, but a credit of the source would be 高く評価する/(相場などが)上がるd. If you 簡単に copy the pages to other web pages you will do your readers a disservice: Your copies won't stay 現在の. Far better to link to these pages, and then your readers see up-to-date 見解/翻訳/版s. For those who care- thank you- I have 地位,任命するd a page with more (警察などへの)密告,告訴(状) on what copyright 権利放棄s I 延長する, and suggestions for those who wish to put this 構成要素 on CDs, etc.





編集(者)の Philosophy

See the discussion 近づく the 底(に届く) of the "最高の,を越す level" page covering the 本体,大部分/ばら積みの of my Arduino 出資/貢献s. There is (警察などへの)密告,告訴(状) there, too, about things like "May I copy your 構成要素?", and the system of とじ込み/提出する 指名するs I am trying to work to.


   Search this 場所/位置 or the web        力/強力にするd by FreeFind
 
  場所/位置 search Web search
場所/位置 地図/計画する    What's New    Search

The search engine is not intelligent. It 単に 捜し出すs the words you 明示する. It will not do anything sensible with "What does the 'could not 収集する' error mean?" It will just return 言及/関連s to pages with "what", "does", "could", "not".... etc.
In 新規加入 to the (警察などへの)密告,告訴(状) about the nuelectronics data 保護物,者 of which this page is part, I have other 場所/位置s with 構成要素 you might find useful.....

Tutorials about the 解放する/自由な database which is part of the 解放する/自由な Open Office.
Sequenced 始める,決める of tutorials on Pascal programming and electronics interfacing.
Some pages for programmers.
Using the 平行の port of a Windows computer.

If you visit 1&1's 場所/位置 from here, it helps me. They host my website, and I wouldn't put this link up for them if I wasn't happy with their service... although I was いっそう少なく than pleased the other day to have what I was doing interrupted by a telephone call from their sales team, trying to get me to 延長する my 関与. Sigh. Hardly a rare event, but I'd thought 1&1 were a bit classier that some of the people who have my telephone number.



広告 from page's editor: Yes.. I do enjoy 収集するing these things for you... hope they are helpful. However.. this doesn't 支払う/賃金 my 法案s!!! If you find this stuff useful, (and you run an MS-DOS or Windows PC) please visit my freeware and shareware page, download something, and 循環させる it for me? Links on your page to this page would also be 高く評価する/(相場などが)上がるd!

Click here to visit editor's Sheepdog ソフトウェア (tm) freeware, shareware pages.


And if you liked that, or want different things, here are some more pages from the editor of these tutorials....

Click here to visit the homepage of my biggest 場所/位置.

Click here to visit the homepage of Sheepdogsoftware.co.uk. 陳謝s if the "?Frmar3ne1ser" I 追加するd to that link 原因(となる)s your browser problems. Please let me know, if so?

Click here to visit editor's pages about using computers in Sensing and 支配(する)/統制する, e.g. 天候 logging.



To email this page's editor, Tom Boyd.... Editor's email 演説(する)/住所. Suggestions welcomed!


Valid HTML 4.01 Transitional Page 実験(する)d for 同意/服従 with INDUSTRY (not MS-only) 基準s, using the 解放する/自由な, 公然と accessible validator at validator.w3.org


Why does this page 原因(となる) a script to run? Because of the Google パネル盤s, and the code for the search button. Why do I について言及する the script? Be sure you know all you need to about spyware.

....... P a g e . . . E n d s .....