Forum Rule: Always post complete source code & details to reproduce any issue!
Page 3 of 3 FirstFirst 1 2 3
Results 51 to 60 of 60

Thread: how many serial tx rx inputs

  1. #51
    Hey Potatotron do you know why the buffer sticks to the first value it sees
    And doesn't update?

  2. #52
    Ok I finally have a working model.
    It uses different codes including parts of
    potatotrons help which was vital.
    so thanks to all who have assited on this project
    I will continue to tweak it and post my findings
    but again thanks it is actually working!!!!

  3. #53
    Senior Member
    Join Date
    Jan 2013
    Posts
    966
    Awesome!
    Please post a video when you get around to it!

  4. #54
    I see I can post photos but can I upload videos

  5. #55
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    21,285
    Best to upload the video to YouTube, then post the YouTube link.

  6. #56
    Ok here is the first video of the project
    http://youtu.be/qOw_kAp1AFg?list=UUc...JuHToJKjeWq9XA
    Last edited by ben10teensy; 12-02-2014 at 02:41 AM.

  7. #57
    Senior Member
    Join Date
    Jun 2013
    Location
    Torrance CA
    Posts
    397
    Sorry for the delayed response, but very glad you got it working. I checked out the video and it looks great, I look forward to more from you.

  8. #58
    Question, so I tried it with the arduino pro mini 3.3v 8mhz
    then with the arduino uno r3 16mhz and it is smoother
    IT goes from the uno or mini to the teensy which converts it to midi.

    Is mhz the only or best way to get it to update faster.
    so If I went to the teensy at 72mhz it would improve that much? (This means teensy for imu fusion sent to teensy for collection and translation to midi)

  9. #59
    Senior Member
    Join Date
    Jun 2013
    Location
    Torrance CA
    Posts
    397
    Quote Originally Posted by ben10teensy View Post
    Question, so I tried it with the arduino pro mini 3.3v 8mhz
    then with the arduino uno r3 16mhz and it is smoother
    IT goes from the uno or mini to the teensy which converts it to midi.

    Is mhz the only or best way to get it to update faster.
    so If I went to the teensy at 72mhz it would improve that much? (This means teensy for imu fusion sent to teensy for collection and translation to midi)
    Sorry if you already explained this but I'm on my phone and having a hard time reading the whole thread.

    So you have one Arduino (pro mini or uno) connected to the sensor and reading its measurements, then you send that data via serial to a second Arduino to convert it to MIDI?

    I would think that you would be able to combine everything into a single Teensy, and yes if you used a Teensy in place of the Pro Mini or Uno you would be able to sample the hardware much faster.

    If you want to post the code to one, or both, of the Arduino/Teensys I will look over and would probably have a better idea.

  10. #60
    OK sorry I may have sounded all mixed up.

    This is how it works
    IMU connected to Arduino r3 for fusion
    Arduino r3 sends "!85.5,90.66,125.66" out through Serial
    Teensy3.1 receives on hardware serial 1 the "!85.5,90.66,125.66"
    seperates the float values to 3 seperate whole numbers(integers)
    then translates that integer to midi values.

    I started by using the 8mhz arduino pro mini for the fusion math because of its size and cost.
    but then tried the arduino r3 and saw that it ran the fusion math better.
    I havent tried the teensy for math fusion, not sure if all the code works yet, but i will try.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •