Skip to content

Commit aa5bfb2

Browse files
committed
Added AO PWM page
1 parent 92668f5 commit aa5bfb2

5 files changed

Lines changed: 9 additions & 11 deletions

File tree

125 KB
Loading
113 KB
Loading
49.1 KB
Loading

www/en/modules/ROOT/pages/grove-analog-outputs-pwm.adoc

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,30 +14,28 @@ image::GrovePicoShieldAnalogConnections.png[]
1414

1515
== Hardware Details
1616

17-
https://wiki.seeedstudio.com/Grove-Dual-Button/#features[Grove Dual Button]
17+
https://wiki.seeedstudio.com/Grove-Passive-Buzzer/[Grove Passive Buzzer]
1818

1919

2020
== Demo Video
2121

22-
Here is a video that shows the set-up and running of the Dual Button Digital Inputs
22+
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
2323

2424
video::0-suR8HejsY[youtube]
2525

2626

2727
== Example Code
2828

29-
Navigate to >>Scratchpad>>Grove>>Digital Inputs>>Grove Digital In.vi
29+
Navigate to >>Scratchpad>>Grove>>Analog Output PWM>>**Piano PWM AO.vi**
3030

31-
image::images\grove-digital-inputs\GroveDigitalInProject.png[]
31+
image::images\GroveAnalogOutputPWMProject.png[]
3232

33-
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.
34-
35-
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.
33+
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.
3634

3735
Links to various other similar boards are also on the Front Panel.
3836

39-
image::images\grove-digital-inputs\GroveDigitalInFP.png[]
37+
image::images\GroveAnalogOutPWMFP.png[]
4038

41-
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.
39+
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.
4240

43-
image::images\grove-digital-inputs\GroveDigitalInBD.png[]
41+
image::images\GroveAnalogOutPWMBD.png[]

www/en/modules/ROOT/pages/grove-i2c-4-channel-spdt-relay-board.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ You can now click on the switch symbols and the corresponding relay will toggle
3535

3636
image::I2C4ChanSPDTRelayBoardFP.png[]
3737

38-
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.
38+
On the block diagram you can see that the selected Grove connector dictates the GPIO Pin for the IC2 Port. We set up the IC2 port for the device in **Init.vi**. Next we loop round the event structure and wait for a button on the Front Panel to be pressed. When a switch is detected (event:Switch1,Switch2,Switch3 or Switch4) *Set Switch.vi* recieves the required settings. If the Load button is pressed the new board address is entered and the system re-initialise. Pressing Stop will fire the Stop event and exit the loop.
3939

4040

4141
image::I2C4ChanSPDTRelayBoardBD.png[]

0 commit comments

Comments
 (0)