ict pre fi

Cards (25)

  • Joystick Sensor
    Composed of two potentiometers square with each other, and one push button
  • Joystick Sensor Outputs
    • Analog value (0 to 1023) corresponding to horizontal position (X-Coordinate)
    • Analog value (0 to 1023) corresponding to vertical position (Y-Coordinate)
    • Digital value of HIGH or LOW for pushbutton
  • 2D-coordinates
    Created by the combination of two analog values, with the center values when the joystick is in the rest position
  • Some applications may use all three joystick outputs, some applications may use some outputs
  • Joystick Pinout
    • GND Pin - connected to GND (0V)
    • VCC Pin - connected to Vcc (5V)
    • VRX Pin - outputs analog value for horizontal position (x-coordinate)
    • VRY Pin - outputs analog value for vertical position (y-coordinate)
    • SW Pin - output from pushbutton, normally open, can use pull-up resistor
  • How to Program for Joystick
    1. Read analog values from X and Y axis pins using analogRead
    2. Use ezButton library for digital pushbutton, supports debounce and internal pull-up
    3. May need to convert analog values to controllable range
  • j
    A) joystick
  • j
    A) joystick
  • 2
    A) big sound
    B) small sound
  • 3
    A) relay
  • .
    A) tracking
    B) flame
    C) avoidance
    D) linear hall
  • .
    A) mental touch
    B) active buzzer
    C) digital temperature
    D) passive buzzer
  • .
    A) rgb led
    B) two color
    C) smd rgb
    D) mini two color
  • .
    A) magnetic spring
    B) heartbeat
    C) mini reed switch
    D) 7 color flash
  • codes
    A) xValue
    B) yValue
    C) 0
    D) 0
    E) setup()
    F) 9600
    G) void loop()
    H) VRX_PIN
    I) VRX_PIN
    J) delay
  • electromagnet
    This is a wire coil that becomes a temporary magnet when electricity is passed through it.
  • A relay can be thought of as an electric lever; you turn it on with a relatively small current, and it turns on another device with a much larger current.      
  • ezButton library supports debounce for buttons and also enables an internal pull-up resistor.   
  • 0 is the reading value of the Arduino’s analog pin at the leftmost portion
  • 1023 is the reading value of the Arduino’s analog pin at the rightmost portion?
  • Interface One Channel Relay Module with Arduino

    • These well-contained modules are inexpensive, simple to connect, and ideal for home-brew projects that require switching modest amounts of AC or DC power.
  • How Do Relays Work?

    At the core of a relay is an electromagnet (a wire coil that becomes a temporary magnet when electricity is passed through it). A relay can be thought of as an electric lever; you turn it on with a relatively small current, and it turns on another device with a much larger current.
  • Relay Basics
    1. Initially, both circuits are open, with no current flowing through them.
    2. When a small current flows through the first circuit, the electromagnet is energized, creating a magnetic field around it. The energized electromagnet attracts the second circuit's contact, closing the switch and allowing a large current to flow.
    3. When the current in the first circuit stops flowing, the contact returns to its original position, reopening the second circuit.
  • Relay Operation

    A relay typically has five pins, three of which are high voltage terminals (NC, COM, and NO) that connect to the device being controlled.
  • One-Channel Relay Module Hardware Overview

    The relay module contains two LEDs. The power LED will light up when the module is powered on. The status LED will light up when the relay is activated.