Skip to content

Instantly share code, notes, and snippets.

View buildcircuit's full-sized avatar

Sagar Sapkota buildcircuit

View GitHub Profile
@buildcircuit
buildcircuit / gist:5132589
Created March 11, 2013 07:42
EXPERIMENT 2- ARDUINO AND WTV020SD-16P MODULE
// WWW.BUILDCIRCUIT.COM//
//SELECTOR BTN = pin 6
//TRIGGER = pin 7
//RESET = PIN 2
//CLOCK = PIN 3
//DATA = PIN 4
//BUSY = PIN 5
#include <Wtv020sd16p.h>
int resetPin = 2; // The pin number of the reset pin.
@buildcircuit
buildcircuit / gist:5133774
Created March 11, 2013 12:01
Amarino Robot
#include <MeetAndroid.h>
#define supplyVolts 6
#define motorVolts 5
#define baudRate 57600
// If you are using a General Bluetooth adapter(available on buildcircuit.net), then, it works with 9600bps baud rate
MeetAndroid phone;
int left = 255; // midpoint
int right = 255;
int pwmLeftPin = 3;
@buildcircuit
buildcircuit / gist:5154711
Created March 13, 2013 18:16
LM35 temperature sensor
/*
LM35 Thermometer
*
*LM35 simpy connected to: 5+
* 0V
* Analog Pin 5
www.circuit-blog.com
*/
#include <LiquidCrystal.h>
@buildcircuit
buildcircuit / gist:5906957
Created July 2, 2013 05:28
Motion sensor
/////////////////////////////
//VARS
//the time we give the sensor to calibrate (10-60 secs according to the datasheet)
int calibrationTime = 30;
//the time when the sensor outputs a low impulse
long unsigned int lowIn;
@buildcircuit
buildcircuit / gist:5907275
Created July 2, 2013 07:04
315Mhz wireless transmitter
/*
SimpleSend
This sketch transmits a short text message using the VirtualWire library
connect the Transmitter data pin to Arduino pin 12
*/
#include <VirtualWire.h>
void setup()
{
// Initialize the IO and ISR
vw_setup(2000); // Bits per sec
@buildcircuit
buildcircuit / gist:5907280
Created July 2, 2013 07:05
315Mhz wireless receiver
/*
SimpleReceive
This sketch displays text strings received using VirtualWire
Connect the Receiver data pin to Arduino pin 11
*/
#include <VirtualWire.h>
byte message[VW_MAX_MESSAGE_LEN]; // a buffer to store the incoming messages
byte messageLength = VW_MAX_MESSAGE_LEN; // the size of the message
void setup()
{
@buildcircuit
buildcircuit / gist:5907441
Created July 2, 2013 07:48
315Mhz wireless transmitter- experiment 2
// TRANSMITTER
// Connect data pin to Pin 12 of Arduino
#include <VirtualWire.h> // you must download and install the VirtualWire.h to your hardware/libraries folder
int numbers[3]; // Change 3 to number of integers you wish to send.
void setup()
{
// Initialise the IO and ISR
@buildcircuit
buildcircuit / gist:5907445
Last active December 19, 2015 05:49
315Mhz wireless receiver- experiment 2
// RECEIVER
// Connect data pin to Pin 11 of Arduino
#include <VirtualWire.h> // you must download and install the VirtualWire.h to your hardware/libraries folder
int numbers[3]; // Change 3 to number of integers you wish to send.
void setup()
{
Serial.begin(9600);
/*
Projeto Arduino - Arduino com sensor de proximidade ultrasonico HHC-SRO4
Por Jota
----------------------------------------
--=<| www.ComoFazerAsCoisas.com.br |>=--
----------------------------------------
*/
//Incluindo biblioteca Ultrasonic.h
#include "Ultrasonic.h"
/*
AM2302 Temperature / Humidity Sensor (DHT22)
Current Code
Created by Derek Erb 30/01/2013
Modified 30/01/2013
Requirement : Arduino + AM2302 sensor connected to pin 2
DHT Library from: