


| Port | Function |
| PORTA0 | Thermistor voltage |
| Port | Function |
| PORTB0 | DB0 (LCD) |
| PORTB1 | DB1 (LCD) |
| PORTB2 | DB2 (LCD) |
| PORTB3 | DB3 (LCD) |
| PORTB4 | DB4 (LCD) |
| PORTB5 | DB5 (LCD) |
| PORTB6 | DB6 (LCD) |
| PORTB7 | DB7 (LCD) |
| Port | Function |
| PORTC0 | Pin 1 (Keypad) |
| PORTC1 | Pin 2 (Keypad) |
| PORTC2 | Pin 3 (Keypad) |
| PORTC3 | Pin 4 (Keypad) |
| PORTC4 | Pin 5 (Keypad) |
| PORTC5 | Pin 6 (Keypad) |
| PORTC6 | Pin 7 (Keypad) |
| PORTC7 | Pin 8 (Keypad) |
| Port | Function |
| PORTD0 | CS1 (LCD) |
| PORTD1 | CS2 (LCD) |
| PORTD2 | Reset (LCD) |
| PORTD3 | R/~W (LCD) |
| PORTD4 | D/~I (LCD) |
| PORTD5 | Relay signal |
| PORTD7 | Enable (LCD) |





D+F" algorithm. Because the time-based temperature target and the most recentd(temp)/d(time) slope is known, we can estimate the future errors by extrapolating two most recently measuredtemperatures. Our PWM signal was configured to have a constant period of 1 second, with a variable duty cyclecalculated form our PD+F algorithm, shown below:
ROGRAM");
ROGRAMMED CURVE
REHEATING...%dC",temp);
REHEATING...%dC",temp);
REHEATING...WAIT:%d C",temp);
B0 "0/0/11AAAAAA"



| Item | Cost |
| Omron solid state relay | Free sample |
| Maxim ICL7660CPA | Free sample |
| Used toaster oven | Free |
| LM7111 op-amp | In lab |
| Potentiometer | In lab |
| Crystal oscillators | In lab |
| Resistors and capacitors | In lab |
| Solder board | $2.50 |
| Power supply | $5.00 |
| Custom PC board | $5.00 |
| Keypad | $6.00 |
| Atmel Mega32 | $8.00 |
| Crystalfontz CFAG12864-WGH-N | $18.09 |
| AC receptacle connector | $0.64 |
| 3AG fuse holder | $0.75 |
| NTC thermistor x2 | $0.98 |
| Relay box hardware | $5.82 |
| TOTAL | $52.78 |






| 欢迎光临 DIY编程器网 (http://diybcq.com/) | Powered by Discuz! X3.2 |