Experiment 1:
Testing the MCP9700
Hardware Setup
We’ll be using a total of six
programs this month (three for the
PICAXE and three for the Pi).
Before reading any further, you
may want to download the zipped
file at the article link that contains
the six programs.
For our first experiment, we
only need a PICAXE program
( temp9700test.bas). When you have
unzipped this month’s program files,
open temp9700test.bas in the
PICAXE Editor and read through it. If
it looks familiar, that’s because it’s
essentially the same as the
Temp9700A.bas program that we
used in the December 2012 Primer.
The main difference is that, this
time, we’re displaying all three
results (ADCval, tempC, and tempF)
in the terminal window, rather than
just the Fahrenheit temperature
reading. (Also, we’re not powering
the 9700A from a PICAXE output
pin this time, but you could do that
if you prefer.)
April 2014 9
SHARPENING YOUR TOOLS OF CREATIVITY
; FIGURE 1. Schematic diagram for all experiments.
; FIGURE 2. Breadboard setup for all experiments.