Skip to content

Instantly share code, notes, and snippets.

View buildcircuit's full-sized avatar

Sagar Sapkota buildcircuit

View GitHub Profile
#include <MeetAndroid.h>
MeetAndroid meetAndroid;
int redLed = 11;
int sensorPin = A0;
void setup()
{
Serial.begin(9600);
@buildcircuit
buildcircuit / App 2- RGB LED control
Created May 10, 2015 05:23
App 2- RGB LED control
/*
*/
// pins for the LEDs:
const int redPin = 3;
const int greenPin = 5;
const int bluePin = 6;
const int redPin2 = 9;
@buildcircuit
buildcircuit / gist:2ff4aa62c028ba265938
Last active August 29, 2015 14:21
Android-Arduino Lamp with Bluetooth and Infrared
#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
void setup() {
// Open serial communications:
Serial.begin(9600);
pinMode(9, OUTPUT);
// send an intro:
Serial.println("Enter a value");
@buildcircuit
buildcircuit / gist:0ecf3678349e430cad4a
Created May 24, 2015 06:29
Lamp on and off with remote and phone
#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() {
@buildcircuit
buildcircuit / Amarino lamp light sensor
Last active August 29, 2015 14:22
Light sensor for Amarino Lamp with BuildCircuit app
/* visit www.amarino-toolkit.net to know about Amarino*/
#include <MeetAndroid.h>
// declare MeetAndroid so that you can call functions with it
MeetAndroid meetAndroid;
int redLed = 9;
void setup()
{
@buildcircuit
buildcircuit / gist:686586bc1a995a4354b7
Last active August 29, 2015 14:22
Relay ON/OFF with Smart phone app
void setup() {
// Open serial communications:
Serial.begin(9600);
pinMode(2, OUTPUT);
// send an intro:
Serial.println("Enter a value");
Serial.println();
}
@buildcircuit
buildcircuit / gist:74abc82d6c9d19971ae3
Last active August 29, 2015 14:22
Cosmarino relay control- Simultaneously with Smart Phone App and Remote control
#include <IRremote.h>
const int irReceiverPin = 7;
const int relayPin = 2;
const int ledPin = 11;
IRrecv irrecv(irReceiverPin); //create an IRrecv object
decode_results decodedSignal; //stores results from IR sensor
void setup() {
Serial.begin(9600);
@buildcircuit
buildcircuit / gist:f1e7b398456dfdaa2066
Created May 30, 2015 06:22
Cosmarino- Relay control with remote control
#include <IRremote.h>
const int RECV_PIN = 7;
const int LED_PIN = 2;
const int light= 11;
IRrecv irrecv(RECV_PIN);
decode_results decodedSignal; //stores results from IR sensor
void setup()
{
@buildcircuit
buildcircuit / gist:509aca188a7313003dd2
Last active August 29, 2015 14:22
Amarino Lamp- light sensor, orientation sensor and more
#include <MeetAndroid.h>
// declare MeetAndroid so that you can call functions with it
MeetAndroid meetAndroid;
int redLed = 9;
void setup()
{
// use the baud rate your bluetooth module is configured to
// not all baud rates are working well, i.e. ATMEGA328 works best with 57600