Skip to content

madebyshaurya/Haptick

Repository files navigation

Haptick - Hybrid iPhone + Arduino System

A wireless haptic feedback and obstacle detection system combining iPhone app with Arduino hardware.

🎯 What It Does

  • Radar Mode: Ultrasonic scanning with live iPhone visualization
  • Haptic Mode: Servo vibrations controlled from iPhone
  • Sensors: iPhone gyroscope + accelerometer data
  • Hardware Control: Buzzer, MP3 player, servo from app

🚀 Quick Start

1. Upload Arduino Code

# Open ARDUINO_HYBRID.ino in Arduino IDE
# Upload to Arduino Uno

2. Start WiFi Bridge on Mac

pip3 install pyserial
python3 arduino_bridge.py
# Note the IP address shown

3. Run iPhone App

open Haptick.xcodeproj
# Build and run
# Enter Mac's IP address
# Connect

📁 Key Files

  • ARDUINO_HYBRID.ino - Arduino firmware
  • arduino_bridge.py - Mac WiFi bridge
  • HybridDashboardView.swift - Main iPhone UI
  • ArduinoSerialManager.swift - Network communication

📖 Documentation

  • HYBRID_SYSTEM_GUIDE.md - Complete system guide
  • WIFI_SETUP.md - Detailed WiFi setup instructions

🔧 Hardware Required

  • Arduino Uno
  • HC-SR04 Ultrasonic sensor
  • SG90 Servo motor
  • DFPlayer Mini MP3 module
  • Buzzer
  • iPhone
  • Mac (for WiFi bridge)

📱 App Features

4 Tabs:

  1. Radar - Live obstacle scanning visualization
  2. Haptic - Arduino + iPhone haptic control
  3. Sensors - Gyro, accelerometer, attitude display
  4. Controls - Manual hardware control (buzzer, MP3, servo)

🎮 Commands

From iPhone to Arduino:

  • MODE_SCAN / MODE_HAPTIC / MODE_STANDBY
  • V1 / V2 / V3 (vibrations)
  • BUZZ:1000 (buzzer at 1000Hz)
  • PLAY:1 (MP3 track)
  • SERVO:90 (servo angle)

🏗️ Architecture

iPhone App ←→ Mac Bridge ←→ Arduino
  (WiFi)         (USB)

⚡ Quick Demo

  1. Start bridge: python3 arduino_bridge.py
  2. Connect iPhone app
  3. Tap Radar tab → Start
  4. Wave hand in front of sensor
  5. See live radar + get haptic warnings!

See HYBRID_SYSTEM_GUIDE.md for full documentation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors