T
Tim
Guest
Hello.
I want to be able to detect when my door opens, (on my computer), so I
can do various fun things (switch workspaces![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
I've got a strong flat magnet, so I stuck (well, will stick) it to the
bottom of my door, and then I got some thin wire from a motor, and made a
small sensing coil, so that when to door opens, the magnet goes over the
coil, and induces a small current. And then somehow I get this to my
computer.
But how? I'm new to electronics... well, I know lots of physical law type
things (v=ir, etc), but not how to apply them to make actual complicated
ciruits. I'm guessing I use transistors or something, to amplify the
signal, and then convert it to a digital signal (how?)...
The current/voltage from the coil is very small...
+5V O--------,
|
__________|/ <--- transistor.
C 8 |\
O 8 |__________ COM data pin
I 8
L 8_______________________
|
0V O--------`
That's what my inexperienced brain is thinking.
I'm guessing it wouldn't work though... Any ideas?
I want to be able to detect when my door opens, (on my computer), so I
can do various fun things (switch workspaces
I've got a strong flat magnet, so I stuck (well, will stick) it to the
bottom of my door, and then I got some thin wire from a motor, and made a
small sensing coil, so that when to door opens, the magnet goes over the
coil, and induces a small current. And then somehow I get this to my
computer.
But how? I'm new to electronics... well, I know lots of physical law type
things (v=ir, etc), but not how to apply them to make actual complicated
ciruits. I'm guessing I use transistors or something, to amplify the
signal, and then convert it to a digital signal (how?)...
The current/voltage from the coil is very small...
+5V O--------,
|
__________|/ <--- transistor.
C 8 |\
O 8 |__________ COM data pin
I 8
L 8_______________________
|
0V O--------`
That's what my inexperienced brain is thinking.
I'm guessing it wouldn't work though... Any ideas?