Specifications (from the EE Team)
Overall Hardware Architecture (taken from https://uwarg-docs.atlassian.net/wiki/x/AoCsmQ )
Inc drawio | ||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Background
The drone uses a battery pack containing 12 cells, where 2 groups of 6 cells are each connected in series (hence 6S
).
...
Battery-related information relating to the voltages and currents
The voltage and current information are sent as 2 analog signals, which our microcontroller converts to digital ones via an Analog-to-Digital Converter (ADC).
Some other information is sent via the I2C protocol
Description
Info |
---|
|
Expand | ||
---|---|---|
| ||
The FC needs this information to make other decisions, e.g. if a part is consuming too much power, or when to land |
Specific Hardware Information (taken from https://uwarg-docs.atlassian.net/wiki/x/HYBXq)
...
Info |
---|
The ports we are interested in:
Speculated ports:
|
...
\uD83E\uDD14 Current Roadblocks
Note |
---|
Libcanard has a high learning curve. Neither the DroneCAN website nor the Libcanard repo has beginner-friendly tutorials. YouTube videos also won’t help directly |
Tasks Break Down:
✅ Action Items
- etc.
\uD83D\uDEA9 Milestones
- Understand project specifications
- Understand the I2C protocol
- Understand the CAN protocol
- Understand DroneCAN
- etc.
Open Questions
Are our speculated ports correct?
What is transmitted over I2C?
What is the voltage range for the signals our MCU receives for the voltage and current info from the battery monitoring circuits?
How should the MCU beacon itself to the FC (i.e. so that the FC is aware that the MCU on the power module is there)?
What should be sent over CAN?
...
\uD83D\uDD17 Reference materials
Relevant protocols
CAN:
A general description of CAN: https://uwarg-docs.atlassian.net/wiki/x/BgDPlw
DroneCAN: a protocol built on top of CAN to communicate information between drone parts and the FC: https://dronecan.github.io/
Libcanard: an implementation of DroneCAN for low-end microcontrollers. An example code on how to use it: https://github.com/dronecan/libcanard/blob/master/examples/SimpleNode/simple_node.c
A helpful presentation on CAN: https://docs.google.com/presentation/d/12i6TiUuXQw5mO2u3pq8DMXTD1bCRe8rJtzVZRk6pDz0/edit?usp=sharing
A helpful document on CAN applications: https://uwarg-docs.atlassian.net/wiki/x/AwA8q
...