Search results

  1. O

    PCB relay EMI

    Thomas thank you for your reply. I changed the 1N4148 diodes for 1N4007(1000V/1A). I do have a ground plane and al ICs are decoupled. The transistor 2N3904 can switch 54mA with 3.3 volt from the Teensy and a 10K resistor : Ib = 3.3V - Ube(0.6V) / 10kOhm = 0.27mA. Ic = Ib x hfe(200) = 54mA...
  2. O

    PCB relay EMI

    Hello, I designed a PCB with a Teensy 4.1 and 2 miniature PCB relays type TQ2-12V. The relays are switched on by a NPN-transitor. The protection is a fly-back diode (1N4148) across the coil and a TVS-diode (SAC12) nearby across the 12VDC power supply. Since the relay can generate EMI (and maybe...
  3. O

    softSPI on Teensy 4.1

    @jmarsh The PCB with the Teensy 4.1 and the micro-SDcard is going to fit in an enclosure. It is not possible, due to the layout of the PCB, to place the side with the onboard micro-SDcard close to the edge of the PCB.
  4. O

    softSPI on Teensy 4.1

    Why I wanted softSPI? SPI(0) is used by VGA, (https://github.com/wwatson4506/VGA_4BIT_T4). SPI1 is used by CANbus CRX2/CTX2. Found on the forum how to use SPI1 for an SDcard. https://forum.pjrc.com/index.php?threads/spi1-mosi1-miso1-sck1-cs1-not-initializing-on-teensy-4-1-audio-shield.69254/...
  5. O

    SPI1 (MOSI1, MISO1, SCK1, CS1) Not Initializing on Teensy 4.1 + Audio Shield

    To move CS1 from pin 0 to 38 -> change chipSelect To move MISO1 from pin 1 to 39 -> add : SPI1.setMISO(39);
  6. O

    softSPI on Teensy 4.1

    Thank you MarkT, Indeed it is not suitable for Teensy 4. I want to use softSPI for an external SD-card. SdFat-library has a softSPI, maybe I can use that.
  7. O

    softSPI on Teensy 4.1

    Hello, If I use the (standard) example program for Teensy 4.1, I get an error : ...Arduino/libraries/libraries/SoftSPI/src/SoftSPI.cpp:34:57: error: no matching function for call to 'SPIClass::SPIClass()' #include <SPI.h> #include <SoftSPI.h> // Create a new SPI port with: // Pin 2 = MOSI...
  8. O

    FlexCAN_T4 TX_INACTIVE

    bravo685, you are correct. Moving Can2.events() from sendData() to loop() made a big difference! Thank you for your help.
  9. O

    FlexCAN_T4 TX_INACTIVE

    On the send-side I placed Can2.enableMBInterrupts() after the settings of the mailbox. The correct order is: Can2.setMaxMB(4); Can2.setMB(MB1, TX, STD); Can2.enableMBInterrupts(); Moved Can2.mailboxStatus() from the setup to the end of void sendData(). now I get: FIFO...
  10. O

    FlexCAN_T4 TX_INACTIVE

    From https://github.com/tonton81/FlexCAN_T4 "Events must be used in the loop(), IntervalTimer, or teensyThreads, for the callback system to push received interrupt frames from the queue to the callback. Sequential frames are pushed out from there as well, we'll talk about that soon." I used...
  11. O

    FlexCAN_T4 TX_INACTIVE

    Hello, I am using 2x Teensy 4.0 for CANbus. With the use of FIFO everything works correct. When I try to use mailboxes the send-side does not send data (or the receive side does not receive data). If I use Can2.mailboxStatus() on the send-side I get this result: FIFO Disabled Mailboxes...
  12. O

    switch Interupt on PIN# on / off

    Hello, I am using an interrupt op pin 17 of a Teensy 4.0. However, the interrupts() and the noInterrupts() commands can disable the interrupt of a serial-connection. Paul suggests a mask to switch the particular pin (17) on or off: "You can also disable the individual mask bit for your...
  13. O

    bytevalue reset during SPI transfer

    The extra "0" solved the problem. I totally forgot the SPI bus is bi-directional since I was not using the recieve side. Changed SPI.transfer(&IL,1) into SPI.transfer(&IL,0,1) Thank you very much! Osiris
  14. O

    bytevalue reset during SPI transfer

    Hello, I am using a Teensy 4.1 with a 74HC595 shiftregister. The data is stored in a byte which is send via SPI. After the SPI-transfer the bytevalue is resetted to zero. Thats not how it should be. The bytevalue should be zero using bitWrite(IL,i,0); Am I coding something wrong? Osiris My...
  15. O

    error installation Teensy rules

    Hello, Bought a Teensy4.1. PC installation Ubuntu 22.04 LTS Need to install the teensy rules but got an error. -- osiris@Ubuntu-main:~$ sudo cp 00-teensy.rules /etc/udev/rules.d cp: cannot stat '00-teensy.rules': No such file or directory -- Did I forgot anything? Kind regards, Osiris
Back
Top