Hello. I have a question.
I am working on a LED lamp; when you touch it the light turns on, when you touch again the light turns off.
I was looking for the code and how to build the circuit, but It has been not working.
I have a forcing-sensor and Arduino UNO.
I would be happy if someone can give me advise.
Thank you!!
What is a forcing sensor?
Weedpharma
Thank you for comment.
I have this.
Force-Sensing Resistor
This is simply a variable resistor.
Put it in a voltage divider on an analogue input. It is not a precision sensor so look for an analogue value that suits the pressure you want.
A 100k R from 5v to analogue pin and sensor to gnd.
Without any pressure, the analogue will be high. When pressed, the value will be much lower. Look for an analogue value less than say 500. Then out put to turn on your lamp.
Weedpharma