This file contains 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 <IRremote.h> | |
int redLed = 9; | |
const int irReceiverPin = 2; | |
const int ledPin = 3; | |
IRrecv irrecv(irReceiverPin); //create an IRrecv object | |
decode_results decodedSignal; //stores results from IR sensor | |
void setup() { |
This file contains 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() { | |
// Open serial communications: | |
Serial.begin(9600); | |
pinMode(9, OUTPUT); | |
// send an intro: | |
Serial.println("Enter a value"); |
This file contains 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 <MeetAndroid.h> | |
#include <IRremote.h> | |
MeetAndroid meetAndroid; | |
int redLed = 9; | |
const int irReceiverPin = 2; | |
const int ledPin = 3; | |
IRrecv irrecv(irReceiverPin); //create an IRrecv object | |
decode_results decodedSignal; //stores results from IR sensor |
This file contains 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
/* | |
*/ | |
// pins for the LEDs: | |
const int redPin = 3; | |
const int greenPin = 5; | |
const int bluePin = 6; | |
const int redPin2 = 9; |
This file contains 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 <MeetAndroid.h> | |
MeetAndroid meetAndroid; | |
int redLed = 11; | |
int sensorPin = A0; | |
void setup() | |
{ | |
Serial.begin(9600); |
This file contains 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
/* | |
Sends sensor data to Android | |
(needs SensorGraph and Amarino app installed and running on Android) | |
*/ | |
#include <MeetAndroid.h> | |
MeetAndroid meetAndroid; | |
int sensor = A1; | |
int redLed = 11; |
This file contains 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
/* | |
Multicolor Lamp (works with Amarino and the MultiColorLamp Android app) | |
- based on the Amarino Multicolor Lamp tutorial | |
- receives custom events from Amarino changing color accordingly | |
author: Bonifaz Kaufmann - December 2009 | |
*/ | |
#include <MeetAndroid.h> |
This file contains 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 <LiquidCrystal.h> | |
// initialize the library with the numbers of the interface pins | |
LiquidCrystal lcd(8, 9, 4, 5, 6, 7); | |
void setup() | |
{ | |
// set up the LCD's number of rows and columns: | |
lcd.begin(16, 2); | |
// Print a message to the LCD. | |
lcd.print("Hello, world!"); | |
} |
This file contains 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 mq3_analogPin = A0; // connected to the output pin of MQ3 | |
void setup(){ | |
Serial.begin(9600); // open serial at 9600 bps | |
} | |
void loop() | |
{ | |
// give ample warmup time for readings to stabilize |
This file contains 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
/* Shift Out Data | |
Decimal to Binary using Android Emulator | |
* | |
works with Arduino 1.0 and above | |
*/ | |
int ledPin=11; | |
int data = 8;//Connect Pin 8 of Arduino to pin 2 of CD4094 or HEF4794 | |
int strob = 7;//Connect Pin 12 to Pin 1 of CD4094 | |
int clock = 10;//Connect pin 10 of Arduino to pin 3 of CD4094 |