Skip to content

Commit baccd79

Browse files
committed
Trying out navigation options
1 parent 8fe73dd commit baccd79

File tree

4 files changed

+71
-48
lines changed

4 files changed

+71
-48
lines changed

www/en/modules/ROOT/pages/analog-outputs-nav.adoc

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,42 @@ The connectors used are [A0],[A1],[A2] as shown below
1111

1212
image::GrovePicoShieldAnalogConnections.png[]
1313

14-
* xref:grove-analog-outputs-pwm.adoc[Grove Analog Outputs PWM]
14+
This example uses the buzzer module but the source code is also applicable for other similar Grove Modules.
15+
16+
The connectors used are [A0],[A1],[A2] as shown below
17+
18+
image::GrovePicoShieldAnalogConnections.png[]
19+
20+
== Hardware Details
21+
22+
https://wiki.seeedstudio.com/Grove-Passive-Buzzer/[Grove Passive Buzzer]
23+
24+
25+
== Demo Video
26+
27+
Here is a video that shows the set-up and running of the Passive buzzer using a piano scale to demonstrate Frequency and Duty Cycle
28+
29+
video::0-suR8HejsY[youtube]
30+
31+
32+
== Example Code
33+
34+
Navigate to >>Scratchpad>>Grove>>Analog Output PWM>>**Piano PWM AO.vi**
35+
36+
image::images\GroveAnalogOutputPWMProject.png[]
37+
38+
This particular VI uses the passive buzzer to make the sound. Select the port for the connected Pico and the Grove connector that the board is plugged into. Press the run arrow.
39+
40+
Links to various other similar boards are also on the Front Panel.
41+
42+
image::images\GroveAnalogOutPWMFP.png[]
43+
44+
On the block diagram you can see that the selected Grove connector dictates the GPIO Pin and we then wire it to the *Configure PWM.vi* . Next we loop round the event structure waiting for button press events. If a piano key is pressed the corresponding frequency will be entered into the *PWM Write Frequency.vi*. If the duty cycle is high enough a sound of the right key should be heard. Pressing Stop will fire the Stop event and exit the loop.
45+
46+
image::images\GroveAnalogOutPWMBD.png[]
47+
48+
49+
1550

1651
There are also options that communicate using I2C. These will use connectors I2C0 and I2C1 as shown. Commonly these will offer improved resolution e.g. 16 bits so 65536 levels. They may also offer amplifiers, multiplexers or other enhanced functionality.
1752

www/en/modules/ROOT/pages/digital-outputs-nav.adoc

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,26 @@
11
= Grove Digital Outputs
22
:page-toclevels: 1
3-
4-
== Overview
3+
== Standard Digital Output
4+
=== Overview
55

66
A digital output can be thought of as the signal to an LED or a relay. These examples use the GPIO Pins [D16,D17],[D18,D19],[D20,D21] that correspond to connectors D16,D18 and D20 on the grove shield.
77

88
image::GroveDigitalConnectionsPico.png[]
99

10-
* xref:grove-digital-outputs.adoc[Grove Digital Outputs]
11-
12-
== Hardware Details
10+
=== Hardware Details
1311

1412
https://wiki.seeedstudio.com/Grove-Red_LED/[Grove LED]
1513

1614
https://wiki.seeedstudio.com/Grove-Relay/[Grove Relay]
1715

1816

19-
== Demo Video
17+
=== Demo Video
2018

2119
Here is a video that shows the set-up and running of the LED and Relay Examples
2220

23-
video::5MPWDghnn5Q[youtube]
21+
video::w0F2TlSiCmE[youtube]
2422

25-
== Example Code
23+
=== Example Code
2624

2725
Navigate to >>Scratchpad>>Grove>>Digital Inputs>>Grove Digital Out.vi
2826

@@ -41,12 +39,11 @@ The video shows the same VI being used to switch a relay on and off.
4139

4240
image::GroveDigitalOutLEDBD.png[]
4341

44-
= I2C Digital Output Boards
42+
== I2C 4 Channel SPDT Relay Board
4543

4644
There are also options that communicate using I2C. These will use connectors I2C0 and I2C1 as shown.
4745

4846
image::GrovePicoShieldI2CConnection.png[]
49-
* xref:grove-i2c-4-channel-spdt-relay-board.adoc[Grove I2C 4 Channel Relay Board]
5047

5148
This example uses the grove 4 Channel Relay module, there are other similar modules that may work with this code.
5249

