Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 6 of 6

Thread: Switching from Mega to Teensy

  1. #1
    Junior Member
    Join Date
    Nov 2020
    Posts
    8

    Switching from Mega to Teensy

    Hi There,
    I hope you can advise me.
    I'm about to add a teensy 4.1 to my project to add usbmidix4 capability.
    Since I use an Arduino Mega now, I am new to the Teensy scene.

    But I have a very important feature of the Mega that I use right now:
    I use 8 analog inputs which all require to handle fader inputs from 0V to 5V, and I need to read the full range of the faders. This voltage is fed from an external device so I can't change this. These fader values are converted to midi values.

    My question is:

    Is there a way to get these 5v analog inputs into a Teensy (which supports USB MIDIx4) without blowing it up. (I read in the specs that the digital inputs are 3.3V, but I see no specs on the analog inputs).
    OR
    Is it an alternative to use an external adc shield that handles 5v input and beeps out 3.3V digital.
    OR
    can I convert the 0V to 5V analog input to a 0V to 3.3V analog input without cutting off the range.
    OR
    I don't know, maybe you have another option for me... :-)


    Well, I hope you can help me out on this and I can join the club.

    Best,
    Fertje.

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    24,251
    Usually resistors can be used to divide the voltage range down, if whatever is creating that voltage is able to drive the extra load of those resistors.

  3. #3
    Junior Member
    Join Date
    Nov 2020
    Posts
    8
    Thank you for your suggestion.
    Iíll try a 1k/2k combination. Iíll let you know.

  4. #4
    Senior Member
    Join Date
    Apr 2014
    Location
    Cheltenham, UK
    Posts
    246
    You might find this page useful especially with respect to AD reference.

  5. #5
    Junior Member
    Join Date
    Nov 2020
    Posts
    8
    ThanksBriComp! This is all getting very exciting.

  6. #6
    Junior Member
    Join Date
    Nov 2020
    Posts
    8
    Good Heavens, this machine is incredible.
    (Unplugged the Mega and never looking back).
    Thank you!

Posting Permissions

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