generated from DIT113-V22/group-xx
-
Notifications
You must be signed in to change notification settings - Fork 0
Installation & Setup
Soarnir edited this page May 18, 2022
·
5 revisions
and their prerequisites
- Install all prerequisite software as advised on the respective pages.
- Clone this repository.
Please note that this will run HiveMQ as a local service on the computer it starts on, and assumes you are aware of how port-forwarding works to enable other devices to connect to it should you want to control the car via a physical phone for example.
- Navigate to your HiveMQ install directory
- You will probably need to edit the run.bat or run.sh to modify the port used, as it is commonly used by other programs and features.
- Edit port (default 9010) on line 55 in run.sh if on a UNIX system, or line 68 in run.bat if on a windows system, and save.
- Run the run.sh normally, or the run.bat as administrator if on a windows system.
- Start SMCE-gd
- Select "Start Fresh"
- Select the + on the top left of the screen
- Select "Add New"
- Navigate to the cloned repository, then /arduino and select the smartcar.ino sketch.
- Select the sketch in SMCE
- Select "Compile"
- Select "Start"
- Open the project in your IDE of choice
- If you need to make modifications to the messages and topics, you can do so, but note that the arduino sketch will need to be updated as well. In which case, you only need to save and recompile the sketch in SMCE.
- Have fun!
- Open the project in Android Studio or another android IDE to compile and run there.
- To run this program on a physical arduino device, you can utilise android developer mode, and a USB cable to compile and install the application on the connected device.
- Make sure you are connected to the same network as the computer being used to run SMCE, if you go this route.
- Using mobile hotspot is a viable alternative.
- Connect to the MQTT broker
- Have fun!
Note that this installation page is WIP and missing some configuration steps