Skip to content

lbartok/mqtt-robot-nodemcu

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

μPython code for small robot

Configuration

Copy config.py.example to config.py, then (re-)flash the robot (see below).

Flashing setup

In a Python 3 virtual env, do:

$ python -m pip install esptool adafruit-ampy requests click
$ pip install adafruit-ampy

Then, run python flash-me.py mqtt to flash the robot.

This uploads both firmware and Python modules. If the firmware is successfully flashed, then on subsequent flash-me.py you can pass -X to only update the Python modules.

Diagnostics (MQTT)

  • robot moves both wheels after successfull connection to WiFi

  • otherwise open terminal and connect to the board

hardware needed

  • NodeMCU board with ESP8266

  • DOIT Motor shield for NodeMCU (guide)

  • Two DC motors with wheels

  • lunch box

HOW TO: connect to terminal

  • Open terminal (Putty, Picocom, Minicom or whatever). speed: 115200

  • Press Ctrl+C to stop running Python code. Prompt >>> should appear.

Links

Web joystick for MQTT is available at https://github.com/lbartok/mqtt-robot-webdriver/

This project is a fork from: VerosK

About

Software for NodeMCU board to run mqtt robot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%