Chapter 7: Microcontroller Interrupts and Timers
- 200 Ohm resistor to Butterfly GND
- Optoisolator pin 3 to PORTB pin 4 (remember counting starts at 0)
- Optoisolator pin 4 to Butterfly GND
You will notice that you learned the mechanical engineering skills needed for this
project in kindergarten. Though most kindergarteners could probably do a more
attractive job than I did, it works.
Figure 25: Speedometer
Create a Speedometer directory and copy the motor control software to it. Make
the following changes in Demonstrator.c:
// Demonstrator.c Speedometer version
#include "PC_Comm.h"
#include "Demonstrator.h"