View Adjustable Timer
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 <LiquidCrystal.h> | |
LiquidCrystal lcd(7,6,5,4,3,2); | |
const int set = 8; | |
int hours=10; | |
int start=11; | |
int relay=9; | |
int b=0,h=0,t=0; | |
int buttonState = 0; | |
int lastButtonState = 0; | |
View Arduino Alarm Clock
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 <Wire.h> | |
#include<EEPROM.h> | |
#include <RTClib.h> | |
#include <LiquidCrystal.h> | |
LiquidCrystal lcd(2, 3, 4, 5, 6, 7); | |
RTC_DS1307 RTC; | |
int tmp,Inc,hor,mIn,add=11; | |
int set=8; | |
int cge=9; | |
int mod=10; |
View Arduino LED Matrix
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 <LedControl.h> | |
int DIN = 13; | |
int CS = 12; | |
int CLK = 11; | |
byte E[8] = {0x3C,0x20,0x20,0x3C,0x20,0x20,0x20,0x3C}; | |
byte L[8] = {0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x3E}; | |
byte C[8] = {0x1C,0x20,0x20,0x20,0x20,0x20,0x20,0x1C}; |
View Arduino Light Sensor
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
int sensorPin = A0; // select the input pin for the potentiometer | |
//int ledPin = 13; // select the pin for the LED | |
int sensorValue = 0; // variable to store the value coming from the sensor | |
void setup() { | |
// declare the ledPin as an OUTPUT: | |
Serial.begin(9600); | |
pinMode(ledPin, OUTPUT); | |
pinMode(11,OUTPUT); | |
} |
View Arduino Based Digital Thermometer
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<LiquidCrystal.h> | |
LiquidCrystal lcd(7,6,5,4,3,2); | |
const int Sensor = A0; | |
byte degree_symbol[8] = | |
{ | |
0b00111, | |
0b00101, | |
0b00111, | |
0b00000, |
View Interfacing LCD with Arduino
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<LiquidCrystal.h> | |
LiquidCrystal lcd (5, 4, 3, 2, 1, 0); // sets the interfacing pins | |
Void setup () | |
{ | |
lcd.begin(16, 2); // initializes the 16x2 LCD | |
} | |
Void loop () | |
{ | |
lcd.setCursor (0, 0); //sets the cursor at row 0 column 0 | |
lcd.print ("Electronichub.org"); // prints 16x2 LCD MODULE |
View DC Motor Control With Arduino
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
const int potPin = A0; | |
const int fwdbuttonPin = 13; | |
const int bckbuttonPin = 12; | |
const int pin1 = 11; | |
const int pin2 = 10; | |
int potValue = 0; | |
int motorValue = 0; | |
int fwdbuttonState = 0; | |
int bckbuttonState = 0; |
View Arduino Servo Motor Code 1
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 <Servo.h> | |
Servo servosweep; | |
float pos = 0.0; | |
void setup() | |
{ | |
View Arduino Servo Motor Code 2
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 <Servo.h> | |
Servo servoknob; | |
int potpin = 0; | |
int val; | |
void setup() | |
{ | |
servoknob.attach(11); |
View Arduino Android Communication Bluetooth Code
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
const int led = 12; | |
char data = 0; | |
void setup() | |
{ | |
Serial.begin(9600); | |
pinMode(led, OUTPUT); | |
} | |
void loop() | |
{ | |
if(Serial.available() > 0) |
OlderNewer