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
/*created by Prasant Bhatt | |
www.facebook.com/elefy | |
you can do whatever you want with this code | |
*/ | |
#include <LiquidCrystal.h>` | |
LiquidCrystal lcd(10, 9, 8, 7, 6, 5); | |
// constants won't change. They're used here to | |
// set pin numbers: | |
const int buttonPin1 = 2; // the number of the pushbutton pin | |
const int buttonPin2 = 3; |
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
#define F_CPU 1000000UL | |
#include <inttypes.h> | |
#include <avr/io.h> | |
#include <avr/interrupt.h> | |
#include <avr/signal.h> | |
#include <util/delay.h> | |
#include <avr/iom32.h> | |
#define datapin 0 // define datapin from atmega8 to 74HC164 | |
#define clockpin 1 // define clock pin from atmega8 to 74HC164 | |
#define Epin 2 // controllerpin that enables LCD |
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
/* | |
* Project name: | |
Home alarm system with PIC and PIR Motion Sensor | |
* Copyright: | |
(c) LET'S THINK BINARY, 2017. | |
* Revision History: | |
Version 0.0 | |
* Description: | |
PIR sensor is ideal for alarm systems, light switch controllers, and similar systems where human presence needs to be detected. |
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
#define _LCD_FIRST_ROW 0x80 //Move cursor to the 1st row | |
#define _LCD_SECOND_ROW 0xC0 //Move cursor to the 2nd row | |
#define _LCD_THIRD_ROW 0x94 //Move cursor to the 3rd row | |
#define _LCD_FOURTH_ROW 0xD4 //Move cursor to the 4th row | |
#define _LCD_CLEAR 0x01 //Clear display | |
#define _LCD_RETURN_HOME 0x02 //Return cursor to home position, returns a shifted display to | |
//its original position. Display data RAM is unaffected. | |
#define _LCD_CURSOR_OFF 0x0C //Turn off cursor | |
#define _LCD_UNDERLINE_ON 0x0E //Underline cursor on | |
#define _LCD_BLINK_CURSOR_ON 0x0F //Blink cursor on |
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" | |
// initialize the library with the numbers of the interface pins | |
// lcd(RS, E, d4, d5, d6, d7) | |
LiquidCrystal lcd(2, 3, 4, 5, 6, 7); | |
float voltage = 0.0; | |
float V=0.0; | |
float R1 = 100000.0; // resistance of R1 (100K) | |
float R2 = 10000.0; // resistance of R2 (10K) | |
int analog_value= 0; |
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 <Keypad.h> | |
#include <LiquidCrystal.h> | |
// initialize the library with the numbers of the interface pins | |
LiquidCrystal lcd(9, 8, 7, 6, 5, 4); | |
const byte ROWS = 4; //four rows | |
const byte COLS = 4; //four columns | |
//define the cymbols on the buttons of the keypads |
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
/* | |
* Project name: | |
Automatic Level tank control with microcontroller | |
* Copyright: | |
(c) lET'S THINk BINARY, 2017. | |
* Revision History: | |
V0.0 | |
* Description: | |
Automatic Level tank using PIC Microcontroller . | |
* Test configuration: |
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
/* | |
* one_way_communication_Rx.c | |
* | |
* Created: 12/19/2015 6:48:52 PM | |
* Author: keshab | |
*/ | |
#define F_CPU 1000000UL | |
#include <avr/io.h> | |
#include <util/delay.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
/* | |
* Created: 12/19/2015 5:44:02 PM | |
* Author: prasant | |
website : www.electronify.org | |
facebook :www.facebook.com/elefy | |
*/ | |
//transmitter part | |
#define F_CPU 1000000UL | |
#include <avr/io.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
#define F_CPU 1000000UL | |
#include<avr/io.h> | |
#include<util/delay.h> | |
void watch_dog_timer_reset_function(void) | |
{ | |
if(bit_is_set(MCUCSR,WDRF)) | |
{ | |
PORTD=0xff; | |
_delay_ms(500); | |
} |