Connect:
PWM for heater output to SSR (done)
MAX6675 to read thermocouple
I2C to LCD (done)
Pot to analog input (done)
Push buttons to interruptible pins
PWM16 libarary
Hardcoded on PWM16, pwm output pins and D3 for clock function
#define pwmOutA 9 // pin 9
#define pwmOutB 10 // pin 10
// definitions for PWM frequency selection on IO3
#define IO3_PIN 3 // pin DIO3 for IO3
Pins
D2 = But 0
D3 = Do not use, for PWM clock
D4 = S0 (MAX6675)
D5 = CS (MAX6675)
D6 = SCLK (MAX6675)
D9 = Heater Output (PWM)
D10 = Fan Output (not used)
D16 = TX2 For Bluetooth HC-05 TX pin to voltage divider to HC-05 RX
D17 = RX2 Serial2 on pins 17 (RX) and 16 (TX)
D18 = But 1
D19 = But 2
D20 = SDA
D21 = SCL
A0 = Pot
Mega, Mega2560. Digital iins can be used for interrupts
2 , 3, 18, 19, 20, 21
Bluetooth
https://www.martyncurrey.com/using-an-arduino-mega-with-a-hc-05-zs-040-at-mode/
The Arduino Mega has three additional serial ports: Serial1 on pins 19 (RX) and 18 (TX), Serial2 on pins 17 (RX) and 16 (TX), Serial3 on pins 15 (RX) and 14 (TX)
Serial2.begin(9600); //for bluetooth
Setup info
https://www.martyncurrey.com/hc-06-hc01-comv2-0/
https://www.martyncurrey.com/arduino-and-hc-06-zs-040/