Last Week Tonight with John Oliver – Elected Judges

I stumbled on John Oliver’s show “Last Week Tonight” a few weeks ago.  It is very humorous commentary.  Here is the latest one about issues with elected judges.  It does have a lot of bad language, so not recommended for kids.  But it will keep the adults entertained.

Some things to look forward to:

2015-03-02_07-22-26-alabama

 

2015-03-02_07-23-50-dill

 

You might also be questioning the location of Bolivia.

Wil Smith’s Wisdom

You want something?

Go it.

Period!

Don’t let anyone tell you that you can’t have it.

1.14 Differentiators

differentiator

This is an example of a differentiator.  Send a signal in, and the signal you get out will be just the edges of the wave form.    If the input signal is a square wave, then the output will be a series of spikes at each of the sides of the square wave

Incidentally, having a wave that includes spikes could indicate that you have unintentional capacitive coupling.

3D printer that can print circuits ($9,000)

voxel8_3dprinter_01-590x330

The Voxel8 3D printer (www.voxel8.co/) can print cavities to place electronics and components and print conductive material to connect them.  The video from CES will give you an idea of what they can do.  They print a quadcopter frame, pausing to have the controller board, motors, LED inserted in, and print the conductive material to connect them together.  Pretty amazing that it is only $9,000.

Voxel8 3D printer can print a complete quadcopter, including the circuits

1.13 RC circuits: V and I versus time

Let’s look at how voltage (V) and current (I) change with respect to time in circuits with capacitors and resistors.

Take a look at this circuit:

rc-circuit

Close the switch S1 connecting the capacitor (C1) to the battery (Vi) through resistor (R1).  How fast will C1 charge?

That is determined by the relationship between R1 and C1.  It is known as the RC time constant.

 

Assuming that C1 = 1 microfarad and R1 = 1k ohm, then the time constant will be 1.   And we have a shortcut that it will be within 1% of the input voltage with in 5RC, so within 5 seconds.

 

 

Logging 3 photo-resistors

 

I have three photoresistors in my study that are measuring light coming from 3 directions and showing the live and historical data on the graphs below.

IMG_9037

How did I do it?

Simple circuit.  Here is how the Arduino is hooked up.  (The resistors are 10k.)

ConnectionDiagram

/* Simple test of the functionality of the photo resistor

Connect a resistor (around 10k is a good value, higher
values gives higher readings) from pin 0 to GND. (see appendix of arduino notebook page 37 for schematics).

—————————————————-

PhotoR 10K
+5 o—/\/\/–.–/\/\/—o GND
|
Pin 0 o———–

Similar setup for Pin 1 & Pin 2.

—————————————————-
*/

int lightLeftPin= A0;
int lightMidPin =A1;
int lightRightPin = A2;

int lightLeft, lightMid, lightRight;

void setup()
{
Serial.begin(9600); //Begin serial communcation
}

