Tools and Shema
Programmer: USBASP or AVRISP
Toolchain: WinAVR-20100110
Compiler: AVR-GCC
Download: AVRDuDe 7.0
Control: Key (PB0)
TIARC: MOC3021 -> BCA16-600 (OC1A: PB1)
Sensor: max6675 (MOSI: PB3, MISO: PB4, SCK: PB5, SS: PB2)
UART: not use (Rx: PD0, Tx: PD1)
Zero crossing: PC814 <- 2W10 (INT0: PD2)
Control: Encoder (DW: PD3, CLK: PD4)
Display: 7H x3 BC12-GWA (Katode(GND): PD5-PD7, Anode(VCC): 74H595N Q0-Q7)
Register: 74H595N (Q0-Q7: Anode Display, SH_CP/CLK: PC3, ST_CP/SET: PC2, DS/DATA: PC1)
Settings in main.h
//PID settings
Kp 5
USER_PID_PERIOD 1000 ms
MAX_OUTPUT_PID 535 - system parameter
MAX_TIM1 545 - system parameter
Display settings
USER_DISPLAY_FREQUENCY 300 max 300HZ
USER_DELAY_AUTOOUT 3000 ms
Encoder settings
USER_ENCODER_PERIOD 100 ms
Measurement settings
START_TEMP 250
MAX_TEMP 400
Building: Makefile is used for compilation and firmware (for help enter: >>make help). Assemble the project using the "make" instructions.
Download: Disconnect the MAX6675 from the SPI (open jumper). Connect the "USB ASP" programmer to the ISP connector on the controller board and to a free USB port on the computer. Use the "make flash" instruction to load the software into the controller's memory. Return the jumpers to their place.