Anyone here an expert with Arduinos?

What's Hot
Hi folks, 

Anyone here an Arduino expert?
I am building an installation that uses the MPU6050 gyroscope sensor that I want to connect to an Arduino that is connected to a Mac running Max.
I need someone to look over my code and make sure I am not doing anything too stupid

0reaction image LOL 0reaction image Wow! 0reaction image Wisdom

Comments

  • StratavariousStratavarious Frets: 1794
    edited April 2021
    This for 3D control of 3DS max graphics software? 3D mouse / keystroke emulation or a music/midi application?

    Using Arduino IDE? 

    You can use the new arduino web editor to share code via a link for people to look at.   I don’t have that sensor but use a microbit for gyro stuff. 

    0reaction image LOL 0reaction image Wow! 0reaction image Wisdom
  • octatonicoctatonic Frets: 31170
    Max is a visual language for making music (and video) content: https://cycling74.com

    Essentially what I am doing is this.
    I have this system, of a mic stand, battery powered USB fan, string and plumb bob.
    The USB fan moves about indeterminately .
    A MPU6050 gyroscopic sensor is attached to the system, probably on the plumb bob.
    That is connected to the Arduino which is connected to the computer.

    In theory programming the Arduino to pass the MPU6050 data to the computer is pretty straight forward but I may need someone more experienced with this sort of stuff to check it over.

    Once the data is in Max I can scale it very easily and use it for all sorts of creative/manipulative processes.

    In my installation there will be two of these systems, one in the left speaker and one in the right speaker- to allow a compare/contrast between two ostensibly identical systems generating different data.


    0reaction image LOL 0reaction image Wow! 0reaction image Wisdom
  • StratavariousStratavarious Frets: 1794
    edited April 2021
    Ok... get it.  Looks like max will take a serial data stream.

    I’d probably just do a serial write loop of the gyro data over usb.


    Controlling the fan from the Arduino? Or letting audience interact?  

    I have been hacking a hall (magnetic field) sensor to midi/drum module trigger.

    Fun stuff!



    0reaction image LOL 0reaction image Wow! 0reaction image Wisdom
  • octatonicoctatonic Frets: 31170
    edited April 2021
    Ok... get it.  Looks like max will take a serial data stream.

    I’d probably just do a serial write loop of the gyro data over usb.


    Controlling the fan from the Arduino? Or letting audience interact?  

    I have been hacking a hall (magnetic field) sensor to midi/drum module trigger.

    Fun stuff!

    Other way around- the fan spins freely and generates scalable serial data that I can use to generate musical content.
    it is designed to be minimally interactive.
    Fan is not controllable- the idea is to exploit indeterminacy of the fan for a musical goal.
    Controlling it would subvert that.
    0reaction image LOL 0reaction image Wow! 0reaction image Wisdom
  • PolarityManPolarityMan Frets: 6262
    Sounds fun. the bar is quite high on what you can do procedurally though. Take for example this:



    Or even this which is actually indistinguishable from an actual meshuggah album




    0reaction image LOL 0reaction image Wow! 0reaction image Wisdom
  • octatonicoctatonic Frets: 31170
    After a LOT of experimentation it actually works:



    Next step is to get the numbers to do something musical.
    0reaction image LOL 0reaction image Wow! 0reaction image Wisdom
  • octatonicoctatonic Frets: 31170
    A bit more work:


    1reaction image LOL 1reaction image Wow! 0reaction image Wisdom
  • droflufdrofluf Frets: 1606
    If I’ve understood correctly, using the random motion from the fan to act as musical triggers, there was something that may be of interest to you on Cerys Matthews’ 6Music show just now. The guest was using electrical signals from plants to create music. Was on about noon so 2 hours in if you use the listen again feature. 

    Of course I may have totally misunderstood what you’re doing....
    0reaction image LOL 0reaction image Wow! 0reaction image Wisdom
  • octatonicoctatonic Frets: 31170
    Will check it out, cheers.
    I've done similar things with a system called Makey Makey.

    Here is the finished build.
    I need to film the finished installation now.


    0reaction image LOL 0reaction image Wow! 0reaction image Wisdom
Sign In or Register to comment.