You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/hardware/02.hero/boards/uno-r4-wifi/tutorials/adc-resolution/adc-resolution.md
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,8 @@ tags:
5
5
- ADC
6
6
- 14-bit
7
7
author: 'Karl Söderby'
8
+
hardware:
9
+
- hardware/02.hero/boards/uno-r4-wifi
8
10
---
9
11
10
12
In this tutorial you will learn how to change the analog-to-digital converter (ADC) on an **Arduino UNO R4 WiFi** board. By default, the resolution is set to 10-bit, which can be updated to both 12-bit (0-4096) and 14-bit (0-16383) resolutions for improved accuracy on analog readings.
Copy file name to clipboardExpand all lines: content/hardware/02.hero/boards/uno-r4-wifi/tutorials/can/can.md
+5-70Lines changed: 5 additions & 70 deletions
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,8 @@ description: 'Learn how to send messages using the CAN bus on the UNO R4 WiFi.'
4
4
tags:
5
5
- CAN
6
6
author: 'Karl Söderby'
7
+
hardware:
8
+
- hardware/02.hero/boards/uno-r4-wifi
7
9
---
8
10
9
11
In this tutorial you will learn how to use the CAN controller on the **Arduino UNO R4 WiFi** board. The CAN controller is embedded in the UNO R4 WiFi's microcontroller (RA4M1). CAN is a serial protocol that is mainly used in the automotive industry.
@@ -25,7 +27,7 @@ The goals of this tutorial are:
25
27
- CAN transceiver module *
26
28
- Jumper wires
27
29
28
-
* In this tutorial, we are using a SN65HVD230 breakout module.
30
+
\* In this tutorial, we are using a SN65HVD230 breakout module.
After you have crafted a CAN message, we can send it off, by using the `CAN.write()` method. The following example creates a CAN message that increases each time `void loop()` is executed.
Once you have uploaded the code to the board, it should start generating a sine wave oscillation on the DAC, that depending on the frequency could be used to produce sound on a piezo buzzer or speaker. If you have an oscilloscope at hand, connecting its probe to the DAC output might be an interesting exercise so see what the wave looks like.
@@ -87,149 +68,12 @@ Now that you know your setup is working, you can experiment further with differe
87
68
### Frere Jacques
88
69
89
70
This one for example plays the melody of Frere Jacques:
90
-
```arduino
91
-
/*
92
-
DAC Melody player
93
-
94
-
Generates a series of tones from MIDI note values
95
-
using the Uno R4 DAC and the AnalogWave Library.
96
-
The melody is "Frere Jacques"
97
-
98
-
circuit:
99
-
* audio amp (LM386 used for testing) input+ attached to A0
100
-
* audio amp input- attached to ground
101
-
* 4-8-ohm speaker attached to amp output+
102
-
* Potentiometer connected to pin A5
103
-
104
-
created 13 Feb 2017
105
-
modified 3 Jul 2023
106
-
by Tom Igoe
107
-
*/
108
-
#include "analogWave.h"
109
-
analogWave wave(DAC);
110
-
111
-
#define NOTE_A4 69 // MIDI note value for middle A
112
-
#define FREQ_A4 440 // frequency for middle A
113
-
114
-
// the tonic, or first note of the key signature for the song:
115
-
int tonic = 65;
116
-
// the melody sequence. Note values are relative to the tonic:
117
-
int melody[] = {1, 3, 5, 1,
118
-
1, 3, 5, 1,
119
-
5, 6, 8, 5, 6, 8,
120
-
8, 10, 8, 6, 5, 1,
121
-
8, 10, 8, 6, 5, 1,
122
-
1, -4, 1,
123
-
1, -4, 1
124
-
};
125
-
// the rhythm sequence. Values are 1/note, e.g. 4 = 1/4 note:
By following this tutorials you've experimented with the DAC on the Arduino UNO R4 boards and used it to first generate a sine wave, and then to explore the possibilities of analog output by testing out various examples.
Copy file name to clipboardExpand all lines: content/hardware/02.hero/boards/uno-r4-wifi/tutorials/eeprom/eeprom.md
+6-34Lines changed: 6 additions & 34 deletions
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,8 @@ tags:
5
5
- RTC
6
6
- Alarm
7
7
author: 'Karl Söderby'
8
+
hardware:
9
+
- hardware/02.hero/boards/uno-r4-wifi
8
10
---
9
11
10
12
In this tutorial you will learn how to access the EEPROM (memory) on an **Arduino UNO R4 WiFi** board. The EEPROM is embedded in the UNO R4 WiFi's microcontroller (RA4M1).
@@ -42,49 +44,19 @@ EEPROM.read(0); //reads first byte
42
44
43
45
There are several more methods available when working with EEPROM, and you can read more about this in the [A Guide to EEPROM](https://docs.arduino.cc/learn/programming/eeprom-guide).
44
46
45
-
***Please note: EEPROM is a type of memory with limited amount of write cycles. Be cautious when writing to this memory as you may significantly reduce the lifespan of this memory.***
47
+
***Please note: EEPROM is a type of memory with a limited amount of write cycles. Be cautious when writing to this memory as you may significantly reduce the lifespan of this memory.***
46
48
47
49
### EEPROM Write
48
50
49
51
A minimal example on how to **write** to the EEPROM can be found below:
Copy file name to clipboardExpand all lines: content/hardware/02.hero/boards/uno-r4-wifi/tutorials/rtc/rtc.md
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,8 @@ tags:
5
5
- RTC
6
6
- Alarm
7
7
author: 'Karl Söderby'
8
+
hardware:
9
+
- hardware/02.hero/boards/uno-r4-wifi
8
10
---
9
11
10
12
In this tutorial you will learn how to access the real-time clock (RTC) on an **Arduino UNO R4 WiFi** board. The RTC is embedded in the UNO R4 WiFi's microcontroller (RA4M1).
0 commit comments