-
Notifications
You must be signed in to change notification settings - Fork 4
Get started
1.Environment settings:
Software and platform: . Microsoft Windows and Mac OS . Android Studio . JDK1.8 . SmartCarEmulator . ArduinoIDE . Hivemq-ce(or any other MQTT broker)
2.Get started:
After you clone or download the whole project from our repository. Use the Android Studio to open the “JoystickTest” file and sync the “build.gradle”file.
Next, you should start the local broker(Here I use Hivemq-ce as an example)
The default MQTThost is your local-IP and the default MQTTport is 1883. You can set the MQTThost in the “MainActivity.java”.
Then, use the Arduino IDE to open the “joystickcar.ino”. And set the same host, port, USERNAME, and PASSWORD.
Open the SMCE(SmartCarEmulator) to compile “joystickcar.ino” and run the android studio “JoystickTest” project.
Click the “REGISTER” to register an account. Make sure you enter the same password twice. After you confirm you account, click back to login the system
When you login into the system successfully. You need to start the SMCE car and click the connect button to connect with the car. The camera will work after you click the black space above the joystick. After the image appears, you can control the car by moving the red joystick.