Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: neltnerb

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    0
    Views
    488

    DAC Noise on Teensy 3.6

    Hi, more an electrical question than a programming issue -- I have a Teensy 3.6 I'm using to produce audio directly with the DAC. I'm powering the Teensy with a 3.8V switching regulator, and using it...
  2. Hi lorenzofattori, I'm the author, but I don't...

    Hi lorenzofattori,

    I'm the author, but I don't think it would have ended up as an official example. This is just a project I did.

    You could definitely reimplement this using my filtering and...
  3. Yup! What I meant to describe was that each time...

    Yup! What I meant to describe was that each time it's started it creates a "started at" and "aborted at" line, rather than a single cumulative duration. But I think the hybrid approach of storing the...
  4. Ah, sorry, I didn't explain this part but it's...

    Ah, sorry, I didn't explain this part but it's storing each start and end time separately so that we know the schedule it was used on rather than just total on-time.

    Perhaps writing just the most...
  5. Fascinating. I don't think 32 bytes will suit me...

    Fascinating. I don't think 32 bytes will suit me here, but that's super interesting.
  6. Oh, yes, I already have a battery for the RTC in...

    Oh, yes, I already have a battery for the RTC in the design. I'm not seeing any reference to it online, but maybe if it's big enough. I guess the idea is that the memory never has to be flushed to be...
  7. Hmm, I suppose I'm only updating once every ten...

    Hmm, I suppose I'm only updating once every ten seconds anyway due to worries about glitches. Still, even that slowly I'd reach 100,000 in just over 10 days. Might be okay here though since it's only...
  8. What happens when you don't close a SD card file?

    I'm writing a logging system using the Teensy 3.6 and onboard SD card with the sdfat library and the RTC.

    In my application I log the time that the device turns on, and then on the next line I...
  9. Replies
    5
    Views
    1,226

    Oh, I can't quite copy exactly. That 128Mbit chip...

    Oh, I can't quite copy exactly. That 128Mbit chip was obsoleted but it looks like plenty of others work. I just put it on my PCB with the same pinout and checked that the datasheet pin assignments...
  10. Replies
    5
    Views
    1,226

    Oh! That's beautiful, I had no idea the audio...

    Oh! That's beautiful, I had no idea the audio shield had more than an SD slot. Thanks so much, I'll just use that chip configured to the same data lines.
  11. Replies
    5
    Views
    1,226

    Recommendations for external flash?

    I want to add external flash to a project based on the Teensy LC and am wondering what people's preferences are or if there are some chips people love.

    Something like this seems perfect to add...
  12. Solenoid Driver and EagleCAD Rendering Tutorial

    I'm pretty proud of my weekend project. This is a 7-channel, 300mA solenoid driver based on the Teensy LC designed to fit nicely inside of an enclosure.

    13809

    And this is what it looks like...
  13. Replies
    5
    Views
    1,451

    Ah, so you'd suggest using the capacitor for...

    Ah, so you'd suggest using the capacitor for timing but adding a comparator so that as soon as it rises far enough the reset line is asserted cleanly?
  14. Replies
    5
    Views
    1,451

    Thanks! This isn't quite my issue, I'm powering...

    Thanks! This isn't quite my issue, I'm powering it from 5V to avoid conflicting with the 3.3V regulator that I'm only using to pull up the reset line. That is the thread where I discovered the trick...
  15. Replies
    5
    Views
    1,451

    Teensy External Reset?

    I'm trying to use a Teensy 3.6 in a complex board and have a chassis mounted reset pushbutton that I intended to use to reset the Teensy, another processor, and a wide variety of peripheral chips.
    ...
  16. Fast Port Reading inside interrupt with Teensy 3.6

    I am implementing a system to work with the AD7768 ADC, which uses a funny communications format. It continually streams clock pulses, and when it actually starts sending data it sends a DRDY pulse....
  17. Replies
    4
    Views
    1,243

    Fantastic, thanks for the detailed explanation!...

    Fantastic, thanks for the detailed explanation! It sounds like "timer" was the interval timer object, missed that bit. I didn't notice that you could typecast the IntervalTimer object as an IRQ...
  18. Replies
    4
    Views
    1,243

    Oh, just calling begin again. That seems to work...

    Oh, just calling begin again. That seems to work fine, thanks.

    I did try Option 3, but this time timer is undefined. I assume that's a reference to the timer that's been assigned to the interval...
  19. Replies
    4
    Views
    1,243

    Varying IntervalTimer() interval?

    I have a project where I am using an IntervalTimer to do high accuracy square wave signal generation. It's a Teensy 3.6 but I'd like it to work on Teensy LC as well.

    It works great, but I am...
  20. Teensy 3.6 DMA to read multiple digital inputs on pin interrupt.

    This thread is originally from https://forum.pjrc.com/threads/48114-Teensy-3-6-8-bit-wide-SPI-slave-interrupt-priorities-USB-transmit-buffer?p=160973 after Yannick's excellent insight that my problem...
  21. Thanks Yannick! I'm totally unfamiliar with DMA,...

    Thanks Yannick! I'm totally unfamiliar with DMA, other than having heard of it. It sounds very promising.

    If anyone else happens along who knows how to use DMA, I'd love to better understand. I...
  22. Teensy 3.6 - 8-bit wide SPI slave, interrupt priorities, USB transmit buffer?

    I have two high speed ADCs (AD7768) which work by using eight pins for data and one pin for a clock using effectively 8-bit wide SPI. One clock, eight data lines. It can be used in other modes, but...
  23. Replies
    0
    Views
    987

    Teensy 3.6 Eagle Design Block

    I'm trying to make the Eagle library for the Teensy 3.6 a little easier to work with by using the new Eagle Design Blocks.

    The basic issue is that the existing library from James Carruthers looks...
  24. Replies
    2
    Views
    858

    Thank you for the advice, I think I may then try...

    Thank you for the advice, I think I may then try the MICRF113 for a super basic transmitter and the MICRF219A or MICRF220 as a basic receiver.

    The transmitter seems simple enough, but the receiver...
  25. Replies
    2
    Views
    858

    RF peripheral recommendations

    Looking for some project advice if anyone has done much hacking with RF.

    I'm using a Teensy 3.2 to control an LED light system using a custom motherboard that the Teensy plugs into. The Teensy...
  26. Replies
    8
    Views
    3,578

    Thanks, great catch. You are absolutely correct....

    Thanks, great catch. You are absolutely correct.

    In that case, can I use the PWM generator in 1-bit mode to generate a 12MHz clock:

    analogWriteFrequency(24000000);
    analogWriteResolution(1);...
  27. Replies
    8
    Views
    3,578

    Thanks Paul! If I understand what you're...

    Thanks Paul!

    If I understand what you're saying, I can set a UART clock of 6MHz since F_CPU is 96MHz (overclocked mode) and this is a precise upper limit with:

    Serial1.begin(6000000);

    And...
  28. Replies
    8
    Views
    3,578

    Thanks Paul! My read of page 528 is that...

    Thanks Paul!

    My read of page 528 is that ERCLKEN is telling it to expect an external clock rather than an oscillator (function described on page 526). But the table 5-1 on page 158 does say that...
  29. Replies
    8
    Views
    3,578

    Thanks for the information! Yes, building my...

    Thanks for the information!

    Yes, building my own clock is my alternative, I just prefer to use fewer parts when I can and it's a compact board and I'm not doing much else with the Teensy here....
  30. Replies
    8
    Views
    3,578

    Teensy 3.2 output 16MHz clock?

    What is the best method to get the Teensy 3.2 to produce a 16MHz clock output for another chip?

    My guess is that PWM output at 50% dutycycle is the best way, but please let me know if there is a...
  31. Aha, glad you found something that works well!...

    Aha, glad you found something that works well! That code just low-pass filters at 1/100th the audio rate, so 441 Hz.
  32. No, that does not look very good. It does take...

    No, that does not look very good. It does take some time to tune the algorithm, but the RMS signal should correspond quite well to perceptual volume. This is gradually drifting, which makes me...
  33. Well, that it's flashing is definitely a...

    Well, that it's flashing is definitely a fantastic start. I know the audio analysis routine can work, so if you've got the LED side working then this should be possible!

    I think the idea would be...
  34. I'm also not entirely sure what I'm looking at...

    I'm also not entirely sure what I'm looking at with that oscilliscope plot. Is that what the arduino is actually picking up being sent to the computer to chart, or is that a USB oscilliscope of some...
  35. Hmm, I'm not quite sure. Certainly Paul's version...

    Hmm, I'm not quite sure. Certainly Paul's version may be better, but the algorithm should be very noise tolerant as long as it has a stable ground connection. I filter it heavily in software at...
  36. Yup, that's exactly what I'm saying. I think...

    Yup, that's exactly what I'm saying.

    I think for this all you need to do is be in the right ballpark for the highpass filter frequency.

    You've got 100k resistors, and audio typically is...
  37. That is a beautiful tree! If the hue cycling is...

    That is a beautiful tree! If the hue cycling is working, I think the audio will probably go great.

    I realized I didn't put in a ton of detail, but let me know if you need help figuring out the...
  38. I think modifying my code to do this shouldn't be...

    I think modifying my code to do this shouldn't be too difficult for you.

    On these lines:
    float huearray[8] = {0, 45, 90, 135, 180, 225, 270, 315};
    float intensityarray[8] = {intensityMin,...
  39. Hey Paul, sorry I seem to have totally missed the...

    Hey Paul, sorry I seem to have totally missed the email notification that you replied. I have updated the license on the code to the MIT license and would be honored if you included something based...
  40. Realtime Beat Detection and Audio Analysis + DMX Master Demonstration

    I made this recently, based on many years of experience figuring out good ways to produce intuitive lighting effects based on real-time audio analysis. I am hopeful that others may find this useful...
  41. Thread: SMBus?

    by neltnerb
    Replies
    1
    Views
    880

    Nevermind, that chip is not for thermocouple...

    Nevermind, that chip is not for thermocouple inputs. Misread the description.
  42. Thread: SMBus?

    by neltnerb
    Replies
    1
    Views
    880

    SMBus?

    I'm looking to add a four channel thermocouple input (https://www.maximintegrated.com/en/products/analog/sensors-and-sensor-interface/MAX6694.html) to a new design, but the device says it's SMBus...
  43. Can't argue with that, learning finite state...

    Can't argue with that, learning finite state machines was probably the single biggest factor in my firmware starting to be both reliable and readable. Maybe it would be good to make a nice template...
  44. Thanks Steve for the insight! It does make sense...

    Thanks Steve for the insight! It does make sense when you think about the evolution from assembly PIC16 programming through now, I'm so used to counting estimated instructions after compilation while...
  45. Thanks Ben! I think with the new compound...

    Thanks Ben!

    I think with the new compound expressions returning values, the usage of pointers is hidden entirely.

    I don't think I want to try to encapsulate it all in a formal class, but take a...
  46. I think that you're saying what I was saying,...

    I think that you're saying what I was saying, yeah.

    It would be neat if the Serial handler and commands executed without user intervention by running checkSerial(), but I think doing that would...
  47. Not sure what you mean?

    Not sure what you mean?
  48. What would perhaps be really, really, really cool...

    What would perhaps be really, really, really cool is if I were able to hide even the checkSerial() command from the main loop and do interrupt driven serial parsing and command evaluation... I'm...
  49. Oh, FWIW, the only reason I put the details of...

    Oh, FWIW, the only reason I put the details of how command(name) actually creates a function called name in the library usage is because I was worried someone might create a command with the name and...
  50. Thanks so much for the close look and feedback! ...

    Thanks so much for the close look and feedback!

    Right, command(name) creates a static function called name with argv as a variable. The basic premise for defining it with a macro like this is that...
Results 1 to 50 of 62
Page 1 of 2 1 2