Skip to content

Commit 90acafe

Browse files
committed
update both files
1 parent 9957f3d commit 90acafe

File tree

3 files changed

+32
-4
lines changed

3 files changed

+32
-4
lines changed
53.6 KB
Loading

content/hardware/02.hero/boards/uno-r4-minima/tutorials/opamp/opamp.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,41 @@ Below is a capture of an oscilloscope in which an approx. 2 V square wave (green
5959

6060
![Oscilloscope measurements](./assets/amp_screenshot.png)
6161

62+
But let's say you want to amplify the voltage signal 4x instead of 2x. The amplification of an OPAMP mainly depends on the chosen resistor values. Take a look at the formula below:
63+
64+
![Calculate resistor value](./assets/calc.png)
65+
66+
**Av** = Amplified Voltage (V)
67+
68+
**R1** = Resistor connected to Ground (Ω)
69+
70+
**R2** = Feedback resistor (Ω)
71+
72+
We know we want to amplify the voltage times four so:
73+
74+
**Av** = 4 V
75+
76+
Now, we need to figure out what resistors to choose. Because we only can solve for one unknown value we choose a predefined value for one of the resistors, e.g. 10k Ω for R1.
77+
78+
**R1** = 10k Ω
79+
80+
Your formula should now look like this:
81+
82+
![Add values to the formula](./assets/numCalc.png)
83+
84+
That leaves R2 as the only unknown variable. Now, Subtract one from both sides and multiply by ten, which leaves us with:
85+
86+
**R2 = 30k Ω**
87+
6288
## Circuit
6389

6490
![Voltage 2x Amplifier Circuit](./assets/circuitAmplifierMinima.png)
6591

92+
***Read more about an amplifier circuit [here](https://www.electronics-tutorials.ws/opamp/opamp_3.html).***
93+
6694
## Code
6795

68-
To start up the opamp, simply include the library and call `OPAMP.begin(speed)`. As the optional `speed` argument to this function, can choose either `OPAMP_SPEED_LOWSPEED`` as the low-speed (=lower power) mode or `OPAMP_SPEED_HIGHSPEED` as the high-speed, high-power mode.
96+
To start up the opamp, simply include the library and call `OPAMP.begin(speed)`. As the optional `speed` argument to this function, can choose either `OPAMP_SPEED_LOWSPEED` as the low-speed (lower power) mode or `OPAMP_SPEED_HIGHSPEED` as the high-speed, high-power mode.
6997

7098
```arduino
7199
#include <OPAMP.h>

content/hardware/02.hero/boards/uno-r4-wifi/tutorials/opamp/opamp.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Below is a capture of an oscilloscope in which an approx. 2 V square wave (green
6161

6262
But let's say you want to amplify the voltage signal 4x instead of 2x. The amplification of an OPAMP mainly depends on the chosen resistor values. Take a look at the formula below:
6363

64-
![1Calculate resistor value](./assets/calc.png)
64+
![Calculate resistor value](./assets/calc.png)
6565

6666
**Av** = Amplified Voltage (V)
6767

@@ -79,7 +79,7 @@ Now, we need to figure out what resistors to choose. Because we only can solve f
7979

8080
Your formula should now look like this:
8181

82-
![1Add values to the formula](./assets/numCalc.png)
82+
![Add values to the formula](./assets/numCalc.png)
8383

8484
That leaves R2 as the only unknown variable. Now, Subtract one from both sides and multiply by ten, which leaves us with:
8585

@@ -93,7 +93,7 @@ Your formula should now look like this:
9393

9494
## Code
9595

96-
To start up the opamp, simply include the library and call `OPAMP.begin(speed)`. As the optional `speed` argument to this function, can choose either `OPAMP_SPEED_LOWSPEED`` as the low-speed (=lower power) mode or `OPAMP_SPEED_HIGHSPEED` as the high-speed, high-power mode.
96+
To start up the opamp, simply include the library and call `OPAMP.begin(speed)`. As the optional `speed` argument to this function, can choose either `OPAMP_SPEED_LOWSPEED` as the low-speed (lower power) mode or `OPAMP_SPEED_HIGHSPEED` as the high-speed, high-power mode.
9797

9898
```arduino
9999
#include <OPAMP.h>

0 commit comments

Comments
 (0)