Download PDF
      SAMOVAR                                  
×
Menu

Emergency button. Additional emergency sensors

 
Connect the button or sensor between the emergency input and GND. It triggers on a low level: GPIO35 on ESP32 DevKit or GPIO48 on ESP32-S3.
When triggered, Samovar turns on the buzzer, sends the message "Emergency shutdown! The emergency button input was triggered (the button or a sensor connected to it)." («Аварийное отключение! Сработал вход аварийной кнопки (кнопка или подключённый к ней датчик).») (with the TCA temperature if this sensor is present), switches off the heating, the take-off and the stirrer, and blocks a restart of the heating until a reboot. In rectification, distillation, BK and NBK the water and the cooling pump keep running for another 3 minutes so that the column cools down (unless the flow sensor has detected a loss of water); in the other modes they are switched off immediately. Several normally open buttons and sensors can be wired in parallel. For ESP32 DevKit, check the "Use the emergency button" («Использовать аварийную кнопку») box on the "Equipment" («Оборудование») tab of the configurator, use the PlatformIO environment Samovar_alarm_button or add #define USE_ALARM_BTN to user_config_override.h. On ESP32-S3 the GPIO48 emergency input is always enabled. The LILYGO board has no emergency input.
 
 
 
Alcohol spill sensor. Beginning. Implementation.
 
On ESP32 DevKit the emergency input is GPIO35; on ESP32-S3 it is GPIO48. In both cases it triggers when the input is shorted to GND.
For GPIO35 on the classic ESP32, an external 10 kOhm pull-up resistor to +3.3 V is required: pins GPIO34–39 have no internal pull-up. For GPIO48 on ESP32-S3, the firmware enables the internal pull-up.
 
On the Samovar 1.3.2 board, the emergency button connector is labeled ALRM_BT. It is connected to GPIO35 and must have a 10 kOhm pull-up resistor to +3.3 V.
 
Links to the posts:  link 1, and ais77 link 2, link 3.