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

翻訳前ページへ


Keyboard to microcontroller interface- SC4smka HOME > > SENSING AND CONTROL MAIN PAGE > > SENSORS > > SENSORS > > KEYBOARD

Taking the 負担 off... a microcontroller "(弁護士の)依頼人/ server" 解答 to 追加するing a keyboard, or other 資源.

I love "playing" with microcontrollers. They don't take 5 minutes to reboot every time the operating system 落ちるs over, for a start.

Trouble is, I always run out of inputs and 生産(高)s. I want a keyboard, a multi-character alphanumeric 陳列する,発揮する, 気温 sensors, 生産(高)s to switch 世帯 electricity on and off, etc, etc!

So I thought it would be nice to "offload" some chores to 外部の 献身的な microcontrollers, and leave "my" microcontroller 解放する/自由な for the fun stuff. There are several such 装置s out there for 運動ing LCD 陳列する,発揮するs, for instance.

The 支配する of this page... we will get to it.... すぐに... is a keypad. the ideas developed for the keypad have more general 使用/適用, but the keypad is a good place to start.

I'm calling my 解答 an example of (弁護士の)依頼人/ server 計算するing. Although that's a bit grand, I think it is valid in 原則, if not 規模.

For the sake of Google, I'm calling my 解答 "S2CSSys". It was going to be (and you may still see in older 文書s) "S2Sys", but it seems someone (警官の)巡回区域,受持ち区域 me to that!

I have a working 原型. Reliable? I don't know yet.

Yes! But what does it DO????

Oh yeah! I'm getting there....

結局, you'll be able to buy a cheap little "黒人/ボイコット box" PCB. You'll plug a keyboard of some 肉親,親類d (my 原型 uses 6 重要なs on a junk- box calculator keyboard) in on one 味方する, and then plug three wires from the 黒人/ボイコット box (a ground wire and two data lines, one in, one out) into your microcontroller, be it a programmed- by- you PIC, an Arduino, a Pascalite, a BasicStamp, whatever. Your microcontroller in all that follows is the (弁護士の)依頼人. The 黒人/ボイコット box, and 大(公)使館員d keyboard, are the server. Remember that other variants of the 黒人/ボイコット box could "serve" 気温 readings, RTC info, etc, etc.

The whole thing is (弁護士の)依頼人 driven. The server is there to.... serve! It sits 静かに most of the time. If a 重要な is 圧力(をかける)d, the server makes a 公式文書,認める of what was 圧力(をかける)d. WHEN, not before, the (弁護士の)依頼人 is 利益/興味d, the (弁護士の)依頼人 "looks" to see if the server has any data 利用できる. This "looking" is a simple 事柄 of reading the 明言する/公表する of the data line coming from the server. Is it (the data line) high or low? If there is data 利用できる, the (弁護士の)依頼人 then "says" (pulls the other data line, the one TO the server low 簡潔に. As soon as the server sees that, it will "spit out" a datum to the (弁護士の)依頼人.

Simple? I hope so. (いっそう少なく to go wrong!)

And, as I say, I have a 原型.....

Picture of prototype

.... working. The image shows a (弁護士の)依頼人 Arduino, 最高の,を越す picture, and, below that, a 原型 "黒人/ボイコット box" server, 現在/一般に in a BasicStamp. (Somewhat confusingly, I've got the keypad... which is read by the BasicStamp... plugged into the Arduino's protoboard. That's where I had spare sockets!)

Now I am looking for someone to create a little PIC board with my idea 一括d nicely in it. Or at least a PIC with the 権利 code if you aren't able to help with the PCB 同様に. I don't mind you 保護するing the code in the PIC, keeping it secret. I'd have no problem with that. Only the interface to the Arduino (or 類似の) would need to be published. I would imagine that you would develop your code for the PIC from my BasicStamp code, and have no 反対 to that either... but I'm not going to give anyone an 排除的 license to the ideas.

Please understand that this 事業/計画(する) isn't for a novice who will need lots of help with how to make his (or her) PIC work. I would 推定する/予想する to work やめる hard with you on 事柄s of making it work, though. I would hope to work with someone with an Arduino to use, during the 開発, as the (弁護士の)依頼人.

I won't go very far 今後 with 多重の co-developers without 警告 them of the other 利益/興味d parties.

Please get in touch if 利益/興味d? Please 含む "S2CSSys" in the 支配する, for my spam filter. -loresLooking 今後 to 審理,公聴会 from you!

By way of 激励, I hope, I'm also 地位,任命するing the code, both for the server and the (弁護士の)依頼人. PLEASE REMEMBER THAT THESE ARE "作品 in 進歩"... neither is neat, or tidy, or 保証(人)d 現在の or 完全にする or 訂正する! But they are here if it would amuse you to have a look!

Server code... written for BasicStamp... change the 拡張 from .txt to .bs2 if you want to 負担 it into PBASIC, the 解放する/自由な compiler for the BasicStamp

(弁護士の)依頼人 code... written for Arduino... change the 拡張 from .txt to .pde to 負担 it into the Arduino's compiler. I'm using 見解/翻訳/版 10.


広告 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? At least (please) send an 'I liked the 平行の port use page, and I'm from (country/ 明言する/公表する)' email? (No... I don't do spam) Links on your page to this page would also be 高く評価する/(相場などが)上がるd!
Click here to visit editor's freeware, shareware page.

Other 事業/計画(する)s

This is just one of the guides I have published on the 逮捕する. Please visit any of the に引き続いて that relate to 利益/興味s you have....

Delphi Tutorials
Pascal programming tutorials
Electronics for hobbyists and schools
Main Home Page

Here is how you can 接触する this page's author, Tom Boyd.

索引 of sensing and 支配(する)/統制する pages (From there you can also go to other help from the editor of this page.)

-- Page ends --