Skip to content

Latest commit

 

History

History
32 lines (19 loc) · 1.09 KB

README.md

File metadata and controls

32 lines (19 loc) · 1.09 KB

mqtt-rotator

An antenna rotator controlled using MQTT statements.

The antenna rotator was 3d printed using this repository https://www.thingiverse.com/thing:4664558 I will be making some edits to the model for some extra support on the EL stepper motor - once updated will attched those files.

This is very still a work in progress - and i'm not good at coding!

Pre-reqs

Adafruit motorkit - pip3 install adafruit-circuitpython-motorkit or https://github.com/adafruit/Adafruit_CircuitPython_MotorKit Paho Mqtt - pip3 install paho.mqtt.client for manual publishing mqtt az el apt install mosquitto-clients

To Run

python3 mqtt-rotator.py

another terminal to manally move it - mosquitto_pub -h "Mosquitto Broker" -t rotator -m "'EL' 'AZ'"

format it expects to see is el dregrees then a space then az dregrees for example "27.2 148.5"

To Be done

  • add park function (move to park position)
  • add stop function (stop at current position)
  • add reset function (reset current degrees to 0)
  • add threading for multiple motor movement and updating values whilst moving