Robot Car controlled by a mobile phone using a G-Sensor and Arduino
382.Robot Car controlled by a mobile phone using a G-Sensor and Arduino In this project, we will use a mobile phone's G sensor to control a robot car and you will be able to tilt the phon…

Know the mission before touching a wire.
Understand what you are making, prepare the right tools, and make the workbench safe.
Project details
Robot Car controlled by a mobile phone using a G-Sensor and Arduino is a arduino project. 382.Robot Car controlled by a mobile phone using a G-Sensor and Arduino In this project, we will use a mobile phone's G sensor to control a robot car and you will be able to tilt the phon…
- Source pages
- 819-823
- Named parts
- 5
- Build goal
- Working, tested prototype
Tools you need
- Digital multimeter
- Wire stripper and side cutters
- Soldering iron with a fine tip
- Current-limited bench supply
- Computer with a data-capable USB cable
Use eye protection, good lighting, and a clean insulated surface throughout the build.
Safety precautions
- Disconnect every power source before changing a connection.
- Check component polarity, pinout, and supply voltage twice.
- Use a current limit for the first power-up.
- Keep liquids, loose metal, and uninsulated wires away from the bench.
Gather, identify, and understand every part.
Use the standardized inventory, then open What's this? to learn each part's role, advantages, limitations, handling, and specifications.
What's this?Image, role, pros, cons, handling & specifications

Two-wheel robot car chassis
A named project component whose exact role is defined by the source circuit and build guide.
What it does hereIt performs a documented electrical, control, interface, or construction function in this project.
Buy / compare this part ↗Advantages
- Selected for this project
- Can be checked independently
- Supports modular troubleshooting
Limitations
- Substitutes may differ
- Generic names can hide variants
- Pinouts and ratings vary
Handling
- Compare the received part with the source
- Keep it labelled
- Do not force connectors or adjusters
Specifications to verify
- Use the exact model, value, package, and rating listed for Two-wheel robot car chassis; similar-looking parts are not always interchangeable.
- Confirm dimensions, ratings, connection method, polarity, and environmental limits.
What's this?Image, role, pros, cons, handling & specifications

Arduino UNO
A programmable controller that reads inputs, makes decisions, and drives the project's outputs.
What it does hereIt is the control centre and must use the documented board, pin map, supply, and logic level.
Buy / compare this part ↗Advantages
- Reprogrammable and reusable
- Large learning ecosystem
- Complex behaviour remains changeable
Limitations
- GPIO voltage and current are limited
- Some pins affect boot or communication
- Loads normally need a driver
Handling
- Disconnect power before rewiring
- Avoid static discharge
- Never power motors, relays, or pumps directly from GPIO
Specifications to verify
- Use the exact model, value, package, and rating listed for Arduino UNO; similar-looking parts are not always interchangeable.
- Confirm operating voltage, logic level, pinout, memory, USB interface, and maximum GPIO current.
What's this?Image, role, pros, cons, handling & specifications

L298N Motor Controller
An output component turns an electrical control signal into light, sound, motion, switching, or displayed information.
What it does hereIt presents the circuit result or acts on the physical world.
Buy / compare this part ↗Advantages
- Makes system state visible
- Can be tested separately
- Supports clear troubleshooting
Limitations
- Loads may exceed controller current
- Polarity or driver direction can matter
- Inductive loads create voltage spikes
Handling
- Use the documented driver stage
- Check polarity and load current
- Add flyback protection for inductive loads
Specifications to verify
- Use the exact model, value, package, and rating listed for L298N Motor Controller; similar-looking parts are not always interchangeable.
- Confirm voltage, current, polarity, interface, driver requirements, and duty cycle.
What's this?Image, role, pros, cons, handling & specifications

HC-06 Bluetooth module (HC-05 will work too)
A named project component whose exact role is defined by the source circuit and build guide.
What it does hereIt performs a documented electrical, control, interface, or construction function in this project.
Buy / compare this part ↗Advantages
- Selected for this project
- Can be checked independently
- Supports modular troubleshooting
Limitations
- Substitutes may differ
- Generic names can hide variants
- Pinouts and ratings vary
Handling
- Compare the received part with the source
- Keep it labelled
- Do not force connectors or adjusters
Specifications to verify
- Use the exact model, value, package, and rating listed for HC-06 Bluetooth module (HC-05 will work too); similar-looking parts are not always interchangeable.
- Confirm dimensions, ratings, connection method, polarity, and environmental limits.
What's this?Image, role, pros, cons, handling & specifications

Power supply or Cells, Connecting wires
A power component supplies, converts, stores, or regulates energy for the project.
What it does hereIt must provide the documented voltage, polarity, isolation, and sufficient current safely.
Buy / compare this part ↗Advantages
- Stable power improves reliability
- Current limiting protects first tests
- Regulation reduces resets and noise
Limitations
- Wrong polarity can cause immediate damage
- Underrated parts overheat
- Mains circuits require qualified supervision
Handling
- Measure output before connection
- Use a fuse or current limit
- Insulate exposed conductors
Specifications to verify
- Use the exact model, value, package, and rating listed for Power supply or Cells, Connecting wires; similar-looking parts are not always interchangeable.
- Confirm input/output voltage, current, polarity, connector, isolation, and thermal rating.
Connect one verified path at a time.
Explore the named components and standardized signal flow, then use Source Check to verify exact physical pins, values, and topology before applying power.
Trace this circuit.
Robot Car controlled by a mobile phone using a G-Sensor and Arduino: interactive parts, standardized terminals, responsive anchored wires, student explanations, and the original circuit reference in one shared system.
Trace before wiring
Follow power, ground, inputs, processing, and outputs in that order. Never guess a pin from package shape alone.
Connect with power off
Make short, labelled connections and share a common ground only where the schematic requires it.
Inspect every joint
Check continuity, polarity, adjacent shorts, and loose connections before the first power-up.
Open all source diagrams and build views 4 visuals




