กลับไปหน้ารวมไฟล์
4-wheeldrive-ios-bluetooh-with-servomotor-direction-6e47d8-en.md

I have wanted to make an Arduino based 4 wheel drive car with a direction based on a servo motor, and who could be driven with an IOS phone with bluetooth and Dabble pad app.

Project Architecture

This Advanced 4WD Robot Car uses a hybrid steering system. Unlike traditional differential drive (where turning is achieved by spinning wheels at different speeds), this design uses a Servo Motor to physically pivot the front steering rack, similar to a real car. The propulsion is handled by four DC motors powered by an L298N Motor Driver.

iOS Bluetooth Integration

Standard HC-05 Bluetooth modules are not compatible with iOS devices due to Apple's strict MFi requirements. To solve this, this project uses the HM-10 BLE (Bluetooth Low Energy) module. The HM-10 allows the Arduino to communicate directly with an iPhone or iPad via the Dabble App, which provides a virtual gamepad interface.

Component Breakdown

  • L298N Dual H-Bridge Bridge: Controls the speed and direction of the four DC motors. It can handle high current and provides the necessary logic to drive the wheels forward, backward, or at variable speeds.
  • SG90 Servo: Mounted on the front axle to control the steering angle.
  • Power Source: Dual 18650 Li-ion batteries are recommended to provide the 7.4V - 8.4V needed for the motors and the Arduino regulator.

Control Logic with Dabble

The Arduino code utilizes the Dabble library to parse incoming serial data packet from the iOS app.

  • When the virtual joystick moves left or right, the Arduino command myservo.write(angle) adjusts the front wheels.
  • When the joystick moves up or down, the L298N receives PWM signals to drive the DC motors proportionally.

This mechanical steering approach provides a much smoother and more realistic driving experience compared to tank-style turning.

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

title: "4 WheelDrive IOS Bluetooh with ServoMotor Direction"
description: "Build a 4 wheel drive car with IOS Bluetooth support and ServoMotor direction control."
author: "insomniak"
category: "Cars"
tags:
  - "Bluetooth"
  - "Cars"
  - "Robotics"
  - "Servo Motors"
  - "4WD"
views: 703
likes: 0
price: 1499
difficulty: "Advanced"
components:
  - "1x 4WD Chassis Kit"
  - "4x DC Motors"
  - "1x L298N Motor Driver"
  - "1x SG90 Micro-servo motor"
  - "1x HM-10 Bluetooth BLE Module (for iOS)"
  - "1x Arduino UNO"
  - "1x 18650 Battery Holder & Batteries"
tools: []
apps:
  - "1x Dabble App (iOS)"
downloadableFiles: []
documentationLinks: []
passwordHash: "599d30009ea797b5e869a835a6873b88989bde06a22ff328b9d33a687f828a2a"
encryptedPayload: "U2FsdGVkX1/dQG0TuAn5tONe29oC9Qtu3S3OERViBs4nk+fnG2K8k3h4i9CNmOCCwqPYHIPI9skym36vJtR6oDJI8MmfWqLLkO6GSITRI0g="
seoDescription: "Build a 4 wheel drive car with IOS Bluetooth support and ServoMotor direction control."
videoLinks:
  - "https://www.insomniak-world.com/arduino/video/4wd-1.mp4"
  - "https://www.insomniak-world.com/arduino/video/4wd-2.mp4"
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/4-wheeldrive-ios-bluetooh-with-servomotor-direction-6e47d8_cover.jpg"
lang: "en"