This is the mobile application part of the ESP32 Robot Car project. Built with React Native and Expo, it provides a user-friendly interface to control your robot car in real-time.
- Language: JavaScript (React Native)
- Framework: Expo SDK 52
- UI Components: Material Design Icons, Custom Styled Components
- HTTP Client: Fetch API (Native)
- Intuitive Controls: Simple directional pad for navigation.
- Real-time Feedback: Uses
onPressInandonPressOutevents for precise motor control (Hold to move, release to stop). - Responsive Design: Premium UI with gradients and modern iconography.
-
Navigate to the frontend directory:
cd robot-car-controller -
Install dependencies:
npm install
-
Configure the backend URL: Open
App.jsand update thesendCommandfunction with your backend's URL:const response = await fetch('YOUR_BACKEND_URL/control', { ... });
-
Start the app:
npx expo start
-
Scan the QR code with the Expo Go app.
The app sends specific character commands to the backend:
- Forward:
F - Backward:
B - Left:
L - Right:
R - Stop:
S(Sent automatically when any button is released)
- Primary Background: Deep blue gradient.
- Icons: MaterialIcons from
@expo/vector-icons. - Interactions: Subtle shadows and transparency effects for a premium feel.