Gas station without pumps

2021 September 27

Next book edition almost done

Filed under: Circuits course — gasstationwithoutpumps @ 13:50
Tags: , , ,

Eleven days ago, I said

Now all I have to do for the next release of the book is do the standard final checks (page breaks, spell checks, and URL checks).  This will probably take me another week.

I have now gotten the page breaks fixed and checked all the URLs (only 8 of the 215 distinct URLs needed fixing).  I last checked them about a year ago, so that is a link-rot rate of only 4%/year (a half-life of about 18 years).  In the process of fixing the page breaks, I noticed and fixed a few minor typos, as well as tightening the text in a couple of places (to improve the page breaks).  I found one instance of “the the” with my tandem-word checks (probably introduced since the last released edition).

I still have to do the spell checks.

I did release one new video last night: https://youtu.be/vLece-VKfkQ, which talks about providing a constant current for electroplating (see the post Controlling current if you don’t want to waste time watching an 11-minute video).

2021 September 16

Last to-do note in book done

Filed under: Circuits course — gasstationwithoutpumps @ 10:46
Tags: , , , , , ,

I’ve finally removed the last to-do note from the text book. This one was an explanation of the threshold voltage for FETs as the transition between the subthreshold conduction, where the on-resistance has exponential behavior with V_{gs} and the on-region, where it is roughly constant.

I don’t like copying graphs from datasheets for the textbook, so I needed to measure the values myself to make a plot. My first attempt, using the PMV20XNE nFETs that we used for the past few years in class, was a failure.  The typical on-resistance is only 23mΩ, which is too small for the crude measuring setups and low currents that I could get with the Analog Discovery 2.  I ended up mainly measuring the resistance of the test setup, with errors larger than the value I was trying to measure, so I couldn’t even subtract off the short-circuit measurement.

I tried again with a low-power nFET (a 2N7000), using a constant load resistor of 150Ω (so the maximum power dissipation in the ¼-W resistor would be (5V)^2/150\Omega = 167mW).

2N7000-Ron-schematic

I controlled with the gate voltage with waveform generator, and measured both the drain-source voltage and the drain current. I used the oscilloscope tool and averaged both within a sweep and across many sweeps to reduce noise.

Because the Analog Discovery 2 has only 2 measurement channels, I had to manually copy the measurements into a file for gnuplot, as there was no way to record the waveform generator output with the measurements in a single file (well, there might be with the scripting capabilities of Waveforms 3, but I’ve not explored them much).

I noticed some pretty large offsets when measuring small voltages, so I did open-circuit and short-circuit measurements and used them to subtract off offsets (with the understanding that the current for the open circuit would be about 150µA, because of the 1MΩ impedance of the Channel 1 measuring the open-circuit voltage).

2N7000_Ron

The corrections make a big difference at the low end, where on-resistance is comparable to the resistance of the measurement instrument and test currents are tiny. The correction at the high end is smaller, but still noticeable. The transition from the exponential behavior of subthreshold conduction to the on-region is pretty clear. (Click to enlarge)

Now all I have to do for the next release of the book is do the standard final checks (page breaks, spell checks, and URL checks).  This will probably take me another week.

2015 March 30

First day of S15 circuits class: demo failure

Filed under: Circuits course — gasstationwithoutpumps @ 16:23
Tags: , , , ,

