Skip to content

Instantly share code, notes, and snippets.

View Fade_LCD.ino
// 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 led = 11; // the PWM pin the LED is attached to
int brightness = 0; // how bright the LED is
int fadeAmount = 5; // how many points to fade the LED by
@buildcircuit
buildcircuit / blink_LCD.ino
Created Jul 2, 2020
Blink 5mm LED on the LCD Shield
View blink_LCD.ino
@buildcircuit
buildcircuit / cd4029_ldr.ino
Created Jun 30, 2020
CD4029 up and down counter module responding to sensor
View cd4029_ldr.ino
int sensorPin = A0; // select the input pin for the photoresistor
int CLK = 13; // Pin 13 of Arduino gives pulse to CD4029 module
int sensorValue = 0; // variable to store the value coming from the sensor
int RESET=11; // connect to reset pin of CD4029
int UD=12; // connect to UD pin of CD4029
void setup() {
Serial.begin(9600);
@buildcircuit
buildcircuit / cd4029.ino
Last active Jun 30, 2020
CD4029 up and down counter
View cd4029.ino
// Basic test of CD4029 up and down counter module
// Module designed by Sagar Sapkota from www.buildcircuit.net
void setup() {
pinMode(13, OUTPUT);// Connect pin 13 to CLK pinl
pinMode(12,OUTPUT); // Connect pin 12 to UD
//RESET THE COUNTER
// Connect Pin 11 of Arduino to RST Pin
pinMode(11,OUTPUT);
digitalWrite(11,HIGH);
View gist:5133774
#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 / Reset-DS1307
Created Jun 21, 2014
Reset DS1307 real time clock
View Reset-DS1307
//Arduino 1.0+ Only
//Arduino 1.0+ Only
#include "Wire.h"
#define DS1307_ADDRESS 0x68
byte zero = 0x00; //workaround for issue #527
void setup(){
Wire.begin();
@buildcircuit
buildcircuit / gist:5132328
Last active May 6, 2016
Basic Experiment- Arduino and WTV020SD16P module- www.buildcircuit.com
View gist:5132328
/*
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.
@buildcircuit
buildcircuit / gist:5132589
Created Mar 11, 2013
EXPERIMENT 2- ARDUINO AND WTV020SD-16P MODULE
View gist:5132589
// 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.
View gist:6338792
/*
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:
View gist:6113471
/*
Projeto Arduino - Arduino com sensor de proximidade ultrasonico HHC-SRO4
Por Jota
----------------------------------------
--=<| www.ComoFazerAsCoisas.com.br |>=--
----------------------------------------
*/
//Incluindo biblioteca Ultrasonic.h
#include "Ultrasonic.h"