8000 GitHub - svasim1/driverbot: Copy of school project from organization repository
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

svasim1/driverbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Table of Contents

Driverbot

A car that can be remote-controlled via a web interface using MQTT.

Setup

Install dependencies

cd aedes-broker-mqtt
npm install

Usage

Start broker

cd aedes-broker-mqtt
node broker.js

Open web interface

Open index.html in your preferred browser.

Controls

You control the car using W, A, S & D.

Configuration

To configure the application to work for your needs you need to change the following files:

  • In index.html change the host to the IP address of the broker.
    • If you want to change MQTT port: In broker.js change the port to the port you want to use. And also change port to the corresponding port in index.html
  • In main.cpp change WiFi SSID and password to your needs. Also, change the broker IP and port in the PubSubClient setup.

Troubleshooting

  • Issue 1: The car doesn't respond to control commands.

    • Solution: It can depend on many things. Make sure the car is connected to the MQTT broker and the MQTT messages are being received correctly. Check the broker logs and verify the connection settings in index.html. Also, check the Config section in main.cpp.
  • Issue 2: The car moves in the wrong direction when using the controls.

    • Solution: Change the reversedMotor variable in main.cpp to true or false depending on your needs. Alternatively just change the wiring of the motor.

Documentation

Paho MQTT JavaScript Client

PubSubClient

About

Copy of school project from organization repository

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0