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

Search:

Type: Posts; User: PaulS

Page 1 of 3 1 2 3

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    287

    Probably that module will work as well. There is...

    Probably that module will work as well.
    There is a datasheet and an app but that's about it. I do prefer Adafruit's module though since more information is available.
    But if you feel confident,...
  2. Replies
    4
    Views
    287

    Successfully used this module on a Teensy 3.1:...

    Successfully used this module on a Teensy 3.1: Adafruit Bluefruit LE UART.

    Paul
  3. Questions answered

    While printing member "volume" of structure "usb_audio_features_struct" [in C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3\usb_audio.h] to the serial monitor, I noticed the same...
  4. After further digging I found a number of...

    After further digging I found a number of references to USB volume in C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy3\usb_audio.h & usb_audio.c.
    But I'm still in the dark where the...
  5. Audio library, USB audio interface, volume setting

    Hooked up a PCM5102 board to a Teensy 3.1 to form a USB audio interface.

    16337

    With the code below, my windows PC sees a USB Teensy Audio device and outputs audio via the PCM5102 board as...
  6. Replies
    8
    Views
    304

    I messaged Github member Soonuse, whether he...

    I messaged Github member Soonuse, whether he could update the downloadable democode on the Waveshare website.
    He did and now the democode for the different displays contains the correct SPI.begin();...
  7. Replies
    8
    Views
    304

    Hi Stirling, Glad to hear this worked out for...

    Hi Stirling,

    Glad to hear this worked out for you!



    My guess is it has to do with the different SPI libraries that are used for compilation for Arduino and Teensy.
    Arduino is using...
  8. Replies
    8
    Views
    304

    While I was thinking along about your issue, I...

    While I was thinking along about your issue, I recalled that I filed an issue for the epd library last year: https://github.com/soonuse/epd-library-arduino/issues/2.
    Github member Soonuse is...
  9. Replies
    8
    Views
    304

    Hi Stirling, My 2-color display is strapped...

    Hi Stirling,

    My 2-color display is strapped from the factory at 3-line SPI. Not really sure that would make a difference since 4-wire SPI also includes MISO [which is not used for this display].
    ...
  10. Replies
    8
    Views
    304

    Hi, Just uploaded my code to a Teensy 3.1 and...

    Hi,

    Just uploaded my code to a Teensy 3.1 and can confirm that it's working fine:

    16226

    16227

    Since you are using a 3-color display, the demo code is different and may have an issue....
  11. @ Frank, Thanks for the confirmation. I was just...

    @ Frank,
    Thanks for the confirmation. I was just curious how to use the lower 16 bits of the AudioSynthWaveformSineHires object.

    @ Paul,
    Yes, I have read the threads you mention. Personally I'm...
  12. PCM5102 DAC, can the Audio System Design Tool output 32 bit over I2S?

    Been playing with a sub-$10 PCM5102 DAC board and it works well using the Audio System Design Tool.

    15918

    With this minimal code I was able to output a decent sinewave:

    // PCM5102 bd ...
  13. Thread: New Scope

    by PaulS
    Replies
    25
    Views
    1,358

    Hallo Frank, I think you're better off by...

    Hallo Frank,
    I think you're better off by spending a little more and don't get disappointed. A few months ago I had the same thoughts and ended up with this scope:
    Siglent-SDS1202X-E.
    The feature...
  14. Replies
    7
    Views
    333

    You may want to check the datasheet of the...

    You may want to check the datasheet of the particular decoder you used.
    Another version ALPS decoder from the series I used has the following switching diagram:

    15744

    Paul
  15. Replies
    7
    Views
    333

    You're welcome. Please let us know how it works...

    You're welcome.
    Please let us know how it works out for you.

    Paul
  16. Replies
    7
    Views
    333

    Hi Lamikam, When I tried your code, and...

    Hi Lamikam,

    When I tried your code, and rotated the encoder fast, I got the same issue.
    But when I rotated the encoder very slowly [<1 click/sec], the output nicely counted up & down as expected....
  17. From the Hookup Guide...

    From the Hookup Guide of this display:

    15305

    I know you want to use the SPI interface to talk to the display but connecting the RX pin to 3V3 doesn't harm and may solve the garbled display....
  18. Replies
    9
    Views
    1,207

    Hi Paul, It's kind of fundamental: if you...

    Hi Paul,



    It's kind of fundamental: if you do not use a low-pass filter, you will always see the intermodulation frequency a.k.a. alias [sample frequency minus intended frequency, e.g. 25MHz -...
  19. From the photo, it's not clear [to me] how the...

    From the photo, it's not clear [to me] how the LED strip is powered. From an external power supply? Which pin of the T3.2 connects the red wire to?
    Anyway, I'm suspecting a power issue.
    What...
  20. Replies
    9
    Views
    1,207

    Hi Paul, That's interesting. In the above code...

    Hi Paul,

    That's interesting. In the above code I only modified one line to "unsigned long freq = 10000000; // set initial frequency", compiled it and ran it on a Teensy LC.
    The oscilloscope...
  21. Replies
    9
    Views
    1,207

    Hi Paul, Here is the basic code to generate a...

    Hi Paul,

    Here is the basic code to generate a 1000Hz sine wave:

    #include <SPI.h> // pin 13 (SCK), pin 11 (MOSI), AD9833 generator
    const int FSYNC = 10; //...
  22. Replies
    9
    Views
    1,207

    Take a look here for an AD9833 project:...

    Take a look here for an AD9833 project: http://www.vwlowen.co.uk/arduino/AD9833-waveform-generator/AD9833-waveform-generator.htm

    A cheap $1.38 board:...
  23. Replies
    2
    Views
    420

    Hi LunarEclipse57, The function tone() outputs...

    Hi LunarEclipse57,

    The function tone() outputs a square wave, not a sine wave, see this page: https://www.pjrc.com/teensy/td_pulse.html [scroll down to the bottom of the page].

    For a sine wave...
  24. Replies
    35
    Views
    6,892

    Hi Frickelpiet, You may want to have a look at...

    Hi Frickelpiet,
    You may want to have a look at my post earlier this year.
    By using a 2 different LUTs you can use partial refresh on the epaper display to show a clock without refreshing the whole...
  25. Replies
    12
    Views
    1,806

    Hi propa, What is your hardware setup? A...

    Hi propa,

    What is your hardware setup? A Teensy 3.2 does not have a 5V output at pin 17 like a Teensy LC. Most Neopixels need a 5V driving signal to work reliably.

    Paul
  26. Replies
    12
    Views
    1,756

    Hallo Michael, You may want have a look at the...

    Hallo Michael,
    You may want have a look at the attached code. It runs on a TeensyLC. Not much RAM left, but at least you can display a scalable font.


    Sketch uses 26392 bytes (41%) of program...
  27. Not sure whether I understand you correctly. Do...

    Not sure whether I understand you correctly. Do you mean to say that the MIDI USB sequencer will consume ~400mA so that only ~100mA is left over for the 16x WS2812B LED's?

    Anyway, powering 16x...
  28. Replies
    22
    Views
    5,768

    The latest rev datasheet...

    The latest rev datasheet states, on page 2, that the MK64FX512VMD12 has 256KB SRAM.
    Do you happen to have other documentation?

    Interesting discrepancy...

    Paul
  29. One more remark Each RGB LED consumes about...

    One more remark

    Each RGB LED consumes about 60mA at full brightness. Having 288 leds means ~17 Amp at 5V... you will need an external powersupply.
  30. Thinking it all over again, the problem may be...

    Thinking it all over again, the problem may be related to the 2 strips in parallel.
    With this line

    FastLED.setMaxPowerInVoltsAndMilliamps(5, 500); // power strip from USB port you tell FastLED...
  31. Hmm, now it's getting interesting... I just ran...

    Hmm, now it's getting interesting...
    I just ran your code on a Teensy LC connected to a 144leds W2812B strip. The Teensy LC has a special output pin that drives 5V out [effectively the same as the...
  32. Glad to hear it's working [almost]. With respect...

    Glad to hear it's working [almost].
    With respect to the dropping brightness: would you mind posting your current code so that I can have a look at it again? You can use the [CODE] tags to insert...
  33. Hi, The problem is that you use pin 7 as the...

    Hi,
    The problem is that you use pin 7 as the DATA_PIN whereas this pin is an enable pin for the LED data. See the schematic on this page.
    Here is a piece of code that should do the trick:

    ...
  34. Replies
    6
    Views
    1,600

    Driving this 1306 OLED display...

    Driving this 1306 OLED display with hardware SPI on a Teensy 3.1, I was able to run the display at 862 fps.
    See this thread.

    Regards,
    Paul

    PS: I measured the SPI clock to be 8MHz in the...
  35. Thread: Vl53l0x

    by PaulS
    Replies
    7
    Views
    1,660

    This library should work on Teensy:...

    This library should work on Teensy: https://github.com/pololu/vl53l0x-arduino

    Regards,
    Paul
  36. Replies
    20
    Views
    4,259

    Actually, I believe the WS2811 is not suitable at...

    Actually, I believe the WS2811 is not suitable at all for sinking current of LEDs powered by 24Vdc.
    This datasheet mentions: Output voltage VOUT 12V .
    For a possible solution:...
  37. Replies
    20
    Views
    4,259

    Hi Jeff, I'm nearly 100% sure that the 5V...

    Hi Jeff,

    I'm nearly 100% sure that the 5V output of the OCTOWS2811 will do the job. I definitely would NOT input 24V to the DIN pin.
    From the WS2811 spec:
    12043

    Caution here: VDD is not 24V...
  38. Replies
    12
    Views
    1,806

    Allright. So I guess I'm just lucky with the...

    Allright. So I guess I'm just lucky with the Neopixel ring that I have.
    The PWM frequency is not even mentioned in the datasheets I found...thanks for the info!

    Paul
  39. Replies
    12
    Views
    1,806

    Additional question about WS2812serial lib

    Hi Paul,
    While looking more in depth into the WS2812serial lib, I noticed the following in ws2812serial.cpp:


    // wait 300us WS2812 reset time
    uint32_t min_elapsed = (numled * 30) + 300;
    if...
  40. Replies
    12
    Views
    1,806

    Thanks for the WS2812Serial library! Paul

    Thanks for the WS2812Serial library!
    Paul
  41. I can confirm that wiring pin 24 to 17 works...

    I can confirm that wiring pin 24 to 17 works fine. Can also confirm that the timing change by Paul does work.
    See my other thread.

    A stable, external powersupply is required: when trying to...
  42. Replies
    12
    Views
    1,806

    Problem solved!

    Updated to Arduino V1.8.5 & Teensyduino V1.40.

    Regards,
    Paul
  43. Replies
    12
    Views
    1,806

    WS2812Serial, BasicTest not working

    Read about the new WS2812Serial library so gave it try on a Teensy LC using a 24-LED NeoPixel Ring.
    But I can't get it to work.

    Here's a photo how it physically connects:
    11986
    Mounted a wire...
  44. Replies
    3
    Views
    1,329

    It's called an 8x8 matrix keyboard. Here is a...

    It's called an 8x8 matrix keyboard.
    Here is a link how it works and how it can be read out: http://pcbheaven.com/wikipages/How_Key_Matrices_Works/

    Regards,
    Paul
  45. Replies
    1
    Views
    1,486

    Update

    The display can be powered at 5V from the Vin pin on the TeensyLC. The display has an on-board 3V3 regulator so the controller and its I/O pins run at the correct voltage.
    The brightness is now back...
  46. Replies
    1
    Views
    1,486

    TeensyLC with 16x2 OLED display

    10012

    This OLED is a 16x2 character display [so not a graphical display, although you can download your own bitmaps into the CGRAM].
    It had been unavailable for a while, but the OP162i 16x2...
  47. Replies
    2
    Views
    1,137

    It's a display made by ChiMei EL and contains a...

    It's a display made by ChiMei EL and contains a Samsung controller.
    Quickly scanning through the datasheet, makes me think it can run on any Teensy since it seems to have a regular SPI interface.
    ...
  48. Replies
    13
    Views
    4,601

    Hi David, I used a 74AHCT2G125 successfully. See...

    Hi David, I used a 74AHCT2G125 successfully. See
    https://forum.pjrc.com/threads/29135-Appropriate-Level-Shifting-IC-to-interface-Teensy-LC-to-5V-chip?p=78697&viewfull=1#post78697

    Regards,
    Paul
  49. Replies
    1
    Views
    1,110

    Teensy 3.2 playing piano on iPad

    https://www.youtube.com/watch?v=fqOW84ZTL7k
  50. Replies
    8
    Views
    2,434

    Yes, calculated it from that formula. The...

    Yes, calculated it from that formula. The Adafruit_SSD1306 code writes 0x80 to 0xD5.

    ssd1306_command(SSD1306_SETDISPLAYCLOCKDIV); // 0xD5
    ssd1306_command(0x80); ...
Results 1 to 50 of 107
Page 1 of 3 1 2 3