Compare commits

...

12 Commits

Author SHA1 Message Date
Tomás Rojas C
bccead5d0b Merge 24d7742df2 into 05158321ba 2025-02-24 15:41:09 -05:00
Ben V. Brown
24d7742df2 Set ADC input pins to INPUT mode instead of ANALOG 2024-11-14 21:01:55 +11:00
discip
3c54811937 Update Soldering.cpp 2024-11-14 20:59:20 +11:00
Tomás Rojas Castiglione
ba58d95adb removing thermal runaway 2024-11-14 20:59:20 +11:00
Tomás Rojas Castiglione
c3f6de189c adding working PID parameters to MHP30 2024-11-14 20:59:20 +11:00
Tomás Rojas Castiglione
2001093b14 returning to original parameters in Pinecil_V2 2024-11-14 20:59:20 +11:00
Tomás Rojas C
c336ec7773 Update source/Core/BSP/Pinecilv2/configuration.h
Co-authored-by: discip <53649486+discip@users.noreply.github.com>
2024-11-14 20:59:20 +11:00
Tomás Rojas C
c6705ac3c2 Update Makefile
Co-authored-by: discip <53649486+discip@users.noreply.github.com>
2024-11-14 20:59:20 +11:00
Tomás Rojas Castiglione
896bbd0522 new PID parameters to compare with cloud compilation 2024-11-14 20:59:20 +11:00
Tomás Rojas Castiglione
52a57d4df5 settong P to 30 2024-11-14 20:59:20 +11:00
Tomás Rojas Castiglione
bcb08ad6cd setting I, D to zero, experimenting with just P 2024-11-14 20:59:20 +11:00
Tomás Rojas Castiglione
17ac550433 second attemp draft PR 2024-11-14 20:59:20 +11:00
3 changed files with 17 additions and 9 deletions

View File

@@ -165,6 +165,14 @@
#define ACCEL_EXITS_ON_MOVEMENT
#define NEEDS_VBUS_PROBE 0
#define CANT_DIRECT_READ_SETTINGS // We cant memcpy settings due to flash cache
#define TIP_CONTROL_PID // We use PID rather than integrator
#define TIP_PID_KP 22 //40 // Reasonable compromise for most tips so far
#define TIP_PID_KI 300 //6 // About as high for stability across tips
#define TIP_PID_KD 600 //200 // Helps dampen smaller tips; ~= nothing for larger tips
#define FILTER_DISPLAYED_TIP_TEMP 8 // Filtering for GUI display
#define HARDWARE_MAX_WATTAGE_X10 650
#define TIP_THERMAL_MASS 65 // TODO, needs refinement
#define TIP_RESISTANCE 60 // x10 ohms, ~6 typical

View File

@@ -57,16 +57,16 @@ void HAL_ADC_MspInit(ADC_HandleTypeDef *hadc) {
PB1 ------> ADC2_IN9
*/
GPIO_InitStruct.Pin = TIP_TEMP_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
HAL_GPIO_Init(TIP_TEMP_GPIO_Port, &GPIO_InitStruct);
GPIO_InitStruct.Pin = TMP36_INPUT_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
HAL_GPIO_Init(TMP36_INPUT_GPIO_Port, &GPIO_InitStruct);
GPIO_InitStruct.Pin = VIN_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
HAL_GPIO_Init(VIN_GPIO_Port, &GPIO_InitStruct);
GPIO_InitStruct.Pin = PLATE_SENSOR_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
HAL_GPIO_Init(PLATE_SENSOR_GPIO_Port, &GPIO_InitStruct);
/* ADC2 interrupt Init */

View File

@@ -161,11 +161,11 @@ OperatingMode gui_solderingMode(const ButtonState buttons, guiContext *cxt) {
return OperatingMode::Sleeping;
}
if (heaterThermalRunaway) {
currentTempTargetDegC = 0; // heater control off
heaterThermalRunaway = false;
cxt->transitionMode = TransitionAnimation::Right;
return OperatingMode::ThermalRunaway;
}
// if (heaterThermalRunaway) {
// currentTempTargetDegC = 0; // heater control off
// heaterThermalRunaway = false;
// cxt->transitionMode = TransitionAnimation::Right;
// return OperatingMode::ThermalRunaway;
// }
return handleSolderingButtons(buttons, cxt);
}