This is an example project that allows you to drive an RC car with a mobile app. Yes, of course you need to have a car able to communicate through Zigbee or Wifi for this to work.
Here on this page www.robotlec.com you can see from where this project originated from, here you can still find the old code that was rewritten now. Phonegap app was rewritten in React Native and the web server was written in .NET using the SignalR library, which was replaced with simpler NodeJs and a Websocket library, so now you don't need a Windows server anymore to run it.
Code for React Native is written in a container component pattern style. The main purpose of this pattern is that you have the business logic and presentation components separate. Here you can read more on this
Dashboard Drive Mode |
---|
In the main driving mode, you drive with buttons. Here you have buttons for going forward/backward and from left/right, plus you have speedometer. |
First you need to install React Native with dependencies, in order to do this follow instructions in this link
Run
npm install
Rename .env.example to .env and correct Server IP and Port
Android
react-native run-android
iOS
react-native run-ios
navigate to sub-folder "node_server"
npm install
Run
node server.js