कला
सुन्दरता र कल्याण
हस्तकला
संस्कृति र इतिहास
मनोरञ्जन
वातावरण
खाना र पेय
रिभर्स इन्जिनियरिङ
विज्ञान
खेलकुद
प्रविधि
पहिर्न मिल्ने

Self-Balancing Robot on Two Stepper Wheels (after Kamen, 1997)
A robot that stands on two wheels and keeps itself upright, the way Dean Kamen's 1997 patent balances a person: a tilt sensor measures how far it leans and the wheels drive under the fall. Printed frame and wheels, two NEMA 17 steppers, an ESP32 and an MPU-6050. A notebook works out the four control gains from your own measurements. The firmware compiles; we have not built this robot yet, so treat the gains as a starting point and tune.
मध्यम
About 12 hours of printing; one day to build and tune
निर्देशनहरू
1
1
What a balancing robot does
What a balancing robot does
A two-wheel robot balancing with the same MPU-6050 tilt sensor (Tinker Twins, Arduino and DC motors). Ours drives steppers from an ESP32 with Kamen's four-term law.
2
2
Kamen's balance law, 1997
Kamen's balance law, 1997
US 5,701,965 (FIG. 6): the wheel torque is set to T = K1·θ + K2·θ' + K3·X + K4·X', where θ is the lean, X the distance from a reference point on the floor and the dashes mean rate of change. The gains "are dependent upon the physical parameters of the system". With two wheels each motor is worked out separately, and tracking both wheels stops the machine turning by itself. Leaning forward makes it drive forward. Steppers take a speed, not a torque, so our firmware uses the same four terms to set the wheel acceleration.

