Zedomax DIY 100 Make an alarm system zedomax diy ,使100报警系统

DIY [100] diy [ 100 ]
Do it yourself !这样做你自己!
Zedomax Alarm System - zedomax警报系统-
Make an alarm system in 3 minutes!作出报警系统在3分钟!

Video of Alarm System in 3 minutes:视频报警系统在3分钟:
Parts List: 部分名单:
1 Magnetic Contact Switch 1磁性接触开关
1 12VDC Piezzo Buzzer 1月12 Vdc皮耶佐蜂鸣器
1 2N3904 Transistor一2n3904晶体管
Available at RadioShack 可在RadioShack公司
1 CB280 Start Kit 1 cb280启动套件
1 CLCD420-B 1 clcd420乙
1 4×4 Keypad 4月1日× 4键盘
1 Keypad Controller 1键盘控制器
Available at Comfile 可在comfile
Okay, today I was thinking that I needed an alarm system for my dog, so I decided to make a doggy door alarm system.好吧,今天我想我需要一个报警系统为我的狗,所以我决定把狗门上报警系统。 Since my dog sleeps w/ me, I needed to make an alarm system for the night, to protect my apartment from other intruding dogs…由于我的狗睡瓦特/我,我需要作出一个报警系统的夜晚,来保护我的公寓从其他入侵的狗…
Anways, you might think I am crazy making an alarm system for furry people… anways ,你可能会认为我疯了决策的一个报警系统的带有毛发的人…
Before I made the actual system, I decided to do it with a study board that has a little breadboard.之前,我所作的实际系统,我决定这样做与研究局有一个小breadboard 。
You can get a 12VDC Piezzo Buzzer from your local Radio Shack for about 10 bucks and magnetic contact switches w/ screws for about 5 bucks.你可以得到12 Vdc皮耶佐蜂鸣器从您的本地Radio Shack的约10雄鹿和磁性联络开关瓦特/螺丝约5雄鹿队。
These magnetic contact switches are neat, they are the same ones used for a lot of residential and commercial door sensors.这些磁性接触开关整齐,他们是同样的用于了很多住宅及商业门传感器。

They are simply magnetic switches.他们只是电磁开关。 If door is closed, the contact is open and if door is open, the contact is closed.如果封闭的大门是,联系是开放的话,大门是开放的,联系是封闭。
You can screw them into door and the wall using the holes on the switch ends.您可螺杆他们的大门和墙壁用的洞穴开关结束。
Yes, if you got that and some CUBLOC or any type of microcontroller w/ i/o ports, you should be ready to go.是的,如果你认为,和一些cubloc或任何类型的微控制器瓦特/ I / O端口,你应该准备就绪。
Here, we will use Comfile’s CB280 embedded computer module and a 4×4 keypad and keypad controller, which will make things easier for us since we won’t have to build from scratch.在这里,我们将用comfile的cb280嵌入式计算机模块和4 × 4键盘和键盘控制器,这将使事情,我们更容易,因为我们不会有建设从零开始。

(Close-up) (关闭)
You will need to solder on your Keypad to the Keypad Controller first.您将需要焊在您的键盘键盘控制器第一。
Then plug in black wire to GND, red wire to 5V, and rest of the pins to ports P0, P1, P2, and P3.然后堵塞在黑线接地,红线,以5V和其余的管脚港口p0 ,的P1 , P2 , P3的。 (labeled 0, 1, 2, and 3 on the black IDC headers) (标示为0 , 1 , 2 , 3对黑IDC的标题)

Once you are done connecting the Keypad Controller to your study board, connect the LCD to connector labeled, “CuNET”.一旦你做了连接键盘控制器到您的研究委员会,连接的LCD连接器标示“ cunet ” 。

Yes, now you have a keypad and an LCD.是的,现在您有一个键盘和一个液晶显示器。
Now connect the black wire of the piezo to GND and red wire to the left side of the 3904 transistor.现在连接黑线的压电接地和红色的丝,以左边的3904晶体管。
Connect 5V to the right side of the 3904 transistor.连接5V的向右侧的3904晶体管。
Connect the middle pin of the transistor to P5 of the CUBLOC Study Board (labeled “5″).连接中的私人密码的晶体管为P5的cubloc研究局(标示为“ 5 ” ) 。

