EasyManuals Logo
Home>Intel>Motherboard>Galileo

Intel Galileo Hardware Guide

Intel Galileo
34 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #16 background imageLoading...
Page #16 background image
Hardware 16
Hardware
This reads a value from pin A0. However, it doesn’t do anything with the value.
We have to create a variable, which we can later do something with. A variable is something that can hold
a value. In this case it is a number and can be changed and used later in the program.
The microcontroller has to be told what the name of the variable is, and what it will be used for. That is done
by writing something called a declaration. In this case our declaration will look something like this, which
will go at the beginning of the loop routine:
intmyVariable;
This tells the Galileo that you want a variable which is named myVariable and you will use it as a inte-
ger, which is any whole number, including zero, positive, and negative numbers.
You can name your variable anything, you just have to make sure you type it the exact same way every time.
For example, ‘myVariable’ is not the same as myvariable. Also, the microcontroller won’t understand
spaces in the variable.
After we tell the microcontroller that we have a variable, we have to assign it a value. This can be done by us-
ing the value from analogRead. You can tell the Galileo to assign a value to a variable using an equal sign:
myVariable=analogRead(A0);
So, the whole program would look like this:
voidsetup(){
pinMode(A0,INPUT);//analoginput
}
voidloop(){
intmyVariable;//declarevariable
myVariable=analogRead(A0);//assign
variable
}
Now, each time the loop goes through, myVariable will be assigned whatever the analog pin is sensing.
myVariable will be a high number (around 1000) if the sensor is at one extreme (turned all the way, in a
very bright environment, pushed down) and around 0 if the sensor is at the other extreme.
3.6: Using analogWrite
The simplest thing that can now be done with myVariable is to control the brightness of an LED. The wir-
ing for this is the same as in Lesson 2.
Controlling an LED requires us to use pinMode to tell the microcontroller we are using same pin as an out-
put, and to use analogWrite to write to the LED.

Other manuals for Intel Galileo

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Intel Galileo and is the answer not in the manual?

Intel Galileo Specifications

General IconGeneral
Product familyIntel Galileo
Product seriesIntel Galileo board
Processor cache16 KB
Processor cores1
Processor modelIntel Quark SoC X1000
64-bit computingNo
Processor socketQuark 393pin FCPGA
Product codename-
Processor frequency400 MHz
Microcontroller modelIntel Quark
Processor lithography32 nm
Processor manufacturerIntel
Thermal Design Power (TDP)12.5 W
Memory bandwidth supported by processor (max)2.5 GB/s
Memory bus32 bit
Flash memory8 MB
Memory channelsSingle-channel
Flash memory typeNorwegian
Memory clock speed800 MHz
Internal memory typeDDR3
Number of DIMM slots0
Compatible memory cardsMicroSD (TransFlash), MicroSDHC
Maximum internal memory0.256 GB
Maximum memory card size32 GB
SRAM (Static Random Access Memory)512 KB
EEPROM (Electrically Erasable Programmable Read-Only Memory)8 KB
USB version2.0
Ethernet LANYes
USB ports quantity3
Ethernet interface typeFast Ethernet
ARK ID78919
StatusDiscontinued
Launch dateQ4'13
Package size15 x 15 mm
FSBs supportedNA
Processor includedIntel® Quark™ SoC X1000 (16K Cache, 400 MHz)
Supported memory typesDDR3-SDRAM
Power over Ethernet (PoE) voltage12 V
Export Control Classification Number (ECCN)4A994
PCI SupportPCI Express
PCI Express interface data lanesx1
Form factorArduino
Market segmentDesktop
DC input voltage5 V
Intel Small Business Advantage (SBA) version0.00
Last change63903513
Processor ID79084
Product type11
Harmonized System (HS) code8471500150
Weight and Dimensions IconWeight and Dimensions
Width- mm

Related product manuals