PaulS's latest activity

  • PaulS
    PaulS replied to the thread Freertos with teensy 4.0.
    If you mean by "extended can frame" the extended frame format with 29 identifier bits, you can use the FlexCAN_T4 library. It also supports CANFD mode. Paul
  • PaulS
    Yes, something like this: link Paul
    • 1713464613960.png
  • PaulS
    PaulS replied to the thread multiple teensy's.
    I think it's because of these lines: const int ledsPerStrip = 1200; // Maximum number of pixels per string int PixelCount = 4800; // Effective number of pixels 4800 LEDs divided by 1200 LEDs per strip is 4...
    • 1713463891671.png
  • PaulS
    PaulS reacted to mjs513's post in the thread New Camera Library for Teensy Micromod/4.1 with Like Like.
    @KurtE and I have been at it again. This time creating a library that supports a number Arducam/Arduino camera modules: Model FrameSizes Pixel Formats Omnivision OV2640 FRAMESIZE_VGA //640x480 FRAMESIZE_QQVGA, // 160x120...
  • PaulS
    PaulS reacted to KurtE's post in the thread New Camera Library for Teensy Micromod/4.1 with Like Like.
    Thanks @mjs513, As you mentioned we are having some fun with several of these cameras. I see you showed my quick and dirty (v2) version of a shield for the Sparkfun Micrmod ATP board. Sure is a lot easier than having to deal with lots of...
  • PaulS
    Since a Teensy 4.x is so fast, I would add a delayMicroseconds(1); after the clockpin going low as well, like so: uint32_t SPIencoder::readRegister(void){ // Initiate variables uint8_t inputstream = 0; int outputVal = 0; uint8_t...
    • 1713451284955.png
  • PaulS
    PaulS replied to the thread Servos Misbehaving.
    Looking at your code I noticed this line: servo1.attach(14, 500, 2400); Is there a reason why you deviate from the standard values of 1ms and 2 ms, like so? servo1.attach(14, 1000, 2000); Paul
  • PaulS
    PaulS replied to the thread Servos Misbehaving.
    More commonly known as XY-016 module. But still very limited in specs. Paul
  • PaulS
    PaulS replied to the thread Servos Misbehaving.
    Yes, I do mean the control signal pin. The specs of the Tower Pro MG90S do not mention a minimum voltage for the control signal amplitude. I also did not find any specifications of the WHS15024 boost/step-up converter. Do you happen to have specs...
  • PaulS
    PaulS replied to the thread Servos Misbehaving.
    Now I'm not familiar with the Tower Pro MG90s, but when you power them with 6Vdc, is the 3V3 output of the Teensy sufficient amplitude to reliably drive the PWM control signal? Paul
  • PaulS
    PaulS replied to the thread BlueFruit LE Virtual COM Port?.
    If I'm correct, the Serial Port Profile is not part of the BLE spec. See this answer. Found this too. Paul
  • PaulS
    PaulS replied to the thread Teensy 3.2 End Of Life.
    Mouser even has 15K+ pieces on stock. I would buy Teensy 3.2 if they are available - I have actually never needed the processing power of the T4 [and the related power consumption]. Paul
  • PaulS
    PaulS replied to the thread Schematic different.
    Agree. Like his other post. Paul
  • PaulS
    PaulS reacted to WMXZ's post in the thread Schematic different with Like Like.
    @AndyA. The prev message (WillimamsimC) seems ChatGPT generated an should, MHO, be considered Spam
  • PaulS
    It's related to the SdFat library. Syscall::yield and SysCall::halt were apparently removed in V2.1.1 of the library. Paul
  • PaulS
    Thanks a lot! Wish I would have known this feature long time ago... Paul
  • PaulS
    A 1920x1200 PNG file can be uploaded without problem. So perhaps shrink your photo? Paul
  • PaulS
    Reviewing the board files and the schematic, I think the power supply to the Teensy is fundamentally not correct. In the schematic, the Vin pin is labeled "+3.3V". That 3V3 comes from a regulator mounted on JP13. 3V3 is too low to power the...
    • 1712687894392.png
  • PaulS
    In Eagle, you can [1] "Print to File (PDF)" which looks very readable, or [2] File > Export > Image. Choose resolution '300dpi' and it will output a very readable PNG image. Your design seems to be done in Eagle 9.7 which I can not open in...
  • PaulS
    OK, took me a while to figure out you meant BOB-10124... This board. It is indeed not really clear from the schematic and silkscreen on the PCB but the RTS signal should be connected to pin 4 of J9: The LED will be ON when transmitting and OFF...
    • 1712512699737.png
  • PaulS
    PaulS replied to the thread GPS not working when integrated.
    Had a look at your code but nothing obviously wrong stood out. What if you integrate only 2 sensors at a time [BME680 & MQ135 or BME680 & GPS or MQ135 & GPS]? Any combination that works? I guess it is a matter of commenting out parts of your...
  • PaulS
    PaulS replied to the thread Using Waveshare 1.14" w/Teensy 4.1.
    Welcome to the forum. You may want to share more and higher resolution pictures. I tried to see where the wires go from the display to the Teensy, but it's not discernible. Please share a schematic and your simplest code that shows the issue...
  • PaulS
    I think it changed here. I assume it was for a good reason then - hope it's not going to bite us somewhere else now. Anyway, thanks very much to @PaulStoffregen and @jmarsh after indepth sleuthing! Paul
  • PaulS
    Could it be a timing issue with the one-wire interface? Teensy 4.x is pretty fast so perhaps some timing could get on the edge. Heating and/or cooling the IMXRT1062 chip carefully might reveal something. Paul
  • PaulS
    I had a quick look, I think I know what the cause is but I'm not sure of a few details. If you look at the memory allocated immediately before the ClocklessController there should a 4-byte guard variable. Guards are generally used for local...
  • PaulS
    Yes, sounds good to me. I'm running it now and FastLED seems to be working. Committed the fix just now! https://github.com/PaulStoffregen/cores/commit/638a2079d290e3d6683aeceb07b6dfd8b09151a9
  • PaulS
    PaulS replied to the thread Teensy 4.1 fuse location.
    Did you measure that 2.5V on the Teensy VIN pin? Is the Teensy powered over USB? Paul
  • PaulS
    PaulS replied to the thread MODBUS TCP.
    I suppose you are trying to read out these registers? Not sure whether I can be of any help here. I think you just have to fiddle with the settings until you read something that looks valid. Paul
    • 1712258201143.png
  • PaulS
    PaulS replied to the thread MODBUS TCP.
    This is a bare PT100 “Resistance Temperature Detector”. It's basically a resistor so it does not output a current. You can not hook up such a resistor to a 4-20mA current loop. Whatever circuit you will be using to measure the resistance [and...
  • PaulS
    PaulS replied to the thread MODBUS TCP.
    Do you have a datasheet or part# for that transmitter? Paul
  • PaulS
    PaulS replied to the thread Sampling voltage with Teensy 4.1.
    It may well be a worn-out or low quality breadboard. Breadboards vary a lot in quality. A lot of chinese breadboards are very cheap but low quality - you get what you pay for! Two brands stand out: 1. BPS [BusBoard Prototype Systems]. I have...
  • PaulS
    PaulS replied to the thread MODBUS TCP.
    Did you check the sub-settings as well? See the manual, paragraph 5.7.4 Analog Output (AO) and 5.7.4.1 AO Detail Settings. OK, but what voltage did you actually measure then? You said "it doesn't match the intended 2V" so I'm curious what...
  • 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
Back
Top