Now why are we using a transistor?现在我们为什么要使用晶体管呢?
Because the piezo takes about 150mA and each I/O of CB280 CUBLOC module only can take so much (<50mA).因为压电约需一百五毫安和每个的I / O的cb280 cubloc模块,不仅能采取这么多“ ( <五零毫安) 。
So when the I/O port goes on, the transistor will simply connect power from 5V pin to the red wire of the piezo.因此,当I / O端口的推移,这一晶体管将简单连接电源从5V的引脚,以红色线的压电。
Okay, now we have 1 more item, yes, that’s right, we can put the magnetic contact switch.好吧,现在我们有更多的项目1 ,没错,就是那个的权利,我们可以把磁接触开关。
Connect one end of the Contact switch to 5V pin and the other end to port P20, labeled “20″ on the study board.连接的一端接触切换到5V的PIN和其他结束p20的港口,标示为“ 20 ”就研究局。

Now connect a wire from P20 to an LED on the study board.现在连接线从p20到一率领的关于这项研究的董事会。
This is to do a pull-down and we should be able to check the status of the contact switch using the LED.这是做下拉式和我们应该能够检查的地位,联络开关使用的LED 。
All right, now you are done, you should have something like this:所有权利,现在你这样做,你应该有一些是这样的:

Now download this source file现在下载此来源档案 diy100.zip and uncompress it.及解压缩。
You will find HomeAutomation001.cul and HomeAutomation001.cub.你会发现homeautomation001.cul和homeautomation001.cub 。
Open HomeAutomation001.cul file in your CublocStudio.开放homeautomation001.cul文件在您的cublocstudio 。
Download the program to CB280 module.下载该程序,以cb280模块。
When you move the bottom part of the magnetic contact switch, you should see the LCD displaying “open” and “close” while the piezo beeps.当您移动底部的一部分,磁接触开关,您应该可以看到液晶显示“开放”和“关闭” ,而压电哔声。
Now enter “1234″ as password on the keypad controller.现在输入“ 1234 ”作为密码,键盘控制器。
If you mess up, you can press “CNCL” button, which will clear the password.如果您的烂摊子了,您可以按下“ cncl ”按钮,这将清除密码。
You should see the Alarm Status on the LCD go ON.您应该看到报警状态对液晶显示器继续下去。
Now when the door is open, you will hear the alarm go off.现在,当大门是开放的,您会听到警报关闭。
[Source Code]
Const Device = CB280
#define MyPass 1234
Set Pad 0,1,5
Const Byte KEY_TABLE=(0,0,14,16,0,15,0,0,0,0,13,9,8,7,0,0,0,0,12,6,5,4,0,0,0,0,11,3,2,1)
‘Key table if Keypad inserted backwards to the Keypad Controller
‘Const Byte KEY_TABLE=(0,0,1,4,7,10,0,0,0,0,2,5,8,11,0,0,0,0,3,6,9,12,0,0,0,0,13,14,15,16)
Dim X As Byte
‘Status of Alarm
Dim AlarmON As Byte
‘Status of Door
Dim Door As Byte
Dim Password As Long
Door=0
Password=0
AlarmON=0
‘Set port P5 to output
Output 5
‘Set Magnetic Switch to input
Input 20
On INT0 Gosub GETINT
Set int0 2
On Pad Gosub PAD_RTN
Set Ladder Off
Set Display 2,0,0,128
Cls
Delay 100
Csroff
Locate 0,0
Print “Zedomax Alarm System”
Locate 0,2
Print “Door is: “
If In(20)=1 Then
Print “open”
Else
Print “closed”
End If
If AlarmON=1 Then
Locate 0,3
Print “Alarm Status is ON”
Else
Locate 0,3
Print “Alarm Status is OFF”
End If
Do
If AlarmON=1 And Door=1 Then
Alarm
End If
Loop
GETINT:
Door=In(20)
Debug “Door: “,Dec Door,Cr
Alarm
If Door=0 Then
Locate 9,2
Print “closed “
Debug “door closed”,Cr
Else
Locate 9,2
Print “open “
Debug “door open”,Cr
End If
Delay 500
Return
PAD_RTN:
Peep
X=Getpad(1)
If X>29 Then Return
X=KEY_TABLE(X)
Debug “Key Pressed: “, Dec X,Cr
If X < 10 Then
Password=Password*10+X
If Password > 9999 Then Password=X
Debug “Password: “, Dec Password,Cr
If Password = MyPass Then
AlarmON=AlarmON Xor 1
If AlarmON=1 Then
Locate 0,3
Print “Alarm Status is ON “
Else
Locate 0,3
Print “Alarm Status is OFF”
End If
End If
‘If ENTR pressed
Elseif X=11 Then
‘If CNCL pressed
Elseif X=15 Then
Password=0
End If
Return
End
Sub Alarm()
Out 5,1
Delay 100
Out 5,0
Delay 100
End Sub
Sub Peep()
Out 5,1
Delay 5
Out 5,0
Delay 5
End Sub
Taking it Further…同时它进一步…
You can modify the source code to change the alarm times, scheduling,您可以修改的源代码要更改闹钟时间,调度,
menus, etc…etc…菜单等…等…
The CB280 module supports up to 49 I/Os, so you can add up to 49该cb280模块支持多达49个I / O ,使您可以添加多达49
door sensors or you can add temperature chip to monitor temperature车门感应器或您可以添加芯片的温度监测温度
at the same time.在同一时间内。
The CB220 and CB220 Proto Board can be substituted for cheaper该cb220和cb220原董事会可以取代便宜
alternative.替代。
The CLCD420B can be substituted for smaller LCD such as the CLCD216G该clcd420b可以取代为规模较小的液晶显示器如clcd216g
OR you can also add a graphic LCD, such as the GHLCD for expanding或您也可以添加一个图形液晶显示器,例如作为ghlcd扩大
your alarm system…您的报警系统…
I will try to update w/ a touch screen alarm system for more high我会尝试以更新瓦特/触摸屏报警系统,为更多高
tech alarm system in the future w/ CuTOUCH.高科技报警系统在未来的瓦特/ cutouch 。
Check out PartII - adding a motion sensor!检查partii -加入一项议案,传感器!
If you are having any trouble with above app, please e-mail如果您有任何问题与上述亚洲浆纸,请E - mail max@zedomax.com
If you have any cool apps you’d like to share, please e-mail to如果您有任何的劲酷程序您想分享,请E - mail至 max@zedomax.com
RSS feed RSS馈送 | Trackback URI Trackback跟踪的URI























