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
/* | |
IR_remote_tester_and_detector | |
Connect the output pin of Infrared remote to DIG 2 | |
Connect an LED to pin 13. | |
*/ | |
#include <IRremote.h> | |
const int irReceiverPin = 2; | |
const int ledPin = 13; | |
IRrecv irrecv(irReceiverPin); //create an IRrecv object |
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 | |
*/ | |
int ledPin=13; | |
int data = 8;//Connect Pin 8 of Arduino to pin 2 of CD4094 or HEF4794 | |
int strob = 12;//Connect Pin 12 to Pin 1 of CD4094 | |
int clock = 10;//Connect pin 10 of Arduino to pin 3 of CD4094 | |
int oe = 9;//Connect pin 9 of Arduino to pin 15 of CD4094 | |
int count = 0; |
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
const int redPin = 3; | |
#define FADESPEED 1 | |
void setup() { | |
Serial.begin(38400); | |
pinMode(redPin, OUTPUT); |
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
void setup() { | |
// initialize serial communication: | |
Serial.begin(38400);// this can be different for your Bluetooth module. It can be 9600 also. | |
// initialize the LED pins: | |
for (int thisPin = 2; thisPin < 13; thisPin++) { | |
pinMode(thisPin, OUTPUT); | |
} | |
} | |
void loop() { |
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() { | |
// initialize serial communication: | |
Serial.begin(38400);// this can be different for your Bluetooth module. It can be 9600 also. | |
// initialize the LED pins: | |
for (int thisPin = 2; thisPin < 13; thisPin++) { | |
pinMode(thisPin, OUTPUT); | |
} | |
} | |
void loop() { |
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
/* | |
PROJECT: Ardroid | |
CODED BY: Anurag Goel | |
PUBLIC Licence Free To Modify | |
*/ | |
#define START_CMD_CHAR '*' | |
#define END_CMD_CHAR '#' | |
#define DIV_CMD_CHAR '|' | |
#define CMD_DIGITALWRITE 10 |
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
/****RF SWITCH WITH ARDUINO*/ | |
// The 4 output ports of RF module are connected to A0-A3 | |
//When the Analog pins receive the signal from the RF module, the Arduino activates the corresponding pin. | |
//For example, when A0 receives a signal, it will turn on Arduino Pin number D2 | |
int sensorPin0 = A0; | |
int Pin0 = 2; // pin D2 | |
int sensorValue0 = 0; |
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
/****RF SWITCH WITH ARDUINO*/ | |
// The 4 output ports of RF module are connected to A0-A3 | |
//When the Analog pins receive the signal from the RF module, the Arduino activates the corresponding pin. | |
//For example, when A0 receives a signal, it will turn on Arduino Pin number D2 | |
int sensorPin0 = A0; | |
int Pin0 = 2; | |
int sensorValue0 = 0; |
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() { | |
// initialize serial communication: | |
Serial.begin(38400);// this can be different for your Bluetooth module. It can be 9600 also. | |
// initialize the LED pins: | |
for (int thisPin = 2; thisPin < 13; thisPin++) { | |
pinMode(thisPin, OUTPUT); | |
} | |
} | |
void loop() { |
NewerOlder