![]() |
![]() |
![]() |
|
|
|||||||
| General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion? |
|
|
Thread Tools | Display Modes |
|
|
(permalink) |
|
I have the BASIC stamp homework board by parallax. I also have their PIR sensor. I want to make the circut so it will send a signal to my phone without another phone, but rather the computer. The only problem is, I don't know how to make something like that. So, does anyone know what i could do? This is the code I am using right now:
' ================================================== ======================= ' ' File...... PIR_Advanced_Demo.bs2 ' Purpose... Demonstrate PIR Sensor With Warm-Up Code ' Author.... Parallax, Inc. ' E-mail.... support@parallax.com ' Started... 12-14-2005 ' ' {$STAMP BS2} ' {$PBASIC 2.5} ' ' ================================================== ======================= ' -----[ Program Description ]--------------------------------------------- ' This PIR demo allows you to see how to go about allowing a warm-up time ' for the sensor to settle, as well as displayed number of times tripped ' and possibly activating an alarm or relay, in this case the LED. The LED ' should have a 220 ohm or 330 ohm resistor in series with it. ' -----[ I/O Definitions ]------------------------------------------------- PIR PIN 0 ' I/O Pin For PIR Sensor LED PIN 1 ' I/O Pin For LED ' -----[ Variables ]------------------------------------------------------- counter VAR Byte ' Trip Counter ' -----[ Initialization ]-------------------------------------------------- DEBUG CLS ' Clear DEBUG Screen FOR counter = 40 TO 0 ' Wait 40 Seconds For PIR Warm-Up DEBUG HOME, "WARMING UP:", DEC2 counter PAUSE 1000 ' Display Counter Every Second NEXT counter = 0 ' Clear Counter Variable DEBUG HOME, "WAITING... " ' Display Waiting Message ' -----[ Program Code ]---------------------------------------------------- Main: DO IF PIR = 1 THEN ' Motion Detected? counter = counter + 1 ' Update Trip Counter HIGH LED ' Light LED DEBUG HOME, "TRIPPED...", DEC3 counter DO : LOOP UNTIL PIR = 0 ' Wait For PIR To Clear DEBUG HOME, "CLEARED...", DEC3 counter LOW LED ' Turn Off LED ENDIF LOOP PLEASE HELP! |
|
|
|
|
|
|
(permalink) |
|
I don't use this micros but I need some details.Do you need to ring the phone (Land phone) after PIR detects a signal?
|
|
|
|
|
|
|
(permalink) |
|
Actually, I want a signal sent to my Cell phone. Just a simple text saying something like Intruder. I wasn't going to use a land line because I want to know if anybody goes into my room while im not home.
|
|
|
|
|
|
|
(permalink) |
|
How do you plan on connecting the Stamp to your cell phone?
|
|
|
|
|
|
|
(permalink) |
|
Well, I dont want to connect it to the cell phone. Rather, I want to send some kind of signal to the computer to send me a text to my phone. Yes, I know it's complicated, but I don't have the money to buy another cell phone. Anyways, yeah. I want a signal sent to my computer to get it to send me a text. Bottom line. I know Yahoo lets you send texts, but I don't know how I would go about it. Am I going to need a special program for it, or could I make something?
|
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Latest |
| The Oscilloscope | ElectroMaster | Electronic Theory | 12 | 3rd February 2008 01:45 PM |
| Using Oscilloscopes | mechie | Electronic Theory | 9 | 29th November 2007 09:48 PM |
| Enquiry For some signal questions | shermaine | Electronic Theory | 6 | 5th December 2006 06:02 AM |
| Anybody got information on line driving a c-sync signal? | FusionITR | General Electronics Chat | 8 | 15th April 2006 04:16 PM |
| Yet another LED taillight controller...... | NickK | Electronic Projects Design/Ideas/Reviews | 1 | 31st March 2003 05:37 PM |