Hi all. I am doing mini project. My aim is to receive a message after a human is detected in particular area. I am using IR proximity of PSoC and GSM. Please send me code and required connections. I tried it but not succeeded. Please help me. Thanks. Send me the documents at "vaijanath.kop@gmail.com" .
Consider posting your project archive for forum to look at -
“File” Creator
“Create Workspace Bundle”
If you are looking for professional project development CyPros would
be one resource -
http://www.cypress.com/?id=1088
Regards, Dana.
There are a lot of examples in this community and also in Psco creator under sample projects. You should be able to take those code examples and make your program work. But doing a PSOC project is not as easy as it looks and takes a lot of study and trial by error to get the project working. Good Luck!!!
The HC-SR501 is all over ebay, ~ $ 1.
There are projects over here that may be of help -
PSOC 4 element14.com
|
|
Thank you all. I have the sample code from PSoC Creator and Cypress website. But I am not able to configure proximity sensor and GSM module in single code. I need to send message if human detected in proximity area else don't send message. Still I am not getting output.
Welcome in the forum, Vaijanath
To help you as good as we can:
Tell us which PSoC4 development kit you have got (Prototype board, Pioneer Kit, BLE or self-made PCB)
Show us what you have done so far and post your complete project here. Use Creator->File->Create Workspace Bundle (minimal) and attach the resulting file here. So we can see where you got stuck and help you.
Bob
Did you get the proximity sensor running? You can just light up a LED when a person is detected.
Did you get the GSM to send a short message?
Its best when you come up with concrete problems and questions. The volunteers in this forum here have all a day job, and won't have the time to solve complete projects. So split up your problems into multiple and simpler steps, and try to solve them.
Thanks all. Actually I have codes for proximity and GSM interface with PSoC 4 Pioneer kit. But I am not getting how to configure this two in single code. My requirement is "If human is detected then send message", but I am confused for code.
So if you have these two implemented, it shoud be easy. Lets say you have a function 'sendAlertMessage()' for sending the alter, and a function 'isHumanDetected()' that return 0 if no human is there and 1 if one is there, then its like
// replace by actual config code initGSM(); initProximity(); for (;;) { if (isHumaDetected()==1) { sendAlertMessage(); } }
done.
Just do not forget about waiting a few minutes, or splurge on SMS )))))
Maybe better through the Internet?
Taking hli's description literally "function 'isHumanDetected()' that return 0 if no human is there" the code should better read
if (isHumaDetected()!= 0) { sendAlertMessage(); }
or, since we are here in C.language
if (isHumaDetected()) { sendAlertMessage(); }
nit-picker Bob
Since I defined the isHumandDetected() function as returning just 0 and 1, all these versions are functionally identical 🙂
I just did not want to introduce the "bool" type at this point...
@pavloven: you are right, a delay after a notification is in order. But right now vaiju just needs to get it working at all.
Thank you all. I will try out this. If any problem occurs I will text you. Thanks a lot.
Hi There,
Were you able to make PIR sensor work?
If so, could you please share schematic?
Thanks in advance
Regards
AR