EasyManuals Logo

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 #25 background imageLoading...
Page #25 background image
Hardware 25
Hardware
motor.setSpeed(125);
This commands tells the Galileo what speed to run the motor at. The argument can be any number between
0 and 255. This command is just like using analogWrite, it just changes because motors are treated
slightly dierent by the Galileo. This does tell the motor to move.
So, if we want to just go forward our loop function looks like this:
voidloop(){
motor.run(FORWARD);//preparetogoforward
motor.setSpeed(125); //go at around half
speed
}
Test this program, to make sure your motor goes forward correctly. To make the motor stop we can tell the
Galileo this:
motor.run(RELEASE);
The word “RELEASE just means to stop the motor, to release it. Note that there is no need to set the speed,
it’s stopped. We can now make the motor go forward for one second, stop for one second, and repeat:
mymotor is the name of the motor. This can be anything, as long as you keep it the same every time you use
it in the program. 1 is the motor number, there should be labels M1, M2, M3, and M4 on the chip. If not, OUT1
and OUT2 should correspond to motor 1. (OUT3 and OUT4 are for motor 2).
First let’s write a basic program that moves the motor back and forth. In setup, you don’t have to write any-
thing. Doing something in setup may be helpful if you want the motor to do something once, before starting
the loop. But, since we just want to go back and forth, there is no need for setup.
In loop, we want to do two things: make the motor go forward, then make the motor go backwards. In or-
der to not break the motor, we should probably tell it to: go forward, stop, go backwards, stop. Motors don’t
always like to change direction without stopping in between.
To go forward, we have to use two commands:
motor.run(FORWARD);
This command tells the Galileo that we are going to go forwards with the motor. It does not tell the motor to
move, though.

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