Skip to content

Instantly share code, notes, and snippets.

View sachendra003's full-sized avatar

Noobie_Electronic sachendra003

View GitHub Profile
@sachendra003
sachendra003 / _004_LCD_I2C_adapter.ino
Last active July 4, 2019 08:44
LCD+I2C adapter Basic
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2);
void setup() {
lcd.init();
lcd.backlight();
lcd.setCursor(0, 0);
lcd.print("Noobie Electronic");
lcd.setCursor(0, 1);
@sachendra003
sachendra003 / _002_Arduino_Morse_code.ino
Last active July 4, 2019 08:45
Morse Code Project. This code will loop through a string of characters and convert these to morse code. It will blink two LED lights and play audio on a speaker.
/*
Morse Code Project
This code will loop through a string of characters and convert these to morse code.
It will blink two LED lights and play audio on a speaker.
*/
//**************************************************//
// Type the String to Convert to Morse Code Here //
@sachendra003
sachendra003 / Arduino_morse_signal_001.ino
Last active July 4, 2019 08:46
Arduino Morse Code. SOS only make LED Blinking
int ledPin=8;
void setup() {
// put your setup code here, to run once:
pinMode(ledPin,OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
@sachendra003
sachendra003 / IR_Remote_control_Home.ino
Last active July 4, 2019 08:47
IR Remote Controlled Home Appliances Using Arduino
#include<LiquidCrystal.h>
#include <IRremote.h>
int RECV_PIN = 9; // Output pin of TSOP sensor
IRrecv irrecv(RECV_PIN);
decode_results results;
LiquidCrystal lcd(7,6,5,4,3,2);
#define light1 10
#define light2 11
@sachendra003
sachendra003 / temp.ino
Last active July 4, 2019 08:47
Temperature Monitoring on Smartphone
#include <Adafruit_Sensor.h>
/*
1. Go to sketch
2. Go to Manage Libraries
3. Install Adafruit unified sensor
4. Add that Adafruit unified sensor file
*/
@sachendra003
sachendra003 / cArray.c
Created January 1, 2018 16:59
C Program to Find index of Array
#include <stdio.h>
#include <stdlib.h>
int main()
{
char a[]={'a','b','c','d'};
int i,p,c=0;
char num;
int n=sizeof(a)/sizeof(a[0]);
@sachendra003
sachendra003 / array234.c
Created January 1, 2018 16:26
C program to Find Index of Array #1
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a[]={1,3,4,5,7,8,9,45,11,65,2,6};
int num,i,p,c=0;
int n=sizeof(a)/sizeof(a[0]);
printf("Enter a value :\n");