PaulS's latest activity

  • PaulS
    PaulS replied to the thread MODBUS TCP.
    OK, so that's not going to work. Back to the previous code. Are you actually using this product: IO5202 with 4 AI/AO? Another question on your message #24. You stated: What did you actually measure? Paul
  • PaulS
    PaulS replied to the thread Teensy 4.0 / High Voltage Heater.
    Lin.read is a "private" function in the library, as defined in lin-bus.h: private: Stream* _stream; void send_break(); void breaklength(uint8_t length); void breaklength_35(uint8_t length); void breaklength_LP(uint8_t length); void...
  • PaulS
    PaulS replied to the thread Teensy 4.0 / High Voltage Heater.
    OK, at least we can rule out that checksum question for now. Perhaps, but I don't know enough about those LIN timings whether it's mandatory timings or minimum timings. It certainly looks like ID 34 is the "Write power" command register...
  • PaulS
    PaulS replied to the thread Teensy 4.0 / High Voltage Heater.
    OK. I modified my LIN-slave to respond with a classic checksum on 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, being CRC 0x99 [153 decimal]. Now when I modify this line of your code CRC = lin.response(responseID, linRXdata, 8, lin2x); to CRC...
    • 1711886478712.png
  • PaulS
    PaulS replied to the thread Teensy 4.0 / High Voltage Heater.
    Hi Jordan, it seems ID 23 is the register to focus on first. Yes, that's weird. In order to verify whether your code may have an issue, I used my homebrew LIN-slave setup. I fabricated that setup a few weeks ago to verify the claim that there is...
    • 1711880230069.png
  • PaulS
    PaulS replied to the thread MODBUS TCP.
    That's interesting, you are writing value 1000 to AOx but you are reading back value 2000 from AOx. You may want to try the other use of the modbusTCPClient.holdingRegisterWrite() command. Instead of boolean writeSuccess =...
  • PaulS
    PaulS replied to the thread EtherCat on Teensy 4.1?.
    Getting the hardware integrated on your board is probably the easy part, the coding is the part that is harder to accomplish. You still may want purchase the shield as a reference for the person is doing the actual coding... Paul
  • PaulS
    PaulS replied to the thread EtherCat on Teensy 4.1?.
    Had a quick look at the EasyCAT shield and related library. The shield uses a Microchip LAN9252 EtherCAT device controller, not a 'standard' Ethernet controller. I assume that the LAN9252 chip probably takes care of the EtherCAT protocol...
  • PaulS
    PaulS replied to the thread Teensy 4.0 / High Voltage Heater.
    Too bad that we don't have LDF file for the HVH50. Saw your request for info at the peak-system forum as well... I agree. Frames { HV_He_01: 28, Controller, 4 { KL_HV_PTC_soll, 0 ; KL_PTC_ein, 8 ; } This tells me that the bit...
  • PaulS
    The short and simple answer is you should uninstall or delete SdFat you've installed, so Arduino IDE will use the copy of SdFat which comes with Teensyduino. When you install a library, usually Arduino IDE gives your installed copy priority...
  • PaulS
    Yes, this problem usually happens on Windows if Teensy Loader is still running when uninstalling the older Teensy files or using an older IDE. Windows does not allow the EXE file to be deleted. Arduino IDE does not handle the situation well...
  • PaulS
    When using Arduino IDE 1.8.19, you can download Teensyduino 1.58.2 here: https://www.pjrc.com/teensy/td_158/TeensyduinoInstall.exe. Paul
  • PaulS
    Using Arduino IDE 2.3.2, I'm using the Boards Manager to switch between Teensyduino versions: Paul PS: I ran into an issue when when updating from 1.58.2 to 1.59: Need to look into that now... Update on the precompile_helper": file does not...
    • 1711206268306.png
  • PaulS
    Additional info: with Teensyduino 1.58.2, the sketch from message #6 runs fine on both Teensy 4.0 and Teensy 3.2. I tried with 2 versions of FastLED: 3.4.0 and 3.6.0, same results. Paul
  • PaulS
    Ran the exact code from message #6. Runs on Teensy 4.0, does not run on Teensy 3.2. Related is this thread. Paul
  • PaulS
    Posted an article on the website today with info about how the Windows EXE cross compile and signing works. https://www.pjrc.com/how-to-cross-compile-and-sign-windows-exe-on-linux-with-yubikey-token/ Hopefully it can help other people who want...
  • PaulS
    PaulS replied to the thread 8 x 8 button matrix help.
    You may want to share your complete code (including a reference to the used libraries) in case someone has the same hardware available and would like to try. Please use the </> button in the top-left corner of this window if you want to share...
  • PaulS
    Here you go. On Windows 10. My Chrome browser downloaded it fine, hello2.exe runs fine from command line. Paul
    • 1711042012509.png
    • 1711042034091.png
  • PaulS
    Probably the Teensy 4.1 can change pins faster than the 74HC595 can handle. Teensy 4.1 is way faster than a Teensy LC. Sprinkle a number of delay(1);'s in the updateShiftRegisters() function like so: void updateShiftRegisters() {...
  • PaulS
    PaulS replied to the thread Simple audio sine signal generator.
    Yes, your design will do. Set the sine module output to 1.0 and set the attenuation or amplification at the amp module. Paul
  • PaulS
    It looks like you are restarting an old thread. You better continue the old thread. Did you follow all the advice given by @defragster, @mjs513 and @BriComp? Paul
  • PaulS
    Or short press-fit header pins? Link. Paul
    • 1710831911516.png
  • PaulS
    In combination with these kind of pins for the Teensy? Link. Paul
    • 1710830266748.png
  • PaulS
    Are these an option? 2.11 mm clearance. Specification here. Paul
    • 1710829279876.png
    • 1710829412442.png
  • PaulS
    Pff, too many variants of ESP32 boards around. Also chip pin numbers != board pin numbers != GPIO numbers. Look at the pinout. Found this in the datasheet of the chip: You would have to use board pin numbers 16 & 17 [GPIO16 & GPIO 17]. This...
    • 1710747160713.png
  • PaulS
    It looks like you have this board. Problem is that the TX & RX signals of the ESP32 chip connect to [1] the external TX & RX board pins and to [2] the onboard "USB-to-UART Bridge". So you are using the same serial port for Teensy communication...
    • 1710712959514.png
  • PaulS
    PaulS reacted to BriComp's post in the thread GPS not working with Teensy 4.1 with Like Like.
    On Teensy pin 0 is RX and pin 1 is TX. If you have them wired as you state above you have RX going to RX and TX going to TX. RX should go to TX and TX should go to RX.
  • PaulS
    PaulS replied to the thread GPS not working with Teensy 4.1.
    Strangely enough, I couldn't get DeviceExample.ino to work with SoftwareSerial also. So I tried using hardware serial on pins 0 & 1 instead. That works! Mind you: I had to connect Teensy TX1 to module pin RX [green wire] and Teensy RX1 to module...
    • 1710687542347.png
    • 1710687629970.png
  • PaulS
    PaulS replied to the thread GPS not working with Teensy 4.1.
    Where in your code do you actually read out the data from the GPS module? From this page: Perhaps it's a good idea to get the DeviceExample.ino [using SoftwareSerial and your pins] operational first and then move to HardwareSerial. Paul
  • PaulS
    PaulS replied to the thread dac8568 teensy 4.1.
    For a really basic test of the DAC, I would get rid of the MIDI code and just send a digital value to each of the DAC outputs and measure the voltage on that particular pin. Did you try your code above? Did it work? Paul
  • PaulS
    Tried the above code on a different ESP32 module and it works. This DOIT ESP32 DEVKIT V1 module also shares the first serial port [TX0 & RX0] with the onboard serial-to-usb converter and thus is not usable for external comms. So had to use TX2 &...
    • 1710672320736.png
    • 1710672373237.png
  • PaulS
    If I understand this section of the FireBeetle board WIKI correctly, pins 1 & 3 are used for the serial communication to the PC/Arduino IDE. For a comm link to the Teensy, you need to use UART2 (Serial2) on pins 16 & 17. Your code would look like...
  • PaulS
    PaulS replied to the thread Teensy 4.0 / High Voltage Heater.
    Hi Jordan, no, unfortunately that doesn't work that way. Thing is you can only send bytes (values if you like) over the LIN bus. Electrically they are just 0's and 1's. What these bits mean, is up to us. We start with a lin.order() command and...
  • PaulS
    Actually not... Serial0.begin also works for the ESP32-C3 UART #1. void setup() { Serial.begin(115200); Serial0.begin(9600); Serial0.setTimeout(100); } void loop() { while (Serial0.available() > 0) { Serial.print("Message received...
  • PaulS
    Well, gave it a try myself. Took me some time to find out that I had to use the HardwareSerial class to receive data by my ESP32-C3 SuperMini board... Anyway, it's working now: Teensy 4.0 code: void setup() { Serial1.begin(9600); } void...
    • Untitled.png
    • IMG_20240316_120537.jpg
  • PaulS
    While @AndyA's remark is certainly valid, I would focus on the serial port connection first like @jmarsh indicated. Your Teensy code should look like this: void setup() { Serial1.begin(9600); } void loop() { Serial1.println("Hello Boss")...
  • PaulS
    PaulS replied to the thread FFT on the digital stream....
    This looks perfectly acceptable to me. Paul
    • 1710572197550.png
  • PaulS
    PaulS replied to the thread Teensy usb midi problem.
    So you have been using (and are using) an external USB hub all the time? Is it possible to test without this hub? Also, the timing remark by @MatrixRat does make sense to me. Paul
  • PaulS
    Found this schematic with resistor values [but not LED Vforward]: If that resistor value of 330Ω is true, a Teensy pin outputting 3.3V will probably not get the optocoupler LED to conduct sufficiently. Paul
    • 1710277241102.png
  • PaulS
    PaulS replied to the thread Out Pins defination.
    On the pinout card, the yellow-background signals are all related to digital audio I/O. They can also be used for other purposes if you don't use these particular signals. Paul
  • PaulS
    PaulS replied to the thread Loop Back Error -.
    Teensyduino comes with its own PulsePosition library. You should delete the one here C:\Users\Primary\Documents\Arduino\libraries\PulsePosition. Then your code compiles fine (just tried). Paul
  • PaulS
    PaulS replied to the thread Compilation errors in this sketch.
    Assuming you used this Rotary encoder library, I got it to compile with 2 errors: Then I looked into the Teensy Joystick example [File > Examples > Teensy > USB_Joystick > Complete.ino] and there I noticed this piece of code: void loop() { //...
  • PaulS
    PaulS replied to the thread LIN bus 2.1, working example?.
    As a follow-up to anyone who is coding for a LIN-bus, I opened an issue (with the simple fix) on the LIN-bus library on Github. Paul
  • PaulS
    Teensy does not use a hardware serial port for uploading. Instead it uses a "virtual' serial port over USB [under the hood, it is a bit more complex than that but for basic understanding OK to work with]. That same virtual serial port is also...
  • PaulS
    Looking into the Teensy RadioHead library, in the examples/Teensy folder, I noticed the README.md states: In your code, you use #define RFM69_INT digitalPinToInterrupt(3). Perhaps you should connect the G0 (IRQ) signal to Teensy pin 0 or 1...
  • PaulS
    PaulS replied to the thread Teensy 4.1 USB Host issues.
    When I look at Mouse.ino, I think the code should be: #include "USBHost_t36.h" USBHost myusb; MouseController mouse(myusb); USBHIDParser hid1(myusb); USBHIDParser hid2(myusb); void setup() { Serial.begin(115200); myusb.begin(); } void...
  • PaulS
    PaulS replied to the thread Teensy 4.0 / High Voltage Heater.
    Great result! Happy to be of help in reverse engineering in what was nearly a black box [but not any longer now]. Well, I hope you get the other heaters to communicate as well! I will check the wiki page every once in a while. Paul
  • PaulS
    PaulS replied to the thread Teensy 4.0 / High Voltage Heater.
    Both commenting _stream->read(); and modifying data[i-3] = tmp[i-1]; serve the same purpose: correcting the wrongly shifted byte. So you should choose either one. When I run your code, I get this response: Same response but correctly shifted by...
  • PaulS
    PaulS replied to the thread Teensyduino 1.59 Released.
    No warnings. No. Tried both Fast and Smallest. Related are this thread and this thread. Paul
  • PaulS
    There is a RawHID example. In the Arduino IDE, open File > Examples > Teensy > RawHID > Basic Paul
    • 1709383499340.png
Back
Top