Arduino读取键盘

首先必须安装Arduino Keypad键盘库(Keypad library),Arduino Keypad键盘库可以从Arduino Playground下载。Arduino Keypad键盘库让你读取矩阵式键盘而不用编写复杂的代码,此键盘库可以读取3x4, 4x4以及各种矩阵结构的键盘。
Arduino与Stronglink SL018 RFID模块
Model
|
MIFARE Module SL018
|
Frequency
|
13.56MHz
|
Protocol
|
ISO14443A
|
Tag supported
|
Ultralight, NTAG203, MIFARE Mini, MIFARE™ Classic 1K, MIFARE™ Classic 4K, FM11RF08
|
Interface
|
I2C
|
Supply voltage
|
4.4 - 7.0VDC
|
Dimension
|
65 × 45 mm
|
Changing the Tiny Arduino clock between 1MHz and 8MHz
Simplest and Cheapest Arduino
- There are five IO, each IO can be Input or Output
- Among the five IO, two of the IO can perform as PWM
- Among the five IO, three of the IO can perform as Analog Input
最简单又最便宜的Arduino
- 五个IO,各个IO可以设成输入(Input)或者输出(Output)
- 其中两个IO可以设成PWM
- 其中三个IO可以设成Analog输入
Wireless Router Home Automation
Sending Message to Serial Port of Router using Lua
- PHP require to install lighttpd,lighttpd-mod-cgi,lighttpd-mod-fastcgi,php5-cgi,php5-fastcgi,libsqlite3, installation is complicated & consume resources.
- ser2net/socat is very simple but did not support web service.
- Lua comes as a default in openWrt and support web service. The goodies is OpenWRT using Luci for web GUI and LuCI is an embedded rapid application development framework written in Lua.
- Arduino duemilanove connected to a TP-LINK TL-WR1043ND router which flashed with OpenWRT.
- Using 16 Channel Relay Arduino Controller for the Arduino sketch
Connecting ULN2803 Line Driver to Arduino
If you are using Arduino (or any other TTL device) to control 4 channel relays or more, I would suggest to use ULN2803 Line Driver instead of Transistors or FETs. You can use ULN2003 which is much more cheaper if you plan to use not more than 7 channel relays.
The ULN2803 Integrated Circuit (IC) is a "Eight-way Line Driver". It allows you to interface TTL signals (5v) with higher voltage/current (50V/500ma) loads.
As shown in figure 1 and figure 2, an Arduino is control 8 relays, one using ULN2803 line driver and the other one using transistors, both circuit are equivalent.
16 Output Arduino Controller
PHP Control Arduino with TP-Link TL-WR1043ND Router
My previous article Control Arduino via PHP (EasyPHP) control Arduino from a computer with web server. Another article Control Arduino with TP-Link TL-WR1043ND Router which the Arduino is connecting to the router, but it is not safely to control over the internet.