Skip to content

Instantly share code, notes, and snippets.

View buildcircuit's full-sized avatar

Sagar Sapkota buildcircuit

View GitHub Profile
@buildcircuit
buildcircuit / lightsensor.ino
Created October 23, 2012 15:59
Light Sensor using Amarino Evaluation Shield
#include <MeetAndroid.h>
#include <LiquidCrystal.h>
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(13, 12, 10, 9, 8, 7);
MeetAndroid meetAndroid;
int ledPin = 11;
void setup()
@buildcircuit
buildcircuit / testamarino.ino
Created October 23, 2012 16:04
Test Amarino- Amarino Evaluation Shield
/*
Receives Test Events from your phone.
After it gets a test message the led 11 will blink
for one second.
*/
#include <MeetAndroid.h>
MeetAndroid meetAndroid;
int onboardLed = 11;
@buildcircuit
buildcircuit / sendsms.ino
Created October 23, 2012 16:09
Send SMS- Amarino Evaluation shield
#include <MeetAndroid.h>
#include <LiquidCrystal.h>
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(13, 12, 10, 9, 8, 7);
MeetAndroid meetAndroid;
String string;
void setup()
{
@buildcircuit
buildcircuit / ledcontrol.ino
Created October 23, 2012 16:22
PWM LED Control using Android serial emulator
/* buildcircuit.com*/
int ledPin = 11;
String inString = ""; // string to hold input
int value;
void setup() {
// Initialize serial communications:
Serial.begin(9600);
}
@buildcircuit
buildcircuit / HCSR04.ino
Created October 24, 2012 11:51
Ultrasonic range finder using Amarino Evaluation shield
#include <LiquidCrystal.h>
LiquidCrystal lcd(13, 12, 10, 9, 8, 7);
int TrigPin = 4;
int EchoPin = 2;
void setup()
{
lcd.begin(16, 2);
@buildcircuit
buildcircuit / lightsensor2.ino
Created October 25, 2012 13:17
Amarino project- Light sensor
/* 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 = 11;
void setup()
{
// Example from Sparkfun.com
// Original page: http://www.sparkfun.com/tutorials/246
// Clear the display and say "Hello World!"
// This sketch is for Arduino versions 1.0 and later
// If you're using an Arduino version older than 1.0, use
// the other example code available on the tutorial page.
// Use the softwareserial library to create a new "soft" serial port
// for the display. This prevents display corruption when uploading code.
#include <SoftwareSerial.h>
SoftwareSerial lcd(2,3);
//7- RX and 8- TX for connecting to Serial LCD
void setup()
{
Serial.begin(9600); // start serial monitor serial
lcd.begin(9600); // start lcd serial
lcd.print("buildcircuit.com");
// This sketch has to be uploaded to your Arduino
// get kit details: at http://www.buildcircuit.com/serial-lcd-do-it-yourselfdiy-kit/
#include <SoftwareSerial.h>
SoftwareSerial lcd(2,3);
// RX- PIN 2
// TX- PIN 3
// CONNECT PIN 3 OF ARDUINO TO RX PIN OF SERIAL LCD KIT
@buildcircuit
buildcircuit / gist:5132328
Last active May 6, 2016 20:45
Basic Experiment- Arduino and WTV020SD16P module- www.buildcircuit.com
/*
Example: Control a WTV020-SD-16P module to play voices from an Arduino board.
Created by Diego J. Arevalo, August 6th, 2012.
Released into the public domain.
*/
#include <Wtv020sd16p.h>
int resetPin = 2; // The pin number of the reset pin.
int clockPin = 3; // The pin number of the clock pin.