Thanks for the response. I'm not too concerned about capacity right now - I just want it to work safely.
Type: Posts; User: PAAUX4
Thanks for the response. I'm not too concerned about capacity right now - I just want it to work safely.
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
...
Thanks Penny.
I've rearranged my setup to:
pinMode(BUTTONCS, OUTPUT);
AUXSPIBUS.setMISO(39);
digitalWrite(BUTTONCS, 0);
AUXSPIBUS.begin();
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...
Yes. Via DMA.
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.
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...
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...
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.
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...
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).
...
That is wonderful, Pieter. Thank you very much for your help.
This should be easy for someone to solve. If nobody can solve it, looks like I am the most intelligent person here...
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...
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...
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);...
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,...
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...
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...
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...
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...
Thanks to you both, my good buddies.
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.
Thanks for the reply.
I was using the default version and then I tried the GitHub version: https://github.com/mjs513/ILI9488_t3
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:...
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...
Has anyone got any ideas?
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...
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.
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.
...
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...
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...
Yes. It is this one: https://www.buydisplay.com/lcd-3-5-inch-320x480-tft-display-module-optl-touch-screen-w-breakout-board
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...
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...
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...
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...
Thank you. That seems to have fixed it.
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.
...