/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 21:20:30 UTC
  • Revision ID: dan@waxworlds.org-20111116212030-swejnzrushekucax
updated fan_test

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