Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

I need help with a Signal Sending Circut

Status
Not open for further replies.

ghost309

New Member
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!
 
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.
 
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?
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top