An Arduino is a popular open-source single-board microcontroller. Learn how to program one and let the possibilities take shape.

Hack An Arduino
Hack An Arduino The Big Book Of Hacks

STEP 1
Arduino microcontrollers come in a variety of types. The most common is the Arduino UNO, but there are specialized variations. Before you begin building, do a little research to figure out which version will be the most appropriate for your project.

STEP 2
To begin, you’ll need to install the Arduino Programmer, aka the integrated development environment (IDE).

STEP 3
Connect your Arduino to the USB port of your computer. This may require a specific USB cable. Every Arduino has a different virtual serial-port address, so you ’ll need to reconfigure the port if you’re using different Arduinos.

STEP 4
Set the board type and the serial port in the Arduino Programmer.

STEP 5
Test the microcontroller by using one of the preloaded programs, called sketches, in the Arduino Programmer. Open one of the example sketches, and press the upload button to load it. The Arduino should begin responding to the program: If you’ve set it to blink an LED light, for example, the light should start blinking.

STEP 6
To upload new code to the Arduino, either you’ll need to have access to code you can paste into the programmer, or you’ll have to write it yourself, using the Arduino programming language to create your own sketch. An Arduino sketch usually has five parts: a header describing the sketch and its author; a section defining variables; a setup routine that sets the initial conditions of variables and runs preliminary code; a loop routine, which is where you add the main code that will execute repeatedly until you stop running the sketch; and a section where you can list other functions that activate during the setup and loop routines. All sketches must include the setup and loop routines.

STEP 7
Once you’ve uploaded the new sketch to your Arduino, disconnect it from your computer and integrate it into your project as directed.

This project was excerpted from The Big Book Of Hacks: 264 Amazing DIY Tech Projects, a compendium of ingenious and hilarious projects for aspiring makers. Buy it here. And for more amazing hacks, go here.

Want to read more articles like this, plus tips and tricks, home hacks, DIY projects, and more? Subscribe to Popular Science today, for less than $1 per issue!

5 Comments

in order to thank everyone, characteristic, novel style, varieties, low price and good quality, and the low sale price. Thank everyone

http://al.ly/_9v

http://al.ly/_9v

http://al.ly/_9v

│\_╭╭╭╭╭_/│  
 │         │\|/  
 │ ●     ● │—☆—  
 │○ ╰┬┬┬╯ ○│/|\  
 │   ╰—╯   /  
 ╰—┬○————┬○╯  
  ╭│     │╮  
  ╰┴—————┴╯

where can I get arduino boards, solderless breadboards, led's, resistors, etc. in Canada?
I'm starting a maker's club at our school and need parts

rob.

If you're in Canada you should get an EZ-B board. Google EZ-Robot. It's FAR simplier to use and made by a fellow Canadian. It's popularity is rising fast and Im surprised POPSCI hasn't seen it yet. You can easily automate things and make robots with it and the included software.

The best thing to propogate your thoughts and make them real from a single input to multiple scatterations can give you a multipower.

OK not bad i'll admit that. but still how can this help you? i'm trying to build my own robot and i need some parts, can any one help me?

Popular Tags

Regular Features



July 2013: The Future Of Flight

The incredible innovations, like drone swarms and perpetual flight, bringing aviation into the world of tomorrow. Plus: today's greatest sci-fi writers predict the future, the science behind the summer's biggest blockbusters, a Doctor Who-themed DIY 'bot, the organs you can do without, and much more.


Online Content Director: Suzanne LaBarre | Email
Senior Editor: Paul Adams | Email
Associate Editor: Dan Nosowitz | Email
Assistant Editor: Colin Lecher | Email
Assistant Editor: Rose Pastore | Email

Contributing Writers:

Kelsey D. Atherton | Email
Francie Diep | Email
Shaunacy Ferro | Email

circ-top-header.gif
circ-cover.gif
bmxmag-ps