https://github.com/firstteam102/arduinotshirttankbot
A tank robot with an air-powered t-shirt cannon, controlled by an Arduino
https://github.com/firstteam102/arduinotshirttankbot
arduino tank tshirt-cannon
Last synced: about 2 months ago
JSON representation
A tank robot with an air-powered t-shirt cannon, controlled by an Arduino
- Host: GitHub
- URL: https://github.com/firstteam102/arduinotshirttankbot
- Owner: FIRSTTeam102
- License: mit
- Created: 2022-08-27T14:27:10.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-05-14T00:25:16.000Z (about 2 years ago)
- Last Synced: 2025-10-10T17:04:28.431Z (8 months ago)
- Topics: arduino, tank, tshirt-cannon
- Language: C++
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# controller-robot communication
The two Arduinos communicate with two [ENCJ2860](https://github.com/JAndrassy/EthernetENC)s over an Ethernet cable (needs to be a crossover for a direct run). Messages/packets are sent over UDP.
## message structure
Messages begin with a 1 byte ID that determines the type of message.
| ID | purpose |
| ---- | ----------------- |
| 0b00 | |
| 0b01 | ping? (todo) |
| 0b10 | controller status |
| 0b11 | robot status |
Messages also contain a timestamp from [millis](https://reference.arduino.cc/reference/en/language/functions/time/millis/). As of current, it's not needed as packets always seem to arrive in the proper order.
The rest of the message body is a struct determined by the ID.