• If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!


Resources for PHC435 and PHM1138

Page history last edited by David Dubins 2 years, 6 months ago

PHC435 - Pharmaceutical Data Acquisition and Analysis

PHM1138 - Electronics for Pharmaceutical Applications


Welcome to PHC435/PHM1138!


Here you will find extra resources that will help you throughout the course.

At Arduino Modules and Sketches you will find resource page with many interesting devices you can add to your own projects.

The Optional Tutorial Projects page has many relevant activities that you can work on during our optional tutorials. Would you like some extra practice, or perhaps you'd just like to have some fun? I have all of the modules/equipment for these activities.


What you will need for class:

  • A laptop and laptop charger
  • A pencil, eraser, and ruler
  • A highlighter 


Section 1: Course Introduction

           Gibilisco, S. Beginner's Guide to Reading Schematics, Fourth Ed. McGraw Hill Education, New York 2018.


Section 2: Introduction to Electronic Components and Circuit Design 

  • A voltage regulator and current regulator spreadsheet for the LM317: LM317.xlsx
  • A 3-digit capacitor code lookup application.


Section 3: Programming in the Arduino C++ Environment


Section 4: Arduino Digital and Analog Pins, Declaring Functions in Arduino

  • Excel worksheet to calculate the B-coefficient for the 2-term exponential thermistor equation: Bcoeff.xlsx


Section 5: Switching Power


Section 6: Process Control 


Section 7: Operational Amplifiers 

  • Simplified pH Meter calibration spreadsheet: pHcal.xlsx
  • Simplified load cell calibration spreadsheet: scaleCal.xlsx
  • Online Instructables tutorial 
  • Some other great resources: 
    • There is almost no end to the literature out there on op-amps, but when you actually set up your circuit, there are very common pitfalls that will happen. This online textbook chapter from "allaboutcircuits.com" discusses practical aspects of planning your op-amp circuit in plain language, and is extremely useful. 
    • Ron Mancini's op-amp bible for Texas Instruments: Op Amps For Everyone
    • Nice op-amp summary chart
    • TLO7X Datasheet (Texas Instruments)
    • Another book chapter on operational amplifiers (supplementary reading, higher level than required). 


Section 8: Time Functions, Data Smoothing, Data Logging


Arduino Model Fitting

     Although the Uno is a small platform, there is enough space to do some model fitting directly on the board. The following three routines are provided as standalone examples:

  • SVD.ino is a Singular Value Decomposition model fitting routine, adapted from  William Press, Numerical Recipes in C++: The Art of Scientific Computing (2nd edition). In this example, it is fitting a linear model to convert R,G,B values from a colour sensor to wavelength.
  • NN.ino is a Neural Network model fitting routine, adapted from Ralph Heymsfeld's program available with a fantastic description hereThe sketch trains a small neural network to recognize colour categories (yellow, red, etc.) based on experimentally collected values from the R,G,B colour sensor. 
  • DSO.ino is a random search optimization routine by Rein Luus that can be used for model fitting. The routine is a bit slower, but with careful manipulation can converge even with complicated nonlinear models. The example sketch solves an arbitrary test system of linear equations (AX=Y) where Y is the measured (observed) dependent variable, and A is the series of coefficients (or readings) for the independent parameters X. The program fits parameter values X to satisfy AX=Y. For instance, for our RGB colour-to-wavelength example, one row of the data set to be fit could be:

                 16*xp(0) + 45*xp(1) + 33*xp(2) = 700

                    where the measured readings coming from the colour sensor are stored in A={16, 45, 33),

                    X are the fitted parameters for red, green, blue,

                    and Y = 700 nm (red wavelength).

                 The program will guess, refine, and provide parameter estimates for xp(0), xp(1), and xp(2), by minimizing (Yfit - Yobs)^2. 


Design Project/Extra Credit  

  • Access the Arduino Modules and Sketches page to learn about elements you can incorporate in your project.
  • Build and test fun circuits for extra credit! 
  • Download the laboratory equipment inventory here:  Equipment.xlsx 


Comments (0)

You don't have permission to comment on this page.