<commit_before>ADXL345-RealTime-Monitor
========================

- need to install pyqwt - numpy - pyserial - csv

A serial port real time packet monitor that plots live data using PyQwt.
In my case the plotted data are the acceleration (gx, gy, gz) measured by
the ADXL345 accelerometer and send via an arduino through the serial port


The monitor expects to receive 8 bytes data packets with a line return
as a packet EOF on the serial port.
Each received packet is analysed to extract gx, gy and gz.

When the monitor is active, you can turn the 'Update speed' knob
to control the frequency of screen updates.<commit_msg>README.md modified<commit_after>SerialPort-Data-Monitor
========================

Prerequisites: Python - pyqwt - numpy - pyserial - csv

A serial port real time data monitor that plots live data using PyQwt.
In this case the plotted data are the acceleration (gx, gy, gz) measured by the ADXL345 accelerometer and send via an arduino through the serial port.
Any serial packet that respect this format could be plotted correctly:

- 3 inputs, every input is a 2 bytes
- 6 bytes seperated by a space
- the packet is a string terminated by  '\n'

See sende_sim.py for example of plotted data

![ADXL345-Monitor](https://www.dropbox.com/s/cuch13f61r8kpm4/ADXL345-Monitor.png "ADXL345-Monitor")

The monitor expects to receive 8 bytes data packets with a line return
as a packet EOF on the serial port.
Each received packet is analysed to extract gx, gy and gz.

When the monitor is active, you can turn the 'Update speed' knob
to control the frequency of screen updates.
{'fraction_non_alphanumeric': 0.07590966122961104, 'fraction_numerical': 0.01819322459222083, 'mean_word_length': 4.299003322259137, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5945499', 'n_tokens_mistral': 473, 'n_tokens_neox': 428, 'n_words': 237}