tmplt / ed7039e

Model, simulation and implementation of a mechatronical system for use in a mimicked industrial environment using UWB localization. Task dispatch via Arrowhead. Reproducibly built via Nix.
BSD 3-Clause "New" or "Revised" License
1 stars 7 forks source link

Read measured position from the DWM1001C #11

Open tmplt opened 3 years ago

tmplt commented 3 years ago

Measured position data can be extracted in two a few ways:

Of the above, data via the board's GPIO is the preferred method as communication will likely be similar to that of the BrickPi3; We should be able to just stack the components upon the Pi, and drive them all via the barrel connector of the BrickPi. If this approach fails/takes too long to implement, we can readily read the data over USB.

While the Raspberry Pi has Bluetooth capabilities, reading the data with that approach is a bad idea: position data will be greatly outdated when we receive it, and the delay is not predictable.

tmplt commented 3 years ago

Data can (and have been reported by others) be read via the UART pins on the RPi with the same baud rate as over USB UART. However, the hardware does not play ball with NixOS: while the expected /dev/ttyAMA0 is available when booting with boot.kernelPackages = pkgs.linuxPackages_rpi3, a simple loopback test (bridge UART RX and TX pins) does not pass. For now we'll read data over the USB UART interface: /dev/ttyACM0.

tmplt commented 3 years ago