Arduino Forum

Using Arduino => Sensors => Topic started by: maxmax39 on May 04, 2013, 05:46 pm

Title: help with 4n27 and sick wl160-f440
Post by: maxmax39 on May 04, 2013, 05:46 pm
Hello,
I tried to connect wl160 with arduino.  Wl160 out is 0 or 15v (depending state).  So I use a 4n27 to connect on arduino mini pro.

For this moment I connect pin 1 (4n27) to output signal of WL160 pin 2 on gnd.  And 5 to arduino input (n°2) and to a 10k that connected to Vcc (arduino)

I use the button example.  But nothing work.

Any idea or draw?

Thanks a lot
Title: Re: help with 4n27 and sick wl160-f440
Post by: robtillaart on May 04, 2013, 07:26 pm
As I don't know the WL160, can you post a link to its datasheet?
Can you post also the a schema?
And the code you are using as I have seen dozens of different buttons examples ....

in short , I need more info ;)
Title: Re: help with 4n27 and sick wl160-f440
Post by: maxmax39 on May 06, 2013, 12:46 pm
I found the solution

The problem was that I forget resistor between pin 1 and wl160 output.

I take 4n27 on another PCB where these resistors are not present.  So maybe it s chance that this other PCB works ;-)

Max