Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: PAAUX4

Search: Search took 0.00 seconds.

  1. Thanks for the response. I'm not too concerned...

    Thanks for the response. I'm not too concerned about capacity right now - I just want it to work safely.
  2. Is a non-balancing BMS safe if each cell has individual protection?

    I have have 5 3.7V cells that each have some kind of protection circuit on them connected to a basic BMS without balancing.

    https://m.aliexpress.com/item/1005001327267228.html
    ...
  3. Thanks Penny. I've rearranged my setup to: ...

    Thanks Penny.

    I've rearranged my setup to:


    pinMode(BUTTONCS, OUTPUT);
    AUXSPIBUS.setMISO(39);
    digitalWrite(BUTTONCS, 0);
    AUXSPIBUS.begin();
  4. The SD card for Teensy 4.1 is over the SDIO...

    The SD card for Teensy 4.1 is over the SDIO interface on LPSPI1. Each SPI port has a 16 word FIFO buffer. You can configure this to trigger an interrupt when it receives data. This interrupt can then...
  5. Yes. Via DMA.

    Yes. Via DMA.
  6. Replies
    1
    Views
    532

    This is possible. The serial library lets you...

    This is possible. The serial library lets you communicate over serial in Python and I have used it successfully in the past. If you have any specific queries, I would be happy to help.
  7. Replies
    2
    Views
    479

    Your code works and it's short and simple (if a...

    Your code works and it's short and simple (if a bit messy). There is no point changing something like this. Focus your attention on something more important, as I expect you have after one month.
  8. You have a lot of very specific questions and I...

    You have a lot of very specific questions and I think you'll have to just try some things and see if they work. I can perhaps assist with a few points.

    MPX5010 are less than 20 including shipping...
  9. I think most encoders are pretty rubbish. The...

    I think most encoders are pretty rubbish. The cheap ones at least. You could try fixing it in software e.g. something like if (abs(position1 - enc1) > 4){ignore();} but I think the root cause will...
  10. Nothing fancy like that. Just a series of single...

    Nothing fancy like that. Just a series of single transfers to transfer more than one word/16 bits. I don't even need DMA really but the example came with it.
  11. Teensy 4.1 SPI slave - attachInterrupt on chip select broken?

    I am using the SPI slave code from here https://forum.pjrc.com/threads/58023-Teensy-4-as-SPI-Slave (KurtE #15) which works (sending data from SPI1 to SPI).

    I want to add an interrupt on the slave...
  12. How is SPI transfer actually handled on Teensy 4.1?

    In my project, if I press a lot of buttons (which causes a lot of SPI communication), the code hangs and GDB shows me it's getting stuck in the below while loop from SPI.h (starting line 1237).

    ...
  13. Replies
    3
    Views
    359

    That is wonderful, Pieter. Thank you very much...

    That is wonderful, Pieter. Thank you very much for your help.
  14. Replies
    3
    Views
    359

    This should be easy for someone to solve. If...

    This should be easy for someone to solve. If nobody can solve it, looks like I am the most intelligent person here...
  15. Replies
    1
    Views
    230

    It doesn't sound like the RFM69 is in sleep mode....

    It doesn't sound like the RFM69 is in sleep mode. Have you read the RegOpMode register (page 63: https://cdn.sparkfun.com/datasheets/Wireless/General/RFM69HCW-V1.1.pdf) and actually confirmed it's...
  16. I was doing something similar, though not...

    I was doing something similar, though not specifically with that hardware. You could convert your required image to an array (here, for example (untested): https://lvgl.io/tools/imageconverter) which...
  17. Replies
    2
    Views
    434

    beginTransaction is only for when you are...

    beginTransaction is only for when you are actually transferring data so you do not need that in the setup. I had a problem using MISO1 and pin 39 and it was because I did not call SPI1.setMISO(39);...
  18. Don't bother with individual bytes because...

    Don't bother with individual bytes because writing one at a time to an SD card will slow things down. The best way would be a have two buffers in RAM of perhaps 1024 bytes, and when one is full,...
  19. It looks like you have to put EXTMEM with all the...

    It looks like you have to put EXTMEM with all the function definitions, which would put the code for the functions in the PSRAM (and I don't think that's possible or would save anything).

    Looking...
  20. Replies
    3
    Views
    359

    MIDI causes crash on Teensy 4.1

    Running on a Teensy 4.1, this gets up to 185 bytes sent every time and then stops. Any ideas? Thanks.


    #include <MIDI.h>

    HardwareSerial serialPort0 = {Serial1}; //bi
    HardwareSerial...
  21. I spent a while on this but didn't get it...

    I spent a while on this but didn't get it working. I was using the latest Teensyduino and built the project in the Arduino IDE.

    Thanks for trying to help but I've given up for the moment. If I...
  22. This looks good but I can't get it working. ...

    This looks good but I can't get it working.

    Using Windows 10 and a Teensy 4.1 and the "take over serial" option, I get the error "COM14: No such file or directory."

    If I start GDB manually and...
  23. Thanks to you both, my good buddies.

    Thanks to you both, my good buddies.
  24. Does the Teensy 4.1 handle the PSRAM refresh time?

    I think the P means it's actually DRAM and so it needs to be refreshed. If this is true, what happens if I try to access data during this refresh time?

    Thanks.
  25. Thanks for the reply. I was using the...

    Thanks for the reply.



    I was using the default version and then I tried the GitHub version: https://github.com/mjs513/ILI9488_t3
  26. In ILI9488_t3.cpp, lines 84 and 85 are commented...

    In ILI9488_t3.cpp, lines 84 and 85 are commented out which prevent code compiling on Teensy 4.1 when trying to use DMA (updateScreenAsync):
    84: //DMASetting ILI9488_t3::_dmasettings[2];
    85:...
  27. Replies
    11
    Views
    973

    WMXZ, Thank you but I think the answer is to...

    WMXZ,

    Thank you but I think the answer is to do with a lack of extern.

    KurtE,

    Thanks for your support and patience. On my PC the code is all in a folder called sequencer and its USB type is...
  28. Replies
    11
    Views
    973

    Has anyone got any ideas?

    Has anyone got any ideas?
  29. Replies
    11
    Views
    973

    Defragster, I don't know either. I was hoping...

    Defragster, I don't know either. I was hoping somebody else would. The errors don't make any sense to me because the lines in functional and forwarddec.h to which are referenced look like they have...
  30. Replies
    11
    Views
    973

    It's in a folder called sequencer on my computer...

    It's in a folder called sequencer on my computer with a sequencer.ino file, now uploaded. The file that makes things go wrong is debug.cpp.
  31. Replies
    11
    Views
    973

    Thanks for the response. The build environmnet is...

    Thanks for the response. The build environmnet is just the Arduino IDE. That library structure is the contents of my sketch folder. I've added those files which I tried to upload in bulk earlier.
    ...
  32. Replies
    11
    Views
    973

    .cpp files not working as I expect

    Please explain .cpp files.

    I have been working on a large project without .cpp files because I was fine with the longer compilation times and I put most of my forward declarations in a single file...
  33. Replies
    4
    Views
    838

    Thanks for the response KurtE. It is a new...

    Thanks for the response KurtE.

    It is a new screen that I ordered. All the jumpers seems to be set correctly.

    I am just using AnalogWrite for the backlight. The old one worked like this so I...
  34. Replies
    4
    Views
    838

    Yes. It is this one:...

    Yes. It is this one: https://www.buydisplay.com/lcd-3-5-inch-320x480-tft-display-module-optl-touch-screen-w-breakout-board
  35. Replies
    4
    Views
    838

    Teensy 3.6 + ILI9488

    I had this working using the 2x20 connector but I am trying to use the FFC now with no luck.

    I am using the attached wiring. The only difference from normal is that CS and DC are reversed.

    I...
  36. Thanks for the response. I really don't think...

    Thanks for the response. I really don't think sale cost is a factor; PCB is cheap and adding more pins is just a matter of more traces. The initial cost of the time spent sorting it out is a good...
  37. Why does the Teensy 4.0 have fewer pins than the 3.6 and some othe stuff?

    Sorry if this has been asked before.

    It looks like the focus is more on using protocols etc. rather than messing about with pins directly, almost like a computer. This is like when we lost the...
  38. Replies
    2
    Views
    755

    Volatile and ISR

    I asked a question on Stack Overflow that mentioned using accessing volatile variables in an ISR and most said/implied that volatile was not required, which goes against everything I know. Admittedly...
  39. Replies
    2
    Views
    1,084

    Thank you. That seems to have fixed it.

    Thank you. That seems to have fixed it.
  40. Replies
    2
    Views
    1,084

    SD card openNext does not always work

    I have a micro SD card in a Teensy 3.6. When I use openNext, about half the time it only goes through the first four files but the rest of the time it works. I have not yet tried another SD card.
    ...
Results 1 to 40 of 40