EasyManuals Logo

Arduino uno User Manual

Arduino uno
311 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 #228 background imageLoading...
Page #228 background image
variable, and when we encounter a newline character, we also set the
input_available
flag to true. This way, the
loop
function can determine whether a
new command has been received and which command it was.
In
loop
, we wait for commands. When a new command arrives, we check
whether its supported. If it is supported, we send the corresponding control
code. Otherwise, we print an error message.
Compile and upload the sketch, and you can control the TV of your choicea
Samsung TV, in this exampleusing any serial monitor, which is quite cool
already. The interface is still awkward for less geeky people, so in the next
section, youll learn how to create a more user-friendly interface.
Controlling Infrared Devices Remotely with Your Browser
Weve already created several projects that you can control using a serial
monitor. For programmers, thats a nice and convenient interface, but as
soon as you want to present your projects to your nontechnical friends, youd
better have something more user-friendly and colorful.
Now well implement a Google Chrome app to create a nice user interface for
our cloned remote control. Before you proceed, you should read Appendix 4,
Controlling the Arduino with a Browser, on page 267, if you havent already.
The Chrome apps
manifest.json
file contains no surprises. It defines the appli-
cation name and grants the application access to the serial port.
RemoteControl/TvRemoteUI/manifest.json
{
"manifest_version": 2,
"name": "TV Remote Emulator",
"version": "1",
"permissions": [ "serial" ],
"app": {
"background": {
"scripts": ["background.js"]
}
},
"minimum_chrome_version": "33"
}
Chapter 12. Creating Your Own Universal Remote Control 212
report erratum discuss
www.it-ebooks.info

Table of Contents

Other manuals for Arduino uno

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Arduino uno and is the answer not in the manual?

Arduino uno Specifications

General IconGeneral
Form factorArduino
CertificationRoHS, FC, CE
Processor model-
Processor frequency- MHz
Microcontroller modelATmega328
Microcontroller frequency16 MHz
DC input voltage7-12 V
Operating voltage5 V
DC current per I/O pin40 mA
Flash memory0.032 MB
Maximum internal memory- GB
SRAM (Static Random Access Memory)2 KB
EEPROM (Electrically Erasable Programmable Read-Only Memory)1 KB
Wi-FiNo
Number of analog I/O pins6
Number of digital I/O pins14
Weight and Dimensions IconWeight and Dimensions
Board dimensions53.4 x 68.6 mm

Related product manuals