Search results

  1. M

    Controlling the ethernet LED (Teensy 4.1 ethernet)

    Is there a way to control the green LED on the ethernet jack (Teensy ethernet kit)? The LED is causing a slight current spike that affects the accuracy of my PCB (which is measuring down to microvolts). I know I could introduce a filter or probably just place a cap over the LED to reduce the...
  2. M

    Teensy 4.1 PWM resolution - question about Teensy docs

    The PWM page on PJRC website says: Normally analogWrite(pin, value) is used with the value between 0 to 255, which corresponds to 8 bit resolution. Writing 256 forces the pin always high. Teensy LC &x:w, 3.x support an analogWriteResolution(bits) function, to reconfigure analogWrite. [...] To...
  3. M

    I chose the wrong pin for PWM - now what?

    Dear Paul, yes Teensy 4.1. Thanks for confirming. I'll use INPUT_DISABLE as suggested and short the pins.
  4. M

    I chose the wrong pin for PWM - now what?

    I'm sure this is a case of GPIO 101 (i.e. very obvious) but I just want to check. I accidentally chose Teensy pin 38 for a PWM output, had PCBs fabricated, assembled the board and soldered Teensy into place... ... then discovered that pin 38 is not an option for PWM. Rather than doing...
  5. M

    TCP vs UDP (vs higher level protocol?) for sending ADC data over ethernet

    I’d love to do that. I’m going to spend some time tomorrow trying to get QNEthernet up and running and will report back here.
  6. M

    TCP vs UDP (vs higher level protocol?) for sending ADC data over ethernet

    Shawn, thanks for the really useful comments. Re (3) yes I have verified on the receiving end that the exact number of bytes I expect to be received are indeed received. I am using Node-RED as a TCP server, it shows you in the debug screen the number of bytes for a given transmission...
  7. M

    TCP vs UDP (vs higher level protocol?) for sending ADC data over ethernet

    I know it's possible to piece the bytes back together in the opposite order at the receiving end, but... When you send a 32 bit value out from Teensy, can it (NativeEthernet library?) be configured send the most significant *byte* first? Reason: the ADC data is stored as most-significant-BIT...
  8. M

    TCP vs UDP (vs higher level protocol?) for sending ADC data over ethernet

    UPDATE for anyone interested (Shawn if you are reading this - see (7) below) 1) So far I've used NativeEthernet library, created a TCP client on the Teensy and sent an array of uint32_t data using client.write. 2) I was able to send 10,000 ADC readings (2x uint32_t arrays of 5000 elements) in...
  9. M

    TCP vs UDP (vs higher level protocol?) for sending ADC data over ethernet

    Thanks Shawn (sorry for the delay in replying) 1. Each sample is 24 bit. Also I need to send some metadata e.g. serial number of reading etc.. so I will use a 32 bit value 2. 10,000 samples is just an arbitrary value. It could be less, or more. 3. I didn't know that NativeEthernet uses a 1ms...
  10. M

    TCP vs UDP (vs higher level protocol?) for sending ADC data over ethernet

    Hi all I have written a sketch that collects about 10 kS/s (10,000 samples per second) from an ADC. It does so by means of non-blocking code in the loop. By this I mean, I'm not using an ISR in my code, but handling the timing myself; checking once per loop whether the ADC has data ready via...
  11. M

    Teensy 4.1 and Ethernet

    Thank you Paul, that is very clear. Also just want to take the opportunity to say thanks for all the amazing hard work you have put into the Teensy. I'm new to it and it really is a fabulous little device and I'm so glad I discovered it.
  12. M

    Teensy 4.1 and Ethernet

    I'm sorry this is such a basic question. Perhaps someone can point me in the right direction. I have a Teensy 4.1, and I'm going to hook up a magnetic ethernet jack using the special 6 pins. 1) Are there different specs of eth jack, or can I just use anything that has magnetics, 75 ohm...
  13. M

    How to quickly transfer data from local vars to remote PC

    Thanks, yes correct I meant 80kB/s (and Mb/s when quoting ethernet bit rate). Hopefully the fact I overexplained the nature of my data made up for my inability to use capital letters there :) Thanks for the comment. Will read through that thread.
  14. M

    How to quickly transfer data from local vars to remote PC

    Let's say I need to transfer 80kb per second (that's 80 * 10^3, not 80 * 2^10!) out from a byte array variable. (10,000 sensor samples per second, each sample being a 64 bit number.) I want to do this over ethernet. I understand the ethernet chip onboard the Teensy is 10/100mbps and so this...
  15. M

    EEPROM and Teensy clock speed

    Many thanks for confirming.
  16. M

    EEPROM and Teensy clock speed

    Noticed this on PJRC website: Teensy 3.6 can not write to EEPROM memory when running faster than 120 MHz. The EEPROM library will automatically reduce the processor's speed during the time EEPROM data is written. If using Serial1 or Serial2, communication may be disrupted due to baud rate...
  17. M

    Can I break out USB?

    I plan to include Teensy 4.1 in a rackmounted project, with USB exposed on the front panel. Option 1: Position the Teensy near the front panel, and expose the Teensy's USB directly. I don't like this option. In order to make it physically robust enough to withstand plugging in and out, the...
  18. M

    Pin pitch for ethernet connection

    Thanks from drawing my attention to that. The info was so easy to find on the main website that I didn't even look there. And thanks for the info Paul. Do you have a UK partner I can buy these from, as shipping from US is quite pricey and need the parts quite soon? No doubt I can find them from...
  19. M

    Pin pitch for ethernet connection

    Hello there, first time poster here My question is about the 6 pins used for the IDC cable that connects Teensy 4.1 to a magnetic ethernet jack. Basically if I connect the Teensy 4.1 to my own baseboard via single row female pin headers (0.1") AND connect the ethernet jack via 2x3 female...
Back
Top