/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/fan-test.ino

  • Committer: Tim Marston
  • Date: 2012-03-12 21:11:20 UTC
  • Revision ID: tim@ed.am-20120312211120-r86cs574yxztgqij
added time set mode, made text renderer's buffer auto reset/output

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