Hackster is hosting Hackster Holidays, Ep. 6: Livestream & Giveaway Drawing. Watch previous episodes or stream live on Monday!Stream Hackster Holidays, Ep. 6 on Monday!
unclenoobz
Published © LGPL

Fix Ice Making Machine

My ice maker blew its controller board and I needed to make a plan to replace it. So I used an Arduino to control it!

BeginnerWork in progress4,510
Fix Ice Making Machine

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
Relay (generic)
×1

Software apps and online services

Arduino IDE
Arduino IDE
ardublock

Hand tools and fabrication machines

Old Ice Maker

Story

Read more

Schematics

Ice Maker

Fixed my Ice Maker

Code

Ice Maker

Arduino
Fixed My Ice Maker
void setup()
{
	pinMode( 4 , INPUT);
	pinMode( 5 , INPUT);
	pinMode( 6 , INPUT);
	pinMode( 4 , OUTPUT);
	pinMode( 5 , OUTPUT);
	pinMode( 6 , OUTPUT);
	pinMode( 8 , OUTPUT);
	pinMode( 9 , OUTPUT);
	pinMode( 10 , OUTPUT);
	pinMode( 11 , OUTPUT);
	digitalWrite( 4 , LOW );

	digitalWrite( 5 , LOW );

	digitalWrite( 6 , LOW );

	digitalWrite( 8 , HIGH );

	digitalWrite( 9 , HIGH );

	digitalWrite( 10 , HIGH );

	digitalWrite( 11 , HIGH );

}

void loop()
{
	if (	digitalRead( 4))
	{
		digitalWrite( 8 , LOW );
	}
	if (	digitalRead( 5))
	{
		digitalWrite( 8 , HIGH );
		digitalWrite( 9 , LOW );
		delay( 40000 );
		digitalWrite( 9 , HIGH );
		digitalWrite( 10 , LOW );
		delay( 700000 );
		digitalWrite( 8 , LOW );
		delay( 5000 );
	}
	if (	digitalRead( 6))
	{
		digitalWrite( 8 , HIGH );
		delay( 5000 );
		digitalWrite( 11 , LOW );
		delay( 30000 );
		digitalWrite( 11 , HIGH );
		digitalWrite( 8 , LOW );
		delay( 10000 );
	}
}

Credits

unclenoobz

unclenoobz

0 projects • 0 followers

Comments