This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* A Mirf example to test the latency between two Ardunio. | |
* | |
* Pins: | |
* Hardware SPI: | |
* MISO -> 12 | |
* MOSI -> 11 | |
* SCK -> 13 | |
* | |
* Configurable: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Copyright (c) 2011 Guy Carpenter | |
*/ | |
#include <Arduino.h> | |
#include "Command.h" | |
#define CMDBUF_LEN 40 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Copyright (c) 2011 Guy Carpenter | |
*/ | |
#include <Arduino.h> | |
#include "Command.h" | |
#define CMDBUF_LEN 40 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup() { | |
Serial.begin(9600); | |
} | |
void loop() { | |
Serial.println("Arf Arf Arf"); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup() { | |
Serial.begin(9600); | |
} | |
void loop() { | |
Serial.println("Arf Arf Arf"); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup() { | |
Serial.begin(9600); | |
} | |
void loop() { | |
Serial.println("Arf Arf Arf"); | |
} |