HW9_217HNR_F22

docx

School

Texas A&M University *

*We aren’t endorsed by this school

Course

217

Subject

Electrical Engineering

Date

Jan 9, 2024

Type

docx

Pages

2

Uploaded by UltraElectronAntelope27

Report
ENGR/PHYS 217-HNRs HW9 Fall 2022 1. (10 pts) Download the file DataLogger_Sample_Code.ino from Canvas. Load the file in the Arduino IDE, compile and load the code into your Arduino Uno hardware. Make sure the SD card is installed. The code has a line in it that simulates a temperature reading. The value is, of course garbage, but is otherwise useful to show the datalogging task works. You should get output that looks like the following: Record one of the readings of “temperature” (for example, the first “temperature” above is 77.0). Note 1: Use the instructions in the README file to perform the steps to add the necessary library to compile the program. Note 2: Dr. Hamilton will place a couple of Arduinos with data logging shields attached outside his office. You are welcome to come by and use one for a few minutes to collect the data you need to collect. Please do not use this area for a general study hall to work out your answers to the homework. 2. (10 pts) If you were to supply an Arduino ADC pin A0 directly with 3.3 volts (there is a pin labeled 3.3V on the Arduino board that gives us the capability to do just that), this configuration can be used to do a “quick and dirty” simulate the thermistor / resister circuit (albeit only at one temperature). Calculate the equivalent resistance of the thermistor in Ohms (assuming a 10K Ω resistor connected between Vout and ground). __________________Ω. 3. (10 pts) Connect a wire between pin 3.3V (may be labeled 3V3) to pin A0 on an actual Arduino (not in TinkerCAD). Open another window and load your code from HW8 into the Arduino IDE, compile & load it. Open the Console (make sure the baud is set to 57600). You should be able to calculate the “effective” resistance for this voltage. Run the program. Record one of the temperatures printed on the Console.
Note: If you did not complete this in class, I will put a couple of Arduinos out 4. (30 pts) Combine the two files so that your code will not only display the date, time, and temperature, your code should write data to the SD storage media. Note 1: Turns out Arduino uses the very old FAT-16 method of storing files instead of the more modern NTFS system that PCs now use. One thing that this means is that filenames must be 8 characters long or less. (So “Temperature.CSV” does not work as it has 9 characters in the filename.) Note 2: You can compile your code so eliminate the syntax mistakes, but you won’t be able to test it without until class next week. You will verify in the quiz that you can compile the code without syntax errors. 5. (5 pts) A wire carries a steady current of 100 Amperes in the positive X-direction. A straight section of the wire, with a length of 0.1 m along the x-axis, lies within a uniform magnetic field with strength of B = 200 ^ k Gauss . [ ^ k is the unit vector in the Z- direction.] Draw a diagram of the situation for yourself. What will be the direction of the resulting magnetic force on the wire; parallel to the (_________ “x”, “y”, or “z”) axis? 6. (10 pts) What is the magnitude (always a positive number) of the force on the section of wire due to magnetism and the current in the wire? Enter your answer to two decimal places (1.11) [Hint: Gauss is not a SI unit] ________Newtons 7. (5 pts) What is the direction of the force (______ “+” or “-“) 8. (10 pts) Batteries are typically designed based on a compromise between storage capacity and peak power. 9. (10 pts) Benjamin Franklin did not fully understand electricity so assumed it flowed from positive to negative; we’ve been living with his mistake ever since. (T or F) ______
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help