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

Search:

Type: Posts; User: feklee

Search: Search took 0.00 seconds.

  1. I measured the resistance between the sleeve and...

    I measured the resistance between the sleeve and ring 2 on my Bose QC25 headphones: 5.6 kΩ

    This led me to adding a 5.5 kΩ resistor to my plug:

    19489

    There were some other random audio...
  2. Connecting a Teensy 3.6 to mic in on an Android phone?

    I already asked this on Electrical Engineering Stack Exchange, but so far without an answer: How to connect a line-out to mic on Android plug? (CTIA)

    We have set up a sound installation in the...
  3. Replies
    6
    Views
    545

    See my original post: 3.6 A Teensy 3.6...

    See my original post: 3.6



    A Teensy 3.6 plus matching audio shield was easier to get. Iím in Hong Kong, ordered from Taobao. Itís more expensive here than in the West. I shouldíve ordered two...
  4. Replies
    6
    Views
    545

    According to my own research, it should be...

    According to my own research, it should be possible to use the two ADCs as well. That would give a total of four inputs. I haven't tried it yet.

    However, I would want to keep one ADC for reading...
  5. Replies
    6
    Views
    545

    How many inputs can be processed?

    The audio shield has five mono inputs (2 ◊ stereo + 1 ◊ mic), and then the Teensy 3.6 has 2 ADCs.

    Using AudioControlSGTL5000::inputSelect(), however, it only seems to be possible to select one...
  6. Replies
    4
    Views
    368

    Thank you! Well I only need 500 ms of delay, and...

    Thank you! Well I only need 500 ms of delay, and the sketch is small, so I guess getting the RAM was superfluous.

    Anyhow, I added a comment to the aforementioned YouTube video, which may be...
  7. Replies
    4
    Views
    368

    Thanks, that's it! Sorry for not reading the...

    Thanks, that's it! Sorry for not reading the documentation thoroughly. I was following Paul's video Teensy Audio Library, Delay Line Demo with (0:27):

    AudioMemory(10);


    What RAM is my sketch...
  8. Replies
    4
    Views
    368

    Cracks instead of delay

    I have a Teensy 3.6 with the Audio Shield and RAM (23LC1024T-I/SN 全新芯片SOIC8IC SRAM 1M SPI 20MHZ 8SOIC):

    19326
    19327

    When I delay the microphone input, I hear cracks if the delay is greater...
  9. Replies
    11
    Views
    1,873

    Find the full PNG attached in a separate ZIP...

    Find the full PNG attached in a separate ZIP file, for completeness.



    Thatís totally believable. In fact, the first image in the data sheet showing the pinout is wrong and was responsible for...
  10. Replies
    11
    Views
    1,873

    Well, then why does it mention the logic input...

    Well, then why does it mention the logic input voltage in quantities of VDD? (VIN = -0.5~VDD+0.5)

    If the addressable LED was just specced for 5V, then they couldíve written VIN = 4.5V Ė 5.5V. Also...
  11. Replies
    11
    Views
    1,873

    Thanks Paul, and thanks @markonian also for the...

    Thanks Paul, and thanks @markonian also for the circuit!

    However, I'm not sure that youíre right. According to the specs, 3.3V should be OK as long as it is used for both power and logic high:
    ...
  12. Replies
    11
    Views
    1,873

    OK, we did some more tests, and if we swap the...

    OK, we did some more tests, and if we swap the power adapter for 5V from the Arduino Mega or for another power adapter, then the SMD LED works.

    The through hole LED does only work with 5V supplied...
  13. Replies
    11
    Views
    1,873

    WS2811 LEDs donít work with 5V power supply

    We tried two different W2811 addressable LEDs, one SMD, the other one through hole. They are connected to a Teensy 3.2.

    Both work when power is drawn from the Teensyís 3.3V power supply pin.
    ...
  14. Replies
    17
    Views
    3,339

    The first version was with a Digispark/Attiny85....

    The first version was with a Digispark/Attiny85. Then Ė after running out of flash memory Ė I switched to the Arduino Pro Mini. I also considered the Teensy LC, but decided against it for cost...
  15. Replies
    17
    Views
    3,339

    Update: I decided to go with a battery in each...

    Update: I decided to go with a battery in each node for now.

    For serial two-way communication, I just finished writing my own library: MultiTrans

    MultiTrans is an implementation of a multi...
  16. Replies
    17
    Views
    3,339

    Current status concerning supplying power to...

    Current status concerning supplying power to nodes:

    Stereo plugs: When inserting them, they short poles. ⇒ scrapped
    Batteries: That’s what I plan to use for now, for demonstration purposes.
    ...
  17. Replies
    17
    Views
    3,339

    Thanks for the suggestion! In fact I was thinking...

    Thanks for the suggestion! In fact I was thinking about stereo jacks before. The advantage of BNC connectors is that they can be secured against pulling. However, if things get too complicated, I may...
  18. Replies
    17
    Views
    3,339

    As I still donít know where to start, and as I...

    As I still donít know where to start, and as I have the feeling that Iím being misunderstood, I decided to simply the problem:

    12985

    Details:

    Distance between each two nodes: about 10 cm (4...
  19. Replies
    17
    Views
    3,339

    Thanks for the suggestion, but: I’m not...

    Thanks for the suggestion, but:



    I’m not sure you understand what this is about. People playing with the construction kit should be able to assemble it in any way they want. The network then...
  20. Replies
    17
    Views
    3,339

    Thanks for the suggestion! I’ll have to do some...

    Thanks for the suggestion! I’ll have to do some reading on that topic.



    I am only aware of POE over twisted pair, and that’s not what is used here. Connectors that can be rotated freely are a...
  21. Replies
    17
    Views
    3,339

    Because I’m an electronics layman. Thanks...

    Because I’m an electronics layman.



    Thanks for the suggestion! However, I’ve no clue how design such a thing.

    Just to keep in mind: While individual cables are short (about 10cm or four...
  22. Replies
    17
    Views
    3,339

    Mesh network: Power + data on a single wire?

    Consider a mesh of nodes:

    12954

    The nodes may also be connected in sequence:

    12955

    Details:
  23. Very attractive, thanks!

    Very attractive, thanks!
  24. Thanks for all your suggestions! In fact Iíve a...

    Thanks for all your suggestions! In fact Iíve a Teensy LC here. Unfortunately, three UARTs is one too few.

    In the meantime, Iíve read that some boards allow reconfiguring UART pinout. The ESP32 is...
  25. Iím back at receiving junk on the Teensy. But...

    Iím back at receiving junk on the Teensy. But this time, I think itís my code. I added another ATtiny85 as a relay:

    12883

    Every time the relay receives a character from the sender, it sends it...
  26. Thanks for all the help! In particular thanks to...

    Thanks for all the help! In particular thanks to @PaulStoffregen for trying to reproduce the issue using an Arduino Uno, for debugging my code, and for explaining 300 baud support!

    Finally, I got...
  27. Both were connected to the same USB hub. Anyhow,...

    Both were connected to the same USB hub. Anyhow, I added common ground on the breadboard as well, but the issue persists:

    12845

    I forgot to mention: When the Teensy receives ďHi!Ē from the...
  28. Serial communication: Teensy 3.2 received junk from Digispark clone (ATtiny85)

    I want a Digispark clone (ATtiny85) to send data to a Teensy 3.2. On the Digispark, I use the SoftSerial library. On the Teensy, I use one of the hardware serial interfaces. The problem is that the...
  29. Replies
    9
    Views
    3,301

    Thanks for the suggestions! Instead of...

    Thanks for the suggestions! Instead of delayMicroseconds, I now consider using some sort of timing interrupt, have to read up on that topic. That way the controller can do somthing useful in between.
  30. Replies
    3
    Views
    1,476

    Thanks for the explanation! Also thanks to...

    Thanks for the explanation!

    Also thanks to @Theremingenieur for the suggestions! I am now considering alternative solutions.
  31. Replies
    3
    Views
    1,476

    delayMicroseconds broken?

    On the Hackaday article DAC with DMA and buffer on a Teensy 3.2, it says in several places in the source code:


    delayMicroseconds(125); // this function may be broken

    What could the author be...
  32. Makes sense. I am more of a software developer....

    Makes sense. I am more of a software developer. With hardware, to me the amount of options is often overwhleming; And some options require components which first need to be ordered. That makes me...
  33. Thanks for the suggestions. Note, however, that I...

    Thanks for the suggestions. Note, however, that I don't want to interrupt the Teensy while it is busy: The Teensy should only set X and read Y once per second! Furthermore, I don't think the Teensy...
  34. Thing is that communication is completely...

    Thing is that communication is completely asynchronous: While the Teensy sets X every second, the Raspberry Pi may read it only every minute. Also, vice versa, while the Teensy reads Y every second,...
  35. Make Teensy and Raspberri Pi communicate? (without effort for the Teensy)

    Teensy:

    Output: Every second, the Teensy sets an output, X.
    Input: Every second, the Teensy checks for an input, Y.


    Raspberry Pi:

    Input: When it finds time, it checks the value output...
  36. Replies
    9
    Views
    3,301

    The disadvantage of IRremote is that itís...

    The disadvantage of IRremote is that itís designed for only one IR LED, while we have multiple LEDs that need to be cycled.

    I now tried a simple solution:


    analogWrite(myPin, 128); // 50:50...
  37. Replies
    9
    Views
    3,301

    Thanks, @manitou!

    Thanks, @manitou!
  38. Replies
    9
    Views
    3,301

    Thanks for the suggestions. However, I was not...

    Thanks for the suggestions. However, I was not asking how to time the switching. I was asking how to quickly switch, in particular which one of the following methods is quicker:

    Alternate...
  39. Replies
    9
    Views
    3,301

    How to quickly toggle 38kHz signal?

    As suggested in the thread Create 38kHz square wave with Teensy LC?, to generate a 38kHz signal, I am using:


    analogWriteFrequency(myPin, 38000);
    analogWrite(myPin, 128); // for a 50:50 square...
  40. Replies
    8
    Views
    2,394

    Thanks for the explanation!

    Thanks for the explanation!
  41. Replies
    8
    Views
    2,394

    Now it works: :) 10573 10574 Maybe there...

    Now it works: :)

    10573

    10574

    Maybe there was a bad connection. As you can see, I connect the scope directly to ground and pin 3. I now moved the Teensy around on the breadboard and I changed...
  42. Replies
    8
    Views
    2,394

    Thanks for the suggestion! Here is what I tried:...

    Thanks for the suggestion! Here is what I tried:


    void setup() {
    const uint8_t pin = 3;
    analogWriteFrequency(pin, 38000);
    analogWrite(pin, 128); // for a 50:50 square wave
    }

    void...
  43. Replies
    8
    Views
    2,394

    Create 38 kHz square wave with Teensy LC?

    With an Arduino I am using a code snippet that Nick Gammon published in an Arduino forum post:

    // set up Timer 2
    TCCR2A = _BV (COM2A0) | _BV(WGM21); // CTC, toggle OC2A on Compare Match
    TCCR2B...
Results 1 to 43 of 43