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 CCS Technical Support

Search found 5 matches
CCS Forum Index
Author Message
  Topic: IR Tx/Rx problems.
DavdQrs

Replies: 11
Views: 10590

PostForum: General CCS C Discussion   Posted: Sat Apr 26, 2008 7:37 pm   Subject: IR Tx/Rx problems.
Thanks guys its working your right the adc=10 was suppose to adc=8 unless val is to be set as long int for adc=10.

Thanks again.
  Topic: IR Tx/Rx problems.
DavdQrs

Replies: 11
Views: 10590

PostForum: General CCS C Discussion   Posted: Sat Apr 26, 2008 8:37 am   Subject: IR Tx/Rx problems.
Ok, i tried:

setup_adc(ADC_CLOCK_DIV_16);

and various delays between cycles but still no luck.

Im using a PNA4602 ir reciever module from solarbotics.

I have tried tried quite a few variot ...
  Topic: IR Tx/Rx problems.
DavdQrs

Replies: 11
Views: 10590

PostForum: General CCS C Discussion   Posted: Sat Apr 26, 2008 6:46 am   Subject: IR Tx/Rx problems.
The variations of the sensor are from 0-5V and look fairly linear as an object gets closer, even with the flicker.

I had no problem with this on mikroc compiler.
  Topic: IR Tx/Rx problems.
DavdQrs

Replies: 11
Views: 10590

PostForum: General CCS C Discussion   Posted: Fri Apr 25, 2008 10:26 pm   Subject: IR Tx/Rx problems.
Sorry:

#include <12F683.h>
#device adc=10

#FUSES NOWDT //No Watch Dog Timer
#FUSES INTRC_IO //Internal RC Osc, no CLKOUT
#FUSES NOCPD ...
  Topic: IR Tx/Rx problems.
DavdQrs

Replies: 11
Views: 10590

PostForum: General CCS C Discussion   Posted: Fri Apr 25, 2008 10:17 pm   Subject: IR Tx/Rx problems.
Hello.

I have been trying to make a simple object detection circuit. As an object gets closer (within a predetermined distance) the LED turns on and when the object moves away the LED turns off. S ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group