Skip to content

Commit 1bf15e7

Browse files
authored
Merge pull request #2240 from tah997/patch-6
Grammar fixed and improvements to style opamp.md
2 parents f613894 + a795c5e commit 1bf15e7

File tree

1 file changed

+8
-8
lines changed
  • content/hardware/02.hero/boards/uno-r4-wifi/tutorials/opamp

1 file changed

+8
-8
lines changed

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

+8-8
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ In this article, you will learn:
2727

2828
- [Arduino UNO R4 WiFi](https://store.arduino.cc/uno-r4-wifi)
2929
- resistors
30-
- Jumper wires
30+
- jumper wires
3131

3232

3333
## Operational Amplifier (OPAMP)
@@ -55,33 +55,33 @@ A voltage amplifier, as the name suggests, amplifies the voltage. A simple 2x am
5555

5656
***The amplified output signal should not go above ~4.7 V, otherwise clipping will appear and you can damage the board***
5757

58-
Below is a capture of an oscilloscope in which an approx. 2 V square wave (green, channel 2) is amplified to a 4 V square wave (yellow, channel 1) with the circuit shown below. The input signal was generated by a function generation (and shared GND was connected).
58+
Below is a capture of an oscilloscope in which an approx. 2 V square wave (green, channel 2) is amplified to a 4 V square wave (yellow, channel 1) with the circuit shown below. The input signal was generated by a function generator (and shared GND was connected).
5959

6060
![Oscilloscope measurements](./assets/amp_screenshot.png)
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

6464
![Calculate resistor value](./assets/calc.png)
6565

66-
**Av** = Amplified Voltage (V)
66+
**Av** = Amplified voltage (V)
6767

68-
**R1** = Resistor connected to Ground (Ω)
68+
**R1** = Resistor connected to GND (Ω)
6969

7070
**R2** = Feedback resistor (Ω)
7171

7272
We know we want to amplify the voltage times four so:
7373

7474
**Av** = 4 V
7575

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.
76+
Now, we need to figure out what resistors to choose. Because we can only solve for one unknown value, we choose a predefined value for one of the resistors, e.g. 10k Ω for R1.
7777

7878
**R1** = 10k Ω
7979

8080
Your formula should now look like this:
8181

8282
![Add values to the formula](./assets/numCalc.png)
8383

84-
That leaves R2 as the only unknown variable. Now, Subtract one from both sides and multiply by ten, which leaves us with:
84+
That leaves R2 as the only unknown variable. Now, subtract one from both sides. Next, multiply both sides by ten thousand (10k), which leaves us with:
8585

8686
**R2 = 30k Ω**
8787

@@ -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>
@@ -104,4 +104,4 @@ void setup () {
104104
105105
void loop() {}
106106
107-
```
107+
```

0 commit comments

Comments
 (0)