-
1Build Instructions
Step 1: Hardware Preparation (Arduino & HC-05)
To build the physical robot or controller, you need the following:
- Arduino Uno (or ESP32)
- HC-05 Bluetooth Module (Classic SPP)
- Motor Driver (e.g., L298N) and DC Motors
- Battery (for the motors)
Wiring:
- Connect the HC-05 VCC and GND to Arduino's 5V and GND.
- Connect HC-05 TX to Arduino RX (Pin 0) and HC-05 RX to Arduino TX (Pin 1). (Note: Disconnect these wires while uploading code to Arduino).
- Connect the Motor Driver to Arduino pins (e.g., 5, 6, 9, 10).
- Power the motor driver with the external battery and ensure a common ground with the Arduino.
Step 2: Upload the Arduino Code
Upload the following sketch to your Arduino. This code listens for simple text commands (F, B, L, R, S) sent from SoifGo and controls the motors accordingly.
// Example Arduino Code for Bluetooth Robot
Note: The complete Arduino code can be long and depends on your specific motor driver and hardware. Instead of pasting it here, we highly recommend giving this instruction text plus the SoifGo AI Context (or the website addresses) to any AI assistant (like ChatGPT, Claude, etc.). The AI can generate the exact Arduino code AND the HTML/JS code for your specific project in seconds.
AI Context URL: https://soifgo.github.io/SOIFGO_AI_CONTEXT.md
Step 3: SoifGo Setup (The Brain & Eyes)
- Install SoifGo from APKPure or the official ZIP. (It is not on Google Play).
- Pair the HC-05 in your Android phone's Bluetooth settings (default password is usually
1234or0000). - Open SoifGo → tap the top-left menu → Edit.
- Create the structure: folder → Page → New Page → Button.
- Select the button → top-left menu → Behavior → Browser or HTML File → HTML file.
Step 4: Add the Camera & AI Logic
- Ask an AI assistant (like ChatGPT or Claude) to write an HTML/JS page that opens the camera, detects motion, and sends Bluetooth commands (
F,B,L,R). - In SoifGo (in Play mode), tap the WebView button.
- Edit>span class=""> → Select All and Paste. Paste the AI-generated code.
- Tap the yellow X. The code auto-saves and the WebView reloads.
- Tap the camera button inside your HTML page to grant permission. The robot is now ready to "see" and act!
Step 5: Testing & Operation
- Turn on the Bluetooth module and the robot's power.
- In SoifGo, connect to the HC-05 module via the Bluetooth icon.
- Your custom panel or AI-camera interface is now active. Commands sent by the page will instantly move the robot.
saeid
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.