Skip to content

Commit cde0414

Browse files
committed
update README
1 parent 9a7e819 commit cde0414

3 files changed

Lines changed: 31 additions & 2 deletions

File tree

5_line_following/README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,12 @@ Integral Term = Ki*(Cumulative Error)
137137
```
138138
**Description** : Starts an HTTP server that allows remote tuning of PID parameters via a web interface
139139

140-
**Parameters** : None
140+
**Parameters** : None
141+
142+
## Default PWM Settings (Wall‑Ev2.7)
143+
144+
- Recommended base and bounds for motor duty cycles:
145+
- `optimum_duty_cycle = 40`
146+
- `lower_duty_cycle = 10`
147+
- `higher_duty_cycle = 55`
148+
- Update these in `5_line_following/main/line_following.c` to match your bot.

6_self_balancing/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,3 +126,10 @@ Integral Term = ki*(Integral_Error)
126126
* `mpu_offset` : mpu_offsets are the initial accelerometer angles at rest position
127127

128128
**Return** : returns ESP_OK if calculate angles correctly else return ESP_FAIL if any error occurs
129+
130+
## Default PWM Settings (Wall‑Ev2.7)
131+
132+
- Recommended duty cycle bounds for motors while balancing:
133+
- `MAX_PWM = 60`
134+
- `MIN_PWM = 30`
135+
- Adjust in code at `6_self_balancing/main/self_balancing.c` if your hardware differs.

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,21 @@ The Wall-E workshop focuses on the concepts of line-following and self-balancing
8585

8686
<!-- ROADMAP -->
8787

88+
## Wall‑Ev2.7 Motor PWM Settings
89+
90+
- Self‑Balancing (duty cycle bounds)
91+
- `MAX_PWM = 60`
92+
- `MIN_PWM = 30`
93+
- Line‑Following (base and bounds)
94+
- `optimum_duty_cycle = 40`
95+
- `lower_duty_cycle = 10`
96+
- `higher_duty_cycle = 55`
97+
98+
Code locations for these defaults:
99+
- Self‑Balancing: `6_self_balancing/main/self_balancing.c`
100+
- Line‑Following: `5_line_following/main/line_following.c`
101+
102+
88103
## Resources
89104

90105
- Please visit and look at our [Custom-made SRA development board](https://github.com/SRA-VJTI/sra-board-hardware-design)
@@ -125,4 +140,3 @@ Contributions are what make the open source community such an amazing place to b
125140
[license-shield]: https://img.shields.io/github/license/SRA-VJTI/Wall-E
126141
[license-url]: https://github.com/SRA-VJTI/Wall-E/blob/master/LICENSE
127142

128-

0 commit comments

Comments
 (0)