/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 fan_test/fan_test.pde

  • Committer: Dan
  • Date: 2011-11-16 19:12:01 UTC
  • Revision ID: dan@waxworlds.org-20111116191201-g6llzg503hmi35uu
Added fantest project

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
 
 
8
1
void setup()
9
2
{
10
3
  // set up interupt 0 (which is pin 2) and turn on the pull-up resistor as we