3
3
Work out the gains
Work out the gains
Jupyter नोटबुक लोड हुँदैछ…
चाहिने औजार:
नाप्ने फित्ता
डिजिटल क्यालिपर ६ इन्च4
4
Print the motor frame
Print the motor frame
Plate on the bed, walls up, no supports (the motor holes are teardrops). 0.2 mm layers, 4 walls, 30 % infill.
यस चरणका सामग्री:
PETG फिलामेन्ट82 ग्रामचाहिने औजार:
फिलामेन्ट चल्ने 3D प्रिन्टर (FDM)5
5
Print the decks
Print the decks
Print two: one for the electronics, one for the battery. Flat, 0.2 mm layers, 3 walls, 20 % infill.
यस चरणका सामग्री:
PETG फिलामेन्ट106 ग्रामचाहिने औजार:
फिलामेन्ट चल्ने 3D प्रिन्टर (FDM)6
6
Print the wheels
Print the wheels
Print two, hub up (the flat face on the bed). 0.2 mm layers, 4 walls, 40 % infill so the hub holds the set screw.
यस चरणका सामग्री:
PETG फिलामेन्ट62 ग्रामचाहिने औजार:
फिलामेन्ट चल्ने 3D प्रिन्टर (FDM)7
7
Mount the motors
Mount the motors
Pass each motor's cable up through the slot in the plate. Push the motor's round boss into a wall from the inside, shaft out, and fix it with four M3 x 6 screws from the outside (counterbored). Turn both motors so the flat on each shaft points up.
यस चरणका सामग्री:
स्टेपर मोटर2 टुक्रा
छपत्रे खोपिल्टाको बेलनाकार टाउको भएको स्क्रु8 piece (M3 x 6)चाहिने औजार:
एलेन चाबी सेट8
8
Fit the wheels
Fit the wheels
Stretch a 75 x 3.5 mm O-ring into each wheel's groove as the tyre. Push an M3 nut into the slot in the hub, slide the wheel onto the shaft with 3 mm to spare from the wall, and tighten an M3 set screw onto the flat.
यस चरणका सामग्री:
ओ-रिङ2 piece (75 x 3.5 mm)
छपत्रे नट2 piece (M3)
कचौराजस्तो टुप्पो भएको सेट स्क्रू2 piece (M3 x 6)चाहिने औजार:
एलेन चाबी सेट
डिजिटल क्यालिपर ६ इन्च9
9
Build the stack
Build the stack
Cut four 200 mm lengths of M4 threaded rod. Fix each in a corner hole of the frame plate with a nut and washer on both sides. Run nuts down to 74 mm above the plate, drop on the electronics deck, then add washers and nuts on top. Do the same for the battery deck at 149 mm. Raising the battery deck slows the fall and makes balancing easier.
यस चरणका सामग्री:
धाँजे डन्डा4 piece (M4 x 200 mm)
छपत्रे नट24 piece (M4)
चेप्टो वासर24 piece (M4)चाहिने औजार:
नाप्ने फित्ता10
10
Wire the controller board
Wire the controller board
On a 70 x 90 mm perfboard, solder headers for the ESP32, the MPU-6050 and two A4988 drivers. ESP32 GPIO 25/26 to the right driver's STEP/DIR, GPIO 27/14 to the left's, GPIO 13 to both EN. MPU-6050 SDA to 21, SCL to 22, VCC to 3V3. Each driver: VDD to 3V3, MS1 and MS2 to 3V3, MS3 to GND (1/8 step), RESET to SLEEP, motor coils to 1A/1B and 2A/2B. Battery + through the 3 A fuse and switch to both VMOT, with a 100 µF 35 V capacitor across each VMOT and GND; the buck converter set to 5.0 V feeds the ESP32's 5V pin. All grounds together. Mount the MPU-6050 flat with its X axis pointing forward. Tie the board to the deck.
यस चरणका सामग्री:
प्वाल भएको बोर्ड / नमुना बोर्ड1 टुक्रा
पिन हेडर1 strip
ESP32 विकास बोर्ड1 टुक्रा
जडत्व मापन एकाइ (६ अक्ष)1 टुक्रा
स्टेपर मोटर ड्राइभर2 टुक्रा
इलेक्ट्रोलाइटिक क्यापासिटर2 piece (100 µF 35 V)
डीसी-डीसी बक कन्भर्टर1 टुक्रा
डीसी फ्युज होल्डर1 टुक्रा
फ्युज1 piece (3 A)
टगल स्विच1 टुक्रा
हुक-अप तार2 m
ताप-सङ्कुचन नली10 सेमि
सोल्डर तार2 m
केबल टाइ8 टुक्राचाहिने औजार:
टाँका लगाउने डन्डी
तारको बोक्रा उप्काउने औजार
मल्टिमिटर11
11
Fit the battery
Fit the battery
Use four protected 18650 cells (built-in protection circuit). Tie the 4-cell holder, wired in series (14.8 V), to the top deck. Charge the cells one at a time out of the holder, and never leave them charging unattended.
यस चरणका सामग्री:
18650 लिथियम सेल4 टुक्रा
18650 ब्याट्री होल्डर, ४ सेल1 टुक्रा
केबल टाइ4 टुक्राचाहिने औजार:
LiPo चार्जर बोर्ड12
12
Set the driver current
Set the driver current
Motors unplugged, power on. Read the sense resistors on each A4988 (R100 = 0.1 Ω). The datasheet gives I = Vref / (8 x Rs), so Vref = I x 8 x Rs: for 1.0 A with 0.1 Ω set 0.80 V between the trimmer and GND. Stay below your motor's rated current. Set the buck converter to 5.0 V before connecting the ESP32.
चाहिने औजार:
मल्टिमिटर
सूक्ष्म पेचकसको सेट13
13
Upload the firmware
Upload the firmware
ESP32 board package 3.x, board "ESP32 Dev Module". Paste your K1-K4 from the notebook at the top.
balancing_robot.inocpp
चाहिने औजार:
Arduino IDE भएको कम्प्युटर
USB डेटा केबल14
14
Check, stand it up, tune
Check, stand it up, tune
Lay the robot still while it starts (it zeroes the gyro). Open the serial monitor at 115200: lean it forward and the angle must go positive, or set PITCH_SIGN = -1. Hold it upright: below 5° the motors switch on and the wheels must drive under the lean; if they drive away from it, swap one motor's coil pair. Over 35° it switches off. If it shakes, lower K3 and K4 by 20 %; if it drifts across the floor, raise K1 and K2. Raise the top deck if it is too quick.
चाहिने औजार:
Arduino IDE भएको कम्प्युटर
USB डेटा केबलसामग्री
24- 250 ग्रामप्लेसहोल्डर
- प्लेसहोल्डर
- 8 piece (M3 x 6)प्लेसहोल्डर
- 2 piece (75 x 3.5 mm)प्लेसहोल्डर
- 24 piece (M4)प्लेसहोल्डर
- 2 piece (M3 x 6)प्लेसहोल्डर
- 4 piece (M4 x 200 mm)प्लेसहोल्डर
- 24 piece (M4)प्लेसहोल्डर
- 1 टुक्राप्लेसहोल्डर
- प्लेसहोल्डर
- 1 टुक्राप्लेसहोल्डर
- 1 टुक्राप्लेसहोल्डर
- प्लेसहोल्डर
- 2 piece (100 µF 35 V)प्लेसहोल्डर
- 1 टुक्राप्लेसहोल्डर
- 1 टुक्राप्लेसहोल्डर
- 1 piece (3 A)प्लेसहोल्डर
- प्लेसहोल्डर
- प्लेसहोल्डर
- 10 सेमिप्लेसहोल्डर
- 2 mप्लेसहोल्डर
- 12 टुक्राप्लेसहोल्डर
- 4 टुक्राप्लेसहोल्डर
- 1 टुक्राप्लेसहोल्डर
आवश्यक उपकरणहरू
11- 1 vendor sell this, none ship to you yetप्लेसहोल्डर
- प्लेसहोल्डर
- प्लेसहोल्डर
- प्लेसहोल्डर
- 2 vendors sell this, none ship to you yetप्लेसहोल्डर
- प्लेसहोल्डर
- प्लेसहोल्डर
- प्लेसहोल्डर
- प्लेसहोल्डर
- प्लेसहोल्डर
- प्लेसहोल्डर
डिजाइन फाइलहरू
3यसमा आधारित: अघिल्ला खाकाका सामग्री

