Search results

  1. ninja2

    Question re: Installing TD on Linux

    great thanks for clarifying. And it's working fine ... !
  2. ninja2

    Question re: Installing TD on Linux

    I'm following the instructions on the Teensyduino 1.59 page for installing in Linux. The IDE2.3.6 is running fine. So far I have : - added the json link - installed the udev rules. - installed TD in the Boards Manager My simple question regards this line: 4) Download the corresponding...
  3. ninja2

    Why is my microSD card misbehaving? (Micromod Teensy)

    FWIW after all the hassle the solution was simply to upgrade the microSD cards to better quality / name products.
  4. ninja2

    Why is my microSD card misbehaving? (Micromod Teensy)

    excellent info as usual on PJRC, thanks Paul.
  5. ninja2

    Interrupt handling on Teensy 4

    The basic sketch below is for one of my Adafruit RFM95W Lora modules that I am trying to control with Teensy 4.1 It relies on this Lora library by Sandeep Mistry that is available via the IDE library manager. The sketch compiles with warnings but doesn't work yet. The warnings are about...
  6. ninja2

    Why is my microSD card misbehaving? (Micromod Teensy)

    I'm using all standard MM Main Double board + Teensy + ZED-F9P + ESP32 wiFi. Fortunately I have two identical setups, and I will swap things around (soon) as suggested by defragster to eliminate any hardware faults, although I'm distracted on another project for now. I will also try a better...
  7. ninja2

    Why is my microSD card misbehaving? (Micromod Teensy)

    I even took it down to 8MHz and still doesn't behave. Is there an ideal SPI frequency ? It behaves as if logfile.close(); doesn't completely close the file, leaving the SD in an undefined hardware state, so when next I hit reset it doesn't initialise at boot 2nd time around and onwards
  8. ninja2

    Why is my microSD card misbehaving? (Micromod Teensy)

    I have two identical Micromod assemblies (#1) and (#2). I tested on (#2) using the sketch above at 20MHz and it worked reliably (hence my "Cancel" above). But not so fast ... I did not get same reliability on assembly (#1). It will start and run properly once, but if I restart using RESET...
  9. ninja2

    Why is my microSD card misbehaving? (Micromod Teensy)

    Cancel :-) I just saw the comment "maximum. Reduce if errors" against #define SPI_CLOCK SD_SCK_MHZ(50)" So I reduced it to 20MHz and the problem no longer happens (doh!)
  10. ninja2

    Why is my microSD card misbehaving? (Micromod Teensy)

    I'm using a Sparkfun Micromod Teeny Processor on their Micromod Main Double board, that includes a microSD slot. The Teensy interfaces with the microSD over SPI #2 The sketch below simply opens a file on the SD, writes a couple of lines, then closes the file. It runs fine but only once. If I...
  11. ninja2

    Shuffling RTCM3 correction data through a Micromod Teensy

    Very interesting @AndyA. I started with simple byte by byte forwarding from the ESP32 into Serial2 on Teensy, and again on the Teensy Serial1 to the ZED-F9P. This sort of worked but was unreliable and the RTK lock would drop out a lot of the time. So I added buffering, parsing and CRC checking...
  12. ninja2

    Shuffling RTCM3 correction data through a Micromod Teensy

    FWIW these instruction worked like a charm: #define RX_BUFFER_SIZE 1024 // expanded ESP serial incoming buffer #define TX_BUFFER_SIZE 1024 // expanded ZED serial outgoing buffer unsigned char RX_buffer[RX_BUFFER_SIZE]; unsigned char TX_buffer[TX_BUFFER_SIZE]...
  13. ninja2

    Shuffling RTCM3 correction data through a Micromod Teensy

    OK I'll have to give them a try ... hopefully there's a good example of how to use them properly
  14. ninja2

    Shuffling RTCM3 correction data through a Micromod Teensy

    I did read about them. But addMemoryForRead() &r addMemoryForWrite() seem to use ordinary memory for the extra buffer, is using either (or both) really any better then adding buffer(s) myself, in my code ?
  15. ninja2

    Shuffling RTCM3 correction data through a Micromod Teensy

    My hardware: Sparkfun Main Double board, fitted with: Processor board : Micromod Teensy Function board 0: Micromod ZED-F9P GNSS Function board 1: Micromod ESP-32 WiFi/Bluetooth My recent interest has been developing a reliable feed of an RTCM3 correction data to the ZED-F9P, so it can maintain...
  16. ninja2

    Moving to Ubuntu Linux

    Thanks KurtE, I found that .arduino15 folder and it's contents looks very familar. I also found .arduinoIDE folder next to it with these contents: I'd never noticed but I now see that is present in Windows too at C:\Users\xx\.arduinoIDE I wonder: What is the Windows equivalent ot the Linux...
  17. ninja2

    Unix on Teensy 3.5

    Wikipedia does a good job explaining the history of Unix it was one of the first comprehensive operating system for computers, and the fore-runner for DOS, Windows, Linux So not a small compact RTOS, the real-deal So the notion that it can run on a T3.5 is ... astonishing !
  18. ninja2

    Moving to Ubuntu Linux

    With the supposed end of support for Windows 10 (and being violently incompatible with, and allergic to, Windows 11) I bit the bullet and purchased a new Ubuntu laptop a few weeks ago. I'm still green in Linux, although it's proving pretty easy so far ... I have been using IDE 2.3.4 OK, it...
  19. ninja2

    Where are T4 & Micromod pin functions setup / allocated?

    Thanks. I see only HardwareSerial2.cpp and HardwareSerial4.cpp have the MICROMOD distinction, and basically they say: Serial4 pins for T4.1 (16,17) become Serial2 on Micromod Serial2 pins for T4.1 ( 7 , 8) become Serial4 on Micromod That Hardware Serial Ports ref table could do with a...
  20. ninja2

    Where are T4 & Micromod pin functions setup / allocated?

    On a standard T4.1 pins 16/17 = A2/A3 = Rx4/Tx4 = Serial4 For the Micromod teensy I think the same pins 16/17 might be Serial2 but I need to be absolutely sure, so I went looking for clues in ...\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.59.0\cores\teensy4 but quickly got lost in...
  21. ninja2

    FreqCount example: strange behaviour ?

    Ahah, OK thanks. Basically the sketch uses a generator with a limited selection of set frequencies. If instead I use an external pulse generator as the input source I expect FreqCount will report correclly. I must give that a go ... thanks!
  22. ninja2

    FreqCount example: strange behaviour ?

    I've been playing with the Serial_Output_T4 example sketch in the FreqCount library, on a T4.1 As provided the sketch reports exxactly 50MHz on pin 9, as expected. However other frequency values don't give expected results Requesting 40MHz reports 37.5 MHz Requesting 10MHz reports 10 MHz...
  23. ninja2

    How to use GPIO_B0_04 as output on Micromod Teensy 4.1

    digitalWriteFast() works nicely, tks
  24. ninja2

    How to use GPIO_B0_04 as output on Micromod Teensy 4.1

    ignore that 4.1 - just me being slack I have all your pinout spreadsheets kurtE, in fact they were the only reference with the link to digital pin 40. Curious: where did you source that info? Good idea, thanks jmarsh. I assume you're suggesting like this? I'll give it a go .. #define...
  25. ninja2

    How to use GPIO_B0_04 as output on Micromod Teensy 4.1

    I'm working on reset control from my T4.1 processor to the ZED-F9P GNSS chip on my Micromod system comprising: MMod Main Double Board with: Processor: T4.1 F0: ZED-F9P GNSS F1: ESP32-WROOM-32 WiFi/Bluetooth But I'm having trouble getting it to work. AFAIK this is the connection path: T4.1 MM...
  26. ninja2

    Is ESP-IDF the best way to set up Classic Bluetooth on ESP32-WROOM-32E?

    I've been reading up how use my Sparkfun Micromod ESP32 Wifi/Bluetooth module with the ESP32-WROOM-32E chip. I need to set up a Bluetooth link to get (RTK) data from my Android mobile, and I think I have to customise the firmware to do this. From what I've read I need to use the ESP-IDF tool,as...
  27. ninja2

    SdFat lib inhibits LED_BUILTIN in SPI mode? (Micromod)

    Doh! Of course it's SCK. Many thanks FWIW I should have mnentioned: When I previously ran the code above on my stock T4.1 the LED flashes work fine, since it uses SDIO AFAIK there such pins aren't broken out on the Micromod boards, so not so easy. I could maybe do something over I2C? It's not...
  28. ninja2

    What is 'State of the Art' for IMU + GPS on teensy 3.x 4.x

    Thanks muchly @AndyA, you're suggestions made me take another deep dive into all the lists/schematics again and confirmed your points. The numbering and labelling is all a bit of a nightmare but below is my detailed summary for the serial connection path to a Sparkfun ESP32-WROOM-32 board in F1...
  29. ninja2

    What is 'State of the Art' for IMU + GPS on teensy 3.x 4.x

    I asked this question on Sparkfun forum several weeks ago, with no response as yet : I have a MM Main Double board, with Teensy 4.1, ZED-F9P GNSS Function board (in F0 slot) and ESP32-WROOM Function Board (in F1). After studying all the schematics and pin-out it seems there is no Serial...
  30. ninja2

    SdFat lib inhibits LED_BUILTIN in SPI mode? (Micromod)

    When I run this sketch the LED blinks twice during setup, but doesn't flash in loop(). However, if I comment out the if-else SD initialisation, the LED flashes as expected. Looks like an issue for SdFat lib, but I don't know where to look? #include "Streaming.h" #include "SdFat.h" #ifdef...
  31. ninja2

    Teensy 4.1 stalls?

    Those instructions are a bit out of date, for a T3.2 not T4.1 which has 2 pads (yes one is VIN, the other VUSB) Why not just cut betwen the pads, so VIN anf VUSB are no longer connected? And it's quite easy to reverse if need be, with a solder blob. Fitting diodes to the pads would not be...
  32. ninja2

    TeensyTimerTool

    I see they're #defined in cores\teensy4\imxrt.h altho it doesn't provide any detail beyond the manual. I think the manual is the ultimate resource.
  33. ninja2

    TeensyTimerTool

    Thanks for the good info, will give it a serious go later. I see low level terms like IOMUXC_GPT2_IPP_IND_CAPIN1_SELECT_INPUT are listed in the 1060 Reference Manual. Question: Is that document the main/only resource for details on such terms?
  34. ninja2

    Teensy 3.6 board problem

    Have you read this: Teensy 4 Power ?
  35. ninja2

    TeensyTimerTool

    .. I assume you mean: write some low-level code?
  36. ninja2

    TeensyTimerTool

    The overview description of the GPT timer module in the I.MX RT1060 Reference Manual includes this: AFAIK the TTT doesn't support this, but is there a way to hook an attachInterrupt() pin sequence into TTT ? Or IntervalTimer ? Suggestions appreciated ...
  37. ninja2

    TeensyTimerTool

    Success. I downloaded your latest from GitHub, and the PIT now runs at expected frequency, without any compensation factor required. thank you :-)
  38. ninja2

    How do you organize large sketches?

    That happens occassionally with IDE 2 even if \scr is not in use.
  39. ninja2

    TeensyTimerTool

    Sure, but how can I get hold of 1.4.3? Library Manager only offers 1.4.1 Same on GitHub AFAIK, although TBF I'm not that familiar with GitHub workings
  40. ninja2

    Teensy 4.1 stalls?

    A long shot but it may be caused by electromagnetic interference from the engine. Try shielding the teensy from the motor by surrounding it with tin foil with as few air gaps as possible (i.e. a faraday cage). Ideally connect the foil to ground as well, but in one place only.
  41. ninja2

    Teensy 3.6 board problem

    Before you appled external power to VIN did you cut the join between VIN+VUSB (on the back of the teensy, near VIN pin) ? Did these boards work in the past? (BTW the link in your post is to the schematic for Teensy 4.1 not 3.6, although they are similar in this regard, i've attached T3.5/3.6...
  42. ninja2

    TeensyTimerTool

    Thanks Joe, happy with that. I will definitely look into PWM / FlexPWM later. Meanwhile I believe I've stumbled on an inconsistency in the way the library handles the PIT timer. With USE_GPT_PIT_150MHz = false and the timer set up with "period", or "semi_cycle" (s) for a toggled output, the...
  43. ninja2

    TeensyTimerTool

    hi luni, I've spent quite some days/hours reading much of this thread and your excellent wiki, then fiddling with various timer sketches to get to grips with how it all fits together. I'm in awe at how comprehensive the library & documentation are, much appreciated. This thread is a top example...
  44. ninja2

    How do you organize large sketches?

    I have been doing this for some time, but without the src sub directory. It requires some discipline / care with includes and externs, but I've found it much easier to maintain stuff, and results in a set of code "modules" (.cpp/.h pairs) that are easily re-usable in other sketches. Curious...
  45. ninja2

    Where is my draft hiding?

    I'd nearly finished a large post yesterday and then I had to leave suddenly. I had to shutdown, so I saved the draft. But I can't find it today (on a different computer). Does the "save draft" option preserve over logins?
  46. ninja2

    My Teensy 3.6 had too much beer and needs help to regain its old self...

    ... spilt beer = my greatest fear! What a relief :-) :-)
  47. ninja2

    Serial.begin() not needed???

    Based on all your responses it seems none of you are experiencing the inconsistencies / symptoms I've explained in post #10, right? I ask because I'm surprised many others haven't experinced the same issues, given I'm just using the standard IDE+TD on Windows Teensy port, always. More than one...
  48. ninja2

    Using Claude Sonnet 3.5 to write code for Teensy and Audio Shield

    Interesting. I'm not keen to subscribe for AI, but I do refer to free Google Gemini and ChatGPT for C++ / Arduino code questions, either general or specific. They're not too bad, definitely useful. But not a whole sketch ...
  49. ninja2

    Serial.begin() not needed???

    you must have missed it, post #10 line 3 I would have thought it was clear I understand this from what I wrote. Of course the program button is not a reset. However I do think it's reasonable to think of the ON/OFF input as a reset function, albeit with a 4 sec delay. It really doesn't matter...
  50. ninja2

    Serial.begin() not needed???

    ... ouch :-)
Back
Top