by i-Bot » Wed Dec 21, 2011 12:05 pm
by i-Bot
Wed Dec 21, 2011 12:05 pm
Do you already have the Keyence sensor(s) ?
The first challenge with these industrial sensors is they use a 12V supply, so you need to boost the battery voltage from the RBC controller. You can build a boost regulator circuit to do this or use something like this:
http://www.ebay.co.uk/itm/3-5-28V-1-25-26V-DC-DC-Converter-Boost-Buck-Step-Up-Step-Down-Voltage-Module-/290638795392?pt=UK_BOI_Electrical_Test_Measurement_Equipment_ET&hash=item43ab6c1280
If you are line tracking, are you using two sensors to detect the line on both sides ? If so you need two inputs.
You have also chosen the PNP output version which pulls the output up to 12 V. The RBC and wCK only accepts voltages up to 5V, so a voltage divider is required.
Power the PZ2-42P from the boost converter, connecting the ground(blue), also to the RBC ground.
Black output of PZ2 -> 10K resistor -> RCB input -> 4K7 resistor -> ground. RCB can be the distance sensor input, or the analog input on a WCK. Two sensors can be configured with different resistors to give different voltage levels when each or both sensors are activated. Measure the voltage(distance) to determine if sensor is triggered.
By using the standard inputs this can be checked out before you embark on any AtMega programming.
Do you already have the Keyence sensor(s) ?
The first challenge with these industrial sensors is they use a 12V supply, so you need to boost the battery voltage from the RBC controller. You can build a boost regulator circuit to do this or use something like this:
http://www.ebay.co.uk/itm/3-5-28V-1-25-26V-DC-DC-Converter-Boost-Buck-Step-Up-Step-Down-Voltage-Module-/290638795392?pt=UK_BOI_Electrical_Test_Measurement_Equipment_ET&hash=item43ab6c1280
If you are line tracking, are you using two sensors to detect the line on both sides ? If so you need two inputs.
You have also chosen the PNP output version which pulls the output up to 12 V. The RBC and wCK only accepts voltages up to 5V, so a voltage divider is required.
Power the PZ2-42P from the boost converter, connecting the ground(blue), also to the RBC ground.
Black output of PZ2 -> 10K resistor -> RCB input -> 4K7 resistor -> ground. RCB can be the distance sensor input, or the analog input on a WCK. Two sensors can be configured with different resistors to give different voltage levels when each or both sensors are activated. Measure the voltage(distance) to determine if sensor is triggered.
By using the standard inputs this can be checked out before you embark on any AtMega programming.