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 minutes437
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

60 projects • 125 followers
Hello, I'm Diego Moreira, founder of the Silícios LAB and I love program microcontrollers and works with electronic projects.
PCBWay

PCBWay

62 projects • 100 followers
We are a pcb prototype and assembly manufacturer to help creators build projects. As low as $5/10pcs and 3 days delivery time.

Comments