10% एट्रिब्युसन
O-Ring from Cord, Cut in a Spiral Splicing Fixture and Glued (after Draffone, 1977)
Mary द्वारा
यान्त्रिकी
७
०
०
०
१
०

10% एट्रिब्युसन
Perfboard
Ed द्वारा
इलेक्ट्रोनिक्स
१
०
०
०
३
०

10% एट्रिब्युसन
Threaded Rod Cut with a Die
Forge द्वारा
धातु काम
६७
०
०
०
२
०

10% एट्रिब्युसन
Toggle Switch for Low Voltage: a Spring-Loaded Ball Contact in a Printed Panel Body (after Batcheller, 1932)
Volt द्वारा
इलेक्ट्रोनिक्स
३०
०
०
०
२
०
यो खाकाले बनाउँछ
CC0 सार्वजनिक डोमेन
यो खाका CC0 अन्तर्गत जारी गरिएको छ। तपाईं अनुमति नसोधी प्रतिलिपि, परिमार्जन, वितरण र प्रयोग गर्न सक्नुहुन्छ।
खाकामार्फत उत्पादनहरू किनेर सिर्जनाकर्तालाई सहयोग गर्नुहोस् सिर्जनाकर्ता कमिसन विक्रेताले तोकेको, वा यो खाकाको नयाँ संस्करण बनाउनुहोस् र आम्दानी बाँड्न आफ्नो खाकामा जडानको रूपमा समावेश गर्नुहोस्।
