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
/* | |
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: |
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
/* | |
Projeto Arduino - Arduino com sensor de proximidade ultrasonico HHC-SRO4 | |
Por Jota | |
---------------------------------------- | |
--=<| www.ComoFazerAsCoisas.com.br |>=-- | |
---------------------------------------- | |
*/ | |
//Incluindo biblioteca Ultrasonic.h | |
#include "Ultrasonic.h" |
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
// 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); |
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
// 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 |
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
/* | |
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 |
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
/* | |
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() | |
{ |
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
///////////////////////////// | |
//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; |
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
/* | |
LM35 Thermometer | |
* | |
*LM35 simpy connected to: 5+ | |
* 0V | |
* Analog Pin 5 | |
www.circuit-blog.com | |
*/ | |
#include <LiquidCrystal.h> |
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
// 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 | |
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 <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"); |