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

Laser level receiver project?
Goto page Previous  1, 2, 3, 4
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Sam_40



Joined: 07 Jan 2015
Posts: 127

View user's profile Send private message

PostPosted: Fri Jan 06, 2023 12:28 pm     Reply with quote

Ok, I do see the laser beam with the processor through the inputs. I just need to figure out how to only give valid outputs when it sees the pulses at one per 100mS or 10 per second (10Hz). I will try to get the code right.
Thank you
temtronic



Joined: 01 Jul 2010
Posts: 9243
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Sat Jan 07, 2023 7:42 am     Reply with quote

since the 'rotational speed' of the laser is slow..
maybe this post...
https://www.ccsinfo.com/forum/viewtopic.php?t=54909
could be useful ?

You know the 'high' is about 280us, 'low' is 100ms-280us.
You'll have to figure out the 'math' ,based on PIC clock speed, which CCP used, etc.

The 'pulse is 'high' variable' should be within a few counts and represent 280us.
it will vary of course, unlikely the LASER has feedback to maintain a constant speed of say 10.423 RPM.
If it goes to zero then you've lost the beam.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2, 3, 4
Page 4 of 4

 
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