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: docs/example-I2C.md
+78Lines changed: 78 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -17,9 +17,11 @@ This sketch allows users to scan for devices connected to the primary I^2^C bus
17
17
</center>
18
18
19
19
20
+
20
21
## Peripheral Devices
21
22
The RA6M5 Thing Plus features a Qwiic connector to seamlessly integrate with devices from [SparkFun's Qwiic Ecosystem](https://www.sparkfun.com/qwiic). While users are free to utilize any I^2^C device, we recommend the [Qwiic devices](https://www.sparkfun.com/categories/399) from our catalog.
22
23
24
+
23
25
??? note "Optional Hardware"
24
26
<divclass="grid cards"markdown>
25
27
@@ -113,12 +115,15 @@ The RA6M5 Thing Plus features a Qwiic connector to seamlessly integrate with dev
113
115
</div>
114
116
115
117
118
+
116
119
### MAX17048 Fuel Gauge
117
120
The MAX17048 fuel gauge measures the approximate charge/discharge rate, state of charge, and voltage of a connected LiPo battery. We recommend the [SparkFun MAX1704x Arduino library](https://github.com/sparkfun/SparkFun_MAX1704x_Fuel_Gauge_Arduino_Library) be utilized in the Arduino IDE, to connect to the MAX17048 on the RA6M5 Thing Plus. Once the [library is installed in the Arduino IDE](../software_overview-arduino/#max17048-fuel-gauge), users will find several example sketches listed in the **File** > **Examples** > **SparkFun MAX1704x Fuel Gauge Arduino Library** > drop-down menu. We recommend the following examples for users:
118
121
122
+
119
123
-`Example1_Simple.ino`
120
124
-`Example4_MAX17048_KitchenSink.ino`
121
125
126
+
122
127
??? note "Optional Hardware"
123
128
<divclass="grid cards"markdown>
124
129
@@ -168,6 +173,7 @@ The MAX17048 fuel gauge measures the approximate charge/discharge rate, state of
168
173
</div>
169
174
170
175
176
+
171
177
=== "`Example1_Simple.ino`"
172
178
Users can find this sketch in the **File** > **Examples** > **SparkFun MAX1704x Fuel Gauge Arduino Library** > **Example1_Simple** drop-down menu.
173
179
@@ -184,3 +190,75 @@ The MAX17048 fuel gauge measures the approximate charge/discharge rate, state of
Users are free to utilize any hardware they already have; however, we recommend the [BME688 environmental sensor](https://www.sparkfun.com/products/19096). The board includes a Qwiic connector on the edge of the board and can be easily attached to the RA6M5 Thing Plus with a [Qwiic cable](https://www.sparkfun.com/products/17260). In addition, a [hookup guide](https://learn.sparkfun.com/tutorials/1168) and [Arduino library](https://github.com/BoschSensortec/Bosch-BME68x-Library) for the sensor are available.
Users will need to install the [Bosch BME68x Arduino library](https://github.com/BoschSensortec/Bosch-BME68x-Library) for the sensor. In the Arduino IDE, users can install it by searching for `BME68x Sensor Library`, in the **Library Manager**:
229
+
230
+
BME68x Sensor Library
231
+
232
+
233
+
234
+
Users can find this sketch in the **File** > **Examples** > **BME68x Sensor library** > **forced_mode** drop-down menu. *For more details on utilizing the BME68x breakout board, please refer to our [hookup guide](https://learn.sparkfun.com/tutorials/1168) for the sensor.*
235
+
236
+
237
+
238
+
??? code "`forced_mode.ino`"
239
+
!!! warning "I^2^C Modifications"
240
+
By default, this example utilizes the SPI bus; therefore, some modifications must be made:
241
+
242
+
- The chip select pin no longer needs to be defined:
243
+
244
+
{--
245
+
#ifndef PIN_CS
246
+
#define PIN_CS SS
247
+
#endif
248
+
--}
249
+
250
+
- The I^2^C bus must be initialized, instead of the SPI bus:
251
+
252
+
{--SPI.begin();--}
253
+
{++Wire.begin();++}
254
+
255
+
- The sensor must be initialized with the Wire class, instead of the SPI class:
256
+
257
+
/* initializes the sensor based on {--SPI--}{++Wire++} library */
Copy file name to clipboardExpand all lines: docs/example-SPI.md
+11-2Lines changed: 11 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -75,7 +75,10 @@ The simplest way to test the SPI interface is with just a jumper *(wire)* and lo
75
75
76
76
77
77
## Peripheral Device
78
-
A more direct method for testing the SPI interface is with an actual SPI device. Users are free to utilize any hardware they already have; however, we recommend the [BME68x environmental sensor](https://www.sparkfun.com/products/19096), below. Its SPI pins are broken out on the edge of the board and can be easily connected to the RA6M5 Thing Plus. In addition, a [hookup guide](https://learn.sparkfun.com/tutorials/1168) and [Arduino library](https://github.com/BoschSensortec/Bosch-BME68x-Library) for the sensor are available.
78
+
A more direct method for testing the SPI interface is with an actual SPI device.
79
+
80
+
### BME688 Environmental Sensor
81
+
Users are free to utilize any hardware they already have; however, we recommend the [BME688 environmental sensor](https://www.sparkfun.com/products/19096), below. Its SPI pins are broken out on the edge of the board and can be easily connected to the RA6M5 Thing Plus. In addition, a [hookup guide](https://learn.sparkfun.com/tutorials/1168) and [Arduino library](https://github.com/BoschSensortec/Bosch-BME68x-Library) for the sensor are available.
79
82
80
83
81
84
??? note "Optional Hardware"
@@ -149,8 +152,14 @@ A more direct method for testing the SPI interface is with an actual SPI device.
149
152
</div>
150
153
151
154
155
+
??? arduino "Install Arduino Library"
156
+
Users will need to install the [Bosch BME68x Arduino library](https://github.com/BoschSensortec/Bosch-BME68x-Library) for the sensor. In the Arduino IDE, users can install it by searching for `BME68x Sensor Library`, in the **Library Manager**:
157
+
158
+
BME68x Sensor Library
159
+
160
+
152
161
153
-
Users can find this sketch in the **File** > **Examples** > **Bosch BME68x Sensor** > **forced_mode** drop-down menu. *For more details on utilizing the BME68x breakout board, please refer to our [hookup guide](https://learn.sparkfun.com/tutorials/1168) for the sensor.*
162
+
Users can find this sketch in the **File** > **Examples** > **BME68x Sensor library** > **forced_mode** drop-down menu. *For more details on utilizing the BME68x breakout board, please refer to our [hookup guide](https://learn.sparkfun.com/tutorials/1168) for the sensor.*
Copy file name to clipboardExpand all lines: docs/example-codeless.md
+129Lines changed: 129 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -78,12 +78,141 @@ In order to operate the `codelessBLE_peripheral.ino` and `codelessBLE_central.in
78
78
=== "`codelessBLE_peripheral.ino`"
79
79
This sketch requires a [Qwiic BME280 sensor](https://www.sparkfun.com/products/15440), connected by a [Qwiic cable](https://www.sparkfun.com/products/17260), to be connected the RA6M5 Thing Plus. The sketch demonstrates a basic BLE solution, by transmitting data from the BME280 to another BLE device. Users can find this sketch in the **File** > **Examples** > **SparkFun Renesas Codeless BLE** > **codelessBLE_peripheral** drop-down menu.
80
80
81
+
82
+
??? arduino "Install Arduino Library"
83
+
For this example, the [SparkFun BME280 Arduino Library](https://github.com/sparkfun/SparkFun_BME280_Arduino_Library) will need to be installed. In the Arduino IDE, users can install it by searching for `SparkFun BME280 Arduino Library`, in the **Library Manager**:
Users can also modify this example to utilize the [Qwiic BME688 sensor](https://www.sparkfun.com/products/19096) that is mentioned in some of the other examples. *For more details on utilizing the BME68x breakout board, please refer to our [hookup guide](https://learn.sparkfun.com/tutorials/1168) for the sensor.*
Users will need to install the [Bosch BME68x Arduino library](https://github.com/BoschSensortec/Bosch-BME68x-Library) for the sensor. In the Arduino IDE, users can install it by searching for `BME68x Sensor Library`, in the **Library Manager**:
This sketch requires a [Qwiic OLED Display](https://www.sparkfun.com/products/24606) to be connected the RA6M5 Thing Plus, by a [Qwiic cable](https://www.sparkfun.com/products/17260). The sketch receives data transmitted from a RA6M5 Thing Plus, programmed with the `codelessBLE_peripheral.ino` sketch, and displays that data on the OLED display. Users can find this sketch in the **File** > **Examples** > **SparkFun Renesas Codeless BLE** > **codelessBLE_central** drop-down menu.
0 commit comments