Download Print this page

Using Inputs - Intel Galileo Hardware Manual

Biobots
Hide thumbs Also See for Galileo:

Advertisement

Hardware

3: Using Inputs

3.1: Overview
Inputs
are devices that give the Galileo information about the outside world. Using inputs allows your pro-
gram to be interactive, and gives you abilities to make more complicated programs.
3.2: What is an input?
An input is anything that gives information to the Galileo. This information is given in the form of electricity,
which is the only thing the Galileo understands. An input can give a lot of electricity, a little bit, or something
in between. You can program your Galileo to do different things based on different inputs.
A few examples of inputs:
button:
A
the Galileo. They can allow electricity to flow when pressed, and block electricity when they are
left alone.
switch
A
they are moved.
variable resistor:
A
knob, the amount of electricity it allows through is changed. Potentiometers are commonly seen
being used as volume knobs, or light dimmers.
thermsistor:
A
which means it changes the amount it resists electricity based on the temperature of the device.
This is helpful in thermostats, controlling the temperature of ovens, or preventing your laptop
from overheating.
photodiode, phototransistor, photoresistor:
A
all measure light. Photo means light, based on the light that is hitting the device they change how
much electricity they allow through. They can be used as light sensors in robots. Elevators put
infrared phototransistors in one of the doors and infrared lights on the other side to make sure
nothing is in the way while they close. Automatic sensors also use infrared lights and sensors.
sonar:
A
phone along with some other circuitry. They send out a high pitched noise, and listen for echoes.
This can be used to determine the distance between objects, and is similar to how bats and
dolphins navigate (they use echolocation). Sonars are useful in making robots and for interactive
machines.
There are many other types of inputs or sensors. The components listed are usually easier to find and are
cheaper. Additionally buttons, switches, and variable resistors are buildable.
there are already a few of these, the Reset & Reboot buttons (Lesson 3, Figure 1), on
: Switches are similar to buttons, but switches usually remain in the same position when
(potentiometer) this is a special electronic component. By turning the
another special electronic component. Thermsistor means thermal resistor,
these usually come as a grouping of several devices. There is a speaker, and a micro-
Lesson 3, Figure 1
These are three different devices that
Hardware 13

Advertisement

loading