Search results

  1. PaulS

    How to use CAN bus on Teensy 4.1, 4.0 and 3.2 ?

    Did you apply the 2 changes I proposed above? Without those, the circuit will definitely not work. With respect to the 10K resistor on pin 8: it does not matter whether it's 10K to GND or directly to GND, since the internal pullup is typical 1.1MΩ and thus the STBY signal will be considered LOW...
  2. PaulS

    How to use CAN bus on Teensy 4.1, 4.0 and 3.2 ?

    Signal integrity could be playing a role here. CAN FD has a much higher datarate and thus higher frequencies on the cable. I would like to suggest short wires between parts and twist the CANL & CANH wires like in an Ethernet cable. Paul
  3. PaulS

    How to use CAN bus on Teensy 4.1, 4.0 and 3.2 ?

    If you indeed use the Waveshare board mentioned above and replaced the SN65HVD230 chip by the MCP2562FD chip, you need to connect its 3.3V header pin to Teensy Vin pin: and connect a separate wire from pin 5 of the MCP2562FD to Teensy pin 3V3. For reference, this is the schematic of the...
  4. PaulS

    How to use CAN bus on Teensy 4.1, 4.0 and 3.2 ?

    By the way, did you connect the Vdd pin of the MCP2562FD to 5V or 3V3? The chip is supposed to be powered by 5V: Since the Teensy 4.x I/O pins are 3V3 only, Vio needs to be 3V3. Paul
  5. PaulS

    How to use CAN bus on Teensy 4.1, 4.0 and 3.2 ?

    Page 5 of the MCP2562FD datasheet states: So you need connect the Vio pin to the Teensy 3V3, otherwise you won't have working TX & RX signals. Similarly, you need to check whether the STBY pin is connected to GND for normal operation: Paul
  6. PaulS

    How to use CAN bus on Teensy 4.1, 4.0 and 3.2 ?

    So you only replaced the SN65HVD230 chip by the MCP2562FD chip? You may want to check the datasheets since the MCP2562FD is not pin-compatible with the SN65HVD230. Pins 5 & 8 are different. E.g. the Vref pin on the SN65HVD230 is an output while Vio on the MCP2562FD is the Digital I/O Supply...
  7. PaulS

    How to use CAN bus on Teensy 4.1, 4.0 and 3.2 ?

    Which CAN FD module are you actually using? From the picture above, it looks like the Waveshare SN65HVD230 CAN Board, which is not CAN FD capable. Paul
  8. PaulS

    Trouble getting rotary encoder to work with Teensy 4.0

    Yes, there are so many rotary encoders out there that knowing which one is mandatory. You may want to have a look at this thread and this thread for using rotary encoders with NPN output stage. Paul
  9. PaulS

    Wake on USB?

    Looking further into the Snooze libary, I ran into the SnoozeUSBSerial example. Apparently you can use USB Serial output but it's not a wake-up source. So the USB interface is actually active in Sleep mode. Forum member @duff might be able to tell more... Paul
  10. PaulS

    Wake on USB?

    I'm not 100% sure, but isn't the USB interface inactive while in Sleep mode? Paul
  11. PaulS

    Communicated with ADC122S101 chip using SPI

    You may want to open an issue at https://github.com/RobTillaart/ADC08XS/issues. Rob Tillaart is very responsive and actually this current issue might be relevant to you. Paul
  12. PaulS

    snooze example code does not compile (reduced_cpu_block)

    Line 7 of the example states Supported Micros: T-LC/3.x. Since the writer of the Snooze library is also a forum member here, you could try to PM him @duff . Paul
  13. PaulS

    v trigger and arduino code

    I'm wondering what library you are actually using. Ah, I think you are using the AudioSynthSimpleDrum class from the Audio library. Like Pete said, please post your code. Paul
  14. PaulS

    Best Long Term speed for Teensy 3.5

    From the K64 datasheet: My recommendation would be: if can you run at 100Mhz, do so - it lowers the overall powerconsumption and perhaps it improves reliability. Paul
  15. PaulS

    Any tips / suggestions or experience having solutions manufactured w/ a Teensy?

    Since you are mentioning Ethernet, I assume you are talking about the Teensy 4.1, correct? For a 100pcs series, I would consider using low-profile IC sockets like this: You would need to purchase the Teensy 4.1 with soldered pins and Ethernet chip then. For the Ethernet signals to be fed out to...
  16. PaulS

    TEENSY 4 LED PIN 13 AS INPUT

    Yes, the sending Teensy is perfectly capable of driving the on-board LED on the receiving Teensy, so there are no problems to expect with respect to reliability. The same applies the other way around: a Teensy outputting a digital signal on pin 13 (and thus lighting up its onboard LED) will...
  17. PaulS

    Inserting boards into prototyping adaptors

    @AussieBruce You may want to consider purchasing BusBoard breadboards. I used to use breadboards that you can buy everywhere but have seen the same problems you described. But when I threw away all those cheapo breadboards and purchased a bunch of BusBoards never had any problems since...
  18. PaulS

    Using TRS MIDI input

    Maybe these pages will help you to decide how to connect the Amazon boards: All you need to know about TRS MIDI connections and A simplified guide to TRS MIDI. Paul
  19. PaulS

    Teensy 4.1 custom board Not detected com port

    I think you only need to replace the bootloader chip, and not the IMXRT microcontroller & not the flash memory chip because you started with an empty bootloader chip. I assume that nothing has paired yet. From the bootloader page: But I would like @PaulStoffregen to confirm. Paul
  20. PaulS

    Analog input not Sending controller message

    Well, glad you found that! If you want to check for MIDI output, this online tool may be useful as well. Paul
  21. PaulS

    Analog input not Sending controller message

    Insert a Serial.println(n1); to check the analog reading, like so: if (msec >= 20) { msec = 0; int n1 = analogRead(A1) / 8; //CC 11, expression Serial.println(n1); // insert here if (n1 != previousA1) { usbMIDI.sendControlChange(controllerA1, n1, channel)...
  22. PaulS

    Teensy 4.1 custom board Not detected com port

    This thread & thread may be helpful. Paul
  23. PaulS

    Teensy 4.1 custom board Not detected com port

    As far as I understand it, you won't be able to get a compatible cloned Teensy board. Remove your chip and replace it with a chip purchased from PJRC. Paul
  24. PaulS

    Teensy 4.1 custom board Not detected com port

    The bootloader chip @KurtE referred to, must be a PJRC-programmed version. If you purchase the chip from PJRC [this one for Teensy 4.1], it is programmed with the required functionality. Paul
  25. PaulS

    USB B to midi to the teensy

    What kind of keyboard are you meaning, a QWERTY or MIDI keyboard? Indeed, a Teensy doesn't have a physical MIDI port - you have to add that to the Teensy as explained here. Paul
  26. PaulS

    AD9833 Success With TFT-Touch And T4.1

    Not really a driver but this is the code I used successfully an a Teensy LC: #include <SPI.h> // pin 13 (SCK), pin 11 (MOSI), AD9833 generator #define FSYNC 10 // pin 10 (SS) #define SPI_CLOCK_SPEED 12000000 // 12MHz SPI clock unsigned long MCLK =...
  27. PaulS

    Teensy 3.2 to Teensy 4.0 - no longer working

    In the schematic, I only see a diode between VCC and the input of the 5V regulator? What is VCC actually? 12V? Is the output of the regulator indeed 5V as intended? Paul
  28. PaulS

    Teensy 3.2 to Teensy 4.0 - no longer working

    I'm a bit confused: you stated "As soon as I plug in the power, the light immediately turns off and it no longer shows up on ArduinoIDE". So did the Teensy show up in the Arduino IDE when only USB was plugged in? Paul
  29. PaulS

    Teensy 3.2 to Teensy 4.0 - no longer working

    So when it's powered by USB only, Teensy is working fine? The display doesn't show of course. I assume you cut these pads and placed a Schottky diode: Can you share a photo of this placed diode? Paul
  30. PaulS

    Teensy 3.2 to Teensy 4.0 - no longer working

    One of the important differences between Teensy 3.2 and Teensy 4.0 is that the pins of a Teensy 3.2 are 5V tolerant. Teensy 4.0 pins are definitely not 5V tolerant. Could it be this is at play? Looking at the schematic I would say this is not applicable though. What exactly happens when "it...
  31. PaulS

    teensy 4.0 + audio board "Compilation error: exit status 1"

    A "Compilation error: exit status 1" could be caused by a lot of different issues. You may want to switch on full verbose output in the Preferences window: And then share what you see in the Output window. Interestingly, your code compiled fine on my machine... Paul
  32. PaulS

    MIDIfy a 13 note pedalboard

    You will need to connect a common wire from one side of each switch to the GND pin on the Teensy. The other side of each switch needs to be connected to an individual Teensy pin. Then use the pinMode(pin, INPUT_PULLUP); to pull the signal high when the switch is not pressed. When the switch is...
  33. PaulS

    Teensy 4.0 / High Voltage Heater

    You're absolutely right, it's like this: Paul
  34. PaulS

    Teensy 4.0 / High Voltage Heater

    Yeah, finally! Who would have imagined that by shifting the enable bit 1 position to the left makes the whole thing work... well, you did apparently! Sigh, so much for a correct datasheet. Are you going to feedback this to them or just be happy that it works? Oops, that's because I declared...
  35. PaulS

    Teensy 4.0 / High Voltage Heater

    Hmm, strange results. Tomorrow, I will hookup my SK Pang LIN-Bus Breakout Board and check with the oscilloscope as well. With respect to the use of the CSS CL1000: I don't think it's usable since it is a CAN bus logger only. Paul
  36. PaulS

    Teensy 4.0 / High Voltage Heater

    Hi Jordan, the fight apparently isn't over yet... I'm not sure what to think about the ID27 results. But first I would like to focus on sending data to the heater to get it running. Since he suggested this: I pulled the logic analyzer out and captured the 3 frames to the heater, using this...
  37. PaulS

    Teensy 4.0 / High Voltage Heater

    Hi Jordan, that flowchart helped a lot to clearify. In the flowchart below I noted the register IDs in red. I skip reading out status register ID27 for now. So we have to write ID33 first , then ID22 and then finally ID22 again. Below the code that does that. I moved writing ID33 & ID22 to...
  38. PaulS

    Teensy 4.0 / High Voltage Heater

    Hi Jordan, thanks for the new info. I will look into it over the coming weekend. Paul
  39. PaulS

    关于怎么学习学习Tensy 3.2

    "How to systematically learn Tensy 3.2 and code" Best to start with the tutorial. Paul
  40. PaulS

    Teensy 4.0 / High Voltage Heater

    Like a kind of brute-force attack? Hmm, too many possible input combinations to my taste. And how to verify the output? What came to mind though is whether there is a requirement on how to apply the voltages timing-wise. Like 12V first to get the built-in MCU to boot & run and then apply the...
  41. PaulS

    Teensy 4.0 / High Voltage Heater

    Agree, reading ID17 is not required for the heater to activate. I was hoping that only writing ID22 & ID33 would be enough to kick off the heater. Paul
  42. PaulS

    Teensy 4.0 / High Voltage Heater

    I'm a bit lost though - I wonder if we are doing something fundamentally wrong in the LIN communication to the heater, because what we see doesn't make sense. Well, I do hope the supplier will come back with some sort of initialisation sequence or init code. Paul
  43. PaulS

    Teensy 4.0 / High Voltage Heater

    That CRC: 104 is correct with both data bytes being 0x00:
  44. PaulS

    Teensy 4.0 / High Voltage Heater

    I think CRC 255 means error?
  45. PaulS

    Teensy 4.0 / High Voltage Heater

    ID33 is a really a 2 LIN data byte message. It's a typo from their side. From the specs: They probably better stop using the word 'byte'; we are talking 'registers' here with a certain bit length. What does "with a byte length of 3 bytes" actually mean?? Look at the confusing ID17...
  46. PaulS

    Teensy 4.0 / High Voltage Heater

    Hi Jordan, Looked further into the odd/even number of databytes. Several sources [incl Wikipedia] state that the number of bytes must be 2, 4 or 8. However when studying the LIN 2.1 spec, no such requirement is there. So last night I contacted CSS Electronics about this and they replied this...
  47. PaulS

    DS1820 rod sensor

    You may want to select a DS18B20 since the DS1820 is obsolete. Yes, see this tutorial. From a reputable source in your country. The latter sounds good. Paul
  48. PaulS

    Teensy 4.0 / High Voltage Heater

    Hi Jordan, sorry, we cannot bypass the LIN roadblock. The heater only accepts LIN data for control... What the engineer stated is: "We execute PWM control through software, not through external low-voltage wire for PWM signal control". And then he writes out 4 points how the internal PWM...
  49. PaulS

    Teensy 4.0 / High Voltage Heater

    From the answer of the engineer and re-reading the spec, my understanding is as follows: 1. We can not drive the heater by an external PWM signal. There is no analog or PWM pin available on the Low voltage connector. 2. Internally, the heater uses PWM to drive the IGBT's (power transistors). 3...
Back
Top