# Operating Instructions
## Initial Startup
When an unconfigured (new or fully reset) controller starts, it first offers a choice of which tip profile to use.
Select the one appropriate for your iron. (JBC cartidges usually require electrical changes to the controller).
- **Hakko T12** (T15 Series in North America & EU) This is the handle normally used with these controllers.
- **JBC C210**
- **JBC C245**
---
## Basic Controls
Changes are made using the rotary encoder and its push button.
The power supply voltage is shown upper left, room temperature in the upper right, bar graph of relative power going to the tip on the bottom.
While in normal operation, shake sensor activity will be shown briefly in the top center.
To operate the menus, rotate to scroll to the desired selection, quick press to select it, rotate to change.
Quick press again to stop editing the setting.
Widgets have fine and coarse adjustment.
While editing the widget, normal rotation will make fine adjustement. Click and rotate will do coarse adjustment.
---
## Theory of Operation
Before covering the settings, it is useful to understand how it works.
Tip temperature is measured by using an ADC (Analog-Digital Converter) to measure the voltage output by a thermocouple in the tip.
The voltage is basically proportional to the difference between tip temperature and room temperature.
The controller uses PWM (Pulse Width Modulation) to control the tip temperature.
PWM basically varies the amount of time that the tip is powered.
By default, PWM uses a 200 ms (5 times per second) period.
If the tip is too hot, the controller will turn on power to the tip little or not at all during each cycle.
If the tip is too cold, it will turn the power on for more of the period.
The time the tip is powered on during each period is called the duty cycle.
|<------ PWM PERIOD ------>|
| POWER |____ no power ____|
The PID (Proportional, Integral, Derivative) algorithm determines the PWM duty cycle based on the difference between desired and measured tip temperatures.
---
## Main screen
- **Temperature display modes**
While in run mode, a single click will switch between numeric and graph (10 second history).
- **Temperature setpoint adjustment**
Rotate the encoder, the setpoint will be shown, continue rotating to adjust it.
After 1 second of inactivity it will return to normal mode.
- **Sleep/Standby modes**
You can force entering standby mode by clicking and rotating counter-clockwise.
Repeat to enter sleep mode.
To wake up you can make a click (If button wake is enabled) or move the handle (If shake wake is enabled or in stand mode).
If the display brighntess is dimmed, you can wake up the display by rotating the encoder.
If the tip reading is higher than 120ºC, it will show a "HOT!" warning.
- **Tip selection**
Click and rotate clockwise to show the tip selection. Then, long-pressing will enter the selected tip settings.
It will return to normal mode after 5 seconds of inactivity.
- **System menu**
A long click will enter the system menu (Except while in tip selection).
---
## System menu
Most screens will return to main screen after 15 seconds of inactivity.
Also, long clicking will have the same effect.
### IRON
Iron settings control the operation of the handle/tips.
- **Max temp**
Upper adjustable temperature limit.
- **Min temp**
Lower adjustable temperature limit.
- **Sleep**
If there is no soldering activity for this period, the controller will "sleep" and stop providing power to the tip, allowing it to cool. This helps increase tip lifetime. Activity (e.g. shaking the handle for a T12) will wake it up and heating will resume.
- **Heater ohm**
The resistance of the tip's heating element. There is normally no need to change this from the default.
- **Power**
The maximum power which will be delivered to the tip. This sets a maximum for the PWM duty cycle, based on the power supply voltage and the heater resistance.
- **PWM Time**
Sets the PWM period. The controller will check and adjust the tip temperature once each period. Default 200 ms.
Lower values will increase the PWM frequency and also the audible switching noise.
- **ADC Delay**
Near the end of each PWM period, the temperature is measured by the ADC.
_ADC Delay_ controls how soon before the end of a period the temperature is measured.
This delay is needed to have a clean reading of the thermocouple. If the delay is too low, it will read switching noise and be very unstable.
The measurement can only be taken when the power to the tip is off, so the effective PWM duty cycle is limited to (_PWM Time_ - _ADC Delay_).
If you get random spikes in the temperature reading, try increasing this value. 20mS is usually more than enough.
There are other factors that could cause unstability, like poor circuit design, power supply noise or bad quality parts.
Default 20 ms.
|<----------------- PWM TIME -------------------->|
|_____________________________|<-DELAY->[ADC READ]| NEXT CYCLE
|<- POWER ->|___________________|
- **Filter**
Adjust the filtering factor applied to the temperature measurements before they are passed to the PID.
The value adjust the EMA (Exponential Moving Average) value. A value of 0 disables it and uses simple average.
This helps remove noise and provides more stability, but too high values will add delay and cause oscillation.
- **No iron**
The ADC reading which signals that no iron is present. When no iron is plugged in, the measured temperature will read at or near maximum (ADC = 4095).
Default 4000, max 4100 (Over 4095 will disable "no iron" detection).
- **Detection**
Time in miliSeconds that an iron must be plugged in before it is considered present.
- **Back**
Return to system menu.
---
### SYSTEM
General settings for the controller.
- **Profile**
Sets which iron profile (__T12__, __C210__, __C245__) to use.
- **Contrast**
Screen Contrast/brightness.
- **Auto dim**
Fade the display after 15s in skleep or error modes to prevent display burning.
- **Offset**
Screen offset. This can accomodate the different screens which the controllers have come with. Use it to center the display on the screen. Default = 2.
- **Encoder**
If rotating the encoder moves in the wrong direction, change this.
- **Boot**
Operation mode when powered on. __RUN__ or __SLEEP__.
- **Wake mode**
How to detect activity. SHAKE or STAND.
SHAKE uses a motion sensor present in T12 handles, shake or hold the handle tip up to wake.
STAND can use the same handle shake wire, but must be disconnected from the handle and connected so when the tip is in the stand, this wire is shorted to GND. Shorted = sleep, open = wake.
- **Btn. Wake**
Allow waking the controller by pressing the encoder button.
- **Shake Wake**
Allow waking the controller by the shake sensor.
- **Active det.**
Use iron active detection by leaving the PWM slightly on all the time. If your amp has a pullup resistor it can be disabled.
- **Buzzer**
Buzz/beep when notable conditions occur.
- Changing operating mode (sleep, run)
- Temperature reached after the setpoint was changed
- Alarm when no iron is detected or system error happens
- **Unit**
Temperature scale, Celsius or Fahrenheit
- **Step**
Temperature step when adjusting tip temperature.
- **LVP**
Adjust Low voltage protection.
- **GUI Time**
To offer maximum responsiveness, the screen is updated between fastest as possible when the cpu is free.
It depends on the MCU used and display interface, it can reach more than 100 fps in DMA SPI mode.
If the display reading were updated at the same speed, it would be impossible to read anything.
This setting defines the time in mS where the main screen readings are updated (voltage, temperatures).
The real update rate will be limited by the PWM frequency (ADC is read at every PWM cycle end).
Use a higher setting for less "flicker" in the display (more steady values).
- **Save time**
Defines the delay with no changes before storing changed settings in flash memory.
Flash has a limited number of write cycles (~100,000).
Higher values reduce writes, but settings changes could be forgotten when the controller is powered off or reset.
Default: 5 seconds.
- **RESET MENU**
Reset various configuration sections:
- **Settings**
Reset Settings menu items to default.
- **Profile**
Reset the current profile (iron/tips) to default.
- **Profiles**
Reset all profiles to default.
- **All**
Reset everything.
- **SW:**
Displays the current software version. The version number is from a hash - higher is not necessarily newer.
- **HW:**
Displays the hardware type.
- **Back**
Return to system menu.
---
### EDIT TIPS
Different tips may have different characteristics. Tips may be added or edited here.
Select a tip to enter tip settings edit screen, or select Add New to create a new tip.
The new tip will be created by copying the PID/calibration settings from the first in the system.
Individual tip data includes info from both the *IRON- and *PID- menus.
### EDIT TIP SETTINGS
This menu allows Tip editing/removing, PID tuning and adjustment of stored tip calibration values.
PID tuning is an advanced topic, _**incorrect settings here can result in instability and damage to tips and possibly the controller**_.
Most users should not change these settings, but here are the basics. Kp, Ki, Kd, Imax, Imin are the coefficients which control the PID's behavior.
Calibration values are not meant for manual adjustment. Only to restore a previous calibration result.
Use calibration for optimal results.
- **TIP NAME**
Shows the tip name, click on it to access tip name editing/removing.
- **PID Kp**
The proportional term, changes the PWM duty cycle based on how far the measured temperature is from the desired temperature.
- **PID Ki**
The integral term, changes the duty cycle based on how long the temperatures have been different.
- **PID Kd**
PID differential term, changes the duty cycle based on how fast the measured temperature has changed.
- **PID Imax**
The integral accumulator higher limit.
- **PID Imin**
The integral accumulator lower limit.
- **Cal250**
The stored value for 250ºC calibration.
- **Cal350**
The stored value for 350ºC calibration.
- **Cal450**
The stored value for 450ºC calibration.
- **Back**
Return to system menu.
### EDIT TIP NAME
This screen allows Tip name editing/removing.
Click on the tip name to edit each character indvidually by scrolling up and down.
Delete button will only appear if there's more than one tip in the system.
Save button will only appear if the name was modified and there're no other tips with the same name. Empty names are not allowed.
Back button will return discarding any the changes.
---
### CALIBRATION
- **Start**
Requires a tip thermometer (e.g. Hakko FG-100 or similar). Calibrates the current tip at temperatures of 250, 350 and 450C.
Wait for tip temperature to settle (When the thermomether reading stops moving), it can take up to 20 seconds in some cases.
Then enter temperature as measured by the thermometer for each step.
If the entered temperature is more than 50ºC higher than the target calibration value, the process will be aborted and you will have to adjust it manually
- **Adjust**
Here you can adjust the default calibration values. These values are applied in real time!
For every step (250,350,450ºC), adjust the value until the tip temperature it's close to the target temperature.
This is a coarse adjustment, made to avoid burning the tip in the calibration process if your controllers reads too low values.
This values have nothing to do with the Tip Settings calibration values (Those are temperature-compensated).
Click on save to apply and store the changes, or cancel to discard.
The Save button will be hidden if no changes were made, or the entered data is invalid.
- **Back**
Return to system menu.
---
### ERROR REPORTING
A lot of effort was done to protect the tips from overheating.
Any detected error will disable PWM and show a message on the display.
To recover from an error, simply press the button and it will reboot.
There are multiple error types:
- **Iron warning**
Non critical errors, a warning will be shown: iron not detected, supply voltage too low, ambient temperature too high or too low.
- **Iron runaway**
If by any means the iron temperature is higher than requested and the PWM is still active, it will trigger a timer depending on the temperature diference.
The condition must dissapear within the specified time, otherwise it will trigger a critical runaway error, shutting down the power stage.
This is very useful to protect the tip from wrong PID adjustemnts (Ex. high integral accumulator).
- **Internal function errors**
If any internal function detects undefined or not expected state, it will lock the station and show a message trying to show where the error happened (File, line).
- **Hardware exceptions**
If a hardware exception happens, the station will lock up and display an error message about the exception.
- **Data error detection**
The data is stored as separate blocks: System settings, profile 1, profile 2 and profile 3.
Each one has it's own CRC checksum. When a block is read, the checksum is computed and compared.
If a mismatch occurs, the block will be erased and resetted to defaults, trying to preserve the rest of the data.
An error will be shown, detailing if the error detected was on the system settings data, or in any of the profiles.
Also, the flash storage is checked carefully before and after writes, any issue will trigger a flash error message.
### HARD RESET
If for any reason the station is unable to boot, you can't access the reset menu or you want to reset everything up quickly, there's a hard reset method.
Power the station off, push and hold the button, then power the station on.
A message will appear in the screen. "Hold button to restore defaults".
Keep pressing the button for another 5 seconds, until the next message appears, "Release button now".
Release the button, the station will wipe everything and reboot.
If you accidentally pushed the button, just release it before the 5 second timeout to resume the boot process.