Basic Electronics Engineering Lab-11

Jul 11th, 2016
Studypool Tutor
Price: $10 USD

Tutor description

Arduino Programming for H-bridge

Word Count: 1075
Showing Page: 1/9
International Islamic University,IslamabadDepartment of Mechanical EngineeringBasic Electronics LABEXPERIMENT # 11: Arduino Programming for H-bridgeName of Student: ..Roll No.: Date of Experiment: ..Report submitted on: ..Marks obtained: Remarks: Instructors Signature: ...Basic Electronics Lab (EE-301L)Arduino Programming for H-bridgeReview of Arduino basic functions:pinMode(pin,mode)Used in void setup() to configure a specified pin to behave either as an INPUT or an OUTPUT.pinMode(pin, OUTPUT);//sets pin to outputArduino digital pins default to inputs, so they dont need to be explicitly declared as inputs with pinMode().Pins configured as INPUT are said to be in high- impedance state.There are also convenient 20k pull up resistors built into the Atmega chip that can be accessed from software.These built-in pull up resistors are accessed in the following manner:pinMode(pin, INPUT);digitalWrite(pin, HIGH);digitalRead(pin)Reads the value from a specified digital pin with the result either HIGH or LOW. The pin can be specified aseither a variable or constant (0-13).value = digitalRead(pin);//sets value equal to the input valuedigitalWrite(

Review from student

Studypool Student
" Was sceptical because of all the poor reviews but I was desparate. Turned out pretty well, so I'm pleasantly surprised. "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1829 tutors are online

Brown University

1271 Tutors

California Institute of Technology

2131 Tutors

Carnegie Mellon University

982 Tutors

Columbia University

1256 Tutors

Dartmouth University

2113 Tutors

Emory University

2279 Tutors

Harvard University

599 Tutors

Massachusetts Institute of Technology

2319 Tutors

New York University

1645 Tutors

Notre Dam University

1911 Tutors

Oklahoma University

2122 Tutors

Pennsylvania State University

932 Tutors

Princeton University

1211 Tutors

Stanford University

983 Tutors

University of California

1282 Tutors

Oxford University

123 Tutors

Yale University

2325 Tutors