Skip to content

Commit acadc7e

Browse files
committed
chore: adjust pins and speeds
1 parent 03fb342 commit acadc7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

smart-car/smart-car.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#define MAX_QUIRKS 3
66

77
#define ENA_PIN 10
8-
#define ENB_PIN 9
8+
#define ENB_PIN 11
99
#define IN1_PIN 2
1010
#define IN2_PIN 3
1111
#define IN3_PIN 5
@@ -25,7 +25,7 @@
2525
#define LPCT 100
2626

2727
const byte initSpd = 192; // speed to start on the first loop to gain acceleration
28-
const byte moveSpd = 96; // speed to continue after first loop passed and we gained initial acceleration
28+
const byte moveSpd = 128; // speed to continue after first loop passed and we gained initial acceleration
2929

3030
const int turnDist = 40; // distance in cm on which normal turn will be triggered to avoid collision
3131
const int spinDist = 15; // distance in cm on which obstacle is considered too close and radical spin or pulling back will be triggered

0 commit comments

Comments
 (0)