Skip to content

alexxtasi/bldc_motor_rs485_control

Repository files navigation

Controlling a Brushless Motor via RS485

This repo contains the Arduino code and Fritzing sketch for controlling a Brushless motor via RS485 communication.

Use

Master's button:

  • rotation - changes the direction of the rotation
  • motion - spins the motor's shaft for 2 seconds

TODO

  • use a toggle switch for the rotation button
  • use global constants for e.g the delay
  • use a function for showing activity on the led
  • use half-duplex communication to avoid running the motor when "spamming" the motion button
  • [circuit] perform real tests (with a long cable!)
  • [circuit] consider the use of a ground wire in the RS485 link, in order to reduce noise1 (not connecting together Master's and Remote's ground)
  • perform tests with a real motor

Based on

  1. RS485 Serial Data Transmission by Ralph Bacon
  2. RS485 serial communications
  3. SoftwareSerial RS485 Example

License: GNU GPLv3 Logo GNU GPLv3

Footnotes

  1. RS485 communications - Nick Gammon

About

Controlling a Brushless Motor via RS485

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages