Skip to content

Commit 8980342

Browse files
authored
Merge pull request #440 from srobo/finger-sensors
Add section for finger sensors
2 parents 7e45267 + f67c8f8 commit 8980342

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

simulator/programming/index.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,24 @@ Orientation information is returned in different formats between the simulator a
134134
One (possibly both) of them may change to resolve this.
135135
</div>
136136

137+
### Pressure sensing
138+
139+
Your simulated robot has two deployable 'fingers' that are able to lift the front of the robot up. These fingers have pressure sensors on their tips, with these you can determine the weight of an object your robot is carrying.
140+
141+
The servos to move the fingers are attached to servo pins 2 and 3 in the servo board:
142+
143+
| Servo | Location |
144+
|-------|--------------------|
145+
| 2 | Left finger servo |
146+
| 3 | Right finger servo |
147+
148+
Once the fingers are deployed, your robot will have reduced manoeuvrability, but you will be able to sense the total pressure on the front of the robot. The pressure measuring devices on the end of the fingers are available as analogue inputs on A6 and A7. They are meant to emulate sensors that output a value proportional to pressure, the higher the pressure the higher the voltage reading.
149+
150+
| Pin | Location |
151+
|-----|------------------------------|
152+
| A6 | Left finger pressure sensor |
153+
| A7 | Right finger pressure sensor |
154+
137155
## Simulated Time
138156

139157
In the simulated environment, time advances only at the pace that the simulator

0 commit comments

Comments
 (0)