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/installation.md
+33
Original file line number
Diff line number
Diff line change
@@ -51,6 +51,39 @@ source .venv/bin/activate
51
51
# Step 3: Install opensourceleg
52
52
pip install opensourceleg
53
53
```
54
+
#### Hardware-Specific Dependencies
55
+
56
+
The opensourceleg library supports a variety of actuators and sensors, each with its own dependencies. Rather than installing all possible dependencies (which can be extensive), we recommend installing only what you need for your specific hardware configuration.
57
+
58
+
### Installing Hardware-Specific Packages
59
+
60
+
You can easily install hardware-specific dependencies using pip's "extras" feature:
Copy file name to clipboardExpand all lines: docs/tutorials/sensors/reading_loadcell_data.md
+43-37
Original file line number
Diff line number
Diff line change
@@ -1,56 +1,68 @@
1
1
# Using the Dephy Loadcell Amplifier
2
2
3
-
This tutorial demonstrates how to use the Dephy Loadcell Amplifier with the Open Source Leg platform to measure forces and moments.
3
+
This tutorial demonstrates how to use the Dephy Loadcell Amplifier with the Open Source Leg platform to measure forces and moments. It includes examples for both standard I2C communication and custom callbacks for advanced use cases, including using the Dephy Actpack to interface with the amplifier directly instead of the Raspberry Pi's I2C bus.
4
4
5
5
## Hardware Setup
6
6
7
-
1. Connect the loadcell to the Dephy Loadcell Amplifier and the amplifier to the Raspberry Pi via I2C
8
-
2. Verify proper power supply connections
9
-
3. Ensure proper grounding
10
-
4. Mount the loadcell securely
7
+
1. Connect the loadcell to the Dephy Loadcell Amplifier and the amplifier to the Raspberry Pi via I2C. Alternatively, raw amplifier readings can be read from the `genvars` property of the `DephyActuator` class and fed into the amplifier update method as a custom callback (see example below).
8
+
2. Verify proper power supply connections.
9
+
3. Ensure proper grounding.
10
+
4. Mount the loadcell securely.
11
11
12
12
This example shows how to:
13
13
14
-
- Initialize and configure a Dephy Loadcell Amplifier
15
-
- Read forces and moments (6-axis measurements)
16
-
- Log loadcell measurements
14
+
- Initialize and configure a Dephy Loadcell Amplifier.
15
+
- Read forces and moments (6-axis measurements).
16
+
- Log loadcell measurements.
17
+
- Use custom callbacks for advanced data handling.
18
+
19
+
---
17
20
18
21
## Code Structure
19
22
20
-
The [tutorial script](https://github.com/neurobionics/opensourceleg/blob/main/tutorials/sensors/reading_loadcell_data.py)is organized into several main sections:
23
+
The [tutorial script](https://github.com/neurobionics/opensourceleg/blob/main/tutorials/sensors/reading_loadcell_data.py)for reading loadcell data has two main functions. The first shows the standard implementation where the I2C bus on a Raspberry Pi is used to communicate with the strain amplifier. The second shows an alternative use where raw ADC values are passed to the sensor in a custom data callback function. This second implementation is useful when the raw values are provided via a method other than I2C, such as reading them directly from a Dephy Actuator.
0 commit comments