I went into the class with a fairly short to-do list—much shorter than last year’s. I managed to cover the following:

  1. Went over syllabus .I showed them the syllabus and managed to go over scheduling of labs, partner work, and online texts, but did not get to some of the boilerplate about cheating and about disability services.  Oh well, it is enough that the boilerplate is on the syllabus.
  2. Demoed pressure sensor  with PteroDAQ on KL25Z board. I hooked everything up and it didn’t work. I fixed one problem of a loose wire (using the jeweler’s screwdriver, but it still didn’t work. I did manage to show them PteroDAQ and used gnuplot to show them a pressure trace I had recorded in the BME88A demo last quarter.
  3. Reading the book and doing design well before lab.
  4. Assigning reading due tomorrow and Thursday.
  5. Partners changing every week, so no one gets a free ride for very long and no one has to suffer with a freeloader.

I was thinking that I’d use the chalkboard a lot, so I used the small screen in the classroom (this classroom is ridiculously over-equipped with projectors, even having a project for a screen at the back of the classroom) rather than the big one, which covers most of the chalkboard. But I ended up using the projector to show them parts of the book and to use the document camera to show the KL25Z board and instrumentation amp protoboard, and barely used the chalkboard at all.

The rearrangement of the labs, with soldering on Tuesday, sampling and aliasing on Thursday, and the thermistor labs next week does give me a little leisurely start-up than last year, as I don’t have to get to Ohm’s law and Kirchhoff’s current law until the voltage-divider lecture on Friday.

Overall, I’m fairly happy with how the first day of class went, despite the demo failure.  I’ll debug the demo and show them either in lab tomorrow or in class on Wednesday.  I just hope I haven’t fried the instrumentation amplifier with static—they’re expensive and I don’t know whether I have any spares on hand.

Update 2015-Mar-30 17:58:  When I got home I checked out the board to figure out what might be wrong.  After probing for a while with the voltmeter, I determined that the wire that had come loose from its screw terminal and that I had fixed in class was not the only wire that had come loose.  The one next to it had also come loose.  It still looked ok, but wasn’t making contact.  Opening the screw terminal, reinserting the wire, and tightening it down again fixed the problem.

 

2014 June 12

Starting on book for circuits lab—scheduling labs

Filed under: Circuits course — gasstationwithoutpumps @ 23:59
Tags: , , , , ,

In Revised plan for circuits labs I provided a tentative schedule for the applied circuits course and lab, which I ended up not really following (dropping the FET measurements, moving the sampling lab after the loudspeaker lab, and swapping the order of the pressure sensor and the class-D amplifier).

I’m now trying to turn the course lab handouts into a book (which means adding everything that was previously just in lectures), and I’m trying to rearrange the lab schedule to fit better into the 10-week quarter and to flow a little better pedagogically.

In this post, I’ll ignore the lecture component, but just look at a possible reordering of the labs.  Squeezing the KL25Z soldering and both halves of the thermistor lab was too much, and the sampling and aliasing lab did not work well late in the quarter, so I’ll strip the filter design out of the sampling lab and simplify it a bit to get it in the first week, and move the thermistor lab fully to the second week.  I’ll have to squeeze somewhere else, and I think that the best bet is the hysteresis lab, which took far longer than it should have.  I still want to have data-analysis Wednesdays, and reports due on Fridays.

Tuesday week 1 Unpacking parts, labeling capacitor bags, using wire strippers, making clip leads, Soldering headers onto KL25Z boards, downloading data logger to KL25Z.See soldering instructions at Soldering headers on a Freedom board and Jameco soldering tips
Thursday week 1 Sampling and aliasing lab (no filter design)
Tuesday week 2 Measuring input resistance of multimeter, and of oscilloscope.
measuring thermistor resistance at many temperatures.
Thursday week 2 Measuring voltage of thermistor voltage divider, recording voltage vs. time.
Tuesday week 3 Measure I-vs-V DC characteristic of resistor and of electret mic, both with multimeter and with KL25Z board.
Thursday week 3 Look at mic with resistor load on oscilloscope (AC & DC coupling).  Filter design for AC coupling. Loudspeaker on function generator?
Tuesday week 4 Characterizing impedance of loudspeaker vs. frequency
Thursday week 4 Characterize hysteresis in Schmitt trigger chip using data logger. Breadboard hysteresis oscillator with various R and C values, measuring frequency or period (oscilloscope or frequency meter?).
Make and test touch sensor with breadboard oscillator. Solder hysteresis oscillator. Estimate capacitance of touch from change in period of hysteresis oscillator.
Tuesday week 5 Impedance of stainless steel (polarizing) electrodes in different NaCl concentrations (at several frequencies).
Thursday week 5 Impedance of Ag/AgCl (non-polarizing) electrodes in different NaCl concentrations (at several frequencies)
Tuesday week 6 Low-power single-stage audio amplifier with op amp
Thursday week 6 catchup day? characterizing photodiode or phototransistor?
Tuesday week 7 Pressure sensor day 1: design and soldering instrumentation amp prototype board
Thursday week 7 Pressure sensor day 2: further debugging.
Recording pressure pulses from blood-pressure cuff.
Tuesday week 8 Photodiode or phototransistor with single-stage simple transimpedance amplifier.
Freeform soldering to attach leads for fingertip transmission sensor.
Cut-and-try design for transimpedance gain needed to see reasonable signal without saturating amplifier. (Determine AC and DC components of current)
Thursday week 8 Fingertip pulse sensor with 2-stage amplifier and bandpass filtering.
Tuesday week 9 class D audio amplifier day 1(preamp and comparators) (problem with Memorial Day on Monday?)
Thursday week 9 class D audio amplifier day 2 (output stage)
Tuesday week 10 EKG day 1:  breadboard and debugging (confident students could go directly to soldering)
Thursday week 10 EKG day 2: soldering, debugging, and demo.  Last day for any catchup labs.

I’m not really comfortable with the class-D amplifier in the week with Memorial Day. I’ll have to double check when Memorial Day comes next year.

2014 May 7

Quiz corrections

Filed under: Circuits course — gasstationwithoutpumps @ 20:36
Tags: , , , , , ,

As I reported last week, students did poorly on the first quiz, which came as no surprise to me.  I had the students redo the quizzes as homework, allowing collaborative work (as long as they acknowledged the collaboration in writing).  They turned in the homework on Monday, a week after the quiz, and I returned them today.  No one aced the redo, with the top score being still only 25/33 (which would have been an A on the first pass, on a redo maybe a B+).

A lot of the students still seem to be having trouble with complex numbers—they got the formulas right when working symbolically, but then the exact same question with numbers instead of letters (which could be done by just plugging into the formulas) came out with real numbers when complex impedances were asked for.  Also, a lot of sanity checked were skipped (several people reported a battery as doubling in voltage when hooked up to a resistor, for example).

These students are not major mathphobes (they’ve all passed a couple of calculus classes and most have done more math past that), but they don’t seem to have any sense for reasoning with or about math—they just want to plug in and grind, even on simple problems like ratios in voltage dividers. This class has almost no memory work (I gave them a one-page handout at the beginning of the year with all the math and physics I was expecting them to memorize), but relies heavily on their being able to recognize how to apply those few facts.  This often requires subdividing a problem, like recognizing that a Wheatstone bridge is the difference between two voltage dividers, or that a 10× oscilloscope probe is a voltage divider with R||C circuits for each of the two impedances.

I spent the entire class today working through each problem in the quiz, to make sure that everyone in the class could understand the solution, and (more importantly) see that they did actually have enough knowledge and math skill to do the questions. Some of the students were feeling overwhelmed on the quiz, because they are not used to doing anything more than 1-step pattern matching for problems, and some of the quiz problems required two steps.  None of the quiz problems were as hard as the prelab they had to do this week, which involved 8 or more steps to get the resistor values to set the gain of the amplifier:

  1. Determine the pressure level of 60dB sound in Pa.
  2. Determine the sensitivity of the microphone in A/Pa:
    1. Convert -44dB from spec sheet to a ratio
    2. Get V/Pa sensitivity for microphone for circuit on spec sheet
    3. Convert to A/Pa given resistance of I-to-V conversion resistor on spec sheet.
  3. Determine voltages needed for op amp power supply.
  4. Determine I-to-V resistor needed to bias microphone in saturation region.
  5. Convert A/Pa sensitivity, RMS pressure level, and I-to-V resistor to RMS voltage out of microphone.
  6. Determine corner frequency and R, C values for DC-blocking filter.
  7. Determine maximum output voltage range of the amplifier as the most limiting of
    1. Voltage range of op amp outputs
    2. Power limits of loudspeaker (10W)
    3. Current limit of op amp (which is a function of the power-supply voltage) into 8Ω loudspeaker
  8. Determine max gain as ratio of RMS voltage into op amp and RMS voltage out of op amp (I’m allowing them to be a bit sloppy about RMS voltage vs amplitude, since we are not looking just at sine waves—the amplitude of a symmetric square wave is the same as the RMS voltage.)
  9. Choose resistor values to give the desired gain.

I’m hoping that pushing them go through these multi-step designs in the lab will give them more practice at decomposing problems into smaller pieces, so that two-step problems on a quiz no longer seem daunting, but routine.

I’m going to be giving them another quiz in about a week, covering op-amp basics and the amplitude response of RC filters.  I’ve got to figure out the best time to do this—possibly a week from Friday, after they’ve done another op-amp lab (using a phototransistor to make a pulse monitor, using this handout).  I think I’ll reorder the labs after that, doing the pressure sensor instrumentation amp lab, then the class D power amp, then the EKG.

 

 

Next Page »

%d bloggers like this: