
A MORE COMPLEX NETWORK 97
to upload to. For example, if your directory is at the root
of your website, then the image would be found at www.
example.com/catcam/image.jpg.
Once you know the image is there and visible, frame it with
a web page in the same directory, called index.html. Below
is a bare-bones page that will automatically refresh itself
in the user’s browser every ten seconds. The meta tag in
the head of the document causes the browser to refresh
the page every ten seconds. Feel free to make the page as
detailed as you want, but keep the meta tag in place.
<html>
<head>
<title>noodles</title>
<meta http-equiv="refresh" content="10">
</head>
<body>
<center>
<h2>Cat Cam</h2>
<img src="http://www.example.com/catcam/image.jpg">
</center>
</body>
</html>
Putting Sensors
in the Cat Mat
Now that the catcam is running, it’s time to make the
system that notifies you when the cat is there to be
viewed. How you do this depends on what kinds of force-
sensing resistors you use. Interlink’s 400 series FSRs
include a long, thin model with adhesive backing that
mounts nicely on any firm surface. Because this sensor
is very flat and has a relatively large surface area, it gives
good readings for this project. Mount the FSRs on strips of
firm yet flexible wood or cardboard (Masonite works well),
and you’ve got a great sensor.
If you’re using smaller FSRs from another ...