This repo contains the Arduino code and Fritzing sketch for controlling a Brushless motor via RS485 communication.
Master's button:
- rotation - changes the direction of the rotation
- motion - spins the motor's shaft for 2 seconds
- 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
- RS485 Serial Data Transmission by Ralph Bacon
- RS485 serial communications
- SoftwareSerial RS485 Example
License: GNU GPLv3