Skip to content

Commit 91a12ca

Browse files
committed
Added NAU7802, L298P and some switchery
1 parent 6380a1f commit 91a12ca

File tree

8 files changed

+45
-17
lines changed

8 files changed

+45
-17
lines changed
65.8 KB
Loading
126 KB
Loading
38.4 KB
Loading
35.5 KB
Loading
-531 Bytes
Loading

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

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ video::w0F2TlSiCmE[youtube]
2424

2525
=== Example Code
2626

27-
Navigate to >>Scratchpad>>Grove>>Digital Inputs>>Grove Digital Out.vi
27+
Navigate to >>Scratchpad>>Grove>>Digital Inputs>>**Grove Digital Out.vi**
2828

2929
image::GroveDigitalOutLEDProject.png[]
3030

@@ -41,6 +41,34 @@ The video also shows the same VI being used to switch a relay on and off.
4141

4242
image::GroveDigitalOutLEDBD.png[]
4343

44+
== SPST Relay Board / MOSFET Switch
45+
46+
=== Overview
47+
48+
This is essentially the same VI as the LED output VI, but with different graphics. There are some demo videos just to show wiring and operation.
49+
50+
=== Hardware Details
51+
52+
https://wiki.seeedstudio.com/Grove-Relay/[Grove Relay Board]
53+
54+
https://wiki.seeedstudio.com/Grove-MOSFET/[Grove MOSFET]
55+
56+
=== Demo Videos
57+
58+
Here is a video that shows the set-up and running of the Grove Relay Board
59+
60+
video::-c-kp2PiIa4[youtube]
61+
62+
Here is a video that shows the set-up and running of the Grove MOSFet Board
63+
64+
video::T9XEYUTOUW0[youtube]
65+
66+
=== Example Code
67+
68+
Navigate to >>Scratchpad>>Grove>>Digital Outputs>>**Grove Digital Out Switch.vi**
69+
70+
image::GroveSwitch-Project.png[]
71+
4472
== I2C 4 Channel SPDT Relay Board
4573

4674
=== Overview
@@ -69,7 +97,7 @@ video::0Jp3GYXE-z4[youtube]
6997

7098
=== Example Code
7199

72-
Navigate to >>Scratchpad>>Grove>>Switches>>I2C 4 Channel SPDT Relay Board.vi
100+
Navigate to >>Scratchpad>>Grove>>Switches>>**I2C 4 Channel SPDT Relay Board.vi**
73101

74102
image::Grove4ChannelSPDTRelayProject.png[]
75103

@@ -80,7 +108,7 @@ You can now click on the switch symbols and the corresponding relay will toggle
80108

81109
image::I2C4ChanSPDTRelayBoardFP.png[]
82110

83-
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.
111+
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.
84112

85113

86114
image::I2C4ChanSPDTRelayBoardBD.png[]

www/en/modules/ROOT/pages/gadgets-nav.adoc

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -119,29 +119,28 @@ The Grove - I2C Motor Driver V1.3 (latest version) can directly control Stepper
119119

120120
https://wiki.seeedstudio.com/Grove-I2C_Motor_Driver_V1.3/#hardware-overview/[Grove - I2C Motor Driver V1.3]
121121

122-
=== Demo Video
122+
=== Demo Video DC Motor Drive
123123

124-
TBD
124+
This video demonstrates the Grove L298 Motor Drive board used with 2 DC motors.
125125

126-
video::_c_6OBtgLvg[youtube]
126+
video::j-9ya1YdSZY[youtube]
127127

128128
=== Example Code
129129

130-
== Encoder
131-
132-
=== Hardware Details
133-
134-
130+
Navigate to >>Scratchpad>>Grove>>Gadgets>>Motor Drive>>**I2C L298P DC Motor Drive.vi**
135131

132+
image::GroveI2CDCMotorDriveL298-Project.png[]
136133

137-
=== Demo Video
138-
134+
This VI uses the L298P board to rotate 2 wheels forward and backward. Select the port for the connected Pico and the Grove connector that the board is plugged into. Press the run arrow.
139135

140-
=== Example Code
136+
image::GroveI2CDCMotorDriveL298-FP.png[]
141137

138+
On the block diagram you can see that the selected Grove connector dictates the GPIO Pins used for communication. This session connection is input into **Grove I2C L298P Motor Drive.lvclass:Init**. Next we set the PWM frequency to 515Hz using **Grove I2C L298P Motor Drive.lvclass:Set PWM Frequency.vi**. We the loop round the event structure waiting for Value Change events for the Steering, Speed, M1 and M2 sliders.
139+
Pressing Stop will fire the Stop event and exit the loop.
142140

141+
image::GroveI2CDCMotorDriveL298-BD.png[]
143142

144-
== NFC Reader/Writer
143+
== Encoder
145144

146145
=== Hardware Details
147146

@@ -154,3 +153,4 @@ video::_c_6OBtgLvg[youtube]
154153

155154

156155

156+

www/en/modules/ROOT/pages/sensors.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ image::NAU7802Wiring.png[]
106106

107107
Here is a video that shows the set-up and running of the Adafruit NAU7802 I2C Strain Gauge Module
108108

109-
video::BdaQqxTZXwk[youtube]
109+
video::dy8eHkbQ16g[youtube]
110110

111111
=== Example Code
112112

@@ -119,7 +119,7 @@ This VI uses NAU7802 Strain Gauge IC. Select the port for the connected Pico and
119119
image::NAU7802I2CStrainGaugeModule-FP.png[]
120120

121121
On the block diagram you can see that the selected Grove connector is input into *Adafruit NAU7802 24bit Strain Gauge.lvclass:Init.vi*. We then can set PU_CTRL Register to start measuring using *Adafruit NAU7802 24bit Strain Gauge.lvclass:Set PU_CTRL.vi* and set up the ADC using *Adafruit NAU7802 24bit Strain Gauge.lvclass:Set ADC.vi*
122-
Next we loop round the event structure and use the timeout to poll the Sensors using *Adafruit NAU7802 24bit Strain Gauge.lvclass:Read PU_CTRL.vi* if the Cycle Ready bit is high it means there is a reading available. If a reading is available we get the 24 bits using *Adafruit NAU7802 24bit Strain Gauge.lvclass:Read ADC.vi*. Pressing Stop will fire the Stop event and exit the loop.
122+
Next we loop round the event structure and use the timeout to poll the Sensors using *Adafruit NAU7802 24bit Strain Gauge.lvclass:Read PU_CTRL.vi* if the Cycle Ready bit is high it means there is a reading available. The timeout of the event loop is adjusted to suit the Samples Per Second. If a reading is available we get the 24 bits using *Adafruit NAU7802 24bit Strain Gauge.lvclass:Read ADC.vi*. Pressing Stop will fire the Stop event and exit the loop.
123123

124124
image::NAU7802I2CStrainGaugeModule-BD.png[]
125125

0 commit comments

Comments
 (0)