Search results

  1. Revalogics

    Teensy 3.6 - Using both Audio ADC and analogRead - works for me!

    from https://www.pjrc.com/store/teensy41.html Teensy 3.6 supports two (2) analog inputs for audio, while Teensy 4.1 supports only one (1), and is currently experimental based on PJRC documentations. Teensy 4.1 Analog Channel assignments (unchecked, based on PJRC T4.1 schematic) ADC0 analog...
  2. Revalogics

    Real-Time (Working) Vocoder

    Hi guys, it's me again. =) I managed to find the old sketch regarding this (also posted here before), and made another sketch out of it (check out the "vocoder_waveforms" folder in the Google Drive link). Old test tracks were nowhere to be found, but instead, I also included new mp3 recordings...
  3. Revalogics

    Teensy 3.2 ADC audio input with 11 analog reads - Possible?

    Contrary to what they say, and the website says, you can use both AudioInputAnalog and analogRead(). I posted it a long time ago but I can't find that thread. You can use ADC0 for audio, and ADC1 for analog readings. How to change AudioInputAnalog pin? AudioInputAnalog adc1(A0); For Teensy...
  4. Revalogics

    networking teensies

    Ooh, yes, that will do, because longer runs of wires tend to capture noise and be fed to ADC. Any ideas on how you interconnect Teensies? You can just use the serial ports available. I tend to put some serial data headers so the receiving side can check where to start reading (i.e. the 0xFF and...
  5. Revalogics

    networking teensies

    Lots of sensors or inputs? Why not try multiplexing :)!
  6. Revalogics

    Teensy 3.6 MIDI keyboard with knobs and buttons latency issue

    Sustain is MIDI CC 64, value=0 is off, value=127 is on sort of like this: usbMIDI.sendControlChange(64, 0, 1); // sust off usbMIDI.sendControlChange(64, 127, 1); // sust on MIDI note ranges from 0 to 127 so you can keep both keyboards within a same channel. How about you split the keyboard...
  7. Revalogics

    MIDI wont work on teensy, works on arduino?

    Those are not really needed, as they are defined inside the library (Serial1 is used as default). The following should work: // global scope #include <MIDI.h> MIDI_CREATE_DEFAULT_INSTANCE(); // inside setup() MIDI.setHandleNoteOff(MIDI_onNoteOff); MIDI.setHandleNoteOn(MIDI_onNoteOn)...
  8. Revalogics

    Analog design help

    Ooh, good read. However, redundant analog circuits can be made digital, thus effectively lowering the build cost. I built an analog vocoder once, and it's too expensive. Vocoders consist of lots of VCAs, filters, and envelope followers. (My build consist of 108 opamps :)) I'm happy I know how...
  9. Revalogics

    MIDI wont work on teensy, works on arduino?

    As I already mentioned: By the way, PC900V and the pullup resistor is connected to 3.3V, not to 5V, because doing so will damage my Teensy 3.6. Wait, is it me or is it him? :D
  10. Revalogics

    Interconnect two teensy boards that are hid devices connected to two different PC

    The easiest way out there is to use a diode (so only the LOW signal passes through the receiving Teensy, the cathode facing the transmitting side) and a pullup resistor powered by the receiving Teensy to restore the HIGH signal. When the receiving end is not powered while the transmitting end...
  11. Revalogics

    MIDI wont work on teensy, works on arduino?

    Hi, I've been using Teensy 3.6 every Sunday to convert MIDI to usbMIDI, and it has been working for months now, without any issues on the Teensy part. I followed this schematic based on this MIDI Library Page, except I have both the 220 and 270 Ω resistors replaced by 237 Ω resistor (which I...
  12. Revalogics

    How to "attachInterrupt" inside a library?

    Haywire means these error codes upon compilation: Note: I used "static void interrupt()" here In file included from C:\Users\Revalogics\Documents\Arduino\libraries\R_Encoder\examples\R_Encoder_test\R_Encoder_test.ino:17:0...
  13. Revalogics

    How to "attachInterrupt" inside a library?

    Thanks for the reply, I'll give it a try. What's with "current_object"? I think I have so much to learn on the coding part. Unusual code routines, structs, pointers, etc. are my weak points. I guess I have to stick with my working version of this library because any further programming, I think...
  14. Revalogics

    Digital micro mirror device control

    I can't recommend some starting point for this because I don't have any knowledge on how do these things communicate with an FPGA or a controller (except on how to destroy them and use the ICs for other purposes: collections, making miniature figures etc. :)). Maybe the DLPC300 datasheet you've...
  15. Revalogics

    How to "attachInterrupt" inside a library?

    Thanks Paul for the reply, I already noted that, I even tried changing "void interrupt()" to "static void interrupt()" also making all variables (outside the function) associated to be static, but the library goes haywire. I guess I put the attachInterrupt() calls in the main sketch? Because...
  16. Revalogics

    Digital micro mirror device control

    Like a digitally-controlled laser beam kind of thing? That would pretty much be easier to implement than creating an image or playing a video using that device. I think it is feasible with your Teensy 3.5 (don't know how well it goes with RAM usage). Regarding ASICs, DLPC300 is an ASIC. It might...
  17. Revalogics

    How to "attachInterrupt" inside a library?

    Hi, I'm currently working on creating a library to read an encoder. Basically, it reads encoder pins and automatically debounces it. Also, I made it to set flags if it was rotated, and set direction flags. I'm not into counting encoder steps kind of thing. One problem arises: I can't...
  18. Revalogics

    Digital micro mirror device control

    I destroyed a DMD before, and touched the micromirrors that looks like silver powder on my finger. I don't think even the top of the line Teensys can control a DMD (but I maybe wrong). They were originally controlled by FPGAs or dedicated ASICs (Application Specific ICs). If you want to try...
  19. Revalogics

    Dual Audio Adaptor Boards with 23LC1024 RAM chips

    Yes, you can cut that connection and connect it to other pins (see Audio System Design Tool, under "AUDIO_MEMORY_MEMORYBOARD"). I don't have a memory chip in hand and I have a different I2S audio adapter/codec so I can't test and give you an idea about the programming part.
  20. Revalogics

    Finding I2S Pins on Pinout Diagram

    Hi, I found an easy hack on how to change I2S pinout on my project that uses Teensy 3.6 in it. I used to edit the Audio Library to implement my own pinout, and whenever I update Teensyduino, I have to update it again. So here, I let my sketch (the .ino file) do the work, without bothering...
  21. Revalogics

    MIDI out from DAW

    Hi, I also used a Teensy 3.6 before to send a torrent of MIDI data from my laptop to my keyboard, particularly black MIDIs :), to test how well my keyboard responds to a total of about more than 1 million notes. I also used a similar approach and the code oddson posted will work. Here's my code...
  22. Revalogics

    Teensy ++ 2.0 problems

    It's ok, your English is understandable. I, too, am not good at speaking English, since it is not my native language, and it is far very different (accents, sentence construction, syllables, etc.).
  23. Revalogics

    Teensy ++ 2.0 problems

    I watched the video, the default "Blink" sketch runs, indicating that your Teensy works. Also it blinks an orange LED, it is a genuine Teensy, I guess, by the looks of it. After pressing the button, the LED turns off, which should happen. The problem is probably on the PC side. You may have...
  24. Revalogics

    Teensy ++ 2.0 problems

    Sure, I'd like to help. You can just link here for everyone to see and help.
  25. Revalogics

    Teensy ++ 2.0 problems

    Your PC "sees" your Teensy, but the OS reports it is faulty. Maybe a real faulty Teensy, a faulty USB cable, or a counterfeit. If the LED is not orange, it is fake.
  26. Revalogics

    Audio Sample Rate: how to change from 44100 Hz (44117.65 Hz) to 48000?

    Haven't used this mod anymore because I found a good USB Audio interface that replaces Teensy for my audio I/O needs. Looking at the sourcecode of bitcrusher, the bitcrusher.sampleRate(xsampleRate) function does the same thing, regardless of changes in sample rate using setI2Sfreq(). However...
  27. Revalogics

    Audio Board Line In Noise

    Hi, you can just link your mp3 file here from somewhere you uploaded it (like Google Drive, Facebook, etc., click the BB code below in posting permissions). Try increasing AudioMemory if that makes any difference. Personally, I can't buy an Audio board, so I made one using UDA1345TS. I first...
  28. Revalogics

    Simple toggle switch

    I can't understand what you're up to... at least for me haha :) Are you using a toggle switch or a button switch or two buttons and a toggle switch? Here's my guess code routine: // other side of button pins and toggle switch connect to GND // we will be using a SPST-type toggle switch here...
  29. Revalogics

    Teensy 3.5 input power regulator (LDO)

    Upon reading the datasheet you've linked, I saw that this part has multiple package types and the one on Teensy is the smallest of the three (WSON with thermal pad, vs. SOT-223 and larger TO-252). Teensy, however has a little PCB "island" underneath the regulator that acts as a heatsink. Using...
  30. Revalogics

    How to Audio Library?

    Thanks Paul for the help, that makes sense to me. However, I noticed that AudioMemoryUsageMax() (for me) retuns 255 as maximum value. I'm using Teensyduino 1.37 and Teensy 3.6 and a sketch with a delay object where I adjust the delay time frequently. Same case happens (255 max memory) in my...
  31. Revalogics

    How to Audio Library?

    I found this HERE. It says this function returns the free memory between stack and heap. It does not compile for Teensy (Teensy 3.6, in my case). Any ideas how to measure free memory in Teensy? I'm suspecting some memory leaks in my Envelope Follower object, although all used and allocated audio...
  32. Revalogics

    How to Audio Library?

    Thanks Paul for the help, but I don't know how to buy stuffs overseas (I bought my Teensy from a local electronics store that happens to be importing stuffs from Adafruit), I'm just a student :). BTW, I have my first working Audio Library object with me, I don't know if this will be useful for...
  33. Revalogics

    Complete newbie interested with Teensy for MIDI foot controller

    Thanks mattbott, I certainly overlooked at that one, I'm using copy+paste most of the time (and modify them afterwards) haha :). I updated the code. j2sip, you should check Arduino Reference Page or an offline version found at "C:\Program Files...
  34. Revalogics

    How to Audio Library?

    Paul, What does these do? It's in the "dspinst.h" header file. //get Q from PSR get_q_psr(void) //clear Q BIT in PSR clr_q_psr(void)
  35. Revalogics

    How to Audio Library?

    Thanks guys for the help! I found THIS (anything about ARM Cortex M4 DSP instructions and stuff). I think this is compatible with my Teensy 3.6. Also, I found "dspinst.h" inside Audio Library and it explained everything about DSP algorithms. I'll be studying about these and probably create my...
  36. Revalogics

    How to Audio Library?

    Hi everyone! Is there any documentation on how to make an audio library object? I tried looking at Audio library files and I don't understand most of it, especially how audio data is processed. I'd like to develop new objects, and perhaps share them with everyone. Annotations (comments) on audio...
  37. Revalogics

    Teensy 3.5: How is USB1 accessed?

    Teensy 3.6 has another USB port, Teensy 3.5 does not.
  38. Revalogics

    Updates in MIDI Library, anyone?

    UPDATE: I tested this code on our Church keyboard and moving pitchbend wheel once (and letting it go to its midpoint) creates unforgettable results: I'm playing a whole note lower than the rest of the band. MIDI library throws pitchbend values from 0 to 16383 but usbMIDI accepts values from...
  39. Revalogics

    Complete newbie interested with Teensy for MIDI foot controller

    Hi, sorry for the very late post, I've been very busy this past few days for our school thesis project. I wrote this code for you. Hope this works! :) Is it really Teensy 2.0 (the short one) or Teensy++ 2.0 (the long one)? // Hardware: Teensy 2.0, footswitch (momentary, not latching), some...
  40. Revalogics

    MIDI controller by Teensy 3.5 was not worked !

    Hi, you don't need this line. Serial.begin(31250); If you're using the latest Teensyduino version (1.37, as of now), you should check my post HERE. Yours truly, Revalogics.
  41. Revalogics

    Complete newbie interested with Teensy for MIDI foot controller

    Hi j2sip, you must mention first what software or hardware guitar effect or whatever you want Teensy 2.0 to control, or mention what MIDI messages do you intend to create with your Teensy 2.0 to control your effect modules. About MIDI messages, if your effect module supports it, it will be found...
  42. Revalogics

    Updates in MIDI Library, anyone?

    I have a sketch that uses the MIDI library, and some other library. My code, as of Teensyduino 1.36 works flawlessly, as I didn't have an issue with it while running it on Teensy 3.6 + external circuitry. However, as I updated my Teensyduino to version 1.37, there appears an error about this...
  43. Revalogics

    Tutorial on digital I/O, ATMega PIN/PORT/DDR D/B registers vs. ARM GPIO_PDIR / _PDOR

    I replaced the LED in my Teensy 3.6 from orange to white - white has higher forward voltage than orange so it loads less to pin 13 compared to orange LED. The voltage may be ramping because of low current capability of Teensy ports. This hasn't been an issue for me though, maybe because of the...
  44. Revalogics

    Tutorial on digital I/O, ATMega PIN/PORT/DDR D/B registers vs. ARM GPIO_PDIR / _PDOR

    About pins changing states at the exact same moment, why don't you try using transparent latches like HEF40373 or 74HCT573 (D-type Flip-flops with Output latches)? You input your parallel data, and latch it, and unlatch it, on and on, and you get simultaneous bus bits state changes. I think the...
  45. Revalogics

    Tutorial on digital I/O, ATMega PIN/PORT/DDR D/B registers vs. ARM GPIO_PDIR / _PDOR

    LED capacitor? Never heard of that. Is that the capacitance formed by the depletion region between the N and P junctions, or is it a physical capacitor included within the LED package?
  46. Revalogics

    Split main sketch into multiple files?

    I tried that tonton81, but I received compilation error about variables and function calls. I'm reverting to single sketch. Here's my sketch I'm trying to split: (note, it's long) //#define USE_VOCODER #ifndef ENCLOSETHIS /** BOTTOM SIDE **/ //MIDI Rx 0 //MIDI Tx 1 #define LRS...
  47. Revalogics

    Split main sketch into multiple files?

    Will the example sketch work (its syntax), the split one?
  48. Revalogics

    Split main sketch into multiple files?

    I used external editor (Notepad++), that's why. I use Arduino IDE only for compiling the sketch
  49. Revalogics

    Split main sketch into multiple files?

    Hi guys, is it possible to split a single sketch into multiple files? I have a sketch for Teensy 3.6 that is 1,562 lines long. I tried the library approach, but most functions must change or read a global variable, and there I failed. Also, I noticed that running a code with other functions in...
  50. Revalogics

    Problem encountered with "AudioEffectDelay"

    Hi, sorry guys for the late reply, I use Teensy 3.6 as stated before, I don't have a Teensy 3.2, and I am getting maximum audio memory usage of 255 on my sketches (I have not seen my codes running at more than 255 audio memory usage). My workaround here is first include LCD headers (#include...
Back
Top