Skip to content

Commit 82409ec

Browse files
authored
Merge pull request #726 from arduino/jacobhylen/fix-broken-links
bulk-fixing links
2 parents e96a7f8 + 3203ca5 commit 82409ec

File tree

186 files changed

+420
-421
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

186 files changed

+420
-421
lines changed

content/arduino-cloud/01.getting-started/04.cloud-lora-getting-started/cloud-lora-getting-started_.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ You can visit the [Activate an Arduino Pro Gateway with IoT Cloud](https://suppo
270270
### Migrate Existing Gateway
271271

272272

273-
If you had a gateway setup prior to the [A2A to TTS migration](linktoblogpost.com ), you will need to complete the following steps to use the Pro Gateway.
273+
If you had a gateway setup prior to the A2A to TTS migration, you will need to complete the following steps to use the Pro Gateway.
274274

275275
To perform the Arduino Pro gateway migration:
276276

content/built-in-examples/01.basics/AnalogReadSerial/AnalogReadSerial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Connect the three wires from the potentiometer to your board. The first goes fro
3030

3131
By turning the shaft of the potentiometer, you change the amount of resistance on either side of the wiper, which is connected to the center pin of the potentiometer. This changes the voltage at the center pin. When the resistance between the center and the side connected to 5 volts is close to zero (and the resistance on the other side is close to 10k ohm), the voltage at the center pin nears 5 volts. When the resistances are reversed, the voltage at the center pin nears 0 volts, or ground. This voltage is the *analog voltage* that you're reading as an input.
3232

33-
The Arduino boards have a circuit inside called an *analog-to-digital converter or ADC* that reads this changing voltage and converts it to a number between 0 and 1023. When the shaft is turned all the way in one direction, there are 0 volts going to the pin, and the input value is 0. When the shaft is turned all the way in the opposite direction, there are 5 volts going to the pin and the input value is 1023. In between, [analogRead](https://www.arduino.cc/en/Reference/AnalogRead)() returns a number between 0 and 1023 that is proportional to the amount of voltage being applied to the pin.
33+
The Arduino boards have a circuit inside called an *analog-to-digital converter or ADC* that reads this changing voltage and converts it to a number between 0 and 1023. When the shaft is turned all the way in one direction, there are 0 volts going to the pin, and the input value is 0. When the shaft is turned all the way in the opposite direction, there are 5 volts going to the pin and the input value is 1023. In between, [analogRead](https://www.arduino.cc/reference/en/language/functions/analog-io/analogread/)() returns a number between 0 and 1023 that is proportional to the amount of voltage being applied to the pin.
3434

3535
### Schematic
3636

@@ -44,7 +44,7 @@ In the sketch below, the only thing that you do in the setup function is to begi
4444

4545
`Serial.begin(9600);`
4646

47-
Next, in the main loop of your code, you need to establish a variable to store the resistance value (which will be between 0 and 1023, perfect for an [`int`datatype](https://www.arduino.cc/en/Reference/Int)) coming in from your potentiometer:
47+
Next, in the main loop of your code, you need to establish a variable to store the resistance value (which will be between 0 and 1023, perfect for an [`int`datatype](https://www.arduino.cc/reference/en/language/variables/data-types/int/)) coming in from your potentiometer:
4848

4949
`int sensorValue = analogRead(A0);`
5050

content/built-in-examples/01.basics/DigitalReadSerial/DigitalReadSerial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Next, initialize digital pin 2, the pin that will read the output from your butt
5252

5353
Now that your setup has been completed, move into the main loop of your code. When your button is pressed, 5 volts will freely flow through your circuit, and when it is not pressed, the input pin will be connected to ground through the 10k ohm resistor. This is a digital input, meaning that the switch can only be in either an on state (seen by your Arduino as a "1", or HIGH) or an off state (seen by your Arduino as a "0", or LOW), with nothing in between.
5454

55-
The first thing you need to do in the main loop of your program is to establish a variable to hold the information coming in from your switch. Since the information coming in from the switch will be either a "1" or a "0", you can use an [`int`datatype](https://www.arduino.cc/en/Reference/Int). Call this variable `sensorValue`, and set it to equal whatever is being read on digital pin 2. You can accomplish all this with just one line of code:
55+
The first thing you need to do in the main loop of your program is to establish a variable to hold the information coming in from your switch. Since the information coming in from the switch will be either a "1" or a "0", you can use an [`int`datatype](https://www.arduino.cc/reference/en/language/variables/data-types/int/). Call this variable `sensorValue`, and set it to equal whatever is being read on digital pin 2. You can accomplish all this with just one line of code:
5656

5757
`int sensorValue = digitalRead(2);`
5858

content/built-in-examples/01.basics/ReadAnalogVoltage/ReadAnalogVoltage.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Connect the three wires from the potentiometer to your board. The first goes to
2828

2929
By turning the shaft of the potentiometer, you change the amount of resistance on either side of the wiper which is connected to the center pin of the potentiometer. This changes the voltage at the center pin. When the resistance between the center and the side connected to 5 volts is close to zero (and the resistance on the other side is close to 10 kilohms), the voltage at the center pin nears 5 volts. When the resistances are reversed, the voltage at the center pin nears 0 volts, or ground. This voltage is the **analog voltage** that you're reading as an input.
3030

31-
The microcontroller of the board has a circuit inside called an *analog-to-digital converter* or *ADC* that reads this changing voltage and converts it to a number between 0 and 1023. When the shaft is turned all the way in one direction, there are 0 volts going to the pin, and the input value is 0. When the shaft is turned all the way in the opposite direction, there are 5 volts going to the pin and the input value is 1023. In between, [analogRead](https://www.arduino.cc/en/Reference/AnalogRead)() returns a number between 0 and 1023 that is proportional to the amount of voltage being applied to the pin.
31+
The microcontroller of the board has a circuit inside called an *analog-to-digital converter* or *ADC* that reads this changing voltage and converts it to a number between 0 and 1023. When the shaft is turned all the way in one direction, there are 0 volts going to the pin, and the input value is 0. When the shaft is turned all the way in the opposite direction, there are 5 volts going to the pin and the input value is 1023. In between, [analogRead](https://www.arduino.cc/reference/en/language/functions/analog-io/analogread/)() returns a number between 0 and 1023 that is proportional to the amount of voltage being applied to the pin.
3232

3333
### Schematic
3434

@@ -40,11 +40,11 @@ In the program below, the very first thing you'll do will be in the setup functi
4040

4141
`Serial.begin(9600);`
4242

43-
Next, in the main loop of your code, you need to establish a variable to store the resistance value (which will be between 0 and 1023, perfect for an [`int`datatype](https://www.arduino.cc/en/Reference/Int)) coming in from your potentiometer:
43+
Next, in the main loop of your code, you need to establish a variable to store the resistance value (which will be between 0 and 1023, perfect for an [`int`datatype](https://www.arduino.cc/reference/en/language/variables/data-types/int/)) coming in from your potentiometer:
4444

4545
`int sensorValue = analogRead(A0);`
4646

47-
To change the values from 0-1023 to a range that corresponds to the voltage the pin is reading, you'll need to create another variable, a [`float`](https://www.arduino.cc/en/Reference/Float), and do a little math. To scale the numbers between 0.0 and 5.0, divide 5.0 by 1023.0 and multiply that by **sensorValue** :
47+
To change the values from 0-1023 to a range that corresponds to the voltage the pin is reading, you'll need to create another variable, a [`float`](https://www.arduino.cc/reference/en/language/variables/data-types/float/), and do a little math. To scale the numbers between 0.0 and 5.0, divide 5.0 by 1023.0 and multiply that by **sensorValue** :
4848

4949
`float voltage= sensorValue * (5.0 / 1023.0);`
5050

content/built-in-examples/02.digital/InputPullupSerial/InputPullupSerial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ The following line make pin 13, with the onboard LED, an output :
5353

5454
Now that your setup has been completed, move into the main loop of your code. When your button is not pressed, the internal pull-up resistor connects to 5 volts. This causes the Arduino to report "1" or HIGH. When the button is pressed, the Arduino pin is pulled to ground, causing the Arduino report a "0", or LOW.
5555

56-
The first thing you need to do in the main loop of your program is to establish a variable to hold the information coming in from your switch. Since the information coming in from the switch will be either a "1" or a "0", you can use an [`int`datatype](https://www.arduino.cc/en/Reference/Int). Call this variable `sensorValue`, and set it to equal whatever is being read on digital pin 2. You can accomplish all this with just one line of code:
56+
The first thing you need to do in the main loop of your program is to establish a variable to hold the information coming in from your switch. Since the information coming in from the switch will be either a "1" or a "0", you can use an [`int`datatype](https://www.arduino.cc/reference/en/language/variables/data-types/int/). Call this variable `sensorValue`, and set it to equal whatever is being read on digital pin 2. You can accomplish all this with just one line of code:
5757

5858
`int sensorValue = digitalRead(2);`
5959

content/built-in-examples/03.analog/AnalogInOutSerial/AnalogInOutSerial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ In the sketch below, after declaring two pin assignments (analog 0 for our poten
4141

4242
Next, in the main loop, `sensorValue` is assigned to store the raw analog value read from the potentiometer. Arduino has an `analogRead` range from 0 to 1023, and an `analogWrite` range only from 0 to 255, therefore the data from the potentiometer needs to be converted to fit into the smaller range before using it to dim the LED.
4343

44-
In order to convert this value, use a function called [map()](https://www.arduino.cc/en/Reference/Map):
44+
In order to convert this value, use a function called [map()](https://www.arduino.cc/reference/en/language/functions/math/map/):
4545

4646
`outputValue = map(sensorValue, 0, 1023, 0, 255);`
4747

content/built-in-examples/03.analog/AnalogInput/AnalogInput.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Photoresistor
6767

6868
At the beginning of this sketch, the variable `sensorPin` is set to to analog pin 0, where your potentiometer is attached, and `ledPin` is set to digital pin 13. You'll also create another variable, `sensorValue` to store the values read from your sensor.
6969

70-
The [`analogRead()`](https://www.arduino.cc/en/Reference/AnalogRead) command converts the input voltage range, 0 to 5 volts, to a digital value between 0 and 1023. This is done by a circuit inside the microcontroller called an *analog-to-digital converter* or *ADC*.
70+
The [`analogRead()`](https://www.arduino.cc/reference/en/language/functions/analog-io/analogread/unctions/analog-io/analogread/) command converts the input voltage range, 0 to 5 volts, to a digital value between 0 and 1023. This is done by a circuit inside the microcontroller called an *analog-to-digital converter* or *ADC*.
7171

7272
By turning the shaft of the potentiometer, you change the amount of resistance on either side of the center pin (or wiper) of the potentiometer. This changes the relative resistances between the center pin and the two outside pins, giving you a different voltage at the analog input. When the shaft is turned all the way in one direction, there is no resistance between the center pin and the pin connected to ground. The voltage at the center pin then is 0 volts, and `analogRead()` returns 0. When the shaft is turned all the way in the other direction, there is no resistance between the center pin and the pin connected to +5 volts. The voltage at the center pin then is 5 volts, and `analogRead()` returns 1023. In between, `analogRead()` returns a number between 0 and 1023 that is proportional to the amount of voltage being applied to the pin.
7373

content/built-in-examples/03.analog/AnalogWriteMega/AnalogWriteMega.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Connect the longer, positive legs (anodes) of 12 LEDs to digital pins 2-13 throu
3737

3838
### Code
3939

40-
In the `setup()` function of the code below, a [`for()`](https://www.arduino.cc/en/Reference/For) loop is used to assign digital pins 2-13 of the Mega as outputs.
40+
In the `setup()` function of the code below, a [`for()`](https://www.arduino.cc/reference/en/language/structure/control-structure/for/) loop is used to assign digital pins 2-13 of the Mega as outputs.
4141

4242
Next, in the `loop()` function of the program below, a trio of nested `for()` loops are used.
4343

content/built-in-examples/03.analog/Smoothing/Smoothing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ tags:
1010
- Code
1111
---
1212

13-
This sketch reads repeatedly from an analog input, calculating a running average and printing it to the computer. This example is useful for smoothing out the values from jumpy or erratic sensors, and also demonstrates the use of [arrays](https://www.arduino.cc/en/Reference/Array) to store data.
13+
This sketch reads repeatedly from an analog input, calculating a running average and printing it to the computer. This example is useful for smoothing out the values from jumpy or erratic sensors, and also demonstrates the use of [arrays](https://www.arduino.cc/reference/en/language/variables/data-types/array/) to store data.
1414

1515
### Hardware
1616

@@ -34,7 +34,7 @@ Connect one pin of a potentiometer to 5V, the center pin to analog pin 0, and th
3434

3535
### Code
3636

37-
The code below sequentially stores 10 readings from your analog sensor into an [arrays](https://www.arduino.cc/en/Reference/Array), one by one. With each new value, the sum of all the numbers is generated and divided, producing an average value which then be used to smooth outlying data. Because this averaging takes place each time a new value is added to the array (rather then waiting for 10 new values, for instance) there is no lag time in calculating this running average.
37+
The code below sequentially stores 10 readings from your analog sensor into an [arrays](https://www.arduino.cc/reference/en/language/variables/data-types/array/), one by one. With each new value, the sum of all the numbers is generated and divided, producing an average value which then be used to smooth outlying data. Because this averaging takes place each time a new value is added to the array (rather then waiting for 10 new values, for instance) there is no lag time in calculating this running average.
3838

3939
Altering the size of the array used, by changing `numReadings` to a larger value will smooth the data collected even further.
4040

content/built-in-examples/04.communication/ReadASCIIString/ReadASCIIString.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ RGB LEDs with a common anode share a common power pin. Instead of turning a pin
4343

4444
### Code
4545

46-
You'll first set up some [global variables](/referencehttps://www.arduino.cc/en/language/variables/variable-scope-qualifiers/scope/) for the pins your LED will connect to. This will make it easier to differentiate which one is red, green, and blue in the main part of your program:
46+
You'll first set up some [global variables](/reference/en/language/variables/variable-scope-qualifiers/scope/) for the pins your LED will connect to. This will make it easier to differentiate which one is red, green, and blue in the main part of your program:
4747

4848
```arduino
4949
const int redPin = 3;
@@ -65,7 +65,7 @@ pinMode(greenPin, OUTPUT);
6565
pinMode(bluePin, OUTPUT);
6666
```
6767

68-
In the [loop](https://www.arduino.cc/en/Reference/Loop)(), check to see if there is any data in the serial buffer. By making this a [while()](https://www.arduino.cc/en/Reference/While) statement, it will run as long as there is information waiting to be read :
68+
In the [loop](https://www.arduino.cc/en/Reference/Loop)(), check to see if there is any data in the serial buffer. By making this a [while()](https://www.arduino.cc/reference/en/language/structure/control-structure/while/) statement, it will run as long as there is information waiting to be read :
6969

7070
```arduino
7171
while (Serial.available() > 0) {
@@ -109,7 +109,7 @@ Serial.print(green, HEX);
109109
Serial.println(blue, HEX);
110110
```
111111

112-
Finally, close up your brackets from the [if](https://www.arduino.cc/en/Reference/If) statement, while statement, and main loop :
112+
Finally, close up your brackets from the [if](https://www.arduino.cc/reference/en/language/structure/control-structure/if/) statement, while statement, and main loop :
113113

114114
```arduino
115115
}

content/built-in-examples/05.control-structures/Arrays/Arrays.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ tags:
1111
- Code
1212
---
1313

14-
This variation on the [For Loop Iteration](/built-in-examples/control-structures/ForLoopIteration) example shows how to use an [**array**](https://www.arduino.cc/en/Reference/Array). An array is a variable with multiple parts. If you think of a variable as a cup that holds values, you might think of an array as an ice cube tray. It's like a series of linked cups, all of which can hold the same maximum value.
14+
This variation on the [For Loop Iteration](/built-in-examples/control-structures/ForLoopIteration) example shows how to use an [**array**](https://www.arduino.cc/reference/en/language/variables/data-types/array/). An array is a variable with multiple parts. If you think of a variable as a cup that holds values, you might think of an array as an ice cube tray. It's like a series of linked cups, all of which can hold the same maximum value.
1515

1616
The [For Loop Iteration](/built-in-examples/control-structures/ForLoopIteration) example shows you how to light up a series of LEDs attached to pins 2 through 7 of the Arduino board, with certain limitations (the pins have to be numbered contiguously, and the LEDs have to be turned on in sequence).
1717

content/built-in-examples/05.control-structures/ForLoopIteration/ForLoopIteration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ tags:
1010
featuredImage: 'board'
1111
---
1212

13-
Often you want to iterate over a series of pins and do something to each one. For instance, this example blinks 6 LEDs attached to the Arduino by using a [**for()**](https://www.arduino.cc/en/Reference/For) loop to cycle back and forth through digital pins 2-7. The LEDS are turned on and off, in sequence, by using both the [digitalWrite()](https://www.arduino.cc/en/Reference/DigitalWrite) and [delay()](https://www.arduino.cc/en/Reference/Delay) functions .
13+
Often you want to iterate over a series of pins and do something to each one. For instance, this example blinks 6 LEDs attached to the Arduino by using a [**for()**](https://www.arduino.cc/reference/en/language/structure/control-structure/for/) loop to cycle back and forth through digital pins 2-7. The LEDS are turned on and off, in sequence, by using both the [digitalWrite()](https://www.arduino.cc/en/Reference/DigitalWrite) and [delay()](https://www.arduino.cc/reference/en/language/functions/time/delay/) functions .
1414

1515
We also call this example "[Knight Rider](http://en.wikipedia.org/wiki/KITT)" in memory of a TV-series from the 80's where David Hasselhoff had an AI machine named KITT driving his Pontiac. The car had been augmented with plenty of LEDs in all possible sizes performing flashy effects. In particular, it had a display that scanned back and forth across a line, as shown in this exciting [fight between KITT and KARR](https://www.youtube.com/watch?v=PO5E5mQIy_Q). This example duplicates the KITT display.
1616

content/built-in-examples/05.control-structures/SwitchCase/SwitchCase.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ tags:
1111
- Code
1212
---
1313

14-
An if statement allows you to choose between two discrete options, TRUE or FALSE. When there are more than two options, you can use multiple if statements, or you can use the [**switch**](https://www.arduino.cc/en/Reference/SwitchCase) statement. Switch allows you to choose between several discrete options. This tutorial shows you how to use it to switch between four desired states of a photo resistor: really dark, dim, medium, and bright.
14+
An if statement allows you to choose between two discrete options, TRUE or FALSE. When there are more than two options, you can use multiple if statements, or you can use the [**switch**](https://www.arduino.cc/reference/en/language/structure/control-structure/switchcase/) statement. Switch allows you to choose between several discrete options. This tutorial shows you how to use it to switch between four desired states of a photo resistor: really dark, dim, medium, and bright.
1515

1616
This program first reads the photoresistor. Then it uses the `map()` function to map its output to one of four values: 0, 1, 2, or 3. Finally, it uses the `switch()` statement to print one of four messages back to the computer depending on which of the four values is returned.
1717

0 commit comments

Comments
 (0)