Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serial protocol, watchdog, ADC Input, platform.io #72

Open
wants to merge 50 commits into
base: master
Choose a base branch
from

Conversation

p-h-a-i-l
Copy link
Contributor

Lots of improvements with a focus on serial communication and parallel use of ADCs as input. "transpotter" like control can be configured just via parameters. Huge thanks to @btsimonh, serial protocol is mostly his work.

Deviations from master

  • Build Environment is platform.io. Old Makefile based system should work too, but not tested.
  • UART Control can be configured to Connect to USART2 or USART3
  • Added CRC Checksum to UART Control. This way, the protocol just loses sync but the board does not try to kill you anymore (at least less often)
  • UART Control and Debug can be active on the same cable
  • Extended ADC Input Control config options. Default is platooning / "transpotter"
  • ADC Input Control can coexist with all other control Methods as long as the other Method uses the other cable
  • Watchdog Implemented which monitors if main is still running. Stops motors and shuts down if not.
  • Serial Protocol implemented (very shrunk down version from btsimonhs pidcontrol)
    • PWM can be set and read
    • Human readable ASCII Protocol can coexist with machine parseable Messages
    • Buzzer commands
    • Hall Interrupts for Speed Feedback

btsimonh and others added 30 commits August 31, 2018 16:02
* decreased baudrades to 19200
* invert L & R
* disabled backwards beeping
Containg only two int's PWM_STEER_CMD is smaller, thus won't block the bus longer than needed.
Less time is wasted for communication.
…ithout the softWatchDog interfering.

Because beep sound took longer than 100ms (WatchDog timeout) we haven't been able to turn of the board
but had to unplug the battery everytime.
@p-h-a-i-l p-h-a-i-l mentioned this pull request Dec 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants