I am making a sort of object ID system. I have tiles that have a little circuit in them,its placed on a base station. push the button on the tile and the base station read the ID of the tile using the voltage divider rule (each tile has a unique resistance).
What I need in my circuit is this:
This sections is removable base station
| | | |
5v------Resistor--------Switch------10k------GND
|
Analog Read
How should i modify the code from the above forum post to suit my needs?
then u can just use analogRead()..
when it reads 0 no removable station is connected...
when it reads x (x>0) then a removable station with resistance Rremo=(Vref-Vsen)/Isen (where Vsen=(x*Vref)/1024 and Isen=Vsen/(10kR))...
RIDDICK:
then u can just use analogRead()..
when it reads 0 no removable station is connected...
when it reads x (x>0) then a removable station with resistance Rremo=(Vref-Vsen)/Isen (where Vsen=(x*Vref)/1024 and Isen=Vsen/(10kR))...