Skip to content

Instantly share code, notes, and snippets.

@arduinoboard
arduinoboard / rov_working2.ino
Created April 18, 2012 00:11
The file that is currently on an Arduino Mega 2560 or Mega ADK with a serial number of 64935343733351700000
int RFM1 = 9; // right motor 1
int LFM1 = 10;
int UM1 = 11;
int analogPin = 0;
int analogPin2 = 1;
int analogPin3 = 2;
int val = 0; // variable to store the read value
int val2 = 0; // variable to store the read value
int val4 = 0;
int RFM1RP1 = 22; //right forward motor 1 relay pin 1
@arduinoboard
arduinoboard / NRFping_client.ino
Created April 4, 2012 14:38
The file that is currently on an Arduino Pro or Pro Mini (3.3V, 8 MHz) w/ ATmega328 with a serial number of A4016EYA
/**
* A Mirf example to test the latency between two Ardunio.
*
* Pins:
* Hardware SPI:
* MISO -> 12
* MOSI -> 11
* SCK -> 13
*
* Configurable:
@arduinoboard
arduinoboard / RFIDtest.ino
Created March 28, 2012 00:06
The file that is currently on an Arduino Mega 2560 or Mega ADK with a serial number of CC2B6802ERDG6ML0
#include <avr/pgmspace.h>
#define TAG_LEN 12 // length of a single tag in bytes
int ledPin = 13; //feedback led
int ledPin2 = 6; //feedback led
@arduinoboard
arduinoboard / Command.cpp
Created March 23, 2012 08:50
The file that is currently on an Arduino Uno with a serial number of 64932343738351217080
/*
Copyright (c) 2011 Guy Carpenter
*/
#include <Arduino.h>
#include "Command.h"
#define CMDBUF_LEN 40
@arduinoboard
arduinoboard / redpark.ino
Created March 22, 2012 18:44
The file that is currently on an Arduino Uno with a serial number of 64935343333351504212
// redpark cable example for Rsc_Demo that comes with redpark cable
// written by: Jimmy Chion | IDEO | 2012
//
// hardware:
// redpark cable (19-pin iOS connector to RS-232 Serial) http://www.redpark.com/c2db9.html
// RS232 shifter (to UART): http://www.sparkfun.com/products/449
// Note: Don't forget that TX->RX and RX->TX
//
#define MAX_CHAR_TO_RX 30
@arduinoboard
arduinoboard / Command.cpp
Created March 20, 2012 23:11
The file that is currently on an Arduino Uno with a serial number of 6493234383835120E1B0
/*
Copyright (c) 2011 Guy Carpenter
*/
#include <Arduino.h>
#include "Command.h"
#define CMDBUF_LEN 40
@arduinoboard
arduinoboard / temp_rh.ino
Created March 20, 2012 19:17
The file that is currently on an Arduino Uno with a serial number of CC2B9309F0DG6LL0
#include <OneWire.h>
#define ZeroPercentVoltage 0.8;
float val = 0;
float RH = 0;
float my_room_temperature = 20; //in degrees C !
float max_voltage = 3.27;
OneWire ds(2); // Sensor DS18b20 on pin 2
@arduinoboard
arduinoboard / sketch_mar19a.ino
Created March 19, 2012 16:51
The file that is currently on an Arduino Duemilanove w/ ATmega328 with a serial number of A6006hlM
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.println("Arf Arf Arf");
}
@arduinoboard
arduinoboard / sketch_mar19a.ino
Created March 19, 2012 16:49
The file that is currently on an Arduino Duemilanove w/ ATmega328 with a serial number of A600ahYD
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.println("Arf Arf Arf");
}
@arduinoboard
arduinoboard / AnalogReadSerial.ino
Created March 19, 2012 16:38
The file that is currently on an Arduino Duemilanove w/ ATmega328 with a serial number of A600ahWR
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.println("Arf Arf Arf");
}