Skip to main content

Let's Go Adruino! How to get started.

arduino.kevinbrookhouser.com


If you're interested in bringing coding or making or both into your classroom, you should definitely get started with Arduino.

With a very small investment, you can get started. Here's an Amazon shopping list with the components I've used to build my Arduino on the Road kit.


With just a little bit of training, my students have used Arduino to make art projects, museum exhibits, and robots coding in C++. 

Materials

  1. Arduino Uno board (or fake Arduino Uno board)
  2. Breadboard
  3. Jumper wires
  4. LEDs
  5. 220 Ohm resistors
  6. Computer (Mac, Windows, Linux preferred). If you have a chromebook, we can still get you started. 

Get your computer ready

MacOS, Windows, Linux

Chromebooks

Design your board without a board


Set up the board

Set up your board following the drawing below. To protect your hardware, please observe the following tips.

  • Only wire the Arduino while the board is plugged into a computer, battery, or wall outlet. 
  • Always use recommended resistors when connecting peripherals such as LED lights, buttons, and actuators. In this project, I like to make sure I am forcing the current to the LED by crossing the gutter along the middle of the breadboard. 

Power up your board

Connect your Arduino to your computer using a USB cord. You'll need to declare that you're using an Arduino Uno board (even if you're using the generic board I suggest). Also choose the port. If you have an option, look for the port that includes the letters USB. If you only have one option, choose that one. 

Check out your code

/*
  Blink
  Turns on an LED on for one second, then off for one second, repeatedly.

  Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO 
  it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to
  the correct LED pin independent of which board is used.
  If you want to know what pin the on-board LED is connected to on your Arduino model, check
  the Technical Specs of your board  at https://www.arduino.cc/en/Main/Products
  
  This example code is in the public domain.

  modified 8 May 2014
  by Scott Fitzgerald
  
  modified 2 Sep 2016
  by Arturo Guadalupi
  
  modified 8 Sep 2016
  by Colby Newman
*/


// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(LED_BUILTIN, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);                       // wait for a second
  digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);                       // wait for a second
}

The first part of this code is merely documentation to help explain what's happening. The part beginning with "void setup" declares that pin

Compile and upload


Want to learn more? Arduino offers more detailed instructions, and gives you options to take your learning to the next level. 


Comments

Post a Comment

Popular posts from this blog

Anyone can make an Android App

Android App Inventor android.kevinbrookhouser.com 1. Go to and bookmark       ai2.appinventor.mit.edu 2. Start a new project     "grumpyapp" (no spaces or symbols) 3. Drag a button into your screen 4. Make the button this image. 5. Download these MP3 files.   meow  and  hiss . upload it as a new sound in App Inventor. 6. If you have an Android device, get the  A12 Companion App for Android  and c onnect your Android to the computer. 7. If you don't have an Android device, get this  chrome app  and install  this apk .  8. Go to "Blocks" and create this. MITs Android App Inventor Get the App! Connect Android Device to Computer over WIFI Get the Moto E Animal Dashboard Video bit.ly/ARC_Welder_Chrome You need this cat. Right click [save image as]. And you need the meow at the bottom of this page. Hello Purr Instructions Magic 8 Ball Instructions The App Inventor YouTube Channel Publ

Assignment #1: Introduce Yourself

As I mentioned in my previous post, the first thing I do in class is have my students write and deliver two minute introductions. Obviously it gives me a sense of their writing and presentation skills, but more importantly it allows me to know who they are. Here's the prompt I give them: Your first formal assignment is to compose and present a short introduction so I may better get to know you. I'm only looking for a two minute introduction. I would like you to type it out and then read it to the class. Make sure you save your work somewhere because I'm going to ask you to post it in your portfolio (more on that later). I'd like to get a sense of who you are and what your voice is. Not sure what to write? No problem ... here are some ideas to help get you started: What are you passionate about? What are some of your goals for the year? For your life? What is the most important physical object in your life? (take a photo of it and bring it to class) What is y