


void setup()
{
\tpinMode( 4 , INPUT);
\tpinMode( 5 , INPUT);
\tpinMode( 6 , INPUT);
\tpinMode( 4 , OUTPUT);
\tpinMode( 5 , OUTPUT);
\tpinMode( 6 , OUTPUT);
\tpinMode( 8 , OUTPUT);
\tpinMode( 9 , OUTPUT);
\tpinMode( 10 , OUTPUT);
\tpinMode( 11 , OUTPUT);
\tdigitalWrite( 4 , LOW );
\tdigitalWrite( 5 , LOW );
\tdigitalWrite( 6 , LOW );
\tdigitalWrite( 8 , HIGH );
\tdigitalWrite( 9 , HIGH );
\tdigitalWrite( 10 , HIGH );
\tdigitalWrite( 11 , HIGH );
}
void loop()
{
\tif (\tdigitalRead( 4))
\t{
\t\tdigitalWrite( 8 , LOW );
\t}
\tif (\tdigitalRead( 5))
\t{
\t\tdigitalWrite( 8 , HIGH );
\t\tdigitalWrite( 9 , LOW );
\t\tdelay( 40000 );
\t\tdigitalWrite( 9 , HIGH );
\t\tdigitalWrite( 10 , LOW );
\t\tdelay( 700000 );
\t\tdigitalWrite( 8 , LOW );
\t\tdelay( 5000 );
\t}
\tif (\tdigitalRead( 6))
\t{
\t\tdigitalWrite( 8 , HIGH );
\t\tdelay( 5000 );
\t\tdigitalWrite( 11 , LOW );
\t\tdelay( 30000 );
\t\tdigitalWrite( 11 , HIGH );
\t\tdigitalWrite( 8 , LOW );
\t\tdelay( 10000 );
\t}
}
EXPANDED TECHNICAL DETAILS
Industrial Appliance Modernization
This project demonstrates how to restore a non-functional commercial ice maker by replacing its faulty proprietary logic board with a robust Arduino-based controller.
- Cooling Cycle Management: The Arduino manages the mission-critical timing of the Compressor and the Water Inlet Valve. The firmware follows the strict sequence: Pre-cool, Water Fill, Freeze (monitoring evaporation temp), and Harvest (hot gas bypass).
- Safety Interlock Shield: Uses a high-current relay module and a thermal probe (NTC Thermistor) to ensure the compressor never overheats, providing a more reliable and repairable solution than the original manufacturer's board.
Diagnostic Dashboard
- Serial Telemetry: Logs the duration of each "Harvest" cycle, allowing for easier diagnosis of future refrigerant or mechanical issues.