Search results

  1. D

    [Tutorial] How to use PlatformIO / Visual Code Studio for Teensy

    shawn, thanks for the reply. I'm using the built-in serial monitor in platformio, it's the icon near the home button that looks like a plug.
  2. D

    Teeny 3.5 and nanopb

    I know this post is two years old but I thought I would reply with what I've learned about nanopb. It seems like OP didn't include the .pb.h and ph.c files that nanopb creates after the build. Nanopb expects you to create a proto file that has your message structure in it. That structure file...
  3. D

    Lightweight Communications and Marshalling

    After a week of frustration, I've come to the conclusion that LCM is a waste of time. It's poorly documented, requires a ton of pre-requisites and dependencies and Nanopb is much easier to get running. Inconclusion, LCM suck but Nanopb rocks.
  4. D

    [Tutorial] How to use PlatformIO / Visual Code Studio for Teensy

    I'm trying out PlatformIO. My program compiles and loads to a Teensy 4.1 with no issues. Is there a serial monitor function in VS/PlatformIO that I can use or are people just using Putty or something?
  5. D

    Lightweight Communications and Marshalling

    I did a quick search but didn't see any post or projects using Lightweight Communications and Marshalling (LCM). It seems like a useful library for a teensy 4.1 so I'm going to try and get it working. You can read about it here...
  6. D

    FLIR Camera with Teensy 4.1

    Upon further reading the 1.8v and 3.3v pin is set based on the voltage supplied to NVCC_GPIO pins. According to the Teensy 4.1 schematic those pins are wired to 3.3v. So that's not software programable. The e-fuses look like they are for setting the bootloader, but I haven't deep dived into...
  7. D

    FLIR Camera with Teensy 4.1

    Yes, USB serial is what I'm using to debug. That and system tic are the only things I could think that would be running. BUT again, I don't know if there is documentation other than the source code for how the Teensy (RTOS/BOOTLOADER/Whatever) handles code real time. The Boson Datasheet took...
  8. D

    FLIR Camera with Teensy 4.1

    After reading, re-reading the ref manual I've come to the conclusion the problem has to be with the Teensy interrupts. My while(data_valid) loop needs 12 usec to execute uninterrupted, does anyone know how often the Teensy 4.1 triggers the Serial ISR? Is there some documentation somewhere for...
  9. D

    FLIR Camera with Teensy 4.1

    I tried pinMode(DATA_VALID, INPUT) and digitalReadFast(DATA_VALID). You can see that in my first post. It's not acting as it should (hanging in the while(!DATA_VALID) even though the pin is toggling). I'm trying to read the port directly, just to see what that does. I'm now thinking I need to...
  10. D

    FLIR Camera with Teensy 4.1

    My bad. It defined as: #define IMXRT_GPIO7_DIRECT (*(volatile uint32_t *)0x42004000) #define DATA_VALID_PIN (IMXRT_GPIO7_DIRECT & 0b00000000000000000000100000000000) //Direct read of Data Valid pin Combing through the reference manual, I don't understand how to ensure ALT5 mode is set for...
  11. D

    FLIR Camera with Teensy 4.1

    KurtE, yea it's a bit pricey but has great image quality. It's not configurable to 4-bit transfers but could do 8bits. I have it wired for 16-bit data on GPIO6_AD_B1_00-15 so I can do a quick DR. The problem I'm having is not reading the 16-bits it's something with the Sync bits. It's almost...
  12. D

    FLIR Camera with Teensy 4.1

    Thanks for the reply. Yes, I've read that thread and code, that's what gave me the idea but the OV7670 is slower. I'm wondering what the fastest input speed anyone has reliable captured and is there anything more than digitalReadFast to capture a pin at the 1.06ns speed? There is not...
  13. D

    FLIR Camera with Teensy 4.1

    I have a project reading a 320x356 16bit image from a FLIR Boson Camera. It uses a standard CSI type interface (V Sync, H Sync, Pixel Clock and Data Valid) but for the life of me I can't seem to figure out how to get good data out of the camera with a Teensy 4.1. I designed a board to interface...
  14. D

    Thermal Camera using Teensy 4.0 + MLX90640 + ILI9341

    Both great projects. I'm currently working on interfacing with this camera:https://www.flir.com/products/boson/ I thought about using the CSI module but I'm trying to get 16bits from the camera's CMOS pins and from what I can tell only 8 bits of the CSI pins are available on the Teensy. I...
  15. D

    Teensy4.1 Ethernet - Not seeing hardware

    Ok, in the code above I did not pass the IP address just the MAC address. I ran ipconfig again and got the autoconfiguration IPv4 Address. I passed that IP address along with the MAC address and BAM! It's all working now....so weird. What is more weird is I get the "Ethernet cable is not...
  16. D

    Teensy4.1 Ethernet - Not seeing hardware

    waitForLocalIP returns 0 stdPrint = &Serial; // ADD for QNEthernet Serial.println("Ethernet WebServer Example"); int waitresults; // start the Ethernet connection and the server: Ethernet.begin(mac); waitresults = Ethernet.waitForLocalIP(10000);// ADD for QNEthernet...
  17. D

    Teensy4.1 Ethernet - Not seeing hardware

    Well I've tried two different cables, (straight through and crossover) and two different Teensy4.1s... the crossover cable doesn't connect at all "Hardware not found" but the straight through cable gives me "server is at 0.0.0.0 for the following code: #include <SPI.h> #include <QNEthernet.h>...
  18. D

    Teensy4.1 Ethernet - Not seeing hardware

    You are right about modern computers being able to automatically switch from needing a cross-over cable using MDIX, but my 5 year old Acer laptop might not have that. It's the only thing I can think of right now as to way my super simple setup is not working. For the soldering voltage we are...
  19. D

    Teensy4.1 Ethernet - Not seeing hardware

    I'm running windows 10 and it is setup for DHCP. The issue I believe is me using a straight through cable vise cross-over. The problem now I believe is that fried the T4.1's DP83825 PHY layer chip when I was soldering the Ethernet cable to make it a cross-over cable. Like an idiot I didn't...
  20. D

    Teensy4.1 Ethernet - Not seeing hardware

    Shawn, Thanks for all your work on QNEthernet. I saw your comments on waiting for an address on GITHUB. I haven't tested it yet but I'm 99% sure my problem is I'm connecting my T4.1 directly into my computer with a straight through cable vise a crossover.
  21. D

    Getting started with ethernet

    So I'm dumb and don't know what I don't know. Apparently you need a cross-over cable to connect a T4.1 directly into your computer. I'm going to switch cables later tonight and see if that works. Here is a good link for a "How to start with Ethernet" that took me days to find online...
  22. D

    New lwIP-based Ethernet library for Teensy 4.1

    I've tried many examples, I thought a simple webserver would be the easiest to test. If you have a suggestion on a better example to start with please let me know. I just assumed a web server was the "hello world" level for ethernet coding. Yes I have a Teensy 4.1 and the Ethernet kit from...
  23. D

    New lwIP-based Ethernet library for Teensy 4.1

    100% accurate. Sorry as soon as I hit submit I regretted my decision.
  24. D

    New lwIP-based Ethernet library for Teensy 4.1

    A little help please. Can anyone tell me why my code is returning 0.0.0.0 for my server address? I've tried NativeEthernet and Shawn's QNEthernet and both give me the same result. If I pass it my mac and IP then I do get my server ip to be the one I passed but every browser I use tells me...
  25. D

    Teensy4.1 Ethernet - Not seeing hardware

    Dimitri, Yep, I confirmed last night that if I unplug my Ethernet cable from my computer the program waits on "Ethernet.begin();" I'm glad you solved your problem, mine is still not resolved. After additional hours of searching I believe my problem is that I have to pass all the parameters to...
  26. D

    Teensy4.1 Ethernet - Not seeing hardware

    From my understanding, if you just have the USB programmer/serial line connected and not the Ethernet cable then your T4.1 should still be able to send over serial your MAC address but you won't be able to get your local area IP address as that comes from the DHCP communication with your...
  27. D

    Getting started with ethernet

    Dimitri, I've commented on your post. I bet between the two of us we can make great strides in the dark art of Ethernet communication.
  28. D

    Teensy4.1 Ethernet - Not seeing hardware

    I'm just learning like you are but what I've figured out is you need to find the actual MAC address of your T4.1. Use Ethernet.MACAddress(mac_address) to get that. (https://www.arduino.cc/reference/en/libraries/ethernet/ethernet.macaddress/) Once you get the right MAC address you should start...
  29. D

    Getting started with ethernet

    Resurrecting an old thread. I too am getting started with Ethernet on the teensy 4.1 but have ZERO experience working with internet protocols. I do have a lot of experience working with microcontrollers of all types with UARTS, SPI, I2C, .etc but this HDCP, API Ethernet black magic has me...
Back
Top