[...] DIY Link [...] [ … … ] diy链接[ … … ]
[...] How to make a Stopwatch in 1 minute! [ … … ]如何使一个计时器,在1分钟! How to make a G-meter 4 your car in 1 minute!如何使一克-米4您的汽车在1分钟! How to make a computer controlled Party Light in 90 seconds!如何使计算机控制光在党的90秒! How to make a computer controlled Party Light Part II!如何使计算机控制的党的第二部分轻! How to build a digital thermometer in one minute!如何建立一个数字式温度计在一分钟! How to build a hovercraft with 4 PC Fans!如何建立一个气垫船与四PC的球迷! How to make a Golf Club POV training aid!如何使一高尔夫俱乐部pov训练援助! How to make voice activated Christmas Lights!如何使语音激活的圣诞灯! How to make an LED Christmas Tree!如何使一率领的圣诞树! How to make a Christmas LED Wreath!如何使一个圣诞主导敬献了花圈! How to make a golf training aid for just 5 bucks!如何使高尔夫球训练援助为5雄鹿队! How to make your own PS3 SIXAXIS controller from scratch!如何使自己的中三结业生职业sixaxis控制器从头开始! How to make a music syncing Light Orb Alarm Clock!如何使音乐同步轻ORB的闹钟! How to make an ethernet controlled Color Organ!如何使一个以太网控制颜色器官! How to make a glowing LED heart!如何使发光导致心脏! How to make Christmas Light Controller in 5 minutes!如何使圣诞节光控制器在5分钟! How to use PS3 Six axis Controller in Windows!如何使用PS3的六轴控制器在Windows ! How to crack WEP and WPA Wireless Networks!如何打击WEP和WPA的无线网络! How to unlock Windows XP password without any programs!如何在Windows XP的解锁密码,没有任何程序! How to tweak your Linksys router to go 10 times faster!如何调整您的Linksys路由器到快10倍! How to download Windows Movie Maker for your illegal Windows!如何下载Windows Movie Maker中为您的Windows非法! How to turn your cellphone into a Taser Camera Gun!如何把您的手机成为一个克利克照相枪! How to downgrade your computer from Windows Vista to XP!如何降低您的电脑从Windows Vista到Windows XP ! How to convert air into electricity!如何转换的空气转化为电能! How to automate your MySQL database backups!如何自动在你的MySQL数据库备份! How to disable Lexus and Prius navigation lockout!如何禁用凌志与Prius导航锁定! How to fight DoS attacks for your linux web server!如何争取DoS攻击,为您的Linux Web伺服器! How to make an ethernet controlled temperature monitor!如何使一个以太网控制温度监控! How to build an internet controlled security robot with GPS!如何建立一个互联网控制机器人的安全与全球定位系统! How to extend your Wifi Antenna by 2-3 times!如何扩展您的WiFi天线的2-3倍! How to make a homebrewed radio using paper clips!如何使homebrewed电台使用纸夹! How to download free mp3s using Google!如何下载免费的MP3使用Google ! [...] [ … … ]
[...] How to make a Stopwatch in 1 minute! [ … … ]如何使一个计时器,在1分钟! How to make a G-meter 4 your car in 1 minute!如何使一克-米4您的汽车在1分钟! How to make a computer controlled Party Light in 90 seconds!如何使计算机控制光在党的90秒! How to make a computer controlled Party Light Part II!如何使计算机控制党的轻第二部分! How to build a digital thermometer in one minute!如何建立一个数字式温度计在一分钟! How to build a hovercraft with 4 PC Fans!如何建立一个气垫船与四PC的球迷! How to make a Golf Club POV training aid!如何使一高尔夫俱乐部pov训练援助! How to make voice activated Christmas Lights!如何使语音激活的圣诞灯! How to make an LED Christmas Tree!如何使一率领的圣诞树! How to make a Christmas LED Wreath!如何使一个圣诞主导敬献了花圈! How to make a golf training aid for just 5 bucks!如何使高尔夫球训练援助为5雄鹿队! How to make your own PS3 SIXAXIS controller from scratch!如何使自己的中三结业生职业sixaxis控制器从头开始! How to make a music syncing Light Orb Alarm Clock!如何使音乐同步轻ORB的闹钟! How to make an ethernet controlled Color Organ!如何使一个以太网控制颜色的器官! How to make a glowing LED heart!如何使光辉率领的心! How to make Christmas Light Controller in 5 minutes!如何使圣诞节光控制器在5分钟! How to use PS3 Six axis Controller in Windows!如何使用PS3的六轴控制器在Windows ! How to crack WEP and WPA Wireless Networks!如何打击WEP和WPA的无线网络! How to unlock Windows XP password without any programs!如何释放Windows XP的密码没有任何节目! How to tweak your Linksys router to go 10 times faster!如何调整您的Linksys路由器到快10倍! How to download Windows Movie Maker for your illegal Windows!如何下载Windows Movie Maker中为您的Windows非法! How to turn your cellphone into a Taser Camera Gun!如何开启你手机成为一个克利克照相枪! How to downgrade your computer from Windows Vista to XP!如何降低您的电脑从Windows Vista到Windows XP ! How to convert air into electricity!如何转换的空气转化为电能! How to automate your MySQL database backups!如何自动在你的MySQL数据库备份! How to disable Lexus and Prius navigation lockout!如何禁用凌志与Prius导航锁定! How to fight DoS attacks for your linux web server!如何争取DoS攻击,为您的Linux Web伺服器! How to make an ethernet controlled temperature monitor!如何使一个以太网控制温度监控! How to build an internet controlled security robot with GPS!如何建立一个互联网控制机器人的安全与全球定位系统! How to extend your Wifi Antenna by 2-3 times!如何扩展您的WiFi天线的2-3倍! How to make a homebrewed radio using paper clips!如何使homebrewed电台使用纸夹! How to download free mp3s using Google!如何下载免费的MP3使用Google ! [...] [ … … ]