MATLAB
Now that the coordinator is receiving the packets, how do we read them in Matlab?- Start with the RPI Matlab code
- Count how many bytes to get to the data
- Display data values - are they hex, string, uint?
- Convert 4 bytes to float for x,y,z, a_x, a_y, and a_z
- Plot in real time
More XBEES and BNO055's
- Add another sensor/xbee/arduino combo
- Do we see multiple RX frames in the XCTU console?
- Interestingly, it doesn't seem to matter the DL setting on the coordinator. That's nice as we can send a message to multiple end device xbees at once.
- Will our BNO055's always be close to each other? If so, the delay in receiving the signal to start from the coordinator should be negligible.
Reading from sensor
- Google tells me that Series 1 xbees have a 100 byte buffer. If we read the sensor once, we have an API packet that is 29 bytes: 5 + 24 bytes of data. Therefore, we can only read the sensor 3 times for each API packet. Can we squeeze one more byte in there to get 4 reads per api frame?
- Do we want to consider using the I/O frames instead of the TX/RX frames? Do the I/O frames have fewer than 5 extra bytes?
- I have a delay of 100 ms in void loop in the arduino. How fast can we go?
- Can we minimize the arduino code to decrease clock time between reads?
- De we really need the x,y,z values as often as accel values?
No comments:
Post a Comment