
Workshop on M5 and Max Usage: Mon Feb 12
During the workshop, it was discussed that the Arduino sketch retrieves various data bits from the device and transmits a message with an address, enabling the M5 stick to receive these values. The patch for submission 1 (due tomorrow) is nearly complete, requiring some adjustments and debugging.
Professor Jules outlined the following tasks:
-
- Address the high activity level of the M5 stick by implementing data smoothing.
- Develop a calibration routine to instruct Max on the usable range of the stick.
Fixes and Notes:
- The gyro and accelerometer data are grouped, resulting in reduced activity.
- The M5 stick oscillates between 0 and 90 and back to 0 degrees instead of 180.
- To smooth the data, utilize sliding parameters (e.g., “slide 10 10”). However, for improved effectiveness, adjust to “slide 50 50” to obtain an average and stabilize the readings. Despite expectations, using smaller sliding numbers twice provides better filtering.
-
- Ensure that the data types are specified as floats.
-
- For scaling, designate numbers within the range of -90 to +90 degrees (e.g., “scale -90.90.0.1”). This instruction prompts the program to obtain values between 0 and 1, simplifying the scaling process.

Patching the ‘data filtering’. - Given the intention to apply double sliding and scaling to other project components, this procedure will be patched. So if there needs to be a change it will update in all the places.
- Developed a basic soundwave oscillator to input pitch data into the program.
-
- When working with pitch, add 440 to achieve a final value of 220 at 440 if it’s halved.
-
- After the initial motion-sound testing: The outcome indicates a lack of smoothness in the generated sound; the pitch fluctuates abruptly, stepping up and down.
- For light, on Max, we would set which numbers equal ‘neutral’ blue or ‘disturbed’ red.
Prototyping – M5 stick and Max workshop with prof. Jules Rawlinson / dmsp-perception24 by is licensed under a

