Overview
Blog
Accommodations for disability
Academic Integrity
Homework
Schedule

Overview

This freshman design seminar is a limited to first-year students (second-year allowed in if there is room) who are proposed bioengineering majors. Class size is limited due to limited lab capacity.

This is a first course in engineering design for bioengineers. Students choose a design project and work on it in cooperative teams. Covers team building, design, prototyping, and report writing.

Instructor:
Kevin Karplus karplus@soe.ucsc.edu
Office hours:
PSB 318, W 4–5, Th 2–3
Meeting times:
MWF 2–3:10, Physical Science Building 305
We'll sometimes meet in the EE circuits lab (Baskin Engineering 150).
Group Tutor:
None hired yet
E-mail discussion
There is an e-mail discussion group for the class. All students in the class should participate in e-mail discussions. Other people may request joining the discussion, to be allowed in or not at the discretion of the class.
Overview:
This course is a 2-unit freshman design seminar, first offered as a prototype in Winter 2014 (as BME 94F), and it is still under active development. Students will be helping design the course, as well whatever design projects we take on.

The current goal for the design projects is to have small teams (2–3 students) design low-cost lab equipment suitable for hobbyists or home school, middle school, or high school science labs. Think of it as "science on a shoestring" or "thrift-store science". We'll be trying to duplicate the functionality of expensive science teaching tools (such as those sold by Pasco and Vernier) at a fraction of the price. But the course is driven by what the students want to learn and do—if you have an idea for a project, bring it up in class.

A major goal of the course is to get students thinking like engineers: asking questions like "How can we make something that does this?", "What are the constraints on the design?", "Will this part do what we want?", "How much would it cost to do that?"

Another goal of the class is to get students to learn on their own to meet their own needs for knowledge, rather than relying on teachers to tell them what to learn. Initially, you'll be directed to look for certain information, to develop your skills at finding and evaluating information—later you'll be asking your own questions that need answers.

Target audience:
The primary audience are freshman bioengineering proposed majors. If space permits, we may allow in a few 2nd-year or transfer students. Seniors interested in the course are encouraged to attend the first day and apply to be group tutors.
Prerequisites:
This is intended for first-year students, so there are no prerequisites. Students should come in with an interest in designing and constructing things. Prior experience with hand tools, soldering, computer programming, and so forth are all valuable, but no specific skills are required to join the class.
Requirements satisfied:
This course does not satisfy any bioengineering graduation requirements, nor is it a prerequisite for any further courses. It does provide a PR-E (Collaborative endeavor) general-education code.

Take this course because you want to do it, not because you have to. Because it does not satisfy any BSoE major requirements, it is reasonable to take the course P/NP, instead of for a grade. Expect to average about 6 hours/week on the course, perhaps a bit more if your group gets excited about their project.

Evaluation:
Students will be evaluated on the written, oral, or poster presentations of their designs, as well as on how well their prototypes meet the design goals they set. It is not necessary for a prototype to work to pass the course, as long as good attempt has been made at doing the design and debugging it, and that attempt has been properly documented.
Constraints on the course:
The main constraints on the course are that it is 2 units, so should average only 6 hours a week, and that it has "Practice: Collaborative Endeavor" general-education credit, so must involve learning how to do group work effectively.

Blog

There is some discussion of the goals of the course and ideas for possible projects on Prof. Karplus's blog http://gasstationwithoutpumps.wordpress.com/freshman-design-table-of-contents/

Please feel free to leave comments on the blog with suggestions for the course.


Classroom Accommodations for Disabilities

If you qualify for classroom accommodations because of a disability, please submit your Accommodation Authorization from the Disability Resource Center (DRC) to me during my office hours in a timely manner, preferably within the first two weeks of the quarter. Contact DRC at 459-2089 (voice), 459-4806 (TTY).

Academic Integrity

Anyone caught cheating in the class will be reported to their college provost (see UCSC policy on academic integrity) and may fail the class. Cheating includes any attempt to claim someone else's work as your own. Plagiarism in any form (including close paraphrasing) will be considered cheating. Use of any source without proper citation will be considered cheating. If you are not certain about citation standards, please ask, as I hate having to fail students because they were improperly taught how to cite sources.

