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 ! [...] [ … … ]