CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

interfacing PIR sensor directly with PIC

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
tesla80



Joined: 23 May 2007
Posts: 81

View user's profile Send private message

interfacing PIR sensor directly with PIC
PostPosted: Tue Jan 12, 2010 7:42 pm     Reply with quote

Hi All,





How does it works?

Some people use big schemes with opamps to detect movement with PIR sensors, but here there is no any opamp..

Can we do this with PIC?
mcdnkfc



Joined: 08 Sep 2009
Posts: 4

View user's profile Send private message

PostPosted: Tue Jan 12, 2010 10:45 pm     Reply with quote

I never use PIR sensor before.
But from the schematic, the C4 (1UF) can be use to block dc voltage, and the pin P07 of CY8C27 is an analog pin.
So, I guess this PIR sensor is giving you the analog signal depends on the movement it senses.
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Wed Jan 13, 2010 1:00 am     Reply with quote

Quote:
Some people use big schemes with opamps to detect movement with PIR sensors, but here there is no any opamp..

Apparently you're not motivated to check the features of the involved PSoC respectively processor chips
yourself? It's always instructive, I think. Actually both have considerable internal signal gain. When your PIC
doesn't provide it, you better use external amplifiers.
tesla80



Joined: 23 May 2007
Posts: 81

View user's profile Send private message

PostPosted: Wed Jan 13, 2010 5:50 am     Reply with quote

FvM wrote:
Apparently you're not motivated to check the features of the involved PSoC respectively processor chips
yourself? It's always instructive, I think. Actually both have considerable internal signal gain. When your PIC
doesn't provide it, you better use external amplifiers.

Yes you are right. MSP430 uses 4x internal gain.

But the opamp circuits for PIR don't contain only amplifier... Differentiator->amplifier->window comparator...

There is no PIC with internal gain, right?
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Wed Jan 13, 2010 6:56 am     Reply with quote

The said MSP has a differential 32 mV full range 16-bit ADC, if I understand right. That means, the
detection sensitivity can be up to several 1000 times higher than with a PIC and 10 bit ADC. The circuit
is also involving a highpass, more processing can be done by software.

I think, there's no PIC with internal gain. General, you have to determine the required analog resolution for
your application. I've used PIR sensors for measurement applications, but not designed motion detectors,
so I can't suggest a value, but I assume sub mV. Thus an amplifier would be needed.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group