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!
Silícios LabPCBWay
Published © GPL3+

Ice Cube Detection System in the Refrigerator

You will learn how to develop a system to detect when the refrigerator is with few ice cubes.

BeginnerFull instructions provided30 minutes755
Ice Cube Detection System in the Refrigerator

Things used in this project

Hardware components

PCBWay Custom PCB
PCBWay Custom PCB
×1
LED 5mm - UTSOURCE
×1
10kR Resistor - UTSOURCE
×1
Reed Switch - UTSOURCE
×1
Arduino UNO R3 - UTSOURCE
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Schematic circuit for ice cubes detection

Code

Code for Ice Cubes detection

Arduino
#define BOTAO 8
#define LED 10

bool LimitSwitch = 0;

void setup() 
{
  pinMode(BOTAO, INPUT);
  pinMode(LED, OUTPUT);
}

void loop() 
{
  LimitSwitch = digitalRead(BOTAO);

    if(LimitSwitch == 0)
    {
      digitalWrite(LED, HIGH);  
    }

    if(LimitSwitch == 1)
    {
      digitalWrite(LED, LOW);  
    }
}

Credits

Silícios Lab

Silícios Lab

73 projects • 177 followers
Hello, I love program microcontrollers and works with electronic projects.
PCBWay

PCBWay

94 projects • 149 followers
We are a PCB and assembly manufacturer, As low as $5/10pcs and 24 hours delivery time. We are committed to helping creators build project.

Comments