One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
#include <SoftwareSerial.h> | |
int dir; | |
int TxPin=10; | |
int RxPin=11; | |
int LMotor1=6; | |
int LMotor2=7; | |
int RMotor1=3; | |
int RMotor2=4; | |
SoftwareSerial BT(TxPin,RxPin); |
int TxPin=10; | |
int RxPin=11; | |
int LMotor1=5; | |
int LMotor2=3; | |
int RMotor1=6; | |
int RMotor2=9; | |
void setup() | |
{ | |
Serial.begin(9600); |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % | |
% Author : Bharat Kumar % | |
% % | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
%% Initialization | |
function varargout = Colors(varargin) | |
gui_Singleton = 1; | |
gui_State = struct('gui_Name', mfilename, ... |
#include <avr/io.h> | |
#include <util/delay.h> | |
#include "lcd.h" | |
#define STRING_LENGTH 27 | |
#define LCD_MAX 15 | |
void main() | |
{ | |
char array[STRING_LENGTH] = { "Namaste" }; |
int sensorPin[]={A0,A1,A2}; /*Array of analog pins for sensor*/ | |
int totalpin=3; /*Total No. of pins*/ | |
const int ledpin=9; | |
int sensorMin[]={1023,1023,1023}; /*Array to store minimum values*/ | |
int sensorMax[]={0,0,0}; /*Array to store maximum values*/ | |
float sensorAvg[]={0.0,0.0,0.0}; /*Array to store average values*/ | |
void calib() | |
{ | |
int i,l,temp; |
#include<Servo.h> | |
const int numReadings = 10; | |
int readings[numReadings] = {0}; | |
int index = 0; | |
int total = 0; | |
int average = 0; | |
const int xPin = A0; | |
const int epsilon = 5; | |
long sensorValue = 0; |
#include "16F877A.h" | |
#FUSES HS | |
#use delay (clock=20MHZ) | |
void main() | |
{ | |
set_tris_a(0x00); | |
set_tris_b(0x00); | |
set_tris_c(0x00); |
#include<iostream.h> | |
#include<fstream.h> | |
#include<string.h> | |
using namespace std; | |
int main() | |
{ | |
ifstream fin("my_data.txt"); //opening text file | |
int count=0; |
word=input("Enter a word\n") | |
handle=open("my_data.txt") | |
data=handle.read().split(" ") | |
d=dict() | |
for i in data: | |
if i in d: | |
d[i]+=1 | |
else: | |
d[i]=1 |