Any views expressed within media held on this service are those of the contributors, should not be taken as approved or endorsed by the University, and do not necessarily reflect the views of the University in respect of any particular issue.

Prototyping – M5 stick and Max workshop with prof. Jules Rawlinson

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:

    1. Address the high activity level of the M5 stick by implementing data smoothing.
    2. 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.

Leave a Reply

css.php

Report this page

To report inappropriate content on this page, please use the form below. Upon receiving your report, we will be in touch as per the Take Down Policy of the service.

Please note that personal data collected through this form is used and stored for the purposes of processing this report and communication with you.

If you are unable to report a concern about content via this form please contact the Service Owner.

Please enter an email address you wish to be contacted on. Please describe the unacceptable content in sufficient detail to allow us to locate it, and why you consider it to be unacceptable.
By submitting this report, you accept that it is accurate and that fraudulent or nuisance complaints may result in action by the University.

  Cancel