Search results

  1. dimitre

    Teensy Audio Library question

    ow sorry I think I confused you greatly. I mean floats only used to display to user. in a UI or screen or printed, whatever. but internally everything is preserved as ratios
  2. dimitre

    Teensy Audio Library question

    Thanks all for the detailed explanations. Just for clarification I'm calculating some series of harmonic ratios and using std::ratio (integer arithmetic) to keep everything tidy until floating point is needed. usually just for display on screen, so waveforms are a little bit more correct.
  3. dimitre

    Teensy Audio Library question

    This is for @Paul I remember the library is written using integers and I thought it was an optimization for Teensy LC or something like this, but I'm now stumbling in something much deeper. I'm trying to skip floating point arithmetic for a personal project and representing pure geometry...
  4. dimitre

    Teensy 4.1 VARIANT_MCK variable

    https://github.com/Makuna/NeoPixelBus/pull/849
  5. dimitre

    Teensy 4.1 VARIANT_MCK variable

    Nice, thank you. With this and other changes I'm now able to make it work with Teensy 4.0. I'll be submitting a PR to the library repo.
  6. dimitre

    Teensy 4.1 VARIANT_MCK variable

    I'm now trying to use library NeoPixelBus (https://github.com/Makuna/NeoPixelBus) with Teensy 4.1 and complains about some variables like VARIANT_MCK It runs well on Teensy 3.2 but I would love to use it with T41 because of the ethernet board. Any help is welcome. Thank you
  7. dimitre

    Using an addressable chip to drive mosfets (non addressable LEDs) using Teensy

    Only one warning about this chip: datasheet show the pins in relation to the dot (circle) on the chip, but in reality they are in relation to the notch. the dot is on the opposite (and wrong) side.
  8. dimitre

    Using an addressable chip to drive mosfets (non addressable LEDs) using Teensy

    Thank you! Everything 100% with 74AHCT125!
  9. dimitre

    Using an addressable chip to drive mosfets (non addressable LEDs) using Teensy

    Thank you for the info. I'm using three different ones but I suppose they are all the same. one of them I know to be bi-directional, the other one is the BSS138 J1 Knowing that the bi-directional can be the issue I'll now try this 74AHCT125, because I have three available here.
  10. dimitre

    Using an addressable chip to drive mosfets (non addressable LEDs) using Teensy

    Nice, thanks for all the tips. yes board has the capacitor specified in datasheet This LED protocol is identical to ws2812, but it only changes the packet size (64 bits, 16 bits each channel RGBW) I've bought one oscilloscope to inspect this and it will arrive next week, so I will have a better...
  11. dimitre

    Using an addressable chip to drive mosfets (non addressable LEDs) using Teensy

    I'm working on a project that uses an addressable LED chip (UCS8904B) to drive mosfets with non addressable LEDs. After everything assembled I've discovered some heavy interference when using Teensy and a level shifter to make the data signal work with 5v. Curiously when using Arduino Uno R3...
  12. dimitre

    Help using UCS8904B

    I found something very interesting yesterday while investigating timing issues and testing with a WS2812 strip. Using the correct timing ratios I could increase data rate 2.4x, sending data at 1920khz. I know this will have different results in different strips, but it is nice to know it...
  13. dimitre

    Help using UCS8904B

    @PaulS yes great it was the missing level shifter I had to increase the time of reset packet also, it was unstable with the 300us
  14. dimitre

    Help using UCS8904B

    Thank you I was wondering the same today, I'm not. I'll be using a level shifter in my next test. It is probably the only issue, I'll report back here
  15. dimitre

    Help using UCS8904B

    Yes you're right. I was trying to write WS2812 protocol. it drives well ws2812 strips but as they are both similar with timings and packet, at least some flickering would be displayed in UCS8904B
  16. dimitre

    Help using UCS8904B

    I've write now the minimal code to drive some pixels using WS2812 protocol, it is working OK. Code is adapted from Adafruit Neopixels Data pin is shared with UCS2903B. I suppose "something" should be happening there as well, but still behaving as no data input. #include <Arduino.h> #if...
  17. dimitre

    Help using UCS8904B

    UCS8904B chip is a LED drive cascade chip with 16bit colors, RGBW output. I'm trying to drive it from a Teensy 3.2 with no success until now. Information is sparse about the data packet protocol, I'm assuming it is similar to ws2812 maybe with a different startFrame / endFrame length. For now I...
  18. dimitre

    [solved] Teensy 3.2 SPI speed decreasing over time

    Sure, I'll be sharing some videos soon! it is just a test to communicate with the LEDs. So it is a simple SPI connection on a protoboard. my real aim is use a 24v addressable LED chip (16 bits also) to drive some power mosfets with high PWM and drive some long analog led strips in cascade. or...
  19. dimitre

    [solved] Teensy 3.2 SPI speed decreasing over time

    Thank you, great observations Paul! The intent now is just testing communication with this 16bit led strip, it is beautiful smooth color passages even with low brightness.
  20. dimitre

    [solved] Teensy 3.2 SPI speed decreasing over time

    Thanks. I've updated the code with Paul suggestions, and converted my RGB phasing to radians, so now code is working great I've used std::modf instead of modff, to use radians directly #include <Arduino.h> #include <SPI.h> float twopi = PI * 2.0; void setup() { delay(500); SPI.begin()...
  21. dimitre

    [solved] Teensy 3.2 SPI speed decreasing over time

    I'm testing some new LED strips (HD108) with Teensy 3.2 and I'm noticing some unusual Animations begin very smooth and beautiful, over time (after one minute) we can notice looking at the LEDs it gradually starts decreasing frame rate. Resetting board in reset button restores smoothness until it...
  22. dimitre

    Teensy 4.1 UDP crash with more then 24 bytes?

    I had the same issue and from my tests This library has the define #define UDP_TX_PACKET_MAX_SIZE 24 so I've stopped using this define to make things work. any idea of why is this set to 24 bytes? I've checked both https://github.com/PaulStoffregen/Ethernet...
  23. dimitre

    Oscilloscope questions - Rigol ds1102e

    I'm looking for an oscilloscope, for learning purposes. I'm thinking of 2 probes to inspect some digital LED signal (HD107s) or other kinds of communication. I think two probes is enough for me. this one is second hand and have an interesting price: (about USD 275)...
  24. dimitre

    Advice about DC Motors - PWM

    I'm working in a project using DC Motors, I'm more in the software / firmware side, one question: how does PWM speed affect DC motor speed control? the faster the better? I'm testing in an Arduino Mega (specified by others) but testing on Teensy 4.0 also, even using SoftPWM the LED test seems a...
  25. dimitre

    Prop Shield, Low Cost and Teensy 4.1

    Thank you for the super detailed answer. I didnt know about the PJRC audio board. I'll try to see if the SD/mp3 player can solve the project. I love the fact this board does everything audio from the SD to the speaker, so I can concentrate just in "DJing" via serial. I'll be definetly using this...
  26. dimitre

    Prop Shield, Low Cost and Teensy 4.1

    Thank you! I think pjrc site could be updated to mention that. I'm working on a simple project that needs amplified sound output and SDCard, any ideas?
  27. dimitre

    Prop Shield, Low Cost and Teensy 4.1

    Prop Shield, Low Cost and Teensy 4.1, are they compatible? I'm willing to use as an audio amplifier for a project, and read audio from 4.1 SD does it work? Thanks
  28. dimitre

    Teensy Audio board, noise when not powered on

    Just a quick question, how to avoid noise when the board is powered off? Thank you
  29. dimitre

    Audio shield soldering

    @manicksan thanks. I thought it was prohibitive to mount side by side with wires, because of some issues I don't remember exactly. Impedance maybe? Maybe this issue is protoboard only. Other than that it is easier for me to just solder pins too (lazyness)
  30. dimitre

    Audio shield soldering

    How do you usually solder Audio Shield on Teensy? Shield on top? shield under? long pins or short pins? if short, what do you use as a spacer? I've soldered mine with this double plastic headers (not sure of how it is called) with the audio on top (right in the picture) But now I'm planning a...
  31. dimitre

    Custom audio object and a mixer4 - gain issues

    Just fixed what was happening, I'll explain here so hopefully it can help others. my recorder object was passing audio through when not recording or playing back, so mixer4 was summing 4 times the gain. muting the object output when recording and not playing back solved. I've commented out the...
  32. dimitre

    Custom audio object and a mixer4 - gain issues

    In fact I don't need to manipulate the data itself because one time I'll be recording (reading) and other time I'll be playing back, so maybe even a empty audio_block_t *block pointer could do for playback. I've noticed things happens differently when I pass through the mixer4 object. If I...
  33. dimitre

    Custom audio object and a mixer4 - gain issues

    I'm working on this project with a custom object. It is basically a recorder / looper. I've added 3 instances of this object and the line in instrument connected to a mixer4. I've noticed if I use audio_block_t *block = receiveWritable(); it work OK but the audio output gain is very low after...
  34. dimitre

    Basic help - mixer, levels and peak

    Hello, I'm testing an audio project and would like to ask very basic questions: I'm conneting a Korg Minilogue to Teensy Audio Line In, for now just trying to find the right gain without distortion. I've put up a very simple sketch to listen input and plot peaks. #include <Audio.h>...
  35. dimitre

    recording a loop while granular freezing

    I think SD.remove() is very expensive because you have to overwrite the entire file with 1 bits to be able to record again. Try to debug this part printing something before and after SD.remove("RECORD.RAW");
  36. dimitre

    Audio project guidance - multitrack looper

    Great! thanks for the tip and link @houston.
  37. dimitre

    Audio System Design Tool - tiny issue on search

    Most effects I've seen are 1-1 so it will be already helpful to use 1-1 as default. And we can have other objects with Ins-Outs in the name like for example AudioEffectCustom AudioEffectCustom1-2 AudioEffectCustom2-2 AudioEffectCustom2-1
  38. dimitre

    Audio System Design Tool - tiny issue on search

    Thank you! Today I'm working with my custom audio object, in design tool I usually pick chorus, design everything and replace in code. but I have to replace back to chorus to be able to get back in the Audio design tool. It would be great to have a Custom effect in design tool, which links to a...
  39. dimitre

    Audio project guidance - multitrack looper

    Thanks @houston, I've finally took some time to program my custom object and your example was great for that. One quick doubt there: Maybe you should stop writing to the buffer if your buffer_filled is true, not to exceed the array. I've noticed maybe you should stop writing to the buffer if...
  40. dimitre

    Teensy 4.1 + Audio Shield, two or three PSRAM chips?

    Everything working here! one more doubt here about memory size. I'm using two chips, 16Mbytes total. Does it reflect in 16000000 total usable bytes? or less? In this case I suppose it reflects in an array of int16_t with the size of 8000000 right? Is this a good way of dividing the available...
  41. dimitre

    Audio project guidance - multitrack looper

    Hello, some years ago I've built a nice project using a serial flash chip and Teensy 3.x It was a different kind of looper with three different recordable tracks. I was using the play_serialflash_raw.cpp with some modifications to have the ability of looping audio and seeking arbitrary...
  42. dimitre

    Audio System Design Tool - tiny issue on search

    I've just noticed the search box (bottom left) doesn't return exact results but I can find some effects there if I type without the first letter. for example "elay" shows "delay" but typing "delay" doesn't show anything. Thanks
  43. dimitre

    Teensy 4.1 + Audio Shield, two or three PSRAM chips?

    Hello, I'm mounting a Teensy 4.1 + Audio Shield and soldered two PSRAM chips into the Teensy. I was thinking of soldering another one in the Audio Shield memory slot but I suppose it is not easy to use together with the Teensy 4.1 slots (EXTMEM) Is it possible to use the three together as one...
  44. dimitre

    Teensy Audio Shield Serial Ram - chip compatibility question

    Great. IS62WVS5128GBLL arrived here and soldered on teensy audio Now I'm trying to update effect_delay_ext.cpp, it is the only effect which uses external RAM. I'm reading the datasheet and from what I've seen the only difference from the other chips is the dummy cycle. can it be solved like...
  45. dimitre

    PCF8574P Port Expander and Teensy 3.2

    outstanding. everything working now
  46. dimitre

    PCF8574P Port Expander and Teensy 3.2

    Thanks @tonton81. I've updated with some pullups and data is transmitting but interrupt pin stopped working. should I do something in that pin too? I've changed IC VCC to 3.3v now so I use pullups on the protoboard. which range of resistors should I use for i2c pullup?
  47. dimitre

    PCF8574P Port Expander and Teensy 3.2

    I'm trying to use the PCF8574P port expander with Teensy 3.2 but I can't receive the transmission yet. I'm posting the wiring and the code. interrupt seems to be working, but no transmission yet. If I use pullup resistors in i2c ports the interrupt stops working. I've tried different chips...
  48. dimitre

    Addressable LED HD107S

    I hear this is the same chip, only Newstar brand use NS as a prefix
Back
Top