0% found this document useful (0 votes)
49 views

Arduino Project

Various projects using arduino

Uploaded by

nehathephantom
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
49 views

Arduino Project

Various projects using arduino

Uploaded by

nehathephantom
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 56
H LADY IBRABOURNE| : COLLEGE c SUBMITTED BY BAHNI ROY DEPARTMENT SUBJECT PROJECT TOPIC CU REG. NO, ROLL NO. PHYSICS SEC B-1 ( PROJECT ) ARDUINO 031-1212-0487-20 203031-11-0181 ACKNOWLEDGEMENT I would like to express my special thanks of gratitude to our respected Prof. DR. KEYA BOSE and Prof. DR. BIDISA CHATTOPADHYAY, whose valuable guidance has been the ones that helped me and gave me the golden opportunity to do this wonderful project on Arduino. I came to know about so many new things, I am really thankful to them. And I would also like to extend my gratitude to my classmates who have helped me with their suggestions and helped me a lot finalizing this project within the limited time frame. Bahni Roy, B.SC. Physics 4th Semester, Roll no.: 203031-11-0181 ect eee TT CSE SSE TO WHOM IT MAY CONCERN Thisis to certify that Ms Bahni Roy is a2™ year bonafide student in the department of Physics, Lady Brabourne College, University of Calcutta. She has done her project on Arduino under the supervision of the faculty of the department of Physics, Lady Brabourne College, for the partial fulfilment of B.Sc (Physics) 4th semester coursework on. Arduino. She isa sincere and hardworking student. We wish her all round success, Head of the Department Department of Physics Signature of the Professor Lady Brabourne College Anduimo UNO Bonsid | Expt. No. CORE Page No. Date. Ls pleaded Atduina Iesonds gee able te tend inp dip aA Aems.oA Leap ctnding A neatet, twining em am LED, , |Aemedhing online pun Teacher's Signature .vvnesneenrnsnennn ‘| pom ap ssone tie Si8ausGua pue ssausisap "squapms ‘sisidqgoy oy pue ——aBenfue} SujuiwesBoud ounpsy wo4y auofuana jo dn apeu st ‘ay U! BpOD ayLsM 0} sMO|IY quawluouiaua ayy asuas ue> yuawuowAUy asempieH Wjo y SjUSUOMUIOD Kay aaI4} SOUL Expt. No. Page No. Date. [Leapents ali I ia aman lf fap cb Teacher's Signature oud toed Sketch filled with the two basic Arduino functions: the setup() and loop(). Expt. No, Page No. Daie. | Soenmre += |The IDE enables to wait aod dit eade and toner tl th. ic thy The 5 ‘ | Arduino Janand (A proces called uploading 3 Teacher's Signature... Ole-styleRS-232 serial port rater than USB. Sef |— Designed tobe built ona home-elched PCB, Adds female pin headers. data transfer LEDs, Firstboardto bear the ‘Arduino name, Ne tferaGensatone) Sere (ta Fisttostipwith tmegal68. —— etan & ser tagh atc paso connecting conductive tread. S xz = Fist board touse surface-mount processor. Auto-selects power supply First to es vith ine eg Deemianave 2 dese ie ome A " m a Motor txtrcrete >, = reer med ThellegatookAruicotoanew Almegal280 fo: Adin platform | | teetqustrng erp remy iS to 12848 and moc than iging the Ba ‘total number of 1/0 and input pins in Emulates mouse and significantly larger form factor. Mega Keyboard over USB: ‘With the Mega2560, memory y ‘acicipntozas Almegees60 Though ager. the new foxm factor mains pin compatible wth the standard ‘Arduino shield footprint The Due marks Arduino’ fst departure from the AVR architecture. The ATSAMGXBE isan ARM Cortex M3 processor with twice the memory and four times the clock speed of the Almep32560. ¢.. 2005: 2006 2007 2008 EueLUTION GE 12008, a group a talys Interaction Design Institute lea developed Arduino asa low-cost, easy-to-use electronics platform for students and artists It borrows its name from nearby watering hole Bardi Re Arduino. Since exploding onto the maker scene, Arduino has cultivated a flourishing community of inventors, engineers, and hackers dedicated to sharing code and developing hardware under an open-source banner. — ost advanced fet ityousell PCB design sa) NC undhie pins {or breadboard connection Designed for batlery powered "y Wi saa = egos egaupdate for use with Ando oo it (ADK). Atmel's Bbit megaAVR ricrocontale tamil is an Arduino signature. TheATmegal68 doubles on-board memory to 16KB, butis otherwise near ienicato the ATegad. Large 28-pn Plastic Dual line Package (OP-28 for through hole sldering Tin Qua Flat Package (TQFP) designed for sulace mount soldering ATmegal -" chip memory doubles ie Sin Ai = we 2069 2010 2611, 2012 2013 * Single le Sa 103288. ATmegad Replaces contacts with button snags Integrates USB ‘sl controler into processor chip. 7 tw Fist dual-core model, combining ‘mega32u with MIPS ‘embedded Linux machine. r AlmegaB 68 a Very tin Quad Fat ead (QFN) ack gy age eplaces leas with underside pads. 28 through °e Almega32u4 = i ® First Arduino ta mount 32-bit progessor. Runs at 3.3Vrather than 5, Expt. No. CORD Page No. [Page No, | Date. [Cate | Teacher's Signature TH Fink Prototype Expt. No. Page No. Date, | Garona MP Jew tefl stably itsiom then forded UND Wie Ei ts ane q the Latest — | pendacts witha Milt! B-dait omtzna , “ es ke se t08) saedincant ecient ritteal ientont btaos-| PoetetiheM th Mea TE HT ey Teacher's Signature eve Exclution of Anduino Some tumnent Arduino Boands Exot. No. exon Page No, — ©2006: 0 2007: a. . lo 20072 (12010 raat Jevelapment t+ Ddfteiel Amdatna UND, * Ariduine Dac (32. Lit) [P2016 212 ventions of the Atduino bastd have leona tommaeneialls pradueed. geht mn maps |__*94 dptal 1/0 pins, Le enalag bapa, | ___+ATaiea 2560. LibjfdssDestpmed fin e—teatiler are wemables proests * mn We and to Son. PMemsts Comput dened dirnilar, to the UNO. Teacher's SIGMAtUre .-n-neenemnrn Digital Pins Crystal Oseitator Voltage Reguistor = Power Pon =. Components f Arduino UNO boand Expt. No. Ipane wa Page No. ——+$——_] Teacher's Signature» VSB Coble Pant RX- TX LED Expt. No, Page No. Date. | prowling 5 able ad 500 mA auem Teacher's Signature wns NaTOR Output pins use PWM technique © Arduino UNO has 6 digital pins used as PHI (-) The signal is affected on the input pulse duration a Oo oe uo clans: By DIGITAL (PwH~) Cyt Oscillator USB Intenface Chip 0 Expt, No. Pw 13 LED: taal has. inkuilt LED tarnetted to digi te [pints Whenever tine phn TA-hiphh LED sights, up and thin iti4 Lous, LED in ff PF Mrerocon Roe a: Tt in tne pramized ack peckarpalac thip ith 22 pint [1 mrilliom firmer a setemd+ Om eoth tick, the raltnacentmeller penfering Lome openatiznn » Jott —eniample, Additions subtnae tion ete. ———__—— PPUSB rvtegeAce CHIP: Teta enka asa —siynal trueaalalor St Leenvertts Atymalsinthe VSB level toa evel that an _Asidatny LUND board undert shards. Teacher's Signature Components needed for connection to the Computien Expt. No. exons Page No. Date: pee it | (Conweett0n lo HE Comouter += ™ Breapaoagns: A bevel bem sets asa temstinstian Nase fan Leleetuanie prototyping. The Jule and ted lier at tre top acod lea tham Lin the main denénclleeaticl A7en . be Tumece Wrees: They one used to makes tha ein Pte lah ALL il mle pa Teacher's Signature LIFE CYCLE OF A PROGRAM y © Declare variables | Global Variables Initialize variables - Run once at beginning setup() | © Setpins —) | i ‘ | © Runthe main program La C. tvony |S Repeatedly after the setup S J ress reset ONLINE IDE - WEB EDITOR Expt, No. Crone Pros eammrne LHe _AeDvin To-malee—owst pn ee write —preynarms thet giye the _§_ Pndine inatnackions He da_fo using ood elled tht Andutas [atepatel | de wellopomént en vie + (DDE). Thin applieation Miz vtay friendly sal payin oplieblne—atiHlenteTane Adina nails ppoars— fpord_uptond__thern te _Anduine doors ially developed in 2003.4 stnoplid elect nemie_paof ce ta) sith» Simple — — gma ,Bostlonds tis Sn tentemty + fatal cn Sig hbig hing ace _setonintosidadtion (Teadlaarl Denk Conile [le mpi fel aa lng i tad dab tat As nduaica_terimanitste a thneng ht CO enna if the shake deblin’ rt Compile paopen dy. _* Wistim. pha teed Soong wages * cpern_tounteteropuben—pragnaomoning Lamp rage. ' Denied ly 0) 0 tt Leng nage tatthe Aimplifiod cedifiteSiaans yin ehuding ¢latsited LE benastes Anal —fitim e-biameg———$§ DYete typen (Sntepor, flaok, Jang hanacken,- =) client 2 Dpewtona Aa themeditel, tog eal, ter pss 022 ppm) £§£$——__— np tentnel eterment (fy suite frases while, fen), ______ 2 Offer te the pAngatmmen simple a06e ss fo T/0. Bevited, a tilting prepares tne Called dhatee Teacher's Signature const Int edPin=d; ‘old setup) { {initialize digital pin LED_BUILTIN as an output pinMode(ledPin, OUTPUT]: ) ‘11 he set up () method runs once, when the sketch stars, ‘the toop function runs ever and over again forever void loop0){ igitaWrite(ledPin HIGH); //turn the LED on (HIGH Is the voltage level) delay(500}; _//wait fora second igitalWrite(/edPin, LOW); //tur the LED off by making the votage LOW delay(S00); //waltfor a second 1 const nt ledPinet3;, ‘void setupl) ( {initialize dial pln LED_BUILTIN a8 an output. plnMode(LED_BUILTIN,OUTPUT}; } 11 The setup () method runs once, when the sketch stats, 11 the loop function runs over and over again forever old loop) ( lgtalWrite(LED_BUILTIN,HIGH); /turn the LED on (HIGH isthe voltage level) delay(1500}; | //walt fora second ligtalWrite(LED_BUILTIN,LOW);//tur the LED off by making the voltage LOW delay(3500}; /Jwalt fora second ) vod setup) 7 ietialze cial pin L€D_BUILTIN a an output PinMode(ledPin1, OUTPUT}; pinMode(ledPin2,OUTPUT); pinMode(ledPin3,OUTPUT}: ) U1 The set up () method runs once, when the sketch starts. 11 the loop function runs over and over again forever void loop) lgitlWriteledPin1, HIGH); //turn the LED on (HIGH isthe voltage level), delay(500); //wait fora second clgitalWritlledPin3, LOW); //trn the LED off by making the voltage LOW delay(500}; //wat fora second igjtalritelledPin HIGH); //urn the LED on (HIGH I the voltage level) delay(500); //wait fora second clgitlWrite(ledPin2,LOW);//tur the LED off by making the voltage LOW delay(500); //wait fora second igitalWrite(ledPin3,HIGH); /turn the LED on (HIGH isthe voltage level) selay(500); _//wait fora second igitalWrite(ledPin3 LOW); //turn the LED off by making the voltage LOW delay(S00); -//uait fora second } void setup) { ‘ietiaze digital pla LEO_BUILTIN as an output. pinMode(31, OUTPUT); pinktode(7. OUTPUT}; pinMode(3, OUTP ) 11 he loop function runs over and aver again forever void loop) ligtalWrite(12, HIGH); //uen the LED on (HIGH isthe voltage level), delay(700);—_// wait fora second igtalwrite(12, LOW}; //turn the LED off by making the voltage tow Roc hhh ld ) void loop digtalWeite(7, HIGH); _// turn the LED on (HIGH isthe voltage lev!) elay(500}; wait fora second igjtalWrite(7, OW); //turm the LED off by making the voltage LOW delay(500); walt fora second) ) const iat ledPint=3; const lat ledPin2=2; const it ledPindst ‘const int ledPin6-6; cons int ledPin?=7; void setup { ‘{Pitialze digital pin LED_BUILTIN as an output. pinMode (ledPinl, OUTPUT}: pinMode (ledPin2, OUTPUT}: pinMode (ledPind, OUTPUT}; pinMode(ledPin6, OUTPUT}; piaMode (ledPin7, OUTPUT}: ) 11 The setup ) method runs once, when the sketch stars. 11 te loop function runs over and over again forever void loop) ( cigitalWrit (LedPint, HIGH); //turn the LED on (HIGH isthe voltage level) lhtalWrit (eaPin, LOW); //turn the LED off by making the voltage LOW lgftalritlledPin2, HIGH); //turn the LED on (HIGH isthe voltage level) elay( 1000); igtalWvrite (LedPin2, LOW}; /turn the LED off by making the voltage LOW elay (2000); cigitalWritelledPing, HIGH); //turn the LED on (HIGH isthe voltage level) delay (700); digtalWritlledPing, LOW); //tusn the LED off by making the voltage LOW delay (700); //wait fora second dijtalWritelledPin6, HIGH); /turn the LEO on (HIGH isthe voltage level) igitalwritelledPin6, LOW); /turn the LED off by making the voltage LOW digitalWrtelledPin7, HIGH); //turn the LED on (HIGH isthe voltage level) delay(500}; digitalWetelledPin, LOW); //turn the LED off by making the voltage LOW s) { 1 Celsius 37.63 24.44 24.93 24,44 24,44 24.93 24.44 24.93 24.44 24.44 24,93 24,44 24.93 24.93 24.93 24.93 24.93 24.93 24,44 24,93 24.93 24.93 24.44 24.93 24.44 24.93 24.93 24.44 24.44 24,93 24.44 24.84 24.44 24,44 24.44 Output Fahrenheit 99.74 75.99 76.87 75.99 75.99 76.87 75.99 76.87 75.99 75.99 76.87 75.99 76.87 76.87 76.87 76.87 76.87 76.87 75.99 76.87 76.87 76.87 75.99 76.87 75.99 76.87 76.87 75.99 75.99 76.87 75.99 75.99 75.99 75.99 75.99 CONSTRUCTION OF THE! IETERS USING LM35 OR OTHERS const int inpin=0; void setup() [ // pot your setup code here, Serial begin(9600) ; Serial.printIn("Temperature in Celsius and Fahrenheit : to run once: void Loopt) // put your main code here, int’ valuewanalogRead(A0) : float millivolts=(value/1023.0)*5000; float Celsius =millivelts/10; //conver celsius float Fahrenheit=(Celsius*1.8) +3: Serial.print (Celsius); Serial.print ("\t"); //printing data column wise using tab space Serial print ("Fahrenheit"); Serial.printin(); delay(1000); //delay of one second , to run repeatedly: to temperature at the rate of 10 mv per //conversion from celsius to fahrenheit dT ; [Page No eet [ernstruction of the cetremer Set-up be shadying ote | Simple Pemduluwn amd Hemee Det = o! £osiy * | Tee pine] gram of A ample PL } TPT Fe Tan fp | t sSO="s Feo tty we baw 7% = Ah ay. ee " , om , 5 Caleulation . : ” |_Coletated value? of Tso Sostd mas. | Meamaed lensth of £ = 125 @m o 4 ARB tae 25° - ga ee fi Gye ESL ms CHORD Teacher's Signature .... ae | ‘CONSTRUCTION OF THE EXPERIMENTAL SET UP FOR STUDYING SIMPLE PENDULUM AND HENCE DETERMINING THE const int trigPin = 6; ‘const int echoPin = 7, U defines variables long duration; Int distance; void setup) { pinktodeltrigPin, OUTPUT); // Sets the trighin as an Output pinModelechoPin, INPUT}; // Sets the echaPin as an Input Serial begin( 9600); // Starts the serial communication ) void loop(){ UH Csearsthe wigrin cittalWrite(trigPin, Low); delayMicroseconds(2) 11 Sets the trigFin on HIGH state for 10 micro seconds igtatWriteltgPin, HIGH): elayMicroseconds(10); igtalWritetigPin, Low); 4 Reads the echoPin, returns the sound wave travel time in microseconds duration = pulseln(echoPin, HIGH); MU Catcuating the distance sistance = duration *0.034 /2; ‘Prints the distance on the Serial Monitor float t= mils); Serial printn(}; Seriabprint (\e"} Serial printin(cistance); ) 14 19 24 29 31 a2 34 36 ae 43 58 67 76 86 96 105 115 125 136 PeEeEN away oFoFSSSGR b NW DD OYNN NY ow 5 Output Distance of the Bob from the proximity sensor { em) ==5 Distance of the Bob from A Time (ms) -> Expt. No. |Comatouretion of Date Le Studying Changing and Disehanahn [of Capaciten of RC af’ ‘akg eaeg i enas | a wo site Ne’ 3g. _ fae [20,6 GND 777777 at Re Re einewits ip fem. ck Nalko ye owosass Copaeitorr=Vi g = (gtr dt z 5 2a af e® at = ¥ 27k cee eRe, (Sani tik Condition 420, Q=0 S0=VeC +t DC1=-eve ga tye Rt ey =t% (ete =i) alg ney fee Re)] ¥ =vevs (I- etrrey] fave 2 Brw(ire *) 94 we RED eH URE po tge tng dt= (6 bn2 aft, = 0.693 8¢| pk ted, imittaly Veo, Th, = Ye, 9 {time ted fo msarorie +s) Tf 2 fol hanged = Va Teacher's Signature .... CONSTRUCTION OF DATA LOGGER FOR STUDYING CHARGING AND DISCHARGING OF CONSTRUCTION OF DATA LOGGER FOR STUDYING CHARGING AND DISCHARGING OF CAPACITOR OF RC CIRCUIT int SensorValue: int led=13; float Voltage=0.0, long unsigned now=0.0; long unsigned then - 0.0; long unsigned elapsed=0 (fint inPin=o, void setup() { // put your setup code here, to run once 1 PinMode (LED_BUTLTIN, OUTPUT) ; Serial.begin (9600); Gigitalwrite(1ed, HIGH) ;//low for charging delay (30000) ; digitalWrive (led, LOW) ;//high for char then-millis (1; ging //Serial.print ("Voltage") , void loop) { // pat your main code here, to run repeatedly: Sensorvalue=analogRead (0) ; 1is(; na logRead (inPin) ; volts=(value/1023.0)*5; Serial.print (elapsed) ; Serial.print("\t") ; Serial-print1n (Voltage); (faelay (1000) + ’ OUTPUT? Wie 12 Pele) ele (eRele lasses pe ee nena sxenee Poem CalnOaabetealnitaln ‘Caper Voto] Charging of a capacitor

You might also like