[PIC] Proximity sensor interfacing PIC18F4550

Status
Not open for further replies.

rahulsiva

Member level 1
Joined
Jan 23, 2015
Messages
34
Helped
1
Reputation
2
Reaction score
1
Trophy points
8
Location
coimbatore
Visit site
Activity points
208
HI..
i using picf184550 ic...interface using proimity sensor ...pls guide how to work or program me to do...do it..i need output in form of RPM
 

hello,

give us the reference of your sensor.
Industrial proximity sensor works at 24V DC nominal value...
but somes of them can be used at 12or 9V.
if sensor supply is taken before 5V regulator..


you have a chance to use it with MCU input.
i allready did it successfully , to count rotation tours of a home trainer bicycle.

or you can use a hall effect sensor + magnet..
with 5V power supply.
 

i have select Hall-Effect Sensor(magnet) of work @ 5-12 VDC..using in motor shaft non-contact sensor.OUTPUT of +5v-0v.(in form of square waveform).I need input signal to PIC18F4550 & calculate time for each one pulse and how many rotation for 1 min & stop time also to be measure...
 

so, you can use RA4 input as entry for counter TMR0...
arme another timer ex: Timer1 16bits to do the 1minute window time...
lets the Timer0 count the pulses .. don't forget to check if timer0 overflow
and end of timer1 (One minute) stop timer0 counter
get the result
and display it.. (on LCD, RS232 terminal ,or via USB)

FOSC of PIC ? quartz ? PLL used ?
what is the maximum RPM/mn ?
do you have one pulse per tour ?
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…