@@ -55,18 +52,18 @@ The GPIO Pins used are [I2C0] or [I2C1]
5552
image::GrovePicoShieldI2CConnection.png[]
5653

5754

58-
== Hardware Details
55+
=== Hardware Details
5956

6057
https://wiki.seeedstudio.com/Grove-4-Channel_SPDT_Relay/[Grove I2C 4 Channel SPDT Relay Board]
6158

6259

63-
== Demo Video
60+
=== Demo Video
6461

6562
Here is a video that shows the set-up and running of the 4 Channel Relay Board
6663

6764
video::0Jp3GYXE-z4[youtube]
6865

69-
== Example Code
66+
=== Example Code
7067

7168
Navigate to >>Scratchpad>>Grove>>Switches>>I2C 4 Channel SPDT Relay Board.vi
7269

www/en/modules/ROOT/pages/grove-i2c-gesture-sensor-I2C-PAJ7620U2.adoc

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,33 @@
1-
= Grove Digital Inputs
1+
= Grove Gesture Sensor
22
:page-toclevels: 1
33

4-
.Overview
5-
:page-toclevels: 2
6-
****
4+
== Overview
5+
76
This example uses the grove button module but the source code is also applicable for other similar Grove Modules.
87

98
The GPIO Pins used are [D16,D17],[D18,D19],[D20,D21]
109

1110
image::general\GroveDigitalConnectionsPico.png[]
1211

1312

14-
****
1513

16-
.Hardware Details
17-
:page-toclevels: 2
18-
****
14+
15+
== Hardware Details
16+
1917
https://wiki.seeedstudio.com/Grove-Dual-Button/#features[Grove Dual Button]
20-
****
2118

22-
.Demo Video
23-
:page-toclevels: 2
24-
****
19+
20+
== Demo Video
21+
2522
Here is a video that shows the set-up and running of the Dual Button Digital Inputs
2623

27-
video::0-suR8HejsY[youtube]
24+
video::5MPWDghnn5Q[youtube]
25+
26+
27+
2828

29-
****
29+
== Example Code
3030

31-
.Example Code
32-
:page-toclevels: 2
33-
****
3431
Navigate to >>Scratchpad>>Grove>>Digital Inputs>>Grove Digital In.vi
3532

3633
image::images\grove-digital-inputs\GroveDigitalInProject.png[]
Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,35 @@
11
= Grove Digital Inputs
22
:page-toclevels: 1
33

4-
.Overview
5-
:page-toclevels: 2
6-
****
4+
= Overview
5+
76
This example uses the grove button module but the source code is also applicable for other similar Grove Modules.
87

98
The GPIO Pins used are [D16,D17],[D18,D19],[D20,D21]
109

1110
image::general\GroveDigitalConnectionsPico.png[]
1211

1312

14-
****
1513

16-
.Hardware Details
17-
:page-toclevels: 2
18-
****
14+
== Hardware Details
15+
1916
https://wiki.seeedstudio.com/Grove-Dual-Button/#features[Grove Dual Button]
20-
****
2117

22-
.Demo Video
23-
:page-toclevels: 2
24-
****
18+
19+
== Demo Video
20+
2521
Here is a video that shows the set-up and running of the Dual Button Digital Inputs
2622

27-
video::0-suR8HejsY[youtube]
23+
video::U05stmxbPzs[youtube]
24+
2825

29-
****
26+
== Example Code
3027

31-
.Example Code
32-
:page-toclevels: 2
33-
****
3428
Navigate to >>Scratchpad>>Grove>>Digital Inputs>>Grove Digital In.vi
3529

3630
image::images\grove-digital-inputs\GroveDigitalInProject.png[]
3731

32+
3833
This particular VI uses the dual buttons. Select the port for the connected Pico and the Grove connector that the board is plugged into. Press the run arrow.
3934

4035
You should now see the button indicators light up when the corresponding button is pressed. The Indicators use a transparent fill for the off state and a brighter Red or Green for the on state.
@@ -46,4 +41,3 @@ image::images\grove-digital-inputs\GroveDigitalInFP.png[]
4641
On the block diagram you can see that the selected Grove connector dictates the GPIO Pin and we then set the pin to [In]. Next we loop round and event structure and use the timeout to poll the digital inputs. Pressing Stop will fire the Stop event and exit the loop.
4742

4843
image::images\grove-digital-inputs\GroveDigitalInBD.png[]
49-
****

0 commit comments

Comments
 (0)