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

Search:

Type: Posts; User: PaulS

Page 1 of 10 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    25
    Views
    3,423

    Glad to hear your CAN analyzer has been revived....

    Glad to hear your CAN analyzer has been revived.
    Now I guess it's time to connect the analyzer solo to the OBD port of your Civic and see if you can make sense of what it's happening on the CAN bus....
  2. Thread: Int to Binary

    by PaulS
    Replies
    9
    Views
    254

    Yep, that works too. void setup() { ...

    Yep, that works too.

    void setup() {
    Serial.begin(9600);
    }

    void loop() {
    uint16_t Value = 8200;
    Serial.println(Value, BIN);
  3. Thread: Int to Binary

    by PaulS
    Replies
    9
    Views
    254

    I'm not sure I understand you correctly since an...

    I'm not sure I understand you correctly since an integer is stored binary into memory.
    But perhaps you mean that you want to store "10000000001000" as a character string?
    You can use the itoa...
  4. Replies
    4
    Views
    119

    If I read the datasheets correctly, both the...

    If I read the datasheets correctly, both the TLV75733P and NCV8186 are short-circuit protected and therefor unlikely to fail.
    If you don't see a short from 3V3 to GND, you could power the Teensy...
  5. Replies
    5
    Views
    245

    Probably you have seen this thread...

    Probably you have seen this thread?
    This board does SPDIF output for Teensy 4.1 as well.
    According to the Audio System Design Tool, Teensy 4.x outputs on pin 7 instead of pin 22 for Teensy 3.x.
    ...
  6. Replies
    4
    Views
    119

    Nope, the third pin is the gate of the FET...

    Nope, the third pin is the gate of the FET connected to GND. See schematic.

    29137

    You may want to check whether the output of U4 [a TLV75733P voltage regulator] is shorted to GND somehow.
    ...
  7. Thread: USB Cage Power

    by PaulS
    Replies
    1
    Views
    84

    From the schematics, the cage looks to be...

    From the schematics, the cage looks to be connected to GND.

    29120

    Best is to verify with a multimeter.

    Paul
  8. So you are looking for a Teensy simulator with...

    So you are looking for a Teensy simulator with serial monitor output?
    Perhaps this will work for you: WOKWI
    It's very basic but it may suit you for learning/testing.

    29074

    Paul
  9. Replies
    25
    Views
    3,423

    A few weeks ago, my USB CAN analyzer acted up...

    A few weeks ago, my USB CAN analyzer acted up weird.
    I then resetted the analyzer as described here and it was working normally again.
    Perhaps give that a try?

    Paul
  10. Thread: C++ question

    by PaulS
    Replies
    14
    Views
    4,725

    Here it is:...

    Here it is: https://www3.ntu.edu.sg/home/ehchua/programming/cpp/cp4_PointerReference.html

    Paul
  11. Thread: Teensy LC, DAC

    by PaulS
    Replies
    7
    Views
    234

    You're right. I verified the AREF pin to be zero...

    You're right. I verified the AREF pin to be zero on my LC as well. Tried a sketch which does an analogRead(A0) but the AREF voltage is still zero.
    I guess it's internally connected to 3V3 by means...
  12. Replies
    5
    Views
    136

    Great! Good to remember. Paul

    Great! Good to remember.

    Paul
  13. Thread: Teensy LC, DAC

    by PaulS
    Replies
    7
    Views
    234

    I haven't seen formal documentation for the...

    I haven't seen formal documentation for the analogReference() function, but searching on this forum revealed this:
    analogReference(INTERNAL), analogReference(DEFAULT) and analogReference(EXTERNAL)....
  14. Thread: Teensy LC, DAC

    by PaulS
    Replies
    7
    Views
    234

    On this page...

    On this page.
    Don't get confused by the PWM stuff - when you specify an actual DAC pin for analogwrite(pin), the software will output an analog value, not PWM.
    Yes, the AREF pin is input only.
    ...
  15. Thread: Teensy LC, DAC

    by PaulS
    Replies
    7
    Views
    234

    Here is the most basic code to use the DAC on the...

    Here is the most basic code to use the DAC on the Teensy LC:

    void setup() {
    analogWriteResolution(12); // set to 12 bits
    analogWrite(A12, 4095); // value 0 - 4095, 0V - 3.3V
    }
    ...
  16. Replies
    25
    Views
    3,423

    Your screen looks similar to my screen in message...

    Your screen looks similar to my screen in message #12. Did you click the "Set and Start" button?
    If it is still not working, exit the program. Unplug and replug the USB cable of the analyzer. Then...
  17. The Ethernet PHY chip is designated by U6: ...

    The Ethernet PHY chip is designated by U6:

    29026

    29027

    Paul
  18. Replies
    5
    Views
    124

    The DACs are 12 bit. According to the 3.2 spec...

    The DACs are 12 bit.
    According to the 3.2 spec para 6.6.3, and 3.5 spec para 3.6.3, the output range is rail-to-rail minus 100mV.
    Output current is 1mA max.
    Output impedance is 250Ω.

    Paul
  19. Replies
    5
    Views
    136

    Perhaps this will work? if...

    Perhaps this will work?

    if (!bitRead(USBPHY1_STATUS,8))
    {
    USBConnected = true;
    }

    See page 2486 of the i.MX RT1060 spec.

    Paul
  20. Be aware that the current consumption as...

    Be aware that the current consumption as specified for this ILI9341-based Winstar panel [8.25mA max] does not include the current consumption [and required voltage] of the backlight... usually that...
  21. Replies
    25
    Views
    3,423

    Hmm, if you don't get a PID_REPLY at all, then...

    Hmm, if you don't get a PID_REPLY at all, then something else is wrong. Perhaps it's a hardware/wiring issue?
    I think you really need a CAN analyzer now to debug the issue.

    Paul
  22. Replies
    25
    Views
    3,423

    That is a good idea. But do you still have this...

    That is a good idea. But do you still have this line in?

    if ((rxmsg.id == PID_REPLY) or (rxmsg.buf[0] == ENGINE_COOLANT_TEMP) or (rxmsg.buf[1] == ENGINE_COOLANT_TEMP) or (rxmsg.buf[2] ==...
  23. Replies
    25
    Views
    3,423

    From this page...

    From this page I read: "1 - 1,0C,2,"Engine RPM",0,16383.75,rpm,((A*256)+B)/4".
    It's apparently generic OBD2. The RPM PID 0x0C only returns 2 bytes, so buf[0] and buf[1]. You can verify that by...
  24. Replies
    25
    Views
    3,423

    Here is a photo of the setup I used for testing:...

    Here is a photo of the setup I used for testing:

    28959

    And yes, you do need a CAN bus transceiver, like this.

    Paul
  25. Replies
    25
    Views
    3,423

    Took me some fiddling and using the CAN analyzer...

    Took me some fiddling and using the CAN analyzer to get your code working.
    Apparently the way the FlexCan library is invoked/called makes a difference.
    Here is the working code:

    //CANBUS Library...
  26. Replies
    25
    Views
    3,423

    Hi Sandra, you may want to invest into a CAN bus...

    Hi Sandra, you may want to invest into a CAN bus analyzer like this one, it saved me a lot of time while debugging a Teensy-based CAN bus device.

    Paul
  27. Replies
    10
    Views
    358

    Just checking: you are measuring with the scope...

    Just checking: you are measuring with the scope on TP86/TP80/TP59/TP64 of the EVM board? And R112 is mounted such that the board is operated in SPI mode?
    My suggestion would be to doublecheck all...
  28. Replies
    10
    Views
    358

    Ran your code on a Teensy 4.1 and the logic...

    Ran your code on a Teensy 4.1 and the logic analyzer shows the same as your first picture [with the exception of the MISO line since I don't have an AD4134 here].

    28942

    Can it be that the eval...
  29. Hi, you may want to be more specific on what help...

    Hi, you may want to be more specific on what help you actually need. Is it not working? If so, what is not working? Is it too slow? Is it not compiling?
    It also helps if you provide what version...
  30. Replies
    5
    Views
    355

    Out of curiosity I purchased a very similar...

    Out of curiosity I purchased a very similar rotary encoder from Amazon.
    Hooked it up to a Teensy 3.2 with two 1k pullups from 3V3 to pins 5 & 6. The encoder itsself was powered from the 5V pin.
    ...
  31. Replies
    5
    Views
    355

    This Wisamic encoder [english page...

    This Wisamic encoder [english page] has NPN outputs so you need pullup resistors connected to both output pins.
    Here is diagram of a similar OMRON encoder:
    28855
    Those pullups [e.g. 1K] can be...
  32. Replies
    4
    Views
    202

    Since the NRF24L01 operates on the 2.4GHz ISM...

    Since the NRF24L01 operates on the 2.4GHz ISM band, you have to share that medium with all present WiFi traffic. That could be one of the issues for the low throughput.

    Another factor could be...
  33. Replies
    15
    Views
    665

    Your code above did not work for me. I had to add...

    Your code above did not work for me. I had to add delay(10) to the loop.
    But your code can be simpler. Just divide the myEnc.read() by 4. And then check for the difference being positive or...
  34. Replies
    15
    Views
    665

    Replacing the Teensy 3.2 by a Teensy 4.1 and...

    Replacing the Teensy 3.2 by a Teensy 4.1 and running your exact code gave the same flawless results as in my post #9.

    Paul
  35. Replies
    15
    Views
    665

    If the serial monitor shows correct counting of...

    If the serial monitor shows correct counting of the encoder, than the encoder is fine. I see 4 counts per detent of the rotary encoder.
    Is it possible for you to make a photo that shows your wiring...
  36. Replies
    4
    Views
    232

    It looks like sebrk is referring to this...

    It looks like sebrk is referring to this and this library.

    Paul
  37. Replies
    15
    Views
    665

    Made a quick setup using a Teensy 3.2 [don't have...

    Made a quick setup using a Teensy 3.2 [don't have a Teensy 3.5] and ran your code.
    Here is the setup:

    28832

    Set USB type to "Serial+MIDI". Could not get it to fail...both serial monitor and...
  38. Replies
    15
    Views
    665

    Is it possible to post your complete code so that...

    Is it possible to post your complete code so that we can reproduce the issue? [or, preferably, the smallest code that shows the error].

    Paul
  39. Replies
    7
    Views
    331

    If the output of the 3V3 regulator shows only...

    If the output of the 3V3 regulator shows only 1.6V, the regulator may not be dead at all but just running into its current limiter.
    Please check whether there is a heavy load on the 3V3 pin. The 3V3...
  40. Replies
    15
    Views
    665

    Yes, no problem. Better not use 5V as not all...

    Yes, no problem. Better not use 5V as not all Teensy's are 5V tolerant.

    But for those simple rotary encoders, you hook them up differently. No need to use 3V3 or 5V.

    28810

    Connect encoder...
  41. Replies
    15
    Views
    665

    Electrically, this absolute endless encoder...

    Electrically, this absolute endless encoder [datasheet] can be connected to a Teensy 3.5. Just use pinMode(pin, INPUT_PULLUP) for pins P1-P8 and then digitalRead each pin.
    However, be aware that...
  42. Replies
    21
    Views
    917

    Did a quick current consumption test using an...

    Did a quick current consumption test using an SSD1306 OLED display [albeit strapped for SPI mode instead of I2C mode] and powered it by the LC's 3V3 output. Measured the current in the display supply...
  43. Replies
    21
    Views
    917

    It depends on the exact OLED display used. I...

    It depends on the exact OLED display used. I would power the OLED by the 3V3 of the Teensy LC [which can supply 100mA max].
    Those small OLED displays usually draw 20-50mA so you should be fine.
    ...
  44. From what I understand, if you want to connect...

    From what I understand, if you want to connect your HP702 for an external MIDI connection, you need to use the USB type B connection [#20 on the image below].

    28786

    That port is expected to...
  45. Replies
    6
    Views
    418

    Did you perhaps see this page...

    Did you perhaps see this page?
    Looking at the code and the instructions, I don't see any problem why it should not run a Teensy 4.1.

    Edit: another useful page.

    Paul

    PS: you need to power...
  46. Replies
    21
    Views
    917

    The default PWM frequency is 488.28 Hz. Got the...

    The default PWM frequency is 488.28 Hz. Got the info from this page.
    You can change the PWM frequency by using the analogWriteFrequency(pin, frequency) function.

    Paul
  47. Replies
    21
    Views
    917

    It's very difficult to advice you with the...

    It's very difficult to advice you with the limited data you provided.
    Do you happen to have schematics of the whole setup? Can you share photo's of your setup? Partnumbers of FETs, sensors and...
  48. Replies
    2
    Views
    222

    Did you perhaps use the AGND pin as the GND for...

    Did you perhaps use the AGND pin as the GND for your servo's? That would explain coil L3 to get burned out.
    It's better to use the digital GND pins of the Teensy for common ground.

    28674
    ...
  49. Teensy 3.6 featured in new project by Stuff Made Here

    Fun project. Video was released today and already more than 1.7M views...
  50. Replies
    3
    Views
    166

    The +5V is used for the TJA1050...

    The +5V is used for the TJA1050 CAN transceiver only.
    So you need 3V3 for VCC [which powers the MCP2515 that the Teensy LC interfaces to] and 5V for VCC1 which powers the TJA1050.

    Paul
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4