Collaboration without explicit written acknowledgment will be considered cheating. Collaboration on all assignments with explicit written acknowledgment is encouraged—guidelines for the extent of reasonable collaboration will be given in class.

Homework


The homework listed below here is based on the Winter 2015 offering of the course. I expect the homework to be different this year, as what students need to learn will depend on what the students in the class want to pursue as projects. The web page will be updated as the class progresses.

Note: due dates below here are probably too late for completion of projects. We'll try to get projects started earlier this year.


Schedule

The schedule listed here is based on the Winter 2015 offering of the course, to give a rough idea of how the class might go. The web page will be updated as the class progresses.

Date Lecture Topic(s) Due
Mon 2016 Jan 4administrivia, discussion of time log, need for group projects intake survey
Wed 2016 Jan 6Design review of time-log spreadsheets, passed around some microcontroller boards and discussed choice of boards. We settled on Teensy LC or Teensy 3.2
Fri 2016 Jan 8Availability of styrofoam boxes for inclubators. Collected orders for microcontroller boards. Basic notion of colorimeters, passed out Brand 759076D cuvettes. Discussed foamcore as prototyping material. Ohm's Law. ideas for interesting projects
Mon 2016 Jan 11 what is a diode? How does it work? anode and cathode (cathode where electrons leave the wire—works for vacuum tubes, chemical reactions, and semiconductors). Depletion region, I vs. V curve, How does an LED work? Lumens as 683.002 integral power(lambda) luminosity(lambda) d lambda. Candela as lumen/steradian (and definition of steradian). Illuminance in lumens/m^2 (or W/m^2). read about colorimeter and spectrometer
Wed 2016 Jan 13 LED data sheet, I-vs-V curve, current-limiting resistors. Spectrum for LED, peak vs. dominant wavelength, spectrum for lighting LEDs, bandwidth (45nm for LED, 5nm for laser diode).
Fri 2016 Jan 15 sold Teensy boards and breadboards at cost. Worked example of blinky-light program on Teensy using Arduino interface. (both on-board pin 13 and LED with current-limiting resistor on pin 10)
Mon 2016 Jan 18MLK Day, no class
Wed 2016 Jan 20Day in electronics lab (Baskin 150). Soldering headers onto Teensy boards. multimeters, power supplies, hand out 600nm LEDs (student choice of LTL-4273 and 333-2UYC/H3/S400-A6), phototransistors (LTR-4206), and foamcore.
Fri 2016 Jan 22 phototransistors
Mon 2016 Jan 25Baskin 150: finish soldering, start wiring colorimeters. Hand out foam core.
Wed 2016 Jan 27Discussion of popular project possibilities: selection of top 3. Ended up with ultrasonic rangefinder, LED cube with capacitive touch keyboard, and optical pulse monitor. Intro to using PteroDAQ for debugging colorimeter hardware.
Fri 2016 Jan 29 Discussed design parts (electronic, programming, mechanical) for colorimeter. Partnerwork styles (alternating work/critique, division of labor, independent design and compare). I-vs-V for phototransistor, sizing resistors for colorimeter, Worked example of colorimeter code (no demo). analogReadRes(16), analogReadAveraging(32), touchRead(A9). Reminder to complete lab safety training. Brief discussion of theory of ultrasonic rangefinder. Announced expected delivery Feb 5–Feb 24 of TCT40-16R/T 40KHZ transducers.
Mon 2016 Feb 1Debugging colorimeter prototypes. Colorimeter prototypes
Wed 2016 Feb 3 Finish colorimeter prototypes. Components of a design report, including design goals (specifications), block diagrams, schematics, mechanical drawings, photos, and explanations for all design choices. Gain/sensitivity/efficiency. Intro to amplifiers.
Fri 2016 Feb 5 Announcements: register for lab safety training (BELS didn't enter students as they said they would), update time logs, design reports are due Monday, PteroDAQ is broken on OS X 10.11 (will try to fix this weekend). Suggestions for groups: LED cube groups: try making touch sensors and reading them with touchRead(), trying both simple plates and interdigitated gnd and pin, work out how to do 3D soldering; Pulse monitor group: figure out physical mounting (through finger, through earlobe, reflection sensor?) and choose wavelength; Ultrasonic rangefinder group: transceivers arrived, outline what needs to be done for both hardware and software. Rest of lecture: ideal op amps, negative feedback amplifier, non-inverting amplifier, unity-gain buffer, inverting amplifier. Gain-bandwidth product.
Mon 2016 Feb 8 op amp review, transimpedance amplifier, multistage amplifier, high-pass RC filter, LED grid for reducing pins by time multiplexing, Charlieplexing, 1-of-n decoder. Colorimeter design report
Wed 2016 Feb 10amplifiers with single power supply.
Fri 2016 Feb 12Oscilloscopes in EE lab
Mon 2016 Feb 15Presidents' Day, no class
Wed 2016 Feb 17Feedback on colorimeter design reports. Hysteresis oscillator in touchRead() for Teensy.
Fri 2016 Feb 19Time multiplexing for LED cube (192 LEDs with 16 output pins, using 16-fold time multiplexing), 4-to-16 demux, current-limiting resistors, nFETs, pFETs, threshold voltage, adding 5V inverter to get easier threshold voltage specs on pFET.
Mon 2016 Feb 22 How optical pulse monitor works (systolic/diastolic pressure, restricted flow). Demo of pulse monitor—with PteroDAQ, with digital filter to remove baseline drift reporting waveform, with pulse caller and mean or median filtering. RC low-pass and high-pass filters. Intro to digital signal processing: discrete values, discrete time, sampling frequency, mention of bessel filters as best design choice for time-domain analysis. Design specs for project
Wed 2016 Feb 24
Review (requested by students) of Vgs computation for nFET and pFET in LED multiplexing.

Digital filters: z-transform, transfer function, handwaving H(e^(jw)) as response to sinusoid e^(jwt), FIR block diagram and pseudocode, IIR (biquad) block diagram and pseudocode with derivation of transfer function. Plotted gain functions for biquad filter for pulse monitor and for all-zero bandpass (1-z^-2). Biquad plotting code in biquad.gnuplot. Showed python code for selecting biquad filter parameters: design-bandpass.py.

Mentioned in e-mail, but only alluded to in class: I was looking for a good introduction to digital filters to provide backup for the lectures this week. So far, the best I've found is https://ccrma.stanford.edu/~jos/filters/ which is aimed at musicians doing computer music, so starts out at a fairly low level. The organization as a html document with many tiny pages makes reading it a bit tedious, though. http://www.dspguide.com/ch14.htm initially looked promising, but it doesn't get to the meat of the material until the end of the book, which makes it a lot of reading for relatively little directly useful content. The application note http://www.intersil.com/content/dam/Intersil/documents/an96/an9603.pdf has some good intro, but is aimed mainly at engineers, so gets rather technical quickly.

Not covered: a Python bandpass filter program for filter PteroDAQ output files, in EKG_demo.


Fri 2016 Feb 26 Choosing capacitors for RC filters, breaking bandpass into separate low-pass and high-pass with an amplifier, standard values for resistors (E24 series) and capacitors (E6 series) (see http://www.logwell.com/tech/components/resistor_values.html).

Unpacking binary numbers into digitalWrite() commands to output multi-bit numbers (for the LED cube projects).

Mon 2016 Feb 29 Timing (busy wait, delay loop, IntervalTimer to set up interrupt) Example code in wait_micros, delay_loop, and interval_timer. More detailed design report draft
Wed 2016 Mar 2 Meet in Baskin 150 for lab time
Fri 2016 Mar 4 Meet in Baskin 150 for lab time
Mon 2016 Mar 7Meet in lab Baskin 150 Progress report
Wed 2016 Mar 9Meet in lab Baskin 150
Fri 2016 Mar 11Meet in lab Baskin 150
Tues 2016 Mar 15 4–7final exam slot, Baskin 150all reports and demos


baskin-icon
SoE home
sketch of Kevin Karplus by Abe
Kevin Karplus's home page
BME-slug-icon
Biomolecular Engineering Department
Questions about page content should be directed to Kevin Karplus
Biomolecular Engineering
University of California, Santa Cruz
Santa Cruz, CA 95064
USA
karplus@soe.ucsc.edu
1-831-459-4250
318 Physical Sciences Building