0 Tutorial: Connecting a Simple Circuit to the EspoTek Labrador
Torsten Reuschel edited this page 2022-05-01 02:39:57 +02:00
This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

A Few Important Notes

There are some things to keep in mind when using your Labrador board:

  • Labrador is a collection of independent tools that happen to share a single USB connection and software interface. Apart from small amounts of unintended crosstalk, there are no internal connections between Labradors different instruments!

  • All voltages are GND-referenced, with the exception of the multimeter which references CH1 against CH2. If your oscilloscope measures 5V, it means that the voltage at the node your oscilloscope pin is connected to is 5V higher than the Labradors GND pin. Make sure you connect the GND node of the circuit you are testing to Labradors GND pin!

(NOTE: There is no such thing as an "absolute voltage". Voltage measures the difference in electrical potential between two conductors. For example, a 1.5V battery does not "have" 1.5V. Rather, the electrical potential of its positive terminal is 1.5V higher than that of its negative terminal.).

  • The AC coupled pins remove the DC component from your signals, and are meant mainly for audio purposes and dual-ended opamps. For general use, you will almost always want to use the DC-coupled pins, as they do not alter your signal in any way.

  • Labrador is idiot-proof. You should be able to short any two pins together without damaging your board, and even if you do something like connecting a 12V external power supply directly to one of your digital output pins, theyll nobly sacrifice themselves to ensure the rest of the board will still function (and you can fix it by replacing a single resistor). Experiment a bit! You cant do too much wrong.

  • Labrador is idiot-proof, but not complete-idiot-proof! If you start touching live wires to random components on your board, I cannot guarantee what will happen. Please make sure you only connect your circuits to the external header pins, and dont dangle live wires near the microcontroller!

A Simple Circuit Example

The simplest circuit I can think of is the voltage divider:

It transforms the input voltage Vin to the output voltage Vout according to the equation:

For example, if you used a 1kOhm resistor for R1 and a 10kOhm resistor for R2, the voltage Vout would equal 10/11 of the input voltage Vin.

I tested this theory in real life by building the voltage divider and connecting it to Labrador!

You can do the same. If you have not dealt with oscilloscopes or signal generators before, this is the best place to start. Below is a picture of my breadboard.

(NOTE: If you are not familiar with how the connections in a breadboard work, I recommend checking out Adafruits tutorial. I also recommend tearing the backing off of a breadboard at least once in your life. Just make sure you have duct tape handy to put it back together again.)

The top yellow wire connects Vin to both the signal generator CH1 as well as the oscilloscope CH2 pin. The lower yellow wire connects Vout to oscilloscope CH1. The black wire connects the circuit's GND pin to Labrador's GND pin. The resistors used were both 6.8kOhm, meaning that the voltage at Vout should be approximately half the voltage at Vin.

(NOTE: I say "approximately half" because the properties of analog components may deviate from their specified value. The resistors I used have a tolerance of +/-1%, i.e. the actual resistance can be anywhere between 6.73kOhm and 6.87kOhm. This can lead to a slight imbalance in your circuit.)

To test the theory, I loaded up the Labrador's software interface and generated a 3V sin wave using the signal generator CH1. As per above, oscilloscope CH1 (yellow trace) measures Vout, and oscilloscope CH2 (blue trace) measures Vin.

At first glance, it appears as though the yellow trace is about half the height as the blue trace. I looked at the max and mean voltages to confirm this, though. In fact, the mean of 0.681V is approximately half of 1.358V, and the maximum 1.465V is approximately half of 2.92V. We can conclude that Vout equals approximately one half of Vin.