Search results

  1. J

    Teensy 3.2 with audio, serial, and ili9341 touchscreen hangup problem

    Alot of nonsense work for a small victory... Went backthrough and read all the audio stuff and interrupt common notes. I had IntervalTimer, for my main audio collection ISR to default interrupt priority, which was 128. The Audiostream ISR is 208, so the collisions were happening because of the...
  2. J

    Teensy 3.2 with audio, serial, and ili9341 touchscreen hangup problem

    Further troubleshooting, being verbose to help reason through my thought process (may be wrong). Wrapping the audio_queue.getBuffer() with audio_queue.available(), prevents the sketch from crashing. Still however, at random times, between 7 and 15 minutes, the sketch fills AudioMemory. This is...
  3. J

    Teensy 3.2 with audio, serial, and ili9341 touchscreen hangup problem

    Yup, I think you are right. The sending teensy is checking queue1.available() every 100uS. So an audio packet is arriving up to 100uS late sometimes, assuming all other timing operations the same between the two 44khz sampler/printer's, and the 96mhz timings all the same. I am currently...
  4. J

    Teensy 3.2 with audio, serial, and ili9341 touchscreen hangup problem

    Hey rcarr, thanks for the reply. I did some testing with that assumption, and it holds. I did have the code after the serial reads, but I had to take care of timing correctly and account for micros() wraparound, so I kicked off the interrupt before the serial reads. I do agree that it would be...
  5. J

    Serial buffer size increase Teensy 3.2

    Hmm... I send 260 bytes of data from one teensy 3.2 to another to transmit audio data on serial1 for real time audio transfer. I can't be much more help unless you post code.
  6. J

    Serial buffer size increase Teensy 3.2

    My serial1.c tx and rx serial buffers are both 512 bytes, and I don't have any problems. Not sure about serial6?
  7. J

    Teensy 3.2 with audio, serial, and ili9341 touchscreen hangup problem

    (Solved) Teensy 3.2 with audio, serial, and ili9341 touchscreen hangup problem Hey All, System Overview: Teensy 3.2 connected to SGTL5000, ili9341 touch screen display, and RS-485 on TX1/RX1 for audio retrieval and playback Problem: Hang up of audio library when calling XXX.getBuffer(); from...
  8. J

    Simulating ili9341_t3: request help with drawChar()

    Successfully employed one of the fonts using the Adafruit font library A bunch of missing functions and descriptions, but it is working. Uploaded here just in case I lose a copy.
  9. J

    Simulating ili9341_t3: request help with drawChar()

    Yeah, I had a problem with browser history when you told me the steps I was used to. I thought the layout changed on the forum when in actuality it was Chrome just being stupid and not loading the forum correctly. Fixed now No worries, that is super helpful! I just wasn't sure how to port the...
  10. J

    Simulating ili9341_t3: request help with drawChar()

    Hey All, I am working on a ili9341_t3 port into Excel in VBA. I was tired of dreaming up the layout and uploading each time, so I wanted to preview the displays I built with the library before I uplodaed. Picture below: https://flic.kr/p/V7zfJy I am having a bit of trouble understanding the...
  11. J

    Feasability Inquiry: I2s to Serial through DMA with bidirectional serial traffic

    Picture Description 1. Audio Source 2. Recording Teensy - Push queue samples over Serial1 3. Playback Teensy - Receive queue samples over Serial1 4. Audio Output Important Notes: - Serial1 buffer size increased to 512 - Guitar Tuner block size decreased from 24 to 6 - Serial1 connections kept...
  12. J

    Feasability Inquiry: I2s to Serial through DMA with bidirectional serial traffic

    I can confirm, this is true. Pumped in a sinuisoid on one teensy, serial over, and the output on the other teensy didn't show any drops or duplications or phase cut-ins when I looked on my scope. I would have expected some phase cut-in differences because I am sampling for the queue faster than...
  13. J

    Feasability Inquiry: I2s to Serial through DMA with bidirectional serial traffic

    I will try that then and avoid the DMA stuff for now. I have had success with lower frequency bidirectional (around 4800 baud), but I haven't tried pushing the speed. I really do need to send some information back down the line to the transmitter, so I suppose I could extrapolate the lost...
  14. J

    Feasability Inquiry: I2s to Serial through DMA with bidirectional serial traffic

    Thank you for your reply, however my main reason for going to digital transmission is because the power and ground connection between the two teensy's is very very noisy causing cross talk on the analog line; adding that I can use a differential audio signal to remove the noise but I cannot...
  15. J

    Feasability Inquiry: I2s to Serial through DMA with bidirectional serial traffic

    Solved: I2s to Serial through DMA with bidirectional serial traffic Above is my top level physical layer. In essence, I want to DMA 2 bytes of separate memory data + 31 samples of 16bit audio from the SGTL5000, push it to the serial bus at 1M Baud through differential transceiver from one...
  16. J

    Changing TLC5940 library to facilitate higher frequency PWM

    I ended up burning up a couple of the outputs somehow, and I gave up on it. I moved over to the PCA9685 which is more of what I was looking for (voltage control vs. current control)
  17. J

    Soft Start Circuit, review and critique requested

    So I did a simple LTSpice simulation of a reverse polarity and soft-start setup that I would like to implement. Can anyone find any fault in the following design? V(n002) blue = Input voltage 24v V(n005) green = Output Voltage at the Load I(R2) red = inrush current M1 with D1 and R1 are the...
  18. J

    Coding structure and guidance

    I should have phrased it better. But Epyon and Michael got what I was getting at. It was more of an approach kind of thing. I have never learned or was taught how to organize or manage multi-platform code under one roof (or sketch in this instance). I am just starting to get into managing...
  19. J

    Coding structure and guidance

    Thank you so much... Sincerely, thank you for the experience and knowledge!
  20. J

    Coding structure and guidance

    Hey all, So I have a very interconnected system that tosses information back and forth between two teensy 3.2's, an arduino nano, and several peripherals. Is there an easy way to manage the chaos of managing three separate programs that will need to be uploaded to three separate devices? I am...
  21. J

    Maximum baud of AltSoftwareSerial with other serial communication hardware present

    Absolutely not! I've seen a couple of your posts about DmxSimple. I was thinking of using mathertel's library since I saw you posted a request to fork the library and implement other chipsets. So I figured it must have Paul's stamp of approval and be good to go, lol.
  22. J

    Maximum baud of AltSoftwareSerial with other serial communication hardware present

    Hey all, This is a paper verification I would like to understand before I go ahead and test. I am working with an atmeag328. So I would like to perform serial communication between multiple ports, two of which are hardware, and one being Altsoftwareserial. From the information page at...
  23. J

    Teensy Audio Shield Capacitor's are not polarized? Right?

    I found this link to a similar question, after some digging... though it didn't answer the question. https://forum.pjrc.com/threads/27128-Teensy-Audio-board-ADC-DAC I intend to feed a 6v dc biased ac audio signal to one of the channels to which there is a (annotated polarized) 2.2uF capacitor...
  24. J

    Teensy Audio Shield Capacitor's are not polarized? Right?

    I have never seen a polarized surface mount capacitor that wasn't marked, but based on the schematic there is a 2.2uF polarized capacitor between left/right channel to LINEINL/LINEINR to the SGTL5000 of the audio shield. I don't think its polarized, but I just wanted to double check before I...
  25. J

    Schematic building tips, tricks, and tools. How do you manage the chaos?

    Hey all, So I am curious as to how everyone manages the chaos when making schematics before going to laying out traces. Obviously small resistor networks and simple circuits don't require much thought and verification, but when you start getting into interconnects with speed and impedance...
  26. J

    Just verifying that Audio library does not conflict with analogwrite

    Thanks Paul! Always insightful and then some.
  27. J

    Just verifying that Audio library does not conflict with analogwrite

    Using the Teensy 3.2 So I know there is an analogRead and Audio library conflict. In reference to page 649 of the K20P64 manual, this is due to conflicting ADC setup requirements for each, I am assuming. (without digging into the code for each) but analogWrite/analogWriteResolution and the...
  28. J

    Teensy listen to audio shield without controlling it

    Like this Ben? I should have uploaded this before. I need the interconnecting cable to minimize the number of chords between the two controllers.
  29. J

    Teensy listen to audio shield without controlling it

    DAC it out to an amplifier. I would run the analog signal the entire way instead of digital, but in parallel with the audio line is power and i2c lines for other communication needs; So I get a dirty signal to say the least. I've tried to push the frequency offenders out of hearing range (which...
  30. J

    Teensy listen to audio shield without controlling it

    Yeah... for what ever reason I thought it was the same as I2C. I forgot what speeds are involved here. The work around I suppose would be an FFT on the incoming data and send the bin values over I2C and IFFT it on the other side? but I lose fidelity :( A 1024 bit fft should be good enough...
  31. J

    Teensy listen to audio shield without controlling it

    Hey, So I was wondering if it is easy to setup an external teensy 3.2 to listen to the audio shield's digital audio data while the audio shield is being controlled by another teensy 3.2. Illustration below. The external teensy 3.2 on the left just needs to listen to the audio data captured by...
  32. J

    Pitch detection

    Oops... Forgot to mention that step...
  33. J

    Changing TLC5940 library to facilitate higher frequency PWM

    So I figured out that the random transition was due to the DC, or "dot correction" constant current sink looking up values in accordance with the DC register that wasn't already coded (this is because DCPRG is hardwired to Vcc on the breakout board, and forces the dot correction to look at the...
  34. J

    Changing TLC5940 library to facilitate higher frequency PWM

    Hello, So. I have been doing some digging in the TLC5940 library and I wanted to pop the hood on the library and get faster pwm frequencies. I have modified the configuration to accept a 16mhz crystal on the GSCLK input pin (30mhz) without modifying the library. From the datasheet, this will...
  35. J

    Pitch detection

    From your example, it doesn't seem as though you have enough time to do this determination reliably and within the constraints of the perceivable human reaction time. From my research and what I can recall from the reading I did, it takes the human brain at the very least 5-6 periods to...
  36. J

    Unable to download Teensyduino.exe

    hmm, I haven't had that error, but I have had the "untrusted program" while INSTALLING teensyduino as well as "unsigned driver" when getting the driver installed. I had to do a bunch of loop-d-loops to get around the mandatory requirements that windows 10 imposes on software nowadays. I am...
  37. J

    TFilter link is broken. (Audio design tool Description for FIR filter)

    You are welcome, just trying to contribute. Also, I posted this question and solved it this morning, but the TFilter requires an even numbered filter array from the various tests I did. Could you include that in the notes as well to help young players such as myself? Here is the code that I...
  38. J

    FIR filter doesn't work after using TFilter design tool

    [SOLVED] filter declaration must be of an even number Used the default example and just started cutting down the number of sample points and it turns out odd number of filter elements caused failures. Re-ran the tfilter design tool and added 1 to the minimum number of elements. Though, I would...
  39. J

    FIR filter doesn't work after using TFilter design tool

    Code below works for pass thru, and compiles for implementing the low pass filter, but does not output anything on the dac or respond to serial. I am at a loss. Does the filter need to be of a specific size? I only saw the max of 200 constraint #include <Audio.h> AudioInputAnalog...
  40. J

    TFilter link is broken. (Audio design tool Description for FIR filter)

    Link was broken for the FIR filter description which points to the TFilter design tool. Points to an appspot address that says "Sorry, nothing at this URL". I believe this is the correct one. http://t-filter.engineerjs.com/
  41. J

    Audio samples dc offset

    Is there a burried function somewhere in the Audio library to bring out the value of the DC offset? Or modify it? Right now, I have to read the average value over the entire block of samples, and average over several sets in order to offset the signal properly for processing the samples.
  42. J

    Pitch detection

    I have not used notefreq(), but I do know there are quite a few algorithms out there that do it; it mainly depends on your needs. As WMXZ said, there is a nice link to the discussion with almost every source (from YIN to AMDF, to full autocorrelation algorithms) to do what you are asking for...
  43. J

    Audio System Design Tool Typo

    Hi, Just a small note. The Flange description in the audio system design tool has one of the methods labeled "modify" when it should be "voices". Just a small thing I noticed. If I had the coding knowledge I would contribute more than just typo errors, haha.
  44. J

    Synchronizing ADC object and Audio library

    fixed. Below is my example code showing how I grabbed the AUDIO library data using bufferRead() and I processed the data using AMDF (autocorrelation magnitude difference function) and HPS (Harmonic spectrum) to estimate the psuedo harmonic frequency of a instrument being played. Only works when...
  45. J

    Synchronizing ADC object and Audio library

    Here's the full code with the Audio object commented out. Uncommenting it back into the code you'll see a funny thing happen with the samples in the "All reduced time operations" if statement of the main loop...
  46. J

    Synchronizing ADC object and Audio library

    To which one where you referring? The ADC object running in conjunction with the AUDIO library or my soon to be revision? I can concatenate the relevant pieces if you want to try it. Ill upload that for interested parties. Yeah, it was working, but the problem was that my adc1_isr wasn't...
  47. J

    Synchronizing ADC object and Audio library

    After a little more digging into the Audio library I found that I could grab the DMA data directly in chunks using readBuffer() uint16_t buffer[256]; memcpy(buffer, amdf_samples.readBuffer(), 128); amdf_samples.freeBuffer(); memcpy(buffer+256, amdf_samples.readBuffer()...
  48. J

    Synchronizing ADC object and Audio library

    From what I read in multiple of Pauls posts is that the Audio Library is hardcoded to 44.1 kHz. (and it seemed pretty harder to change since everything was designed around that number). Well anyway, here is my code. I could achieve my goals with just getting the DMA data as the ADC_0 data comes...
Back
Top