Search results

  1. sbfreddie

    Highly optimized ILI9341 (320x240 TFT color display) library

    Thanks KurtE! That will solve my issue with centering a small line of text.
  2. sbfreddie

    Highly optimized ILI9341 (320x240 TFT color display) library

    KurtE, et All: Is there a function call to determine the font size (X,Y) in pixels of the ILI fonts? I am writing a Buttons class and have not been able to determine the actual size in pixels of the font Arial 16. Thanks, Ed
  3. sbfreddie

    Slight tick / pop at the start and end of a sound using a PCM5102a DAC (with workaround)

    Did you configure the hardware jumpers on your board? Attached is a reference for doing that. On the front of the board just below the letters SCK there are two rectangular solder points, when soldered together that will short the SCK to ground which is needed if you are not sending SCK to this...
  4. sbfreddie

    Audio board use for magnetometer

    Tom: I apologize for the appearance of being nit-picky. I come from an Aerospace background were our measuring circuitry had to be at least 1000 times better (in every way) than that which we were measuring. My best friend and mentor Paul designed the electronics package on the Voyagers which...
  5. sbfreddie

    Audio board use for magnetometer

    Tom: Keep in mind that the A/D's used in all audio devices are not suitable for generalized digitization of data for measuring anything. You should be using Successive Approximation A/D's for all your instrumentation work. I am sure Mark T. will chime in with more details anytime soon. Regards, Ed
  6. sbfreddie

    Pulse counter using Teensy 4.0

    You could also add another op-amp stage with the gain to raise the output to 3V, or put a comparator in instead of an op-amp. The A/D converter on the 4.x is very fast, and the Teensy 4.x has a 600MHz clock so would not have any problem keeping up with a 100Hz input signal. It just depends on...
  7. sbfreddie

    Pulse counter using Teensy 4.0

    If you boost the gain on your Trans Impedance Amplifier (TIA) to output 0 -> 3.3Volts you could send it directly into the Teensy 4.x and count pulses with no problem, otherwise you could send it into the A/D and then do anything you want with the results of the digitized analog signal. Regards, Ed
  8. sbfreddie

    is TeensyTransfer built for Apple Silicon?

    mykle: MTP is not supported by the MacOS. If you want to use MTP you have to get an .app that will do this for you. Try Macdroid, MTP Mac, or Android file transfer. I have used all three in the past and they do work, although some are clunkier than others. Regards, Ed
  9. sbfreddie

    System works when powered by USB, but behaves weirdly on switching power supplies

    I would also check for continuity between the power supply safety grounds and the V- supply pins of the Power Supplies to make sure you are not creating a ground loop between the safety ground and the Ground pins of the Teensy and Motor Driver. Bad grounding has been a thorn in my side for over...
  10. sbfreddie

    Basic Troubleshooting Help - Teensy 4.1 + Audio Shield + Adafruit MAX 98306

    I would probably use the Teensy's 5V output (at the Vin pin) instead of the 3.3Volt output (4 ohm speakers could be a lot of power at 3.3V). Did you set the jumpers for gain correctly? Here is what the information page says: Five pin-selectable gains: 6dB, 9dB, 12dB, 15dB and 18dB. Select...
  11. sbfreddie

    RA8876LiteTeensy For Teensy T36 and T40

    Thanks Kurt Ed
  12. sbfreddie

    RA8876LiteTeensy For Teensy T36 and T40

    Kurt & Mike: I am sorry to bring this old forum thread back to life, but I have been having difficulties with text sizes ever since I started using the RA8876 instead of the RA8875. Here is the dilemma, in order to determine where to place text on the screen properly (and erase it...
  13. sbfreddie

    Yet Another File Player (and recorder)

    I have made changes to the copy files from SD to Flash code to close any open files for all the error return points as you have suggested, (I think this could have been written a little more elegantly as you so apply have described it), however making these changes nothing. It still thinks it...
  14. sbfreddie

    Yet Another File Player (and recorder)

    I'll have to check that out! Thanks, Ed
  15. sbfreddie

    Yet Another File Player (and recorder)

    H4yn: I have attached to this post similar code that uses FrankB's Wave Player code which is kind-of old but it does work just fine using QSPI_Flash. If you have a moment check it out, as it is not very complicated. Regards, Ed
  16. sbfreddie

    Yet Another File Player (and recorder)

    I am using the Teensy4.1. The version of Teensyduino that is currently be used by PlatformIO is 1.59. Here are the two files Tick and Tock
  17. sbfreddie

    Yet Another File Player (and recorder)

    h4yn0nnym0u5e: Actually this is remarkably similar to mine in the way it works, first initialize the SD card, then initialize the LittleFS Ram (in my case LittleFSFlash), then copy the file from the SD to the LittleFS file. In my case there are 8 files that make up clock sounds, (Tick, Tock...
  18. sbfreddie

    Yet Another File Player (and recorder)

    Just for example on my Mac: Xcode.app uses: 23.41GB Wireshark uses: 232.1 MB WhatsApp uses: 328 MB VMware Fusion uses: 1.26GB Visual Studio Code.app uses: 567.5MB Visual Studio.app: uses: 1.63GB No Platform IO is not very big compared to a few other apps I have installed on my Mac (276)...
  19. sbfreddie

    Yet Another File Player (and recorder)

    How about this compressed file of just the Main.cpp, I am sure you can figure out the rest. About the IDE, I also have used many different IDE systems over the past 5 decades, and you are correct many of them had steep learning curves. I have been retired now for more than 10 years and cannot...
  20. sbfreddie

    Yet Another File Player (and recorder)

    @h4yn0nnym0u5e: I created a bare bones project to try using your Audio system to play from QSPI Flash Memory using LittleFS, and it does not work. My code tells me that it is playing, but nothing is coming out of the audio system which is comprised of a PCM5102 with a 10w stereo amp. This...
  21. sbfreddie

    S11639-01 SPI Board and Teensy 4 controller

    DrM: Aaaw the good old days at Hughes Santa Barbara Research Center. This design brings me back to the great times that I had designing and working with CCD arrays (IR) forty years ago. Keep up the good work! Regards, Ed
  22. sbfreddie

    Call to arms | Teensy + SDRAM = true

    Kurt et All: The resistor combination you are seeing on that pin is what we in the hardware world call a "digital active termination". Why Sparkfun has done this is anybody's guess. As you have already surmised that pin will only be usable with digital circuits. There are almost no digital...
  23. sbfreddie

    Yet Another File Player (and recorder)

    h4yn0nnym0u5e: I have read this entire thread and have not found a solution for playing directly from the LittleFS file system. I also looked in your examples and did not find any examples of using the LittleFS instead of a SD card. Could you point me in the direction of an example for using...
  24. sbfreddie

    Has a Teensy 4 ever been space qualified or used in a space craft?

    Sammy: I think you may mean you are looking for Mil Spec 883 level B, which is the chip spec. common requested for all Military type activities. After over 30 years in the Aerospace World I found that most Aerospace companies used 883 Level B Chips and then did their own testing on those...
  25. sbfreddie

    Adding MTP to a Teensy 4.1 project (and 3.2) that is already SERIAL + MIDI

    David: You cannot use MTP with the Mac Finder as this is a MicroSoft protocol that has not been implemented on the Mac. However there are several apps you can download that will read this protocol, google is your friend. Regards, Ed
  26. sbfreddie

    Suggestion to get maximum accuracy when reading frequency of external crystal

    VictorFS: I am often amused by people who see everything as a software solution. (I you only have a hammer everything is a nail) This type of solution in my option would best be to use a combination of hardware and software such as using a highly accurate oscillator attached to a clocked...
  27. sbfreddie

    Teensy 4.1 Digital Input Tolerance

    I agree with most of this wholeheartedly, the only acception being since at least 1980 the DOD and other US government agencies requires very strong ESD immunity for just about everything you as a contractor creates for the agency. But most of these specs are classified, and you will only get...
  28. sbfreddie

    Teensy 4.1 Digital Input Tolerance

    Audiomath: My experience comes from the Aerospace world going back to the late seventies. Having worked on projects where EMP and other very fast transients were a problem, way back when we used transzorbs (which is a trademarked name for a very fast zener basically). These things turn on in...
  29. sbfreddie

    Interrupt on Serial Data receive Teensy 4.0 USB port

    I just looked up the name of the library I used: UartEvent.h by Colin Duffy copyright 2015. A little less than 10 years ago. Regards, Ed
  30. sbfreddie

    Interrupt on Serial Data receive Teensy 4.0 USB port

    As I recall, the SerialDMAClass had 3 choices, fixed number of bytes, a specific character at the end of the block, and I can't remember the 3rd choice for the interrupt to be set. I choose fixed number of bytes which worked quite well for me. The DMA section of the Teensy's is very powerful...
  31. sbfreddie

    Interrupt on Serial Data receive Teensy 4.0 USB port

    I used DMA on the serial port to solve this type of problem 10 yrs ago on the T3.2. It used a set size of transfer and when each byte came in, it was automatically dumped into a buffer of bytes. When the number of bytes was completed the DMA would issue an interrupt which would set a flag...
  32. sbfreddie

    Call to arms | Teensy + SDRAM = true

    Gentleman: I hope you understand how little 1.1 to 10 PicoFarads at 233MHz really is. This value could very easily be created by simply routing an etch close to power or ground. In the pictures above I see at least 10 to 30 pF of capacitance floating around with all the lead lengths and bits...
  33. sbfreddie

    high dynamic range current/voltage sensors (ina228) working

    Would you care to share the details?
  34. sbfreddie

    PlatformIO: Creating a list file after Building automatically.

    All PlatformIO users: This trick will save you a lot of typing when you get an address from the output of the crashReport. Here is the method I use to generate a list file (.lst) in the same build folder as all the other files that the Compiler generates. In your Platformio.ini file insert...
  35. sbfreddie

    Teensy 4.1 with DAC714P, not working properly

    Tian_qhcn: As MarkT said, using a more Teensy compatible part has many advantages, and you could easily add an Op-Amp buffer to the output to scale the normal output to what ever you like. This also has the advantage of providing a low impedance buffer for any follow-on circuitry. Regards, Ed
  36. sbfreddie

    Problem with two wire build between 11.3.1 and 5.4.1

    All: I have been experimenting with this problem more. I converted this project to an Arduino sketch which confirms the problem, it works with Teensy 1.57.2 but not with Teensy 1.58 or Teensy 1.59 using Arduino 2.1.1. Here is the sketch for Arduino: Please try this to see if any of you can...
  37. sbfreddie

    Problem with two wire build between 11.3.1 and 5.4.1

    Shawn: I already did that or something similar, I uninstalled PlatformIO in VSCode, then I discarded the entire .platformio folder from my user folder, then reinstalled PlatformIO in VSCode and it completely redown-loaded the .platformio folder. Did not make a difference. Still get the same...
  38. sbfreddie

    Problem with two wire build between 11.3.1 and 5.4.1

    All: This problem is a doozy. The problem started when I rebuilt an already working project that was originally built in Teensy 1.57, where everything was working fine. When I built this project without making any changes it refused to startup, meaning blank screen on the TFT and no output to...
  39. sbfreddie

    Teensyduino 1.59 Beta #2

    Luni: Opps, I guess I should read the responses more carefully, that fixed the problem, all is back to normal now. Thanks for your expert help!! I have never used the build_unflags command before any idea why it is needed now? Thanks, Ed
  40. sbfreddie

    Teensyduino 1.59 Beta #2

    Luni: My platformio.ini file now looks like: ; PlatformIO Project Configuration File ; ; Build options: build flags, source filter ; Upload options: custom upload port, speed and extra flags ; Library options: dependencies, extra library storages ; Advanced options: extra scripting ; ...
  41. sbfreddie

    Teensyduino 1.59 Beta #2

    Luni: Yes this is PIO on Mac. Here is my platformio.ini file: ; PlatformIO Project Configuration File ; ; Build options: build flags, source filter ; Upload options: custom upload port, speed and extra flags ; Library options: dependencies, extra library storages ; Advanced options...
  42. sbfreddie

    Teensyduino 1.59 Beta #2

    All: I have a strange problem that just popped up in my build: PLATFORM: Teensy (4.18.0) > Teensy 4.1 HARDWARE: IMXRT1062 600MHz, 512KB RAM, 7.75MB Flash DEBUG: Current (jlink) External (jlink) PACKAGES: - framework-arduinoteensy @ 1.159.230410 (1.59) - tool-teensy @ 1.159.230410 (1.59) -...
  43. sbfreddie

    Code to gather data from propshield sensors and save it to SD for later analysis

    Experimentalist: Hi my name is Ed and I have created a project somewhat similar to what you have described above. Go to this GitHub site to retrieve it and have a look see: https://github.com/sbfreddie/Teensy4.1-Peripherals-Testing.git. It should at least give you and idea of how I have...
  44. sbfreddie

    Self Contained (i.e. Atomic) Sketch

    Brtaylor: If you need help do not hesitate to ask, either here or if you prefer private email associated with this account on the forum. There are a bunch of videos on youtube about using PlatformIO also. Regards, Ed
  45. sbfreddie

    Anyone tried MTP library under Vscode-Platformio environment?

    David: Here you go, I have placed it on Github here: https://github.com/sbfreddie/Teensy4.1-Peripherals-Testing.git as it is to big to drop into this forum post (limit 1.9 Megabyte for zip file). If you have any questions I will be happy to answer them either here or through private email...
  46. sbfreddie

    Teensy USB Power Supply Fighting with Linear Voltage Regulator

    grinch: The diode trick will work well as long as the .7 volt drop is OK with your circuit design. Regards, Ed
  47. sbfreddie

    Self Contained (i.e. Atomic) Sketch

    BrTaylor: I solved this problem a long time ago. At first I was using Apple's Xcode with EmbedXcode plugin which enabled me to be selective about what I want built. It had a builtin folder where you could put everything for the build of the program you were creating. You could refer to your...
  48. sbfreddie

    Anyone tried MTP library under Vscode-Platformio environment?

    Pjy5451: Please include the entire terminal output when you try to build your code so we can see the complete system settings that your version of PIO is using. Also include your platformio.ini file as well which is very important. If you would like I have working code using both littleFS on...
  49. sbfreddie

    -flto with T4 (Teensyduino 1.58)

    Update USB options All: Here is a General Template for a PlatformIO.ini file: ; PlatformIO Project Configuration File ; ; Build options: build flags, source filter ; Upload options: custom upload port, speed and extra flags ; Library options: dependencies, extra library storages ...
Back
Top