void loop()
{

lightLeft = analogRead(lightLeftPin);
lightMid = analogRead(lightMidPin);
lightRight = analogRead(lightRightPin);

Serial.println(“###BOD”);
Serial.print(“light_right,”);
Serial.println(lightRight);
Serial.println(“###EOD”);
delay(15000);

Serial.println(“###BOD”);
Serial.print(“light_mid,”);
Serial.println(lightMid);
Serial.println(“###EOD”);

delay(15000);

Serial.println(“###BOD”);
Serial.print(“light_left,”);
Serial.println(lightLeft);
Serial.println(“###EOD”);

delay(15000);
}

I then setup an account at ThingSpeak.com

And to connect the arduino to the internet I used my laptop and a program called Seriot.  It can be downloaded from:

 

nuewire.com/seriot/

This program will listen to the serial port and write the data to ThingSpeak.com

 

seriot

You can then use Restful API calls to get to the data and to chart it.

They have a nice ChartEditor

thingspeak.com/channels/23070/charts/

thingspeak-charteditor

ThingSpeak

 

1.12 Capacitors

Capacitors hold charge.  Capacitors do not conduct.

We measure capacitance in farads and charge in coulombs (equivalent to the charge 6×10^18 electrons).

a capacitor with 1 farad of capacity will charge 1 coulomb of charge after 1 volt has been applied across its terminals for 1 second.

Q=CV

The capacitor is basically plates of two conductors separated by a non-conductor.  When a voltage is applied, the charge accumulates.  And when the voltage has been removed, then it can release that charge.

I found this really cute video that explains a capacitor:

The total capacitance of capacitors in parallel is the sum of the capacitors.

Ctotal = C1+C2+C3…

Capacitors in parallel will always result in a BIG capacitance.

However capacitors in series will always result in a smaller capacitance.  Two capacitors in series have the capacitance of:

Ctotal = (C1C2)/(C1+C2)

Capacitors in series will always result in a capacitance smaller than the smaller capacitor.

Since capacitors do not conduct current, they do not dissipate power.

<iframe src=”http://prezi.com/embed/i1psv7u6nfbl/?bgcolor=ffffff&amp;lock_to_path=0&amp;autoplay=0&amp;autohide_ctrls=0&amp;features=undefined&amp;token=undefined&amp;disabled_features=undefined” width=”550″ height=”400″ frameBorder=”0″ webkitAllowFullScreen mozAllowFullscreen allowfullscreen></iframe>

1.11 Signal Sources

There are a variety of test equipment that can create signals with ranges of different characteristics.  Three classes of these signal sources we will talk about today: Signal Generators, Pulse Generators, and function Generators.

Signal Generators produce sine waves while allowing you to define the amplitude, frequency, and even allowing for these to vary overtime.

sineWaveFrequency

Pulse Generators create pulses, allowing for you to vary the amplitude, pulse width, frequency, and even rise time and fall time.

pulse amplitude

Function Generators allow for you to create more complex waves, in a variety of shapes:

sine-square-triange-sawtooth-waves

 

1.09 Other signals and 1.10 Logic Levels

Let’s cover two sections today:
1.09 Other signals
1.10 Logic Levels

We have been looking at Voltage as a function of time and seeing how it will look on a graph.  The past few days we have talked about graphs that are sine wave.

sinewaveDifferent2

But there could be other ways that this could look too.  Consider if voltage started out at zero and continued to increase.  It would look something like this:

ramp

But it is not possible to increase voltage indefinitely and so the graph would really look like this:  (Ramp with limit)

rampWithLimit

But there are other interesting graphs to.  Consider the case of voltage increasing to a point, and then when it reaches a certain point it goes to zero and then begins again.  Let’s say you have a circuit that triggers at a certain voltage, and a capacitor that you are charging up till that point.  It might looks something like this sawtooth wave:

sawtoothwave

But you can also imagine a case where it reaches a point and decreases at the same linear rate.  This would look like a triangle wave:

trianglewave

And then there is noise, a complex, background static that we always need to consider and usually minimize:

noise

Square waves

squareWave

Steps

step

Spikes

spike

But in digital electronics we concern ourselves with logic levels and interrupting a particular voltage as either a true or a false; as a on or a off; as a 1 or 0.  Most digital electronics have a threshold voltage.  Above that voltage it is considered to be true/on/1.  Below that voltage it is considered to be false/off/0.

LogicLevel

 

 

1.08 Signal amplitudes and decibels

Peak-to-peak amplitude (pp amplitude) is twice the amplitude. This is the measurement of the amplitude from the bottom peak to the top peak as illustrated below:
sine-wave-pp-amplituded

 

root-mean-square amplitude (rms amplitude) has different formulas based upon the shape of the signal.  For sine waves only it is given by:

sinewave-rms

Decibels is a comparison between two signals.

When comparing amplitude use this formula:

decibels-amplitude

 

 

 

When comparing the power use this formula:

decibels-power

 

Sometimes decibels are presented as units.  This is because their is an implicit signal that is being used for comparison.  Here are some common ones:

a) dBV:  1 volt rms

b) dBm – the voltage corresponding to 1mW with an assumed load impedance

c) small noise generated by a resistor at room temperature