├── Bill of Materials ├── Reflowduino Hackaday BOM v3.xlsx ├── Reflowduino32 Hackaday BOM v1.xlsx └── Solid-State Sidekick Hackaday BOM v2.xlsx ├── Example Code ├── Bluetooth_PC_Control │ └── Bluetooth_PC_Control.ino ├── Bluetooth_Test │ └── Bluetooth_Test.ino ├── Buzzer_Test │ ├── Buzzer_Test.ino │ └── pitches.h ├── Excel Graph Demo.xlsx ├── HM11_Setup │ └── HM11_Setup.ino ├── PID_Test │ └── PID_Test.ino ├── Reflowduino_Demo │ ├── Reflowduino_Demo.ino │ └── pitches.h ├── Reflowduino_ESP32_Demo │ └── Reflowduino_ESP32_Demo.ino ├── Relay_Test │ └── Relay_Test.ino └── Thermocouple_Test │ └── Thermocouple_Test.ino ├── LICENSE ├── Media ├── 3V3 Jumper Closeup.jpg ├── App Screenshot 1.png ├── App Screenshot 2.png ├── App Screenshot 3.png ├── App Screenshot 4.png ├── Arduino IDE ESP32 BLE Examples.png ├── Arduino IDE ESP32 Board.png ├── Arduino IDE Screenshot 1.png ├── BLE Communication Success.png ├── BLE Lab 1.png ├── BLE Lab 2.png ├── BLE Lab 3.png ├── BT Add Device 1.png ├── BT Add Device 2.png ├── Basic + Sidekick Wiring.jpg ├── Basic Ortho View.jpg ├── Battery Connector Closeup.jpg ├── Blueooth Start Menu.png ├── Bluetooth Settings.png ├── Bluetooth Successful Pairing.png ├── Bluetooth Task Bar.png ├── Buzzer Jumper Closeup.jpg ├── Cooking Tray.jpg ├── Current Setter Closeup.jpg ├── DONE BT LEDs.jpg ├── DONE LED.jpg ├── Drip Tray.jpg ├── Excel Screenshot 1.png ├── Excel Screenshot 2.png ├── Excel Screenshot 3.png ├── Excel Screenshot 4.png ├── Excel Screenshot 5.png ├── Female Header.jpg ├── Front View 1.jpg ├── General Wiring Diagram.jpg ├── Git GUI Windows 10.png ├── Github Screenshot 1.png ├── Header Instructions 1.jpg ├── Hot Plate Data - No Control.JPG ├── Hot Plate Demo Setup Closeup.jpg ├── Hot Plate Demo Setup.jpg ├── Hot Plate Picture.JPG ├── Hot Plate Reflow Data 1.JPG ├── Hot Plate Thermocouple Setup.jpg ├── Lead Free Low Temp No Clean Reflow Curve.JPG ├── Lead Free No Clean Reflow Curve.JPG ├── Left Ortho View 1.jpg ├── Male Header.jpg ├── Metal Grill.jpg ├── PID Test 1.JPG ├── PID Test 2.JPG ├── PID Test 3.JPG ├── PWR BT LED Batt.jpg ├── PWR BT LEDs No Batt.jpg ├── PWR IO BT LEDs No Batt.jpg ├── PWR IO LEDs No Batt.jpg ├── PWR LED Batt.jpg ├── PWR LED No Batt.jpg ├── Rear View 1.jpg ├── Reflow Results 1.jpg ├── Reflow Results 2.jpg ├── Reflowduino Annotated Diagram.png ├── Reflowduino Basic Wiring.JPG ├── Reflowduino Pro Wiring.JPG ├── Reflowduino32 + Sidekick Wiring.jpg ├── Reflowduino32 Board on DOIT ESP32.jpg ├── Reflowduino32 Bottom View 1.jpg ├── Relay Closeup.jpg ├── Relay Pads Closeup.jpg ├── Right Ortho View.jpg ├── Right Side View 1.jpg ├── SchematicPinout.JPG ├── Screw Terminal Closeup.jpg ├── Sidekick 1.jpg ├── Sidekick 2.jpg ├── Sidekick Annotated Picture.JPG ├── Sidekick Module Ortho View.jpg ├── Sidekick Relay Closeup.jpg ├── Stacking Female Header.jpg ├── Thermocouple Picture.jpg ├── Thermocouple Scrap PCB.jpg ├── Thunkable Screenshot 2.png ├── Thunkable Screenshot 3.png ├── Toaster Bottom Knob.jpg ├── Toaster Middle Knob.jpg ├── Toaster Oven Annotated Wiring.jpg ├── Toaster Oven Bottom Ortho View.jpg ├── Toaster Oven Bottom View.jpg ├── Toaster Oven Box Back.jpg ├── Toaster Oven Box Front.jpg ├── Toaster Oven Crimp Connectors.jpg ├── Toaster Oven Diode.jpg ├── Toaster Oven Door Open.jpg ├── Toaster Oven Drip Tray Only.jpg ├── Toaster Oven Drip Tray Out with PCB.jpg ├── Toaster Oven Filament Return Wire.jpg ├── Toaster Oven Finished Wiring.jpg ├── Toaster Oven Original Wiring.jpg ├── Toaster Oven Test Data 1.JPG ├── Toaster Oven Test Setup 1.jpg ├── Toaster Oven with Drip Tray.jpg ├── Toaster Oven with PCB.jpg ├── Toaster Top Knob.jpg └── Voltage Selector Jumper Closeup.jpg ├── Mobile App └── Android │ ├── Reflowduino32_App.aia │ ├── Reflowduino32_App.apk │ ├── Reflowduino_App.aia │ └── Reflowduino_App.apk ├── PCB Files ├── ESP32 Reflow Backpack │ ├── Reflowduino32 v1.brd │ └── Reflowduino32 v1.sch ├── Reflowduino Basic │ ├── Reflowduino Basic v2.brd │ ├── Reflowduino Basic v2.sch │ ├── Reflowduino Basic v3.brd │ └── Reflowduino Basic v3.sch ├── Reflowduino Pro │ ├── Reflowduino Pro v3.brd │ └── Reflowduino Pro v3.sch └── Solid-State Sidekick │ ├── Solid-State Sidekick v2.brd │ └── Solid-State Sidekick v2.sch ├── README.md └── Schematics ├── Basic + Sidekick Wiring.jpg ├── General Wiring Diagram.jpg ├── Reflowduino Basic Wiring.JPG ├── Reflowduino Pro Wiring.JPG ├── Reflowduino Schematic v2.png ├── Reflowduino Schematic v3.png ├── Reflowduino32 Backpack Schematic v1.png └── Solid-State Sidekick Schematic v1.png /Bill of Materials/Reflowduino Hackaday BOM v3.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Bill of Materials/Reflowduino Hackaday BOM v3.xlsx -------------------------------------------------------------------------------- /Bill of Materials/Reflowduino32 Hackaday BOM v1.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Bill of Materials/Reflowduino32 Hackaday BOM v1.xlsx -------------------------------------------------------------------------------- /Bill of Materials/Solid-State Sidekick Hackaday BOM v2.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Bill of Materials/Solid-State Sidekick Hackaday BOM v2.xlsx -------------------------------------------------------------------------------- /Example Code/Bluetooth_PC_Control/Bluetooth_PC_Control.ino: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | SoftwareSerial BT(10, 9); // Arduino RX, TX 4 | 5 | const int LED = 13; 6 | 7 | void setup() { 8 | pinMode(LED, OUTPUT); 9 | Serial.begin(115200); 10 | BT.begin(57600); 11 | } 12 | 13 | void loop() { 14 | if (BT.available() < 1) return; 15 | 16 | char request = BT.read(); // Read request 17 | Serial.print("REQUEST: "); Serial.println(request); // DEBUG 18 | 19 | if (request == 'H') { 20 | Serial.println("HIGH"); 21 | digitalWrite(LED, HIGH); 22 | } 23 | else if (request == 'L') { 24 | Serial.println("LOW"); 25 | digitalWrite(LED, LOW); 26 | } 27 | else { 28 | Serial.print("REQUEST: "); Serial.println(request); // DEBUG 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Example Code/Bluetooth_Test/Bluetooth_Test.ino: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: Reflowduino Bluetooth Demo 3 | * Author: Timothy Woo 4 | * Website: www.botletics.com 5 | * Last modified: 11/16/2017 6 | * 7 | * ----------------------------------------------------------------------------------------------- 8 | * This is an example sketch to test the Reflowduino Bluetooth functionality. Simply upload this 9 | * sketch to the Reflowduino, open up the Reflowduino app on your Android device, connect to the 10 | * Reflowduino via Bluetooth, and you should see the arbitrary values appear on your screen! 11 | * To test sending data to the Reflowduino from the app, press the "START" and "STOP" buttons 12 | * and in the serial monitor you should see the commands being received. Note that the command 13 | * is only sent once when you press "START" and once when you press "STOP". 14 | * 15 | * Order a Reflowduino at https://www.botletics.com/products/reflowduino 16 | * Full documentation and design resources at https://github.com/botletics/Reflowduino 17 | * 18 | * ----------------------------------------------------------------------------------------------- 19 | * License: This code is released under the GNU General Public License v3.0 20 | * https://choosealicense.com/licenses/gpl-3.0/ and appropriate attribution must be 21 | * included in all redistributions of this code. 22 | */ 23 | 24 | #include // Library needed for Bluetooth communication 25 | 26 | // Define pins 27 | #define BT_RX 9 28 | #define BT_TX 10 29 | #define LED 13 30 | 31 | // Initialize Bluetooth software serial 32 | SoftwareSerial BT = SoftwareSerial(BT_TX,BT_RX); // Reflowduino (RX, TX), Bluetooth (TX, RX) 33 | 34 | // Bluetooth app settings. Define which characters belong to which functions 35 | #define dataChar '*' // App is receiving data from Reflowduino 36 | #define stopChar '!' // App is receiving command to stop reflow process (process finished!) 37 | #define startReflow 'A' // Command from app to "activate" reflow process 38 | #define stopReflow 'S' // Command from app to "stop" reflow process at any time 39 | 40 | double temperature; 41 | unsigned long previousMillis = 0; 42 | unsigned long sendRate = 2000; // Send data to app every 2s 43 | 44 | void setup() { 45 | Serial.begin(9600); // This should be different from the Bluetooth baud rate 46 | BT.begin(57600); 47 | 48 | pinMode(LED, OUTPUT); 49 | digitalWrite(LED, LOW); 50 | 51 | // while (!Serial) delay(1); // OPTIONAL: Wait for serial to connect 52 | Serial.println("*****Reflowduino Bluetooth Demo*****"); 53 | } 54 | 55 | void loop() { 56 | BT.flush(); 57 | char request = ' '; 58 | 59 | // Send data to the app periodically 60 | if (millis() - previousMillis > sendRate) { 61 | previousMillis = millis(); 62 | temperature = analogRead(A0) / 5.67; // Read arbitrary values 63 | Serial.print("--> Temperature: "); // The right arrow means it's sending data out 64 | Serial.print(temperature); 65 | Serial.println(" *C"); 66 | if (!isnan(temperature)) { // Only send the temperature values if they're legit 67 | BT.print(dataChar); // This tells the app that it's data 68 | BT.print(String(temperature)); // Need to cast to String for the app to receive it properly 69 | } 70 | } 71 | 72 | // Check for an incoming command. If nothing was sent, return to loop() 73 | if (BT.available() < 1) return; 74 | 75 | request = BT.read(); // Read request 76 | Serial.print("REQUEST: "); Serial.println(request); // DEBUG 77 | 78 | if (request == startReflow) { // Command from app to start reflow process 79 | Serial.println("<-- ***Starting reflow process!"); // Left arrow means it received a command 80 | digitalWrite(LED, HIGH); // Turn on the red LED! 81 | // Do other stuff here 82 | } 83 | else if (request == stopReflow) { // Command to stop reflow process 84 | Serial.println("<-- ***Reflow process aborted!"); 85 | digitalWrite(LED, LOW); 86 | // Do other stuff here 87 | } 88 | // Add you own functions here and have fun with it! 89 | } 90 | -------------------------------------------------------------------------------- /Example Code/Buzzer_Test/Buzzer_Test.ino: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: Buzzer Test 3 | * Author: Tom Igoe 4 | * Modified: 10/21/2017 by Timothy Woo 5 | * Last modified: 10/21/2017 6 | * 7 | * This example code is in the public domain. 8 | * http://www.arduino.cc/en/Tutorial/Tone 9 | * 10 | * ----------------------------------------------------------------------------------------------- 11 | * This code tests the piezo buzzer on the Reflowduino by playing a simple melody. 12 | */ 13 | 14 | #include "pitches.h" 15 | 16 | #define buzzer 5 17 | 18 | // Notes in the melody: 19 | int melody[] = { 20 | NOTE_C4, NOTE_G3, NOTE_G3, NOTE_A3, NOTE_G3, 0, NOTE_B3, NOTE_C4 21 | }; 22 | 23 | // I found that NOTE_G6 catches my attention pretty well: 24 | //int melody[] = { 25 | // NOTE_G6 // About the right frequency for beeping 26 | //}; 27 | 28 | // note durations: 4 = quarter note, 8 = eighth note, etc.: 29 | int noteDurations[] = { 30 | 4, 8, 8, 4, 4, 4, 4, 4 31 | }; 32 | 33 | void setup() { 34 | // Nothing here 35 | } 36 | 37 | void loop() { 38 | playMelody(); 39 | delay(3000); // Wait 3s before playing again 40 | } 41 | 42 | void playMelody() { 43 | for (int thisNote = 0; thisNote < 8; thisNote++) { 44 | // to calculate the note duration, take one second 45 | // divided by the note type. 46 | //e.g. quarter note = 1000 / 4, eighth note = 1000/8, etc. 47 | int noteDuration = 1000 / noteDurations[thisNote]; 48 | tone(buzzer, melody[thisNote], noteDuration); 49 | 50 | // to distinguish the notes, set a minimum time between them. 51 | // the note's duration + 30% seems to work well: 52 | int pauseBetweenNotes = noteDuration * 1.30; 53 | delay(pauseBetweenNotes); 54 | // stop the tone playing: 55 | noTone(buzzer); 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /Example Code/Buzzer_Test/pitches.h: -------------------------------------------------------------------------------- 1 | /************************************************* 2 | * Public Constants 3 | *************************************************/ 4 | 5 | #define NOTE_B0 31 6 | #define NOTE_C1 33 7 | #define NOTE_CS1 35 8 | #define NOTE_D1 37 9 | #define NOTE_DS1 39 10 | #define NOTE_E1 41 11 | #define NOTE_F1 44 12 | #define NOTE_FS1 46 13 | #define NOTE_G1 49 14 | #define NOTE_GS1 52 15 | #define NOTE_A1 55 16 | #define NOTE_AS1 58 17 | #define NOTE_B1 62 18 | #define NOTE_C2 65 19 | #define NOTE_CS2 69 20 | #define NOTE_D2 73 21 | #define NOTE_DS2 78 22 | #define NOTE_E2 82 23 | #define NOTE_F2 87 24 | #define NOTE_FS2 93 25 | #define NOTE_G2 98 26 | #define NOTE_GS2 104 27 | #define NOTE_A2 110 28 | #define NOTE_AS2 117 29 | #define NOTE_B2 123 30 | #define NOTE_C3 131 31 | #define NOTE_CS3 139 32 | #define NOTE_D3 147 33 | #define NOTE_DS3 156 34 | #define NOTE_E3 165 35 | #define NOTE_F3 175 36 | #define NOTE_FS3 185 37 | #define NOTE_G3 196 38 | #define NOTE_GS3 208 39 | #define NOTE_A3 220 40 | #define NOTE_AS3 233 41 | #define NOTE_B3 247 42 | #define NOTE_C4 262 43 | #define NOTE_CS4 277 44 | #define NOTE_D4 294 45 | #define NOTE_DS4 311 46 | #define NOTE_E4 330 47 | #define NOTE_F4 349 48 | #define NOTE_FS4 370 49 | #define NOTE_G4 392 50 | #define NOTE_GS4 415 51 | #define NOTE_A4 440 52 | #define NOTE_AS4 466 53 | #define NOTE_B4 494 54 | #define NOTE_C5 523 55 | #define NOTE_CS5 554 56 | #define NOTE_D5 587 57 | #define NOTE_DS5 622 58 | #define NOTE_E5 659 59 | #define NOTE_F5 698 60 | #define NOTE_FS5 740 61 | #define NOTE_G5 784 62 | #define NOTE_GS5 831 63 | #define NOTE_A5 880 64 | #define NOTE_AS5 932 65 | #define NOTE_B5 988 66 | #define NOTE_C6 1047 67 | #define NOTE_CS6 1109 68 | #define NOTE_D6 1175 69 | #define NOTE_DS6 1245 70 | #define NOTE_E6 1319 71 | #define NOTE_F6 1397 72 | #define NOTE_FS6 1480 73 | #define NOTE_G6 1568 74 | #define NOTE_GS6 1661 75 | #define NOTE_A6 1760 76 | #define NOTE_AS6 1865 77 | #define NOTE_B6 1976 78 | #define NOTE_C7 2093 79 | #define NOTE_CS7 2217 80 | #define NOTE_D7 2349 81 | #define NOTE_DS7 2489 82 | #define NOTE_E7 2637 83 | #define NOTE_F7 2794 84 | #define NOTE_FS7 2960 85 | #define NOTE_G7 3136 86 | #define NOTE_GS7 3322 87 | #define NOTE_A7 3520 88 | #define NOTE_AS7 3729 89 | #define NOTE_B7 3951 90 | #define NOTE_C8 4186 91 | #define NOTE_CS8 4435 92 | #define NOTE_D8 4699 93 | #define NOTE_DS8 4978 94 | -------------------------------------------------------------------------------- /Example Code/Excel Graph Demo.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Example Code/Excel Graph Demo.xlsx -------------------------------------------------------------------------------- /Example Code/HM11_Setup/HM11_Setup.ino: -------------------------------------------------------------------------------- 1 | /* This code configures the HM-11 Bluetooth module with a working baud rate 2 | * and operating mode. It also changes the Bluetooth name from the default. 3 | * 4 | * See this page for a full list of AT commands: https://docs.google.com/document/d/14mHWT3GhELCj-6yxsam0k5bjzazq8nnPoz4B_gYh04k/edit#heading=h.lkl7kit1e1ct 5 | * 6 | * Author: Timothy Woo (botletics.com) 7 | * Date: 10/4/2017 8 | */ 9 | 10 | #include // Library needed for Bluetooth communication 11 | 12 | #define BT_RX 9 13 | #define BT_TX 10 14 | 15 | // Initialize Bluetooth software serial 16 | SoftwareSerial BT(BT_TX,BT_RX); // Reflowduino (RX, TX), Bluetooth (TX, RX) 17 | 18 | void setup() { 19 | Serial.begin(9600); // Should be different from Bluetooth baud 20 | // while (!Serial) {} // Wait for serial monitor to be opened 21 | 22 | BT.begin(115200); // HM-11 default baud rate, which isn't reliable 23 | delay(1); // This delay needs to be here in order to send the AT commands 24 | 25 | sendATcommand("AT+BOUD1", 1000); // Set to 57600 baud 26 | BT.begin(57600); // Need to use AT+BOUD1 command 27 | sendATcommand("AT+HOSTEN0", 1000); // Enable master/slave. Default is slave only. 28 | sendATcommand("AT+NAMEReflowduino", 1000); // Sets the Bluetooth name 29 | } 30 | 31 | void loop() { 32 | // Nothing here 33 | } 34 | 35 | void sendATcommand(String ATcommand, unsigned long timeout) { 36 | // Send AT command 37 | Serial.print("--> "); 38 | Serial.println(ATcommand); 39 | BT.print(ATcommand); 40 | 41 | // Print module's response without timeout 42 | Serial.print("<-- "); 43 | 44 | char c = ' '; 45 | unsigned long timer = millis(); // Start timer 46 | 47 | while (millis() - timer < timeout) { 48 | if (BT.available()) { 49 | char c = BT.read(); 50 | Serial.print(c); 51 | } 52 | } 53 | 54 | if (c == ' ') Serial.println("\n"); // Print a new line if nothing was received 55 | } 56 | -------------------------------------------------------------------------------- /Example Code/PID_Test/PID_Test.ino: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: Reflowduino PID Test 3 | * Author: Timothy Woo 4 | * Website: www.botletics.com 5 | * Last modified: 6/8/2018 6 | * 7 | * ----------------------------------------------------------------------------------------------- 8 | * This is an example sketch to test the PID control of the Reflowduino and facilitate choosing the 9 | * right PID constants. This example sets the desired temperature to a fixed value and controls the 10 | * oven or hot plate accordingly to match that temperature. See the temperature response and adjust 11 | * the PID gains accordingly by evaluating parameters such as reponse time, overshoot, and steady- 12 | * state error which are explained in more detail on my Github tutorial. 13 | * 14 | * Note: From testing it was concluded that a subtraction factor may be the easiest and most 15 | * effective solution for compensating for overshoot during the reflow phase. 16 | * 17 | * ----------------------------------------------------------------------------------------------- 18 | * Credits: Special thanks to Brett Beauregard, author of the Arduino PID Library! 19 | * 20 | * ----------------------------------------------------------------------------------------------- 21 | * License: This code is released under the GNU General Public License v3.0 22 | * https://choosealicense.com/licenses/gpl-3.0/ and appropriate attribution must be 23 | * included in all redistributions of this code. 24 | * 25 | * ----------------------------------------------------------------------------------------------- 26 | * Disclaimer: Dealing with mains voltages is dangerous and potentially life-threatening! 27 | * If you do not have adequate experience working with high voltages, please consult someone 28 | * with experience or avoid this project altogether. We shall not be liable for any damage that 29 | * might occur involving the use of the Reflowduino and all actions are taken at your own risk. 30 | */ 31 | 32 | #include // Library needed for Bluetooth communication 33 | #include // Only if you need the ATmega32u4 to act as a keyboard 34 | 35 | // Libraries needed for using MAX31855 thermocouple interface 36 | #include 37 | #include "Adafruit_MAX31855.h" // https://github.com/adafruit/Adafruit-MAX31855-library 38 | 39 | // Library for PID control 40 | #include // https://github.com/br3ttb/Arduino-PID-Library 41 | 42 | // Define pins 43 | #define relay 7 44 | #define BT_RX 9 45 | #define BT_TX 10 46 | #define LED 13 47 | #define MAX_CS 8 // MAX31855 chip select pin 48 | 49 | // Initialize Bluetooth software serial 50 | SoftwareSerial BT = SoftwareSerial(BT_TX,BT_RX); // Reflowduino (RX, TX), Bluetooth (TX, RX) 51 | 52 | // Initialize thermocouple with hardware SPI 53 | // Reflowduino uses hardware SPI to save digital pins 54 | Adafruit_MAX31855 thermocouple(MAX_CS); 55 | 56 | // Define if you want to enable the keyboard feature to type data into Excel 57 | #define enableKeyboard false 58 | 59 | // Define a subtraction constant to compensate for overshoot: 60 | #define T_const 5; // From testing, overshoot was about 5-6*C 61 | 62 | // Define a desired temperature in deg C 63 | #define desiredTemp 75 - T_const 64 | 65 | // Define PID parameters. Tune them to your taste! 66 | #define PID_sampleTime 1000 67 | #define Kp 150 68 | #define Ki 0 69 | #define Kd 100 70 | 71 | // Bluetooth app settings. Define which characters belong to which functions 72 | #define dataChar '*' // App is receiving data from Reflowduino 73 | #define stopChar '!' // App is receiving command to stop reflow process (process finished!) 74 | #define startReflow 'A' // Command from app to "activate" reflow process 75 | #define stopReflow 'S' // Command from app to "stop" reflow process at any time 76 | 77 | double temperature, output, setPoint; // Input, output, set point 78 | PID myPID(&temperature, &output, &setPoint, Kp, Ki, Kd, DIRECT); 79 | 80 | // Logic flags 81 | bool justStarted = true; 82 | bool reflow = false; // Baking process is underway! 83 | 84 | int windowSize = 2000; 85 | unsigned long sendRate = 2000; // Send data to app every 2s 86 | unsigned long previousMillis = 0; 87 | unsigned long windowStartTime, timer; 88 | 89 | void setup() { 90 | Serial.begin(9600); // This should be different from the Bluetooth baud rate 91 | BT.begin(57600); 92 | 93 | pinMode(LED, OUTPUT); 94 | pinMode(relay, OUTPUT); 95 | 96 | digitalWrite(LED, LOW); 97 | digitalWrite(relay, LOW); // Set default relay state to OFF 98 | 99 | setPoint = desiredTemp; 100 | 101 | myPID.SetOutputLimits(0, windowSize); 102 | myPID.SetSampleTime(PID_sampleTime); 103 | myPID.SetMode(AUTOMATIC); // Turn on PID control 104 | 105 | // while (!Serial) delay(1); // OPTIONAL: Wait for serial to connect 106 | Serial.println("*****Reflowduino PID Test*****"); 107 | 108 | if (enableKeyboard) Keyboard.begin(); // Only if you want to type data into Excel 109 | } 110 | 111 | void loop() { 112 | /***************************** MEASURE TEMPERATURE *****************************/ 113 | temperature = thermocouple.readCelsius(); // Read temperature 114 | // temperature = thermocouple.readFarenheit(); // Alternatively, read in deg F but will need to modify code 115 | 116 | /***************************** REFLOW PROCESS CODE *****************************/ 117 | if (reflow) { 118 | digitalWrite(LED, HIGH); // Red LED indicates process is underway 119 | 120 | // This only runs when you first start the test 121 | if (justStarted) { 122 | justStarted = false; 123 | windowStartTime = millis(); 124 | 125 | if (isnan(temperature)) { 126 | Serial.println("Invalid reading, check thermocouple!"); 127 | } 128 | else { 129 | Serial.print("Starting temperature: "); 130 | Serial.print(temperature); 131 | Serial.println(" *C"); 132 | } 133 | } 134 | 135 | // Compute PID output (from 0 to windowSize) and control relay accordingly 136 | myPID.Compute(); // This will only be evaluated at the PID sampling rate 137 | if (millis() - windowStartTime >= windowSize) windowStartTime += windowSize; // Shift the time window 138 | if (output > millis() - windowStartTime) digitalWrite(relay, HIGH); 139 | else digitalWrite(relay, LOW); 140 | } 141 | else digitalWrite(LED, LOW); 142 | 143 | /***************************** BLUETOOTH CODE *****************************/ 144 | BT.flush(); 145 | char request = ' '; 146 | 147 | // Send data to the app periodically 148 | if (millis() - previousMillis > sendRate) { 149 | previousMillis = millis(); 150 | Serial.print("--> Temperature: "); // The right arrow means it's sending data out 151 | Serial.print(temperature); 152 | Serial.println(" *C"); 153 | if (!isnan(temperature)) { // Only send the temperature values if they're legit 154 | BT.print(dataChar); // This tells the app that it's data 155 | BT.print(String(temperature)); // Need to cast to String for the app to receive it properly 156 | 157 | if (enableKeyboard && reflow) { 158 | // Type time and temperature data into Excel on separate columns! 159 | Keyboard.print((millis()-timer)/1000); // Convert elapsed time from ms to s 160 | Keyboard.print('\t'); // Tab to go to next column 161 | Keyboard.print(temperature); 162 | Keyboard.println('\n'); // Jump to new row 163 | } 164 | } 165 | } 166 | 167 | // Check for an incoming command. If nothing was sent, return to loop() 168 | if (BT.available() < 1) return; 169 | 170 | request = BT.read(); // Read request 171 | // Serial.print("REQUEST: "); Serial.println(request); // DEBUG 172 | 173 | if (request == startReflow) { // Command from app to start reflow process 174 | justStarted = true; 175 | reflow = true; // Reflow started! 176 | timer = millis(); // Timer for logging data points 177 | Serial.println("<-- ***Reflow process started!"); // Left arrow means it received a command 178 | } 179 | else if (request == stopReflow) { // Command to stop reflow process 180 | digitalWrite(relay, LOW); // Turn off appliance and set flag to stop PID control 181 | reflow = false; 182 | Serial.println("<-- ***Reflow process aborted!"); 183 | } 184 | // Add you own functions here and have fun with it! 185 | 186 | /* 187 | // Alternatively, read commands from the serial monitor 188 | char serialByte; 189 | 190 | if (Serial.available() > 0) { 191 | serialByte = Serial.read(); 192 | } 193 | if (serialByte == startReflow) { 194 | justStarted = true; 195 | reflow = true; // Reflow started! 196 | t_start = millis(); // Record the start time 197 | timer = millis(); // Timer for logging data points 198 | Serial.println("<-- ***Reflow process started!"); // Left arrow means it received a command 199 | } 200 | else if (serialByte == stopReflow) { // Command to stop reflow process 201 | digitalWrite(relay, LOW); // Turn off appliance and set flag to stop PID control 202 | reflow = false; 203 | Serial.println("<-- ***Reflow process aborted!"); 204 | } 205 | */ 206 | } 207 | -------------------------------------------------------------------------------- /Example Code/Reflowduino_Demo/Reflowduino_Demo.ino: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: Reflowduino Demo 3 | * Author: Timothy Woo 4 | * Website: www.botletics.com 5 | * Last modified: 7/23/2019 6 | * 7 | * ----------------------------------------------------------------------------------------------- 8 | * This is an example sketch for the Reflowduino reflow oven controller board. The default 9 | * settings in this code is for lead-free solder found in most solder paste, but the parameters 10 | * can be changed or added to suit your exact needs. The code implements temperature PID control 11 | * to follow the desired temperature profile and uses Bluetooth Low Energy (BLE) to communicate 12 | * the readings to the Reflowdiuno app. This code can also enable the Reflowduino to automatically 13 | * enter data points into Excel to graph the data in real time if connected to a computer. Simply 14 | * uncomment lines 262-268 to enable this feature! 15 | * 16 | * Order a Reflowduino at https://www.botletics.com/products/reflowduino 17 | * Full documentation and design resources at https://github.com/botletics/Reflowduino 18 | * 19 | * ----------------------------------------------------------------------------------------------- 20 | * Credits: Special thanks to all those who have been an invaluable part of the DIY community, 21 | * like the author of the Arduino PID library and the developers at Adafruit! 22 | * 23 | * ----------------------------------------------------------------------------------------------- 24 | * License: This code is released under the GNU General Public License v3.0 25 | * https://choosealicense.com/licenses/gpl-3.0/ and appropriate attribution must be 26 | * included in all redistributions of this code. 27 | * 28 | * ----------------------------------------------------------------------------------------------- 29 | * Disclaimer: Dealing with mains voltages is dangerous and potentially life-threatening! 30 | * If you do not have adequate experience working with high voltages, please consult someone 31 | * with experience or avoid this project altogether. We shall not be liable for any damage that 32 | * might occur involving the use of the Reflowduino and all actions are taken at your own risk. 33 | */ 34 | 35 | #include // Library needed for Bluetooth communication 36 | #include // Only if you need the ATmega32u4 to act as a keyboard 37 | 38 | // Libraries needed for using MAX31855 thermocouple interface 39 | #include 40 | #include "Adafruit_MAX31855.h" // https://github.com/adafruit/Adafruit-MAX31855-library 41 | 42 | // Library for PID control 43 | #include // https://github.com/br3ttb/Arduino-PID-Library 44 | 45 | #include "pitches.h" // Includes the different notes for the buzzer 46 | 47 | // Define pins 48 | #define buzzer 5 49 | #define relay 7 50 | #define BT_RX 9 51 | #define BT_TX 10 52 | #define LED 13 // This LED is used to indicate if the reflow process is underway 53 | #define MAX_CS 8 // MAX31855 chip select pin 54 | 55 | // Initialize Bluetooth software serial 56 | SoftwareSerial BT = SoftwareSerial(BT_TX,BT_RX); // Reflowduino (RX, TX), Bluetooth (TX, RX) 57 | 58 | // Initialize thermocouple with hardware SPI 59 | // Reflowduino uses hardware SPI to save digital pins 60 | Adafruit_MAX31855 thermocouple(MAX_CS); 61 | 62 | // Define if you want to enable the keyboard feature to type data into Excel 63 | #define enableKeyboard false 64 | 65 | // Define reflow temperature profile parameters (in *C) 66 | // If needed, define a subtraction constant to compensate for overshoot: 67 | #define T_const 5 // From testing, overshoot was about 5-6*C 68 | 69 | // Standard lead-free solder paste (melting point around 215*C) 70 | //#define T_preheat 150 71 | //#define T_soak 217 72 | //#define T_reflow 249 - T_const 73 | 74 | // "Low-temp" lead-free solder paste (melting point around 138*C) 75 | #define T_preheat 90 76 | #define T_soak 138 77 | #define T_reflow 165 - T_const 78 | 79 | // Test values to make sure your Reflowduino is actually working 80 | //#define T_preheat 50 81 | //#define T_soak 80 82 | //#define T_reflow 100 - T_const 83 | 84 | #define T_cool 50 // Safe temperature at which the board is "ready" (dinner bell sounds!) 85 | #define preheat_rate 2 // Increase of 1-3 *C/s 86 | #define soak_rate 0.7 // Increase of 0.5-1 *C/s 87 | #define reflow_rate 2 // Increase of 1-3 *C/s 88 | #define cool_rate -4 // Decrease of < 6 *C/s max to prevent thermal shock. Negative sign indicates decrease 89 | 90 | // Define PID parameters. The gains depend on your particular setup 91 | // but these values should be good enough to get you started 92 | #define PID_sampleTime 1000 // 1000ms = 1s 93 | // Preheat phase 94 | #define Kp_preheat 150 95 | #define Ki_preheat 0 96 | #define Kd_preheat 100 97 | // Soak phase 98 | #define Kp_soak 200 99 | #define Ki_soak 0.05 100 | #define Kd_soak 300 101 | // Reflow phase 102 | #define Kp_reflow 300 103 | #define Ki_reflow 0.05 104 | #define Kd_reflow 350 105 | 106 | // Bluetooth app settings. Define which characters belong to which functions 107 | #define dataChar '*' // App is receiving data from Reflowduino 108 | #define stopChar '!' // App is receiving command to stop reflow process (process finished!) 109 | #define startReflow 'A' // Command from app to "activate" reflow process 110 | #define stopReflow 'S' // Command from app to "stop" reflow process at any time 111 | 112 | double temperature, output, setPoint; // Input, output, set point 113 | PID myPID(&temperature, &output, &setPoint, Kp_preheat, Ki_preheat, Kd_preheat, DIRECT); 114 | 115 | // Buzzer settings 116 | // This melody plays when the reflow temperature is reached, 117 | // at which point you should open the door (for toaster ovens) 118 | int openDoorTune[] = { 119 | NOTE_G6 // I found that NOTE_G6 catches my attention pretty well 120 | }; 121 | 122 | // This melody plays at the very end when it's safe to take your PCB's! 123 | int doneDealMelody[] = {NOTE_C4, NOTE_G3, NOTE_G3, NOTE_A3, NOTE_G3, 0, NOTE_B3, NOTE_C4}; 124 | 125 | // Note durations: 4 = quarter note, 8 = eighth note, etc. 126 | int noteDurations[] = {4, 8, 8, 4, 4, 4, 4, 4}; 127 | 128 | // Logic flags 129 | bool justStarted = true; 130 | bool reflow = false; // Baking process is underway! 131 | bool preheatComplete = false; 132 | bool soakComplete = false; 133 | bool reflowComplete = false; 134 | bool coolComplete = false; 135 | 136 | double T_start; // Starting temperature before reflow process 137 | int windowSize = 2000; 138 | unsigned long sendRate = 2000; // Send data to app every 2s 139 | unsigned long t_start = 0; // For keeping time during reflow process 140 | unsigned long previousMillis = 0; 141 | unsigned long duration, t_final, windowStartTime, timer; 142 | 143 | void setup() { 144 | Serial.begin(9600); // This should be different from the Bluetooth baud rate 145 | BT.begin(57600); 146 | 147 | pinMode(buzzer, OUTPUT); 148 | pinMode(LED, OUTPUT); 149 | pinMode(relay, OUTPUT); 150 | 151 | digitalWrite(LED, LOW); 152 | digitalWrite(relay, LOW); // Set default relay state to OFF 153 | 154 | myPID.SetOutputLimits(0, windowSize); 155 | myPID.SetSampleTime(PID_sampleTime); 156 | myPID.SetMode(AUTOMATIC); // Turn on PID control 157 | 158 | // while (!Serial) delay(1); // OPTIONAL: Wait for serial to connect 159 | Serial.println("*****Reflowduino demo*****"); 160 | 161 | if (enableKeyboard) Keyboard.begin(); // Only if you want to type data into Excel 162 | } 163 | 164 | void loop() { 165 | /***************************** MEASURE TEMPERATURE *****************************/ 166 | temperature = thermocouple.readCelsius(); // Read temperature 167 | // temperature = thermocouple.readFarenheit(); // Alternatively, read in deg F but will need to modify code 168 | 169 | /***************************** REFLOW PROCESS CODE *****************************/ 170 | if (reflow) { 171 | digitalWrite(LED, HIGH); // Red LED indicates reflow is underway 172 | 173 | // This only runs when you first start the reflow process 174 | if (justStarted) { 175 | justStarted = false; 176 | 177 | t_start = millis(); // Begin timers 178 | windowStartTime = millis(); 179 | T_start = temperature; 180 | 181 | if (isnan(T_start)) { 182 | Serial.println("Invalid reading, check thermocouple!"); 183 | } 184 | else { 185 | Serial.print("Starting temperature: "); 186 | Serial.print(T_start); 187 | Serial.println(" *C"); 188 | } 189 | } 190 | 191 | // Determine the amount of time that elapsed in any particular phase (preheat, soak, etc) 192 | duration = millis() - t_start; 193 | 194 | // Determine the desired set point according to where are in the reflow process 195 | // Perform a linear extrapolation of what desired temperature we want to be at. 196 | /********************* PREHEAT *********************/ 197 | if (!preheatComplete) { 198 | if (temperature >= T_preheat) { // Check if the current phase was just completed 199 | preheatComplete = true; 200 | t_start = millis(); // Reset timer for next phase 201 | Serial.println("Preheat phase complete!"); 202 | } 203 | else { 204 | // Calculate the projected final time based on temperature points and temperature rates 205 | t_final = (T_preheat - T_start) / (preheat_rate / 1000.0) + t_start; // Convert rate to *C/ms 206 | // Calculate desired temperature at that instant in time using linear interpolation 207 | setPoint = duration * (T_preheat - T_start) / (t_final - t_start); 208 | } 209 | } 210 | /********************* SOAK *********************/ 211 | else if (!soakComplete) { 212 | if (temperature >= T_soak) { 213 | soakComplete = true; 214 | t_start = millis(); 215 | Serial.println("Soaking phase complete!"); 216 | } 217 | else { 218 | t_final = (T_soak - T_start) / (soak_rate / 1000.0) + t_start; 219 | setPoint = duration * (T_soak - T_start) / (t_final - t_start); 220 | } 221 | } 222 | /********************* REFLOW *********************/ 223 | else if (!reflowComplete) { 224 | if (temperature >= T_reflow) { 225 | reflowComplete = true; 226 | t_start = millis(); 227 | Serial.println("Reflow phase complete!"); 228 | tone(buzzer, openDoorTune, 2000); // Alert the user to open the door! 229 | } 230 | else { 231 | t_final = (T_reflow - T_start) / (reflow_rate / 1000.0) + t_start; 232 | setPoint = duration * (T_reflow - T_start) / (t_final - t_start); 233 | } 234 | } 235 | /********************* COOLDOWN *********************/ 236 | else if (!coolComplete) { 237 | if (temperature <= T_cool) { 238 | coolComplete = true; 239 | reflow = false; 240 | Serial.println("PCB reflow complete!"); 241 | BT.print(stopChar); // Tell the app that the entire process is finished! 242 | playTune(doneDealMelody); // Play the buzzer melody 243 | } 244 | else { 245 | t_final = (T_cool - T_start) / (cool_rate / 1000.0) + t_start; 246 | setPoint = duration * (T_cool - T_start) / (t_final - t_start); 247 | } 248 | } 249 | 250 | // Use the appropriate PID parameters based on the current phase 251 | if (!soakComplete) myPID.SetTunings(Kp_soak, Ki_soak, Kd_soak); 252 | else if (!reflowComplete) myPID.SetTunings(Kp_reflow, Ki_reflow, Kd_reflow); 253 | 254 | // Compute PID output (from 0 to windowSize) and control relay accordingly 255 | myPID.Compute(); // This will only be evaluated at the PID sampling rate 256 | if (millis() - windowStartTime >= windowSize) windowStartTime += windowSize; // Shift the time window 257 | if (output > millis() - windowStartTime) digitalWrite(relay, HIGH); // If HIGH turns on the relay 258 | // if (output < millis() - windowStartTime) digitalWrite(relay, HIGH); // If LOW turns on the relay 259 | else digitalWrite(relay, LOW); 260 | } 261 | else { 262 | digitalWrite(LED, LOW); 263 | digitalWrite(relay, LOW); 264 | } 265 | 266 | /***************************** BLUETOOTH CODE *****************************/ 267 | BT.flush(); 268 | char request = ' '; 269 | 270 | // Send data to the app periodically 271 | if (millis() - previousMillis > sendRate) { 272 | previousMillis = millis(); 273 | Serial.print("--> Temperature: "); // The right arrow means it's sending data out 274 | Serial.print(temperature); 275 | Serial.println(" *C"); 276 | if (!isnan(temperature)) { // Only send the temperature values if they're legit 277 | BT.print(dataChar); // This tells the app that it's data 278 | BT.print(String(temperature)); // Need to cast to String for the app to receive it properly 279 | 280 | if (enableKeyboard && reflow) { 281 | // Type time and temperature data into Excel on separate columns! 282 | Keyboard.print((millis()-timer)/1000); // Convert elapsed time from ms to s 283 | Keyboard.print('\t'); // Tab to go to next column 284 | Keyboard.print(temperature); 285 | Keyboard.println('\n'); // Jump to new row 286 | } 287 | } 288 | } 289 | 290 | // Check for an incoming command. If nothing was sent, return to loop() 291 | if (BT.available() < 1) return; 292 | 293 | request = BT.read(); // Read request 294 | // Serial.print("REQUEST: "); Serial.println(request); // DEBUG 295 | 296 | if (request == startReflow) { // Command from app to start reflow process 297 | justStarted = true; 298 | reflow = true; // Reflow started! 299 | t_start = millis(); // Record the start time 300 | timer = millis(); // Timer for logging data points 301 | Serial.println("<-- ***Reflow process started!"); // Left arrow means it received a command 302 | } 303 | else if (request == stopReflow) { // Command to stop reflow process 304 | digitalWrite(relay, LOW); // Turn off appliance and set flag to stop PID control 305 | reflow = false; 306 | Serial.println("<-- ***Reflow process aborted!"); 307 | } 308 | // Add you own functions here and have fun with it! 309 | 310 | /***************************** SERIAL COMM CONTROL *****************************/ 311 | /* 312 | // Alternatively, read commands from the serial monitor 313 | char serialByte; 314 | 315 | if (Serial.available() > 0) { 316 | serialByte = Serial.read(); 317 | } 318 | if (serialByte == startReflow) { 319 | justStarted = true; 320 | reflow = true; // Reflow started! 321 | t_start = millis(); // Record the start time 322 | timer = millis(); // Timer for logging data points 323 | Serial.println("<-- ***Reflow process started!"); // Left arrow means it received a command 324 | } 325 | else if (serialByte == stopReflow) { // Command to stop reflow process 326 | digitalWrite(relay, LOW); // Turn off appliance and set flag to stop PID control 327 | reflow = false; 328 | Serial.println("<-- ***Reflow process aborted!"); 329 | } 330 | */ 331 | } 332 | 333 | // This function plays the melody for the buzzer. 334 | // Make this as simple or as elaborate as you wish! 335 | void playTune(int *melody) { 336 | // Iterate over the notes of the melody: 337 | for (int thisNote = 0; thisNote < 8; thisNote++) { 338 | // To calculate the note duration, take one second divided by the note type 339 | // e.g. quarter note = 1000 / 4, eighth note = 1000/8, etc. 340 | int noteDuration = 1000 / noteDurations[thisNote]; 341 | tone(buzzer, melody[thisNote], noteDuration); 342 | 343 | // To distinguish the notes, set a minimum time between them. 344 | // the note's duration + 30% seems to work well: 345 | int pauseBetweenNotes = noteDuration * 1.30; 346 | delay(pauseBetweenNotes); 347 | // stop the tone playing: 348 | noTone(buzzer); 349 | } 350 | } 351 | -------------------------------------------------------------------------------- /Example Code/Reflowduino_Demo/pitches.h: -------------------------------------------------------------------------------- 1 | /* This file has all the frequencies of all the notes you'll ever need. 2 | * However, you can delete the ones you know you won't use to save space. 3 | * Credits: https://www.arduino.cc/en/Tutorial/toneMelody 4 | */ 5 | 6 | #define NOTE_B0 31 7 | #define NOTE_C1 33 8 | #define NOTE_CS1 35 9 | #define NOTE_D1 37 10 | #define NOTE_DS1 39 11 | #define NOTE_E1 41 12 | #define NOTE_F1 44 13 | #define NOTE_FS1 46 14 | #define NOTE_G1 49 15 | #define NOTE_GS1 52 16 | #define NOTE_A1 55 17 | #define NOTE_AS1 58 18 | #define NOTE_B1 62 19 | #define NOTE_C2 65 20 | #define NOTE_CS2 69 21 | #define NOTE_D2 73 22 | #define NOTE_DS2 78 23 | #define NOTE_E2 82 24 | #define NOTE_F2 87 25 | #define NOTE_FS2 93 26 | #define NOTE_G2 98 27 | #define NOTE_GS2 104 28 | #define NOTE_A2 110 29 | #define NOTE_AS2 117 30 | #define NOTE_B2 123 31 | #define NOTE_C3 131 32 | #define NOTE_CS3 139 33 | #define NOTE_D3 147 34 | #define NOTE_DS3 156 35 | #define NOTE_E3 165 36 | #define NOTE_F3 175 37 | #define NOTE_FS3 185 38 | #define NOTE_G3 196 39 | #define NOTE_GS3 208 40 | #define NOTE_A3 220 41 | #define NOTE_AS3 233 42 | #define NOTE_B3 247 43 | #define NOTE_C4 262 44 | #define NOTE_CS4 277 45 | #define NOTE_D4 294 46 | #define NOTE_DS4 311 47 | #define NOTE_E4 330 48 | #define NOTE_F4 349 49 | #define NOTE_FS4 370 50 | #define NOTE_G4 392 51 | #define NOTE_GS4 415 52 | #define NOTE_A4 440 53 | #define NOTE_AS4 466 54 | #define NOTE_B4 494 55 | #define NOTE_C5 523 56 | #define NOTE_CS5 554 57 | #define NOTE_D5 587 58 | #define NOTE_DS5 622 59 | #define NOTE_E5 659 60 | #define NOTE_F5 698 61 | #define NOTE_FS5 740 62 | #define NOTE_G5 784 63 | #define NOTE_GS5 831 64 | #define NOTE_A5 880 65 | #define NOTE_AS5 932 66 | #define NOTE_B5 988 67 | #define NOTE_C6 1047 68 | #define NOTE_CS6 1109 69 | #define NOTE_D6 1175 70 | #define NOTE_DS6 1245 71 | #define NOTE_E6 1319 72 | #define NOTE_F6 1397 73 | #define NOTE_FS6 1480 74 | #define NOTE_G6 1568 75 | #define NOTE_GS6 1661 76 | #define NOTE_A6 1760 77 | #define NOTE_AS6 1865 78 | #define NOTE_B6 1976 79 | #define NOTE_C7 2093 80 | #define NOTE_CS7 2217 81 | #define NOTE_D7 2349 82 | #define NOTE_DS7 2489 83 | #define NOTE_E7 2637 84 | #define NOTE_F7 2794 85 | #define NOTE_FS7 2960 86 | #define NOTE_G7 3136 87 | #define NOTE_GS7 3322 88 | #define NOTE_A7 3520 89 | #define NOTE_AS7 3729 90 | #define NOTE_B7 3951 91 | #define NOTE_C8 4186 92 | #define NOTE_CS8 4435 93 | #define NOTE_D8 4699 94 | #define NOTE_DS8 4978 95 | -------------------------------------------------------------------------------- /Example Code/Reflowduino_ESP32_Demo/Reflowduino_ESP32_Demo.ino: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: Reflowduino ESP32 Demo 3 | * Author: Timothy Woo 4 | * Website: www.botletics.com 5 | * Last modified: 7/23/2019 6 | * 7 | * ----------------------------------------------------------------------------------------------- 8 | * This is an example sketch for the Reflowduino32 'backpack' for DOIT ESP32 dev boards. The ESP32 9 | * and backpack board are meant to be used in conjunction with the Sidekick relay module. The default 10 | * settings in this code is for lead-free solder found in most solder paste, but the parameters 11 | * can be changed or added to suit your exact needs. The code implements temperature PID control 12 | * to follow the desired temperature profile and uses Bluetooth Low Energy (BLE) to communicate 13 | * the readings to the Reflowdiuno app. 14 | * 15 | * Order a Reflowduino, ESP32 'backpack', or Sidekick relay module at https://www.botletics.com/products 16 | * Full documentation and design resources can be found at https://github.com/botletics/Reflowduino 17 | * 18 | * ----------------------------------------------------------------------------------------------- 19 | * Credits: Special thanks to all those who have been an invaluable part of the DIY community, 20 | * like the author of the Arduino PID library and the developers at Adafruit! 21 | * 22 | * ----------------------------------------------------------------------------------------------- 23 | * License: This code is released under the GNU General Public License v3.0 24 | * https://choosealicense.com/licenses/gpl-3.0/ and appropriate attribution must be 25 | * included in all redistributions of this code. 26 | * 27 | * ----------------------------------------------------------------------------------------------- 28 | * Disclaimer: Dealing with mains voltages is dangerous and potentially life-threatening! 29 | * If you do not have adequate experience working with high voltages, please consult someone 30 | * with experience or avoid this project altogether. We shall not be liable for any damage that 31 | * might occur involving the use of the Reflowduino and all actions are taken at your own risk. 32 | */ 33 | 34 | // For ESP32 Bluetooth 35 | #include 36 | #include 37 | #include 38 | #include 39 | 40 | BLECharacteristic *pCharacteristic; 41 | bool deviceConnected = false; 42 | float txValue = 0; 43 | 44 | // See the following for generating UUIDs: 45 | // https://www.uuidgenerator.net/ 46 | #define SERVICE_UUID "6E400001-B5A3-F393-E0A9-E50E24DCCA9E" 47 | #define CHARACTERISTIC_UUID_RX "6E400002-B5A3-F393-E0A9-E50E24DCCA9E" 48 | #define CHARACTERISTIC_UUID_TX "6E400003-B5A3-F393-E0A9-E50E24DCCA9E" 49 | 50 | // Libraries for MAX31855 thermocouple interface 51 | #include 52 | SPIClass SPI2(HSPI); // We are using HSPI pins on the ESP32 53 | 54 | #include "Adafruit_MAX31855.h" // https://github.com/adafruit/Adafruit-MAX31855-library 55 | 56 | // Library for PID control 57 | #include // https://github.com/br3ttb/Arduino-PID-Library 58 | 59 | // Define pins 60 | #define relay 13 61 | #define LED 2 // This LED is used to indicate if the reflow process is underway 62 | #define MAX_CLK 14 // MAX31855 clock pin 63 | #define MAX_CS 27 // MAX31855 chip select pin 64 | #define MAX_DO 12 // MAX31855 data pin (HSPI MISO on ESP32) 65 | 66 | // Initialize Bluetooth software serial 67 | 68 | // Initialize thermocouple 69 | Adafruit_MAX31855 thermocouple(MAX_CLK, MAX_CS, MAX_DO); 70 | 71 | // Define reflow temperature profile parameters (in *C) 72 | // If needed, define a subtraction constant to compensate for overshoot: 73 | #define T_const 5 // From testing, overshoot was about 5-6*C 74 | 75 | // Standard lead-free solder paste (melting point around 215*C) 76 | //#define T_preheat 150 77 | //#define T_soak 217 78 | //#define T_reflow 249 - T_const 79 | 80 | // "Low-temp" lead-free solder paste (melting point around 138*C) 81 | #define T_preheat 90 82 | #define T_soak 138 83 | #define T_reflow 165 - T_const 84 | 85 | // Test values to make sure your Reflowduino is actually working 86 | //#define T_preheat 50 87 | //#define T_soak 80 88 | //#define T_reflow 100 - T_const 89 | 90 | #define T_cool 40 // Safe temperature at which the board is "ready" (dinner bell sounds!) 91 | #define preheat_rate 2 // Increase of 1-3 *C/s 92 | #define soak_rate 0.7 // Increase of 0.5-1 *C/s 93 | #define reflow_rate 2 // Increase of 1-3 *C/s 94 | #define cool_rate -4 // Decrease of < 6 *C/s max to prevent thermal shock. Negative sign indicates decrease 95 | 96 | // Define PID parameters. The gains depend on your particular setup 97 | // but these values should be good enough to get you started 98 | #define PID_sampleTime 1000 // 1000ms = 1s 99 | // Preheat phase 100 | #define Kp_preheat 150 101 | #define Ki_preheat 0 102 | #define Kd_preheat 100 103 | // Soak phase 104 | #define Kp_soak 200 105 | #define Ki_soak 0.05 106 | #define Kd_soak 300 107 | // Reflow phase 108 | #define Kp_reflow 300 109 | #define Ki_reflow 0.05 110 | #define Kd_reflow 350 111 | 112 | // Bluetooth app settings. Define which characters belong to which functions 113 | #define dataChar "*" // App is receiving data from Reflowduino 114 | #define stopChar "!" // App is receiving command to stop reflow process (process finished!) 115 | #define startReflow "A" // Command from app to "activate" reflow process 116 | #define stopReflow "S" // Command from app to "stop" reflow process at any time 117 | 118 | double temperature, output, setPoint; // Input, output, set point 119 | PID myPID(&temperature, &output, &setPoint, Kp_preheat, Ki_preheat, Kd_preheat, DIRECT); 120 | 121 | // Logic flags 122 | bool justStarted = true; 123 | bool reflow = false; // Baking process is underway! 124 | bool preheatComplete = false; 125 | bool soakComplete = false; 126 | bool reflowComplete = false; 127 | bool coolComplete = false; 128 | 129 | double T_start; // Starting temperature before reflow process 130 | int windowSize = 2000; 131 | unsigned long sendRate = 2000; // Send data to app every 2s 132 | unsigned long t_start = 0; // For keeping time during reflow process 133 | unsigned long previousMillis = 0; 134 | unsigned long duration, t_final, windowStartTime, timer; 135 | 136 | class MyServerCallbacks: public BLEServerCallbacks { 137 | void onConnect(BLEServer* pServer) { 138 | deviceConnected = true; 139 | }; 140 | 141 | void onDisconnect(BLEServer* pServer) { 142 | deviceConnected = false; 143 | } 144 | }; 145 | 146 | class MyCallbacks: public BLECharacteristicCallbacks { 147 | void onWrite(BLECharacteristic *pCharacteristic) { 148 | std::string rxValue = pCharacteristic->getValue(); 149 | 150 | if (rxValue.length() > 0) { 151 | Serial.print("<-- Received Value: "); 152 | 153 | for (int i = 0; i < rxValue.length(); i++) { 154 | Serial.print(rxValue[i]); 155 | } 156 | Serial.println(); 157 | 158 | // Do stuff based on the command received from the app 159 | if (rxValue.find(startReflow) != -1) { // Command from app to start reflow process 160 | justStarted = true; 161 | reflow = true; // Reflow started! 162 | t_start = millis(); // Record the start time 163 | timer = millis(); // Timer for logging data points 164 | Serial.println("<-- ***Reflow process started!"); // Left arrow means it received a command 165 | } 166 | else if (rxValue.find(stopReflow) != -1) { // Command to stop reflow process 167 | digitalWrite(relay, LOW); // Turn off appliance and set flag to stop PID control 168 | reflow = false; 169 | Serial.println("<-- ***Reflow process aborted!"); 170 | } 171 | // Add you own functions here and have fun with it! 172 | } 173 | } 174 | }; 175 | 176 | void setup() { 177 | Serial.begin(115200); 178 | 179 | // while (!Serial) delay(1); // OPTIONAL: Wait for serial to connect 180 | Serial.println("*****Reflowduino ESP32 demo*****"); 181 | 182 | pinMode(LED, OUTPUT); 183 | pinMode(relay, OUTPUT); 184 | 185 | digitalWrite(LED, LOW); 186 | digitalWrite(relay, LOW); // Set default relay state to OFF 187 | 188 | myPID.SetOutputLimits(0, windowSize); 189 | myPID.SetSampleTime(PID_sampleTime); 190 | myPID.SetMode(AUTOMATIC); // Turn on PID control 191 | 192 | /***************************** BLUETOOTH SETUP *****************************/ 193 | // Create the BLE Device 194 | BLEDevice::init("Reflowduino32"); // Give it a name 195 | 196 | // Create the BLE Server 197 | BLEServer *pServer = BLEDevice::createServer(); 198 | pServer->setCallbacks(new MyServerCallbacks()); 199 | 200 | // Create the BLE Service 201 | BLEService *pService = pServer->createService(SERVICE_UUID); 202 | 203 | // Create a BLE Characteristic 204 | pCharacteristic = pService->createCharacteristic( 205 | CHARACTERISTIC_UUID_TX, 206 | BLECharacteristic::PROPERTY_NOTIFY 207 | ); 208 | 209 | pCharacteristic->addDescriptor(new BLE2902()); 210 | 211 | BLECharacteristic *pCharacteristic = pService->createCharacteristic( 212 | CHARACTERISTIC_UUID_RX, 213 | BLECharacteristic::PROPERTY_WRITE 214 | ); 215 | 216 | pCharacteristic->setCallbacks(new MyCallbacks()); 217 | 218 | // Start the service 219 | pService->start(); 220 | 221 | // Start advertising 222 | pServer->getAdvertising()->start(); 223 | Serial.println("Waiting for a BLE client to connect..."); 224 | } 225 | 226 | void loop() { 227 | /***************************** REFLOW PROCESS CODE *****************************/ 228 | if (reflow) { 229 | digitalWrite(LED, HIGH); // Blue LED indicates reflow is underway 230 | 231 | // This only runs when you first start the reflow process 232 | if (justStarted) { 233 | justStarted = false; 234 | 235 | t_start = millis(); // Begin timers 236 | windowStartTime = millis(); 237 | T_start = temperature; 238 | 239 | if (isnan(T_start)) { 240 | Serial.println("Invalid reading, check thermocouple!"); 241 | } 242 | else { 243 | Serial.print("Starting temperature: "); 244 | Serial.print(T_start); 245 | Serial.println(" *C"); 246 | } 247 | } 248 | 249 | // Determine the amount of time that elapsed in any particular phase (preheat, soak, etc) 250 | duration = millis() - t_start; 251 | 252 | // Determine the desired set point according to where are in the reflow process 253 | // Perform a linear extrapolation of what desired temperature we want to be at. 254 | /********************* PREHEAT *********************/ 255 | if (!preheatComplete) { 256 | if (temperature >= T_preheat) { // Check if the current phase was just completed 257 | preheatComplete = true; 258 | t_start = millis(); // Reset timer for next phase 259 | Serial.println("Preheat phase complete!"); 260 | } 261 | else { 262 | // Calculate the projected final time based on temperature points and temperature rates 263 | t_final = (T_preheat - T_start) / (preheat_rate / 1000.0) + t_start; 264 | // Calculate desired temperature at that instant in time using linear interpolation 265 | setPoint = duration * (T_preheat - T_start) / (t_final - t_start); 266 | } 267 | } 268 | /********************* SOAK *********************/ 269 | else if (!soakComplete) { 270 | if (temperature >= T_soak) { 271 | soakComplete = true; 272 | t_start = millis(); 273 | Serial.println("Soaking phase complete!"); 274 | } 275 | else { 276 | t_final = (T_soak - T_start) / (soak_rate / 1000.0) + t_start; 277 | setPoint = duration * (T_soak - T_start) / (t_final - t_start); 278 | } 279 | } 280 | /********************* REFLOW *********************/ 281 | else if (!reflowComplete) { 282 | if (temperature >= T_reflow) { 283 | reflowComplete = true; 284 | t_start = millis(); 285 | Serial.println("Reflow phase complete!"); 286 | } 287 | else { 288 | t_final = (T_reflow - T_start) / (reflow_rate / 1000.0) + t_start; 289 | setPoint = duration * (T_reflow - T_start) / (t_final - t_start); 290 | } 291 | } 292 | /********************* COOLDOWN *********************/ 293 | else if (!coolComplete) { 294 | if (temperature <= T_cool) { 295 | coolComplete = true; 296 | reflow = false; 297 | Serial.println("PCB reflow complete!"); 298 | 299 | // Tell the app that the entire process is finished! 300 | pCharacteristic->setValue(stopChar); 301 | pCharacteristic->notify(); // Send value to the app 302 | } 303 | else { 304 | t_final = (T_cool - T_start) / (cool_rate / 1000.0) + t_start; 305 | setPoint = duration * (T_cool - T_start) / (t_final - t_start); 306 | } 307 | } 308 | 309 | // Use the appropriate PID parameters based on the current phase 310 | if (!soakComplete) myPID.SetTunings(Kp_soak, Ki_soak, Kd_soak); 311 | else if (!reflowComplete) myPID.SetTunings(Kp_reflow, Ki_reflow, Kd_reflow); 312 | 313 | // Compute PID output (from 0 to windowSize) and control relay accordingly 314 | myPID.Compute(); // This will only be evaluated at the PID sampling rate 315 | if (millis() - windowStartTime >= windowSize) windowStartTime += windowSize; // Shift the time window 316 | if (output > millis() - windowStartTime) digitalWrite(relay, HIGH); // If HIGH turns on the relay 317 | // if (output < millis() - windowStartTime) digitalWrite(relay, HIGH); // If LOW turns on the relay 318 | else digitalWrite(relay, LOW); 319 | } 320 | else { 321 | digitalWrite(LED, LOW); 322 | digitalWrite(relay, LOW); 323 | } 324 | 325 | /***************************** BLUETOOTH CODE *****************************/ 326 | // Send data to the app periodically 327 | if (millis() - previousMillis > sendRate) { 328 | previousMillis = millis(); 329 | 330 | /***************************** MEASURE TEMPERATURE *****************************/ 331 | temperature = thermocouple.readCelsius(); // Read temperature 332 | // temperature = thermocouple.readFarenheit(); // Alternatively, read in deg F but will need to modify code 333 | 334 | Serial.print("--> Temperature: "); 335 | Serial.print(temperature); 336 | Serial.println(" *C"); 337 | 338 | // Only send temperature value if it's legit and if connected via BLE 339 | if (!isnan(temperature) && deviceConnected) { 340 | // First convert the value to a char array 341 | char tempBuff[16]; // make sure this is big enuffz 342 | char txString[16]; 343 | dtostrf(temperature, 1, 2, tempBuff); // float_val, min_width, digits_after_decimal, char_buffer 344 | sprintf(txString, "%s%s", dataChar, tempBuff); // The 'dataChar' character indicates that we're sending data to the app 345 | 346 | pCharacteristic->setValue(txString); 347 | pCharacteristic->notify(); // Send the value to the app 348 | } 349 | } 350 | // Commands sent from the app are checked in the callback function when they are received 351 | } 352 | -------------------------------------------------------------------------------- /Example Code/Relay_Test/Relay_Test.ino: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: Reflowduino Relay Demo 3 | * Author: Timothy Woo 4 | * Website: www.botletics.com 5 | * Last modified: 10/21/2017 6 | * 7 | * ----------------------------------------------------------------------------------------------- 8 | * This is an example sketch to test the Reflowduino solid-state relay. Simply enter "ON" or "OFF" 9 | * in the serial monitor (case sensitive) and the relay will turn ON or OFF accordingly! 10 | * NOTE: Make sure you have "No line ending" selected in the serial monitor! 11 | * 12 | * Order a Reflowduino at https://www.botletics.com/products/reflowduino 13 | * Full documentation and design resources at https://github.com/botletics/Reflowdiuno 14 | * 15 | * ----------------------------------------------------------------------------------------------- 16 | * License: This code is released under the GNU General Public License v3.0 17 | * https://choosealicense.com/licenses/gpl-3.0/ and appropriate attribution must be 18 | * included in all redistributions of this code. 19 | */ 20 | 21 | #define relay 7 22 | 23 | char charBuff[15]; 24 | 25 | void setup() { 26 | Serial.begin(115200); 27 | pinMode(relay, OUTPUT); 28 | digitalWrite(relay, LOW); // Default is OFF 29 | 30 | // while (!Serial) delay(1); 31 | Serial.println("*****Reflowduino Relay Test*****"); 32 | Serial.println("Enter \"ON\" or \"OFF\" into serial monitor"); 33 | } 34 | 35 | void loop() { 36 | if (!Serial.available()) return; 37 | 38 | int x = 0; 39 | while (Serial.available()) { 40 | charBuff[x] = Serial.read(); 41 | x++; 42 | } 43 | charBuff[x] = 0; // Null termination 44 | 45 | if (strcmp(charBuff, "ON") == 0) { 46 | Serial.println("Turning relay ON!"); 47 | digitalWrite(relay, HIGH); 48 | } 49 | else if (strcmp(charBuff, "OFF") == 0) { 50 | Serial.println("Turning relay OFF!"); 51 | digitalWrite(relay, LOW); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /Example Code/Thermocouple_Test/Thermocouple_Test.ino: -------------------------------------------------------------------------------- 1 | /* 2 | * Title: Thermocouple Test 3 | * Author: Limor Fried/Ladyada for Adafruit Industries 4 | * Modified: 10/21/2017 by Timothy Woo 5 | 6 | * ----------------------------------------------------------------------------------------------- 7 | * This code is an example sketch to read and print the temperature from the thermocouple 8 | * using the MAX31855 on board the Reflowduino. T 9 | */ 10 | 11 | /*************************************************** 12 | This is an example for the Adafruit Thermocouple Sensor w/MAX31855K 13 | 14 | Designed specifically to work with the Adafruit Thermocouple Sensor 15 | ----> https://www.adafruit.com/products/269 16 | 17 | These displays use SPI to communicate, 3 pins are required to 18 | interface 19 | Adafruit invests time and resources providing this open source code, 20 | please support Adafruit and open-source hardware by purchasing 21 | products from Adafruit! 22 | 23 | Written by Limor Fried/Ladyada for Adafruit Industries. 24 | BSD license, all text above must be included in any redistribution 25 | ****************************************************/ 26 | 27 | #include 28 | #include "Adafruit_MAX31855.h" // https://github.com/adafruit/Adafruit-MAX31855-library 29 | 30 | // Default connection is using software SPI, but comment and uncomment one of 31 | // the two examples below to switch between software SPI and hardware SPI: 32 | 33 | // Example creating a thermocouple instance with software SPI on any three 34 | // The Reflowduino uses hardware SPI so leave these commented out 35 | // digital IO pins. 36 | //#define MAXDO 3 37 | //#define MAXCS 4 38 | //#define MAXCLK 5 39 | 40 | // initialize the Thermocouple 41 | //Adafruit_MAX31855 thermocouple(MAXCLK, MAXCS, MAXDO); 42 | 43 | // Example creating a thermocouple instance with hardware SPI 44 | // on a given CS pin. 45 | #define MAXCS 8 46 | Adafruit_MAX31855 thermocouple(MAXCS); 47 | 48 | void setup() { 49 | Serial.begin(9600); 50 | 51 | // while (!Serial) delay(1); // wait for Serial on Leonardo/Zero, etc 52 | 53 | Serial.println("MAX31855 test"); 54 | // wait for MAX chip to stabilize 55 | delay(500); 56 | } 57 | 58 | void loop() { 59 | // basic readout test, just print the current temp 60 | Serial.print("Internal Temp = "); 61 | Serial.println(thermocouple.readInternal()); 62 | 63 | double c = thermocouple.readCelsius(); 64 | if (isnan(c)) { 65 | Serial.println("Something wrong with thermocouple!"); 66 | } else { 67 | Serial.print("C = "); 68 | Serial.println(c); 69 | } 70 | Serial.print("F = "); 71 | Serial.println(thermocouple.readFarenheit()); 72 | 73 | delay(1000); 74 | } 75 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | {one line to give the program's name and a brief idea of what it does.} 635 | Copyright (C) {year} {name of author} 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | {project} Copyright (C) {year} {fullname} 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /Media/3V3 Jumper Closeup.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/3V3 Jumper Closeup.jpg -------------------------------------------------------------------------------- /Media/App Screenshot 1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/App Screenshot 1.png -------------------------------------------------------------------------------- /Media/App Screenshot 2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/App Screenshot 2.png -------------------------------------------------------------------------------- /Media/App Screenshot 3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/App Screenshot 3.png -------------------------------------------------------------------------------- /Media/App Screenshot 4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/App Screenshot 4.png -------------------------------------------------------------------------------- /Media/Arduino IDE ESP32 BLE Examples.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Arduino IDE ESP32 BLE Examples.png -------------------------------------------------------------------------------- /Media/Arduino IDE ESP32 Board.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Arduino IDE ESP32 Board.png -------------------------------------------------------------------------------- /Media/Arduino IDE Screenshot 1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Arduino IDE Screenshot 1.png -------------------------------------------------------------------------------- /Media/BLE Communication Success.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/BLE Communication Success.png -------------------------------------------------------------------------------- /Media/BLE Lab 1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/BLE Lab 1.png -------------------------------------------------------------------------------- /Media/BLE Lab 2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/BLE Lab 2.png -------------------------------------------------------------------------------- /Media/BLE Lab 3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/BLE Lab 3.png -------------------------------------------------------------------------------- /Media/BT Add Device 1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/BT Add Device 1.png -------------------------------------------------------------------------------- /Media/BT Add Device 2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/BT Add Device 2.png -------------------------------------------------------------------------------- /Media/Basic + Sidekick Wiring.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Basic + Sidekick Wiring.jpg -------------------------------------------------------------------------------- /Media/Basic Ortho View.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Basic Ortho View.jpg -------------------------------------------------------------------------------- /Media/Battery Connector Closeup.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Battery Connector Closeup.jpg -------------------------------------------------------------------------------- /Media/Blueooth Start Menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Blueooth Start Menu.png -------------------------------------------------------------------------------- /Media/Bluetooth Settings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Bluetooth Settings.png -------------------------------------------------------------------------------- /Media/Bluetooth Successful Pairing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Bluetooth Successful Pairing.png -------------------------------------------------------------------------------- /Media/Bluetooth Task Bar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Bluetooth Task Bar.png -------------------------------------------------------------------------------- /Media/Buzzer Jumper Closeup.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Buzzer Jumper Closeup.jpg -------------------------------------------------------------------------------- /Media/Cooking Tray.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Cooking Tray.jpg -------------------------------------------------------------------------------- /Media/Current Setter Closeup.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Current Setter Closeup.jpg -------------------------------------------------------------------------------- /Media/DONE BT LEDs.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/DONE BT LEDs.jpg -------------------------------------------------------------------------------- /Media/DONE LED.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/DONE LED.jpg -------------------------------------------------------------------------------- /Media/Drip Tray.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Drip Tray.jpg -------------------------------------------------------------------------------- /Media/Excel Screenshot 1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Excel Screenshot 1.png -------------------------------------------------------------------------------- /Media/Excel Screenshot 2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Excel Screenshot 2.png -------------------------------------------------------------------------------- /Media/Excel Screenshot 3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Excel Screenshot 3.png -------------------------------------------------------------------------------- /Media/Excel Screenshot 4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Excel Screenshot 4.png -------------------------------------------------------------------------------- /Media/Excel Screenshot 5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Excel Screenshot 5.png -------------------------------------------------------------------------------- /Media/Female Header.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Female Header.jpg -------------------------------------------------------------------------------- /Media/Front View 1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Front View 1.jpg -------------------------------------------------------------------------------- /Media/General Wiring Diagram.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/General Wiring Diagram.jpg -------------------------------------------------------------------------------- /Media/Git GUI Windows 10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Git GUI Windows 10.png -------------------------------------------------------------------------------- /Media/Github Screenshot 1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Github Screenshot 1.png -------------------------------------------------------------------------------- /Media/Header Instructions 1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Header Instructions 1.jpg -------------------------------------------------------------------------------- /Media/Hot Plate Data - No Control.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Hot Plate Data - No Control.JPG -------------------------------------------------------------------------------- /Media/Hot Plate Demo Setup Closeup.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Hot Plate Demo Setup Closeup.jpg -------------------------------------------------------------------------------- /Media/Hot Plate Demo Setup.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Hot Plate Demo Setup.jpg -------------------------------------------------------------------------------- /Media/Hot Plate Picture.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Hot Plate Picture.JPG -------------------------------------------------------------------------------- /Media/Hot Plate Reflow Data 1.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Hot Plate Reflow Data 1.JPG -------------------------------------------------------------------------------- /Media/Hot Plate Thermocouple Setup.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Hot Plate Thermocouple Setup.jpg -------------------------------------------------------------------------------- /Media/Lead Free Low Temp No Clean Reflow Curve.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Lead Free Low Temp No Clean Reflow Curve.JPG -------------------------------------------------------------------------------- /Media/Lead Free No Clean Reflow Curve.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Lead Free No Clean Reflow Curve.JPG -------------------------------------------------------------------------------- /Media/Left Ortho View 1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Left Ortho View 1.jpg -------------------------------------------------------------------------------- /Media/Male Header.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Male Header.jpg -------------------------------------------------------------------------------- /Media/Metal Grill.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Metal Grill.jpg -------------------------------------------------------------------------------- /Media/PID Test 1.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/PID Test 1.JPG -------------------------------------------------------------------------------- /Media/PID Test 2.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/PID Test 2.JPG -------------------------------------------------------------------------------- /Media/PID Test 3.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/PID Test 3.JPG -------------------------------------------------------------------------------- /Media/PWR BT LED Batt.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/PWR BT LED Batt.jpg -------------------------------------------------------------------------------- /Media/PWR BT LEDs No Batt.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/PWR BT LEDs No Batt.jpg -------------------------------------------------------------------------------- /Media/PWR IO BT LEDs No Batt.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/PWR IO BT LEDs No Batt.jpg -------------------------------------------------------------------------------- /Media/PWR IO LEDs No Batt.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/PWR IO LEDs No Batt.jpg -------------------------------------------------------------------------------- /Media/PWR LED Batt.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/PWR LED Batt.jpg -------------------------------------------------------------------------------- /Media/PWR LED No Batt.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/PWR LED No Batt.jpg -------------------------------------------------------------------------------- /Media/Rear View 1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Rear View 1.jpg -------------------------------------------------------------------------------- /Media/Reflow Results 1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Reflow Results 1.jpg -------------------------------------------------------------------------------- /Media/Reflow Results 2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Reflow Results 2.jpg -------------------------------------------------------------------------------- /Media/Reflowduino Annotated Diagram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Reflowduino Annotated Diagram.png -------------------------------------------------------------------------------- /Media/Reflowduino Basic Wiring.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Reflowduino Basic Wiring.JPG -------------------------------------------------------------------------------- /Media/Reflowduino Pro Wiring.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Reflowduino Pro Wiring.JPG -------------------------------------------------------------------------------- /Media/Reflowduino32 + Sidekick Wiring.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Reflowduino32 + Sidekick Wiring.jpg -------------------------------------------------------------------------------- /Media/Reflowduino32 Board on DOIT ESP32.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Reflowduino32 Board on DOIT ESP32.jpg -------------------------------------------------------------------------------- /Media/Reflowduino32 Bottom View 1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Reflowduino32 Bottom View 1.jpg -------------------------------------------------------------------------------- /Media/Relay Closeup.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Relay Closeup.jpg -------------------------------------------------------------------------------- /Media/Relay Pads Closeup.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Relay Pads Closeup.jpg -------------------------------------------------------------------------------- /Media/Right Ortho View.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Right Ortho View.jpg -------------------------------------------------------------------------------- /Media/Right Side View 1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Right Side View 1.jpg -------------------------------------------------------------------------------- /Media/SchematicPinout.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/SchematicPinout.JPG -------------------------------------------------------------------------------- /Media/Screw Terminal Closeup.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Screw Terminal Closeup.jpg -------------------------------------------------------------------------------- /Media/Sidekick 1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Sidekick 1.jpg -------------------------------------------------------------------------------- /Media/Sidekick 2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Sidekick 2.jpg -------------------------------------------------------------------------------- /Media/Sidekick Annotated Picture.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Sidekick Annotated Picture.JPG -------------------------------------------------------------------------------- /Media/Sidekick Module Ortho View.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Sidekick Module Ortho View.jpg -------------------------------------------------------------------------------- /Media/Sidekick Relay Closeup.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Sidekick Relay Closeup.jpg -------------------------------------------------------------------------------- /Media/Stacking Female Header.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Stacking Female Header.jpg -------------------------------------------------------------------------------- /Media/Thermocouple Picture.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Thermocouple Picture.jpg -------------------------------------------------------------------------------- /Media/Thermocouple Scrap PCB.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Thermocouple Scrap PCB.jpg -------------------------------------------------------------------------------- /Media/Thunkable Screenshot 2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Thunkable Screenshot 2.png -------------------------------------------------------------------------------- /Media/Thunkable Screenshot 3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Thunkable Screenshot 3.png -------------------------------------------------------------------------------- /Media/Toaster Bottom Knob.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Toaster Bottom Knob.jpg -------------------------------------------------------------------------------- /Media/Toaster Middle Knob.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Toaster Middle Knob.jpg -------------------------------------------------------------------------------- /Media/Toaster Oven Annotated Wiring.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Toaster Oven Annotated Wiring.jpg -------------------------------------------------------------------------------- /Media/Toaster Oven Bottom Ortho View.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Toaster Oven Bottom Ortho View.jpg -------------------------------------------------------------------------------- /Media/Toaster Oven Bottom View.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Toaster Oven Bottom View.jpg -------------------------------------------------------------------------------- /Media/Toaster Oven Box Back.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Toaster Oven Box Back.jpg -------------------------------------------------------------------------------- /Media/Toaster Oven Box Front.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Toaster Oven Box Front.jpg -------------------------------------------------------------------------------- /Media/Toaster Oven Crimp Connectors.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Toaster Oven Crimp Connectors.jpg -------------------------------------------------------------------------------- /Media/Toaster Oven Diode.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Toaster Oven Diode.jpg -------------------------------------------------------------------------------- /Media/Toaster Oven Door Open.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Toaster Oven Door Open.jpg -------------------------------------------------------------------------------- /Media/Toaster Oven Drip Tray Only.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Toaster Oven Drip Tray Only.jpg -------------------------------------------------------------------------------- /Media/Toaster Oven Drip Tray Out with PCB.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Toaster Oven Drip Tray Out with PCB.jpg -------------------------------------------------------------------------------- /Media/Toaster Oven Filament Return Wire.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Toaster Oven Filament Return Wire.jpg -------------------------------------------------------------------------------- /Media/Toaster Oven Finished Wiring.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Toaster Oven Finished Wiring.jpg -------------------------------------------------------------------------------- /Media/Toaster Oven Original Wiring.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Toaster Oven Original Wiring.jpg -------------------------------------------------------------------------------- /Media/Toaster Oven Test Data 1.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Toaster Oven Test Data 1.JPG -------------------------------------------------------------------------------- /Media/Toaster Oven Test Setup 1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Toaster Oven Test Setup 1.jpg -------------------------------------------------------------------------------- /Media/Toaster Oven with Drip Tray.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Toaster Oven with Drip Tray.jpg -------------------------------------------------------------------------------- /Media/Toaster Oven with PCB.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Toaster Oven with PCB.jpg -------------------------------------------------------------------------------- /Media/Toaster Top Knob.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Toaster Top Knob.jpg -------------------------------------------------------------------------------- /Media/Voltage Selector Jumper Closeup.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Media/Voltage Selector Jumper Closeup.jpg -------------------------------------------------------------------------------- /Mobile App/Android/Reflowduino32_App.aia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Mobile App/Android/Reflowduino32_App.aia -------------------------------------------------------------------------------- /Mobile App/Android/Reflowduino32_App.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Mobile App/Android/Reflowduino32_App.apk -------------------------------------------------------------------------------- /Mobile App/Android/Reflowduino_App.aia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Mobile App/Android/Reflowduino_App.aia -------------------------------------------------------------------------------- /Mobile App/Android/Reflowduino_App.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Mobile App/Android/Reflowduino_App.apk -------------------------------------------------------------------------------- /PCB Files/Solid-State Sidekick/Solid-State Sidekick v2.brd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | RLY- 171 | RLY+ 172 | botletics.com 173 | Sidekick v2 174 | 175 | 176 | 177 | Designed by Timothy Woo 178 | Released under CC-BY-SA-4.0 license 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | >NAME 201 | >VALUE 202 | 203 | 204 | <a href=https://www.digikey.com/product-detail/en/qualtek/703W-00-53/Q219-ND/245560>C14 Right Angle Receptacle</a> 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | >NAME 235 | >VALUE 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | <a href=https://www.digikey.com/product-detail/en/te-connectivity-amp-connectors/3-213598-2/3-213598-2-ND/1892746>NEMA AC Receptacle</a> 259 | >NAME 260 | >VALUE 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | 347 | 348 | 349 | 350 | 351 | 352 | 353 | 354 | 355 | 356 | 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | 377 | 378 | 379 | 380 | 381 | 382 | 383 | 384 | >NAME 385 | >VALUE 386 | 387 | 388 | <a href=https://www.digikey.com/product-detail/en/e-switch/R1966ABLKBLKFR/EG2579-ND/379043>15A Rocker Switch</a> 389 | >NAME 390 | >VALUE 391 | 392 | 393 | 394 | 395 | 396 | 397 | 398 | 399 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | <h3>SparkFun Aesthetics</h3> 420 | This library contiains non-functional items such as logos, build/ordering notes, frame blocks, etc. 421 | <br> 422 | <br> 423 | We've spent an enormous amount of time creating and checking these footprints and parts, but it is <b> the end user's responsibility</b> to ensure correctness and suitablity for a given componet or application. 424 | <br> 425 | <br>If you enjoy using this library, please buy one of our products at <a href=" www.sparkfun.com">SparkFun.com</a>. 426 | <br> 427 | <br> 428 | <b>Licensing:</b> Creative Commons ShareAlike 4.0 International - https://creativecommons.org/licenses/by-sa/4.0/ 429 | <br> 430 | <br> 431 | You are welcome to use this library for commercial purposes. For attribution, we ask that when you begin to sell your device using our footprint, you email us with a link to the product being sold. We want bragging rights that we helped (in a very small part) to create your 8th world wonder. We would like the opportunity to feature your device on our homepage. 432 | 433 | 434 | <h3>Open-Source Hardware (OSHW) Logo - Large - Silkscreen</h3> 435 | <p>Silkscreen logo for open-source hardware designs.</p> 436 | <p>Devices using: 437 | <ul><li>OSHW_LOGO</li></ul></p> 438 | 439 | 440 | 441 | 442 | 443 | 444 | 445 | 446 | 447 | 448 | 449 | 450 | 451 | 452 | 453 | 454 | 455 | 456 | 457 | 458 | 459 | 460 | 461 | 462 | 463 | 464 | 465 | 466 | 467 | 468 | 469 | 470 | 471 | 472 | 473 | 474 | 475 | 476 | 477 | Open-Source Hardware (OSHW) Logo - Large - Silkscreen 478 | Silkscreen logo for open-source hardware designs. 479 | Devices using: 480 | OSHW_LOGO 481 | 482 | 483 | 484 | 485 | 486 | 487 | 488 | 489 | 490 | 491 | 492 | 493 | 494 | <b>EAGLE Design Rules</b> 495 | <p> 496 | Die Standard-Design-Rules sind so gewählt, dass sie für 497 | die meisten Anwendungen passen. Sollte ihre Platine 498 | besondere Anforderungen haben, treffen Sie die erforderlichen 499 | Einstellungen hier und speichern die Design Rules unter 500 | einem neuen Namen ab. 501 | <b>EAGLE Design Rules</b> 502 | <p> 503 | The default Design Rules have been set to cover 504 | a wide range of applications. Your particular design 505 | may have different requirements, so please make the 506 | necessary adjustments and save your customized 507 | design rules under a new name. 508 | 509 | 510 | 511 | 512 | 513 | 514 | 515 | 516 | 517 | 518 | 519 | 520 | 521 | 522 | 523 | 524 | 525 | 526 | 527 | 528 | 529 | 530 | 531 | 532 | 533 | 534 | 535 | 536 | 537 | 538 | 539 | 540 | 541 | 542 | 543 | 544 | 545 | 546 | 547 | 548 | 549 | 550 | 551 | 552 | 553 | 554 | 555 | 556 | 557 | 558 | 559 | 560 | 561 | 562 | 563 | 564 | 565 | 566 | 567 | 568 | 569 | 570 | 571 | 572 | 573 | 574 | 575 | 576 | 577 | 578 | 579 | 580 | 581 | 582 | 583 | 584 | 585 | 586 | 587 | 588 | 589 | 590 | 591 | 592 | 593 | 594 | 595 | 596 | 597 | 598 | 599 | 600 | 601 | 602 | 603 | 604 | 605 | 606 | 607 | 608 | 609 | 610 | 611 | 612 | 613 | 614 | 615 | 616 | 617 | 618 | 619 | 620 | 621 | 622 | 623 | 624 | 625 | 626 | 627 | 628 | 629 | 630 | 631 | 632 | 633 | 634 | 635 | 636 | 637 | 638 | 639 | 640 | 641 | 642 | 643 | 644 | 645 | 646 | 647 | 648 | 649 | 650 | 651 | 652 | 653 | 654 | 655 | 656 | 657 | 658 | 659 | 660 | 661 | 662 | 663 | 664 | 665 | 666 | 667 | 668 | 669 | 670 | 671 | 672 | 673 | 674 | 675 | 676 | 677 | 678 | 679 | 680 | 681 | 682 | 683 | 684 | 685 | 686 | 687 | 688 | 689 | 690 | 691 | 692 | 693 | 694 | 695 | 696 | 697 | 698 | 699 | 700 | 701 | 702 | 703 | 704 | 705 | 706 | 707 | 708 | 709 | 710 | 711 | 712 | 713 | 714 | 715 | 716 | 717 | 718 | 719 | 720 | 721 | 722 | 723 | 724 | 725 | 726 | 727 | 728 | 729 | 730 | 731 | 732 | 733 | 734 | 735 | 736 | 737 | 738 | 739 | 740 | 741 | 742 | 743 | 744 | 745 | 746 | 747 | 748 | 749 | 750 | 751 | 752 | 753 | 754 | 755 | 756 | 757 | 758 | 759 | 760 | 761 | 762 | 763 | 764 | 765 | 766 | 767 | 768 | 769 | 770 | 771 | 772 | 773 | 774 | 775 | 776 | 777 | 778 | 779 | 780 | 781 | 782 | 783 | 784 | 785 | 786 | 787 | 788 | 789 | 790 | 791 | 792 | 793 | 794 | 795 | 796 | 797 | 798 | 799 | 800 | 801 | 802 | 803 | 804 | 805 | 806 | 807 | 808 | 809 | 810 | 811 | 812 | 813 | 814 | 815 | 816 | 817 | 818 | 819 | 820 | 821 | 822 | 823 | 824 | 825 | 826 | 827 | 828 | 829 | 830 | 831 | 832 | 833 | 834 | 835 | 836 | 837 | 838 | 839 | 840 | 841 | 842 | 843 | 844 | 845 | 846 | 847 | 848 | 849 | 850 | 851 | 852 | 853 | 854 | 855 | 856 | 857 | 858 | 859 | 860 | 861 | 862 | 863 | 864 | 865 | 866 | 867 | 868 | 869 | 870 | 871 | 872 | 873 | 874 | 875 | 876 | 877 | 878 | 879 | 880 | 881 | 882 | 883 | 884 | 885 | 886 | 887 | 888 | 889 | 890 | 891 | 892 | 893 | 894 | 895 | 896 | 897 | 898 | 899 | 900 | 901 | 902 | 903 | 904 | 905 | 906 | 907 | 908 | 909 | 910 | 911 | 912 | 913 | 914 | 915 | 916 | 917 | 918 | 919 | 920 | 921 | 922 | 923 | 924 | 925 | 926 | 927 | 928 | 929 | 930 | 931 | 932 | 933 | 934 | 935 | 936 | 937 | 938 | 939 | Since Version 6.2.2 text objects can contain more than one line, 940 | which will not be processed correctly with this version. 941 | 942 | 943 | Since Version 8.2, EAGLE supports online libraries. The ids 944 | of those online libraries will not be understood (or retained) 945 | with this version. 946 | 947 | 948 | Since Version 8.3, EAGLE supports URNs for individual library 949 | assets (packages, symbols, and devices). The URNs of those assets 950 | will not be understood (or retained) with this version. 951 | 952 | 953 | Since Version 8.3, EAGLE supports the association of 3D packages 954 | with devices in libraries, schematics, and board files. Those 3D 955 | packages will not be understood (or retained) with this version. 956 | 957 | 958 | 959 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Reflowduino 2 | 3 | ## Introduction 4 | First off, let's briefly explain a circuit board is assembled. To aid in the explanation, let's take the analogy of baking a pizza. First of all you'll need the crust, which for us is a bare printed circuit board (PCB) made with different layers of a plastic substrate and copper traces that make the electrical connections. Next, we'll need the cheese that holds everything together, which for us is solder paste (yes, solder in the form of a paste) which "reflows" (solidifies or cures) at a high temperature. The solder paste is applied to the exposed copper pads on the PCB by way of a stencil that is aligned over the PCB. Then we'll grab some toppings, the electrical components, and place them in their appropriate locations on top of the solder paste. The final step is to bake our "pizza" so that the "cheese" holds all the components in place to yield our final assembled board! This is where the Reflowduino project comes in... 5 | 6 | ## Overview 7 | The Reflowduino project is an entire do-it-yourself (DIY) reflow ecosystem consisting of open-source hardware specifically built to make it easy to control reflow appliances and apply PID temperature control while maintaining full flexibility in programming and usage while offering a bunch of features. 8 | 9 | Since I'm a firm believer of great online resources having learned everything on my own aside from my Mechanical Engineering degree, I'm sharing all of this as completely open-source for everyone to enjoy, including EAGLE PCB files, Arduino IDE example code, sample Android app for Bluetooth control, and full tutorials on how to modify a toaster oven to start cookin’! 10 | 11 | That being said, I do offer the boards listed below [for sale on my website](https://www.botletics.com/products/). Each order helps me out a little bit in creating and sharing new projects with everyone! :) 12 | 13 | ## Resources 14 | Don’t forget to check out the [comprehensive Github wiki](https://github.com/botletics/Reflowdiuno/wiki)! 15 | I also posted [this Instructable](https://www.instructables.com/id/Reflowduino-DIY-BLE-Reflow-Oven-Controller/) as a quick 'n dirty summary of everything here as well as on [Hackster.io](https://www.hackster.io/botletics/diy-reflow-oven-with-reflowduino-af0219)! 16 | 17 | All PCB design files and hardware are released under the [Creative Commons Attribution Share Alike 4.0](https://choosealicense.com/licenses/cc-by-sa-4.0/) license. 18 | 19 | All other software is released under the [GNU General Public License v3.0](https://choosealicense.com/licenses/gpl-3.0/). 20 | 21 | ## Safety Disclaimer 22 | If you are a beginner in electronics or don't have the proper experience to work with mains voltage, I would suggest that you either don't mess with it, consult a professional, or keep learning until you're proficient enough! I am not liable for any mishaps that may occur due to misuse of the Reflowduino or its associated components or electrical system (including mains power). Take all safety precautions as necessary, such as gloves and certified safety glasses. Moreover, it is not recommended that you use the same appliance to reflow PCB's and also to cook food for consumption, which may result in food poisoning, especially with leaded solder. You are fully responsible for your actions, and perform them at your own risk! 23 | 24 | That being said, DIY away my friends... have fun and stay safe! 25 | -------------------------------------------------------------------------------- /Schematics/Basic + Sidekick Wiring.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Schematics/Basic + Sidekick Wiring.jpg -------------------------------------------------------------------------------- /Schematics/General Wiring Diagram.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Schematics/General Wiring Diagram.jpg -------------------------------------------------------------------------------- /Schematics/Reflowduino Basic Wiring.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Schematics/Reflowduino Basic Wiring.JPG -------------------------------------------------------------------------------- /Schematics/Reflowduino Pro Wiring.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Schematics/Reflowduino Pro Wiring.JPG -------------------------------------------------------------------------------- /Schematics/Reflowduino Schematic v2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Schematics/Reflowduino Schematic v2.png -------------------------------------------------------------------------------- /Schematics/Reflowduino Schematic v3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Schematics/Reflowduino Schematic v3.png -------------------------------------------------------------------------------- /Schematics/Reflowduino32 Backpack Schematic v1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Schematics/Reflowduino32 Backpack Schematic v1.png -------------------------------------------------------------------------------- /Schematics/Solid-State Sidekick Schematic v1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/botletics/Reflowduino/a828b440c04116cecb746799b43b67ed222126af/Schematics/Solid-State Sidekick Schematic v1.png --------------------------------------------------------------------------------