Intro to Arduino Downloads

Arduino Starter Kit PDF (Complete)
This is the complete PDF that comes on the CD in most Arduino starter kits. The directions for setup are based on windows or mac, but in general the wiring diagrams and code work without much or any modification using codebender on a Chromebook.

Code for the chapters in the Arduino Starter Kit PDF:
Remember that sometimes these sketches reference other Arduino libraries. Most of the time codebender already has the libraries in its collection, but if you ever get a compiler error saying something like “Could not find “[blahBlah].h” this means the library by that name was not found in codebender’s collection. Sometimes the name is just a little different, but sometimes they are completely missing a library that came on the kit’s CD.

To check what libraries are in codebender’s collection check out this page here:
https://codebender.cc/libraries

If you don’t find a library matching the exact name of one used in a sketch you are trying to run, its going to error out. The normal version of codebender lets you upload your own libraries, not sure about the educational version. I will try to make notes for the sketches below when they have been changed or adapted for use with codebender.









*Requires “pitches.h” library

*Requires “SimpleDHT.h” library, which is NOT in codebender. Use codebender adapted version of the code:

*Requires “DHT.h” library, which is IS already in codebender. This version is recommended for students using codebender.

*Requires “IRremote.h”

*Requires Servo.h





*Requires “HC-SR04.h” (or compatible library from codebender)





*Requires “Keypad.h”







*Requires “LiquidCrystal.h”

*Requires “LiquidCrystal.h” (Because it displays temperature on the screen)









*Requires “Stepper.h”

*Requires “IRremote.h” and “Stepper.h”

2 Wheel Drive Robot Kit:

Instruction Book for the 2WD Robot kit:

*Requires “Servo.h” (Probably already in codebender)

*Requires “SR04.h” (Hopefully already in codebender?)

*Requires “IRremote.h”



*Requires “IRremote.h”



Basic RF Receive Sample:

// library
#include <VirtualWire.h>

byte message[VW_MAX_MESSAGE_LEN]; // a buffer to store the incoming messages
byte messageLength = VW_MAX_MESSAGE_LEN; // the size of the message

void setup()
{
  Serial.begin(9600);
  Serial.println("Listening for messages...");

  vw_set_rx_pin(12); // pin
  vw_setup(2000); // bps
  vw_rx_start();
}

void loop()
{
  if (vw_get_message(message, &messageLength)) // non-blocking
  {
    Serial.print("Received Message: ");
    for (int i = 0; i < messageLength; i++)
    {
      Serial.write(message[i]);
    }
    Serial.println();
  }
}