hyng WROTE:Please try to detach 660 ohm from your circuit, connect 12V source directly to the sensor. Hope this will help.
robosang WROTE:Woh.... capacitive sensor? Great, what is the application?
ober WROTE:Good to see you know how to modify the sample circuit from rotary encoder, at least it is useful.
The code seem to be correct. Maybe the resistor highlighted by hyng should help.
sich WROTE:Hi, have you tried to test the black wire output manually using multimeter? Also no signal change (HIGH <-> LOW)?
kenshih WROTE:the reason why i add the 660 ohm resistor is because the datasheet for the capacitive sensor state that the operating voltage is 12~24V and the current consumption is less than 22mA. if i connect 12V from the power supply directly to the sensor, wouldn't it produce infinite current and fry the sensor? <= learned the lesson after frying a LED...
by connecting it with the 660 ohm, it will only sends in around 19mA of current which is within the accepted range of the capacitor...
Users browsing this forum: No registered users and 2 guests