Confirm the hardware-only control path.
This project does not include firmware in the source. The circuit itself provides the required behaviour.
How to connect
- Match every controller label to the circuit view and source pin map.
- Join grounds before signal wires when separate low-voltage supplies are used.
- Keep motors, relays, pumps, and other loads on a suitable driver and external supply.
Common mistakes
Reversed VCC/GND, board-label versus GPIO-number confusion, missing common ground, and charge-only USB cables.
Troubleshoot
Disconnect loads, continuity-test one path at a time, then test with a current limit.
Software preparation
No IDE, board package, library, or firmware upload is required for this project.
If you add a programmable controller as an extension, document its pin map separately.
How to upload code
The original design is implemented entirely in hardware, so proceed after verifying the circuit and supply.
Assemble, deploy, test, and troubleshoot.
Use the complete source notes in build order, then pass the final checks before calling the project finished.
Build in functional stages
- Power and regulation
- Controller or processing stage
- Inputs and sensors
- Outputs and loads
- Enclosure and strain relief
Power up safely
- Inspect unpowered continuity first
- Apply the lowest safe current limit
- Measure supply rails before signals
- Add one load at a time
- Record expected and actual results
Work from simple to complex
- Confirm power, ground, polarity, and orientation
- Compare each pin with the source
- Test inputs separately from outputs
- Replace only one variable at a time
- Power off before every correction
Follow the documented instructions.
These notes come from this project's source and remain in their original order.
Project overview
Project build note382.Robot Car controlled by a mobile phone using a G-Sensor and Arduino In this project, we will use a mobile phone's G sensor to control a robot car and you will be able to tilt the phone to control it. The G-Sensor Controlled Robot will also be controlled by Arduino and the RemoteXY app. A smartphone app called RemoteXY is used to control the Robot from the Smartphone. It will also be possible to control Robot by both tilting the phone and the joystick when the interface has a joystick. Gravity sensors or Gravity sensors are acceleration sensors in smartphones that allow them to know the screen orientation. As the Gravitational force moves in X, Y, Z directions, the accelerometer senses how the screen rotates in accordance with it. In modern mobiles, the orientation of the screen is determined by a Gyroscope sensor that is a lot more sensitive and accurate. The Robot car in this project will follow the angle that the phone is tilted in. For example, if we tilt the phone forward then it will move forward. The car will then move backward when the tilt is lowered. A G sensor is used in most car games in Mobile, too, so the car moves accordingly.
Required Components
Project build noteTwo-wheel robot car chassis Arduino UNO L298N Motor Controller HC-06 Bluetooth module (HC-05 will work too) Power supply or Cells, Connecting wires
Creating Interface for Robot using RemoteXY app
Project build noteYou will need to access the following link in order to create the interface for controlling the robot car with RemoteXy.
http://remotexy.com/en/editor/ the webpage will look like this
Circuit Diagram
Project build notePut the switch button and joystick into the mobile interface from the left side of the screen. By pressing the button, you'll turn on Pin 13 on the Arduino, which is internally connected to the car, and by pressing the joystick, you'll control it. After you have placed the switch and joystick, you will see the following webpage.
After that, we will need to connect the G sensor enable/disable button to the joystick, to enable us to move the Robot Car with the phone by tilting it left, right, up and down. The G sensor can be turned on and off using that button, and the car can be controlled using the joystick when the G sensor is disabled. Click the joystick you placed on the interface to place the G sensor enable/disable button. You will see the properties section on the left, and at the end, there is an option to place the G sensor button near the joystick, so
you can place it wherever you like. This is what the webpage will look like after this. You should then click the "Get source code" button and save it on your computer. Download the library from here http://remotexy.com/en/library/ and save it into the Arduino library directory. Make sure that the downloaded code is error-free by compiling it. These are not the actual Robot code, but rather the code that helps to utilize the Arduino with the App. Download the app from here http://remotexy.com/en/download/ or. You can download RemoteXY from the Google Play Store on your Android smartphone.
Circuit Explanation
Project build noteThe L298N motor controller needs to be interfaced with the Arduino first. Motor controller pin ENA and ENB should be connected to Arduino pins 12 and 11, respectively. The motor can be controlled with these two pins via
PWM. Our car can be sped up or slowed down using these pins. To connect the IN1, IN2, IN3 and IN4 to the Arduino pins 10, 9 and 8, follow the steps below. The motors will rotate both clockwise and anticlockwise with these pins. Battery positive and negative should be connected to 12V and ground on the motor controller to power the motor. To connect the Arduino to the motor controller, connect the motor controller's 5V and ground lines to the Arduino Vin and ground lines. If you have an HC-06, you can connect it to the Arduino, but if you have an HC-05, it will work too. The 5V and ground of the Bluetooth module should be connected to the Arduino's 5V and ground. After that, connect the RX pin of the Bluetooth Module to pin 3 of the Arduino and the TX pin to pin 2 of the Bluetooth Module. You can also learn about Bluetooth controlling a toy car with an Arduino using Bluetooth Controlled Toy Car.
You built Robot Car controlled by a mobile phone using a G-Sensor and Arduino.
You followed the full workflow from understanding the mission to testing the finished project. That is a real engineering achievement - well done.
Browse all 500 projects