กลับไปหน้ารวมไฟล์
wheelchair-ee2ecd.md

When I was living in Macas City I began to buils a new system controled by Arduino for WheelChair. I am not engineer just try to find resources using internet and curiosity :)


🛠️ เจาะลึกเบื้องหลังการทำงาน (Deep Dive / Technical Analysis)

Building an RC Car that only goes "Forward" or "Backward" is elementary school robotics. The Omni-Directional Wheelchair project requires extreme differential array calculus. The programmer must take a massive singular analog Dual-Axis Joystick (X and Y) and mathematically rip it into two completely separate, independent Output (PWM) power streams to power the massive Left and Right traction wheels!

Extracting The Analog Thumb-Stick Limits

A standard Joystick is composed of two massive 10K Potentiometers.

  1. joyX goes from 0 (Left) to 1023 (Right).
  2. joyY goes from 0 (Up) to 1023 (Down).
  3. 512 / 512 is absolute dead center!
  4. The Dead-Zone Error: Joysticks are cheap physical mechanics. They don't rest at exactly 512. The spring might leave it resting at 505. If the C++ logic uses if (Joy_Y > 512) { DriveForward(); }, the chair will creep forward slowly and kill someone even when nobody is touching the stick!
  5. The Software Lock: You must mathematically define a massive "Dead-Zone" buffer! if (joyY > 480 && joyY < 540) { stopAllMotors(); }

The Differential Vector Processing Engine

If joyY = 1023 (Full Forward), both motors run at PWM 255. If the user also pushes joyX = 1023 (Hard Right turn while going forward), the logic array must drastically decrease power to the Right Motor specifically.

// Map the initial speed requested!
int baseSpeed = map(joyY, 540, 1023, 0, 255); 
// Map the steering angle requested!
int steeringOffset = map(joyX, 540, 1023, 0, baseSpeed); 

int leftMotorPWM = baseSpeed; 
int rightMotorPWM = baseSpeed - steeringOffset; // Drop right wheel power to force a turn!
  • The heavy L298N Driver violently executes the asymmetric command! The Left wheel pushes harder than the Right wheel, causing the massive metal chair chassis to sweep gracefully around the corner!

Motility Chassis Requisites

  • Arduino Uno/Nano (Standard functionality).
  • Dual-Axis Analog Joystick Module (KY-023).
  • L298N Heavy Duty Motor Driver Interface Board.
  • A 2WD or 4WD Robot Base Frame.
  • Massive 6V to 12V Geared DC Motors (For a high-torque robotic wheelchair model, the TT motors are too weak; 25mm Geared DC Encoders are strictly preferred!).
  • Separate Motor Power Matrix (If the DC motors draw their massive amperage from the Uno's 5V regulator, the joystick math buffer will crash instantly!).

ข้อมูล Frontmatter ดั้งเดิม

title: "WheelChair"
description: "This is an WheelChair controled by arduino with single joystick for 2 DC motor of 24 Volts. Only need more specialwork in control the speed."
author: "inticondo"
category: ""
tags:
  - "arduino"
views: 3324
likes: 1
price: 699
difficulty: "Intermediate"
components:
  - "1x Arduino UNO"
  - "1x Relay Module (Generic)"
tools: []
apps:
  - "1x Arduino IDE"
downloadableFiles:
  - "https://projects.arduinocontent.cc/c129cebe-9f40-4804-916f-78a621d32d39.ino"
  - "https://projects.arduinocontent.cc/b63fb091-3a4f-4338-97cb-487fea14e334.ino"
  - "https://projects.arduinocontent.cc/ff17042a-1c52-42bc-b900-e9856952465c.ino"
documentationLinks: []
passwordHash: "5f4bdbba1448b721074bbee7eca247863531a067f3109d52ded9de33623171ba"
encryptedPayload: "U2FsdGVkX1+yxCyxpPNvhDTc8PlD8+m+zVTQNEbAYbGFgZsbR0CwiLeiDLgGBjSNXHja2YpAGc96Oe0EJn/dQJU0KCYn4JB6OiL8TdTX+MI="
seoDescription: "Arduino WheelChair project using a single joystick for dual 24 Volts DC motor control and speed optimization."
videoLinks: []
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/wheelchair-ee2ecd_cover.jpg"
lang: "en"