Float Switch

Cards (22)

  • What is the main objective of designing a float switch?
    To design and implement a basic float switch
  • How do float switches function?
    They detect fluid levels using buoyancy
  • What relationship does pressure have with float switch operation?
    Pressure affects the float's buoyancy and function
  • What should be evaluated for improvements in float switches?
    Improvements in float switches and circuitry
  • What is required for the float switch experiment write-up?
    To present findings and analysis of the experiment
  • What does buoyancy refer to?
    The upward force exerted by a fluid
  • What does it mean to float?
    To rest on the surface of a liquid
  • What principle explains the buoyant force?
    Archimedes' Principle
  • What happens when the switch button is pressed?
    A signal goes to the negative side of the circuit
  • What is the purpose of connecting the GND of the Arduino board to the float switch?
    To complete the circuit for operation
  • What does `int` represent in coding?
    It represents a fundamental data type for whole numbers
  • What does `void setup()` do in a program?
    It prepares and initializes variables and conditions
  • What is the function of `void loop()`?
    It runs continuously after `setup()` has executed
  • What does `digitalRead()` do?
    It checks the state of the float switch
  • What is the purpose of `Serial.print()`?
    To send data to the serial monitor
  • What does `digitalWrite()` do?
    It sets the state of a digital pin
  • What is the purpose of the tone() function?
    To generate a square wave of specified frequency
  • What does noTone() do?
    Stops the tone on the specified pin
  • What are the steps to configure a float switch with an Arduino?
    1. Connect GND of Arduino to float switch GND.
    2. Connect float switch pin to digital pin on Arduino.
  • What are the coding steps for a float switch program?
    1. Variable Declaration
    2. Initialization with `void setup()`
    3. Execution with `void loop()`
    4. Use `digitalRead()` and `digitalWrite()`
  • What are the coding steps for a float switch with an LED?
    1. Variable Declaration
    2. Initialization with `void setup()`
    3. Execution with `void loop()`
    4. Use `digitalWrite()` to control LED
  • What are the coding steps for a float switch with a piezo buzzer?
    1. Variable Declaration
    2. Initialization with `void setup()`
    3. Execution with `void loop()`
    4. Use `tone()` and `noTone()` for sound