View ledlamppwn.ino
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); |
View LEDcontrol.ino
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; |
View btexperiment2.ino
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() { |
View BT-test.ino
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() { |
View ardroid.ino
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 |
View 6pinRF test.ino
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; |
View RFBT4.ino
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; |
View BTmodule.ino
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() { |
View 23 up and down counter.ino
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
// connect 9V to the counter module | |
// Connect 5V of Arduino to 5V of module | |
// Connect GND of Arduino to GND of module | |
// Connect pin 13 of Arduino to pin 5 of module | |
// Connect pin 12 of Arduino to pin 4 of module | |
// Connect pin 11 of Arduino to pin 14 of module | |
// other connections | |
//Use this example: https://www.arduino.cc/en/tutorial/debounce and make two exactly same circuits, connect one switch to pin 2 and other to pin 3 of Arduino |
View RGB-Test_LCD.ino
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 the library code: | |
#include <LiquidCrystal.h> | |
// initialize the library with the numbers of the interface pins | |
LiquidCrystal lcd(13, 12, 10, 9, 8, 7); | |
int REDLED = 3; // the PWM pin the LED is attached to | |
int BLUELED = 5; | |
int GREENLED= 6; |
NewerOlder