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

Search:

Type: Posts; User: Blitter

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    1,312

    tone() vs. analogWrite() for Lasertag IR

    I am currently working on a Lasertag project, using two Teensies (one for IR/Game management, and one for sound)
    Project Video: https://www.flickr.com/photos/95492142@N00/20878723950
    Populated PCB:...
  2. CopyFromSD should use a different CS with Audio Board (shield)

    In the SerialFlash library, the CopyFromSD example contains this:


    const int SDchipSelect = 4;
    const int FlashChipSelect = 6;

    void setup()
    // uncomment these if using Teensy audio shield
    ...
  3. Thanks Paul. I broke your rule for tech help,...

    Thanks Paul. I broke your rule for tech help, and didn't list ALL of the includes I was using:

    #include <Wire.h>
    #include <SPI.h>
    #include <SD.h>
    #include <Audio.h>

    Indeed, I was missing...
  4. Teensyduino 1.25-beta 2 = compile error 'SerialFlash.h: No such file or directory'

    Please excuse me if this is not the place to post bug reports, or if the format is not proper.

    Arduino 1.6.5r5
    Teensyduino 1.25-beta2

    My program contains:
    #include <Audio.h>

    During...
  5. Replies
    8
    Views
    4,592

    Sure. I am doing it now on my Teensy 3.1, for a...

    Sure. I am doing it now on my Teensy 3.1, for a string of 23 W2812's. I am not using a pullup, but am using a 100 ohm resistor on the drive line. The string is powered from a dedicated 5V supply,...
  6. Bingo! Thanks for the help, guys. I hadn't...

    Bingo! Thanks for the help, guys.

    I hadn't thought to mix both stereo channels of each WAV into a single channel with a mixer, and then feed that into the I2S In separate channels.

    On a...
  7. Thanks for the help, mxxx. I understand the...

    Thanks for the help, mxxx. I understand the mixing, but I am unaware of a pan function. When you say "hard pan left/right", how do you suggest this be done?
  8. Audio library : left and right channel output control?

    I have two WAVs (each in full stereo), and a fully functioning Audio Adaptor board. I'd like one WAV to play only in the left ear, and the other to play only in the right.

    I know I can just alter...
  9. Replies
    4
    Views
    3,040

    It has been done already for Arduino....

    It has been done already for Arduino. https://play.google.com/store/apps/details?id=name.antonsmirnov.android.arduinocommander

    In Dec 2012, someone tried to port the Teensy Loader to Arduino:...
  10. Replies
    4
    Views
    3,040

    Program a Teensy 3.1 with Android?

    I'll soon have some Teensy implementations "out in the wild", and I'd like to update them without lugging a laptop with me.

    Are there any options for programming via an Android phone over USB?
  11. Replies
    7
    Views
    1,967

    Will do! I already have one "convert" that was...

    Will do! I already have one "convert" that was lamenting the SRAM ceiling on his current crop of Nanos. I think the attractive price - and the fact that you don't have to unplug your serial lines...
  12. Replies
    7
    Views
    1,967

    Thanks Guys. I can see from Ken's IRremote...

    Thanks Guys. I can see from Ken's IRremote library, that it will ultimately be the direction to go. Being able to read pulses on interrupt is far more efficient than my current polling-type method....
  13. Replies
    7
    Views
    1,967

    I suspect the Audio library takes too many...

    I suspect the Audio library takes too many dedicated clock cycles to play nice with other clock-dependent operations. The three I2S clock signals (LRCLK @ 44.1 kHz, BCLK @ 1.41 MHz and MCLK @ 11.29...
  14. Replies
    7
    Views
    1,967

    Teensy Playing Audio file rejects Pulsein

    My Teensy 3.1 has a piggybacked Audio Adaptor Board.
    The Teensy is powered from a 1A 5V supply to Vin (pin 24), and the same 5V supply is powering a TSOP4856 IR Detector wired pin Pin 2.

    1)...
  15. Teensy 3.1 - Use those extra "Dupont" wires and access Serial2

    My current project maps every single pin on my Teensy 3.1. Of course, I still need another serial line (who doesn't?), so I grabbed a couple of extra "dupont" jumper wires and soldered them to the...
  16. Replies
    3
    Views
    1,447

    Found it. Looks like a classic 8-bit to 32-bit...

    Found it. Looks like a classic 8-bit to 32-bit problem (Nano to Teensy)
    https://forum.pjrc.com/threads/24940-Teensy-3-1-nrf24l01-issue

    Also, the nondisplay of serial printing in Startup() was...
  17. Bingo. Works like a champ. Thanks!

    Bingo. Works like a champ. Thanks!
  18. Replies
    3
    Views
    1,447

    Is SPI different on Nano and Teensy 3.1?

    I have a Nano, and a Teensy 3.1
    Both have the RF24L01+ modules wired to the same pins and are both running this RF receiver sketch:



    #include <SPI.h>
    #include <Wire.h>
    #include <nRF24L01.h>...
  19. Thanks! I'll give it a shot. The only thing...

    Thanks! I'll give it a shot.

    The only thing that might happen is that I receive a pulse from on a different pin during my 38kHz modulated pulse.

    That incoming pulse would take precedence, so...
  20. Duration is critical, and the 300us pulse is...

    Duration is critical, and the 300us pulse is followed by 4 others.

    I am looking to pass microseconds into the tone function, but it accepts only millis:

    tone(1, 38000, 300) will give a 300...
  21. Can I use microseconds in the Tone function with Teensy 3.1?

    I'd like to run a 38kHz tone on an output pin.
    I know I can do it this way, but it isn't optimal:

    tone(1, 38000); // Begin the tone
    delayMicroseconds(300);
    noTone(1); //...
Results 1 to 21 of 21