/elec/propeller-clock

To get this branch, use:
bzr branch http://bzr.ed.am/elec/propeller-clock

« back to all changes in this revision

Viewing changes to test/fan-test.pde

  • Committer: edam
  • Date: 2011-12-02 19:57:43 UTC
  • Revision ID: edam@waxworlds.org-20111202195743-x73t8g3sn3w507ya
completed the scematic

Show diffs side-by-side

added added

removed removed

 
1
// fan_test.pde
 
2
//
 
3
// This is a test program to see if we can read the RPM speed of a PC fan.
 
4
// To set up, the fan should have an independent 12V poer supply, and the
 
5
// fan's SENSE techiometer pin should be connnected to the Arduino's pin 2.
 
6
// The RPM is sent back via serial (over USB).
 
7
 
1
8
void setup()
2
9
{
3
10
  // set up interupt 0 (which is pin 2) and turn on the pull-up resistor as we