View Digital_Voltmeter_using_8051_VoltageSensor_ADC0804.c
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<reg51.h> | |
#define lcd P3 | |
#define dat P2 | |
sbit rs=P1^6; | |
sbit e=P1^7; | |
void delay (int); | |
void display (unsigned char); | |
void cmd (unsigned char); |
View blinkingLED.asm
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
ORG 00H ; Assembly Starts from 0000H. | |
; Main Program | |
START: MOV P1, #0XFF ; Move 11111111 to PORT1. | |
CALL WAIT ; Call WAIT | |
MOV A, P1 ; Move P1 value to ACC | |
CPL A ; Complement ACC | |
MOV P1, A ; Move ACC value to P1 | |
CALL WAIT ; Call WAIT | |
SJMP START ; Jump to START | |
WAIT: MOV R2, #10 ; Load Register R2 with 10 (0x0A) |
View ESP8266_WiFi_Controlled_Relay_Android.ino
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 <ESP8266WiFi.h> | |
const char* ssid = "SSID";//type your ssid | |
const char* password = "PASSWORD";//type your password | |
int relayPin = 2; // GPIO2 of ESP8266 | |
WiFiServer ESPserver(80);//Service Port | |
void setup() | |
{ |
View Arduino_Radar_Processing_Code.pde
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
import processing.serial.*; | |
import processing.opengl.*; | |
import toxi.geom.*; | |
import toxi.processing.*; | |
ToxiclibsSupport gfx; | |
Serial port; | |
String serialAngle; |
View Raspberry_Pi_IR_Sensor.py
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
import RPi.GPIO as GPIO | |
import time | |
sensor = 16 | |
buzzer = 18 | |
GPIO.setmode(GPIO.BOARD) | |
GPIO.setup(sensor,GPIO.IN) | |
GPIO.setup(buzzer,GPIO.OUT) |
View ESP8266_WiFi_Controlled_Robot.ino
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> | |
/* Pins 8, 9, 10 and 11 of Arduino are connected to L298N Motor Driver Input pins i.e. | |
IN1, IN2, In3 and IN4 respectively*/ | |
#define IN1 8 | |
#define IN2 9 | |
#define IN3 10 | |
#define IN4 11 | |
#define DEBUG true |
View ESP32-Web-Controlled-Servo.ino
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 <WiFi.h> | |
const int servoPin = 16; /* GPIO16 */ | |
const char* ssid = "ESP32-WiFi"; /* Add your router's SSID */ | |
const char* password = "12345678"; /*Add the password */ | |
int dutyCycle = 0; | |
//int position1 = 0; |
View Transmitter Code without Library
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 dataout 12 | |
#define ledPin 7 | |
void setup() | |
{ | |
pinMode(dataout, OUTPUT); | |
pinMode(ledPin, OUTPUT); | |
} | |
void loop() |
View Receiver Code without Library
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 datain A0 | |
#define ledPin 12 | |
unsigned int temp = 0; | |
const unsigned int upperThreshold = 600; | |
const unsigned int lowerThreshold = 50; | |
void setup() | |
{ | |
pinMode(ledPin, OUTPUT); |
NewerOlder