Seems these work with care: protosupplies.com/?s=low+profile
They are nice low profile PINS and Headers that are in 14, 24 pin lengths or 40 pin and Breakable to length.
Problem might be the bottom side pin length...
Does it look much like this one? www.tindie.com/products/loglow/teensy-3536-breakout-revision-a-due/
$17 with headers and pins a USB connectors
@loglow has done some good work ... and there is a discount code in his...
Quick look seems the Adafruit lib doesn't include pin changes.
In the Teensy SPI library is this:
// Teensy 3.x can use alternate pins for these 3 SPI signals.
void setMOSI(uint8_t pin);
Do a forum search...
Yes, that is right for pins 11 and 13.
If there is a way to specify the alternate pin 14 for SCK in the software, then that can be used.
If you chnage one alternate pin that is independant of other optional ALT pins,...
Clicking github from posted link:
#define MLX90393_DEFAULT_ADDR (0x0C) /* Can also be 0x18, depending on IC */
And here for passing Address and Alt Wire:...
With one working that is a great start!
The product page links to learn.adafruit.com/mlx90393-wide-range-3-axis-magnetometer?view=all
if (! sensor.begin_I2C()) { // hardware I2C mode, can pass in address &...
Given no voltage drop on Program pin pressing the Button - then a 15 sec Restore Button press would fail as well if the bootloader chip is not seeing the button?
But won't hurt to try: Press Button and at 13-17...
... long time away from another thread ... YMMV ... that thread had testing of drive speed and details if it can be found ...
How large is the USB Host write Buffer to the Flash Drive?
seems it was optimal with...
Paul, posting complete code in use would be cool - though it is just expected to be the res(6) line before the p#1 two lines.
with a T_4.1: Today's new DVM does Freq Hz counting and gives a ballpark number of 1.999...
There have been some posts by Paul in various threads, a production T_4.1 run was just completed that primarily shipped to distributors.
Check the list of distributors on this page : pjrc.com/store/
For example...
PWM would allow 'unattended operation' - no active code after starting to trigger cameras.
Is the synchronized operation more important than the triggering resolution/jitter?
Is the T_4.0 doing other tasks?
A...
This coated wire came to mind - others might say if not appropriate: amazon.com/enamelled-wire
It is coated/insulated for wrapping coils - and links above show high temp ratings. And a variety of gauges with heavier...
Is it a US purchase? Sparkfun has 12 T_4.0's at the same $19.95 price, no T_4.1's at SFun or AdaFruit - but AdaFruit has T_4.0's at $19.95. Mouser does mark them up and DigiKey less so - and they have many hundreds of...
Check the T_4.0 and 4.1 product pages. There are units inbound, perhaps mostly destined for distributors as noted. And distributors do, or will, have stock on both in coming days/weeks.
No usable work-alike 1062...
Good morning @KurtE, ...
Only question was what is needed to get back to MTP current in sync with 1.57b1 ... wrongly assumed it was merged.
> i.e. current examples for MTP and MSC, and any external sources.
File...
TD 1.57b1 available - if IDE 2.0 tested/used check the build dir the IDE uses. After 1.57b1 installed IDE 1.8.19 still used %appdata%\...\1.56.1 install, not where installed in the IDE unZip folder.
> noted on Beta...
To confirm the IDE was closed to remove>>: C:\Users\Tim\AppData\Local\Arduino15\packages\teensy
> could not delete the folder because Teensy.exe and Teensy_ports were still active!
<edit>, BTW: killing those tasks...
@Paul: just thought to read the end lines of CONSOLE from install and build p#2:
Multiple libraries were found for "SD.h"
Used: C:\Users\Tim\AppData\Local\Arduino15\packages\teensy\hardware\avr\1.56.1\libraries\SD...
Downloaded. Win 11 install on IDE 1.8.19 went properly.
<edit>: not even a system warning about file from download on execution.
T_4.1 BUILTIN_SDCARD ListFiles built and ran properly ... all 120,726 lines worth!
@clinker8 - not had that 'timeout' hit here in some time. After logging back into that thread check the lower left corner of the 'reply' box for "restore" as content seems to be stored on some time period during edits.
Maybe this helps? quora.com/What-is-difference-between-RS232-and-UART
UART is hardware detecting 0v as LOW or logic HIGH. It works with short wires directly feeding the MCU.
RS232 uses +V and -V and defines a...
Cool ... Looking forward to 1.57b1 and getting back to this. Keeping up was a chore with variety of peripheral adds ...
Seems I found the code in progress ...
Code shouldn't have a way to brick a Teensy. It can take it off the rails - but the button should bring it back.
Verify compile a simple blink with Teensy unplugged.
While holding the Button down plug the T_3.6 in,...
PJRC code optimized as possible for general use supporting all the hardware presented, where time allowed, and the need was present. Unless there is something specific going against that as needed, best to use the...
Using SublimeText as source editor here with folder source search and looked for the indicated: ADC0_CFG1
That led to the notes in p#22.
Finding it used in that analog_init - then seeing where that was called ......
Not surprising the T_4.x might have different "USB" behavior from T_LC given the chip hardware evolution from 12 Mbps to 480 Mbps requiring extensive new Teensy code.
It is perhaps interesting, or even telling, that...
When the T_3.6 {defined(__MK66FX1M0__)} powers on it enters the indicated ResetHandler() stored in Flash as uploaded from building the code at hand. That is the 'firmware' that runs on powerup.
All the code executed...
ESP32 can work well, when it does, but it is not a PJRC Teensy when it comes to general utility.
When it doesn't ... ??? ... if you get a backtrace there is a decoder for that.
The FeatherWing doesn't look to...
Current most tested IDE is 1.8.19 and TeensyDuino 1.56 with 1.57 about to show up as Beta 1, so using that any 'PJRC' issues might get addressed in short order, but going to that 1.57b1 perhaps best to get current code...
Good luck. Flash use works well - can support multiple files and functions great for static storage.
Extra slack space can appear to use more than expected as the Flash is allocated and written in native page sizes...
Looking at LittleFS ... Seems like the direction of interest?
Good luck with the Flash attachment - done a few to good effect!
> supported chip
> properly oriented
> fix it in place with one pin, solder the rest,...
Yes, a suitable converter is needed - watch the voltage before making any connection.
From Wiki Voltage levels:
Those voltages are not Teensy UART pin compatible.
Neutral on naming here - as long as there are examples exposing the needed interface.
Mike noted SD issue with partitions(volumes?). Seeing 'FsVolume' that looks like it might cover those as well? So taking out yet...
Paul will announce the TD 1.57 beta 1 release.
Installing that to test will give access to the current code as incorporated.
That thread or this thread likely will end up being the place to track any changes as the...
The GPD used here was UART Rx/Tx - might be that GPS>USB>FTDI would just connect ... may do the same using USB Host mode to Teensy if it just SPEWS messages.
But there can be interface software associated to edit...
Indeed, not using {} braces on every control conditional or for/while is asking for trouble.
Handy Tip?: In the IDE (or as coded in the editor at hand) hit "Ctrl+T" and uniform code formatting is applied. In this...
Indeed elapsedMillis encapsulates the work of tracking the time nicely. That solution looks like the 'alternative' to state machine mentioned. Not knowing what other code is to be completed - having a button response...
The Teensy main USB is in Device mode, as is the GPS. So, they won't see each other as devices only talk to a 'Host'.
To have the T_4.0 see the GPS it would need to be put on the USB Host pads ( marked on the CARD...
Indeed, that example solves for a simple running loop and the p#1 code has the delay()'s in button response code. And they cascade with actions in between 'wait' times. That speaks to use of a State Machine.
That...
Would a grounded wiper 'brush' (desolder braid?) contacting on the back side of the metal tension rollers bleed off enough to aid in electron control?
That roller makes full height contact on one side with the...
Look at this installed example for tips to see if provides the needed process:
{local install}\examples\02.Digital\BlinkWithoutDelay\BlinkWithoutDelay.ino:
// constants won't change. Used here to set a pin number:...
The github link provides a 'Code' / ZIP download of the updated code, download that.
That 'folder of code' can be placed in one of two places so the IDE will use that updated code:
> {sketchbook}\libraries\SdFat
...
If reading right ... the working code has this explicit call in setup(): audio = new SOARAudio();
Where the failing code has the same code done in the constructor called implicitly when the static element is...
There are two other plates of aluminum under the spools and indeed the passing rollers. I was assuming the spindles on them hit the main aluminum plate - but it seems they may be insulated as well by bearings?
Glad...
What Teensy is selected for Board?
Code as provided builds fine for a T_4.1 that has those pins defined.
When using pins as 'Analog' these lines are not needed - AFAIK:
void setup() {
// for (int thisPot = 0;...
So, the load cells measure the tension of the passing film?
Is the aluminum plate structure grounded?
Passing plastic strips over aluminum plate makes me think of how unhappy my cat is when I take off wool or...
Is that the MCU for a T_4.0 - not the larger T_4.1?
Would it make sense to rework the PCB to hold a SparkFun MicroMod Teensy Processor?
That $21.50 item is available - would need the M.2 connector - but include a...
Quick notes ...
Pins don't current limit - needs to be done externally
To invert the output - just invert the desired on time? For 0-255 8 bit value instead of 25 for 10% on it would be 255-25?
Seems the Teensy and Teensy code is doing the right thing. Problem appears to be in what is running on the "Stripped Down XP" - or how that assumably OLDER machine handle USB? Working right here on Win 11 as on the...
Paul made a good tutorial for the Audio library: pjrc.com/store/audio_tutorial_kit.html
It has a varied set of examples and a PDF to look through.
There are more than a few samples playing sound and responding to...
Cool - p#2 pseudo code looks a lot like that :) - good work. Not sure of the results seen there as "Stripped Down" ?
Here TeensyDuino 1.56 is in use with IDE 1.8.19 running on a Teensy 4.1.
Taking that code here...
Using a PJRC 5 pin (2 GND) version like p#7 here and it works as in p#2.
If p#2 code with PJRC example doesn't work to show results as posted:
> wiring is bad
> keyboard is bad, or not recognized as the logitech...
Welcome Nick,
If a simple example sketch were posted (Forum rule) it would be easier for others to review/copy/edit to reproduce or resolve the issue.
What happens if the button code is removed, and loop() just...
The elapsedMicros value can be set to zero or any value - but using with uint32_t as in p#2 the DIFF always works (and zeroing isn't generally needed or useful) ... across wrapping to zero, except as noted when it runs...
The Teensy Audio library is in use?
Not overly practiced or current there - not sure if the Audio Workshop covers this, but recalling isPlaying().
So testing for isPlaying()
bool AudioPlaySdWav::isPlaying(void)...
A locked Teensy works like any other - given a properly encrypted sketch it runs with no features prevented that are normally available.
>Upload does increase the minimum FLASH wipe area, but beyond that is unchanged...
Some confusion indeed.
The p#1 also suggested unsure of USB Host connection/function. That is the Keyboard in use is wired to the INTERNAL USB HOST pins.
Testing here as noted in p#2 showed keyboard connection and...
For just 500 strokes/minute an interrupt should work well.
For timing see "Using elapsedMillis & elapsedMicros": pjrc.com/teensy/td_timing_elaspedMillis.html
Using elapsedMicros will give better resolution.
...
Looking at USBHost example: {local install}\hardware\teensy\avr\libraries\USBHost_t36\examples\KeyboardForeward\KeyboardForeward.ino
Plugging in a keyboard to USB Host pins works as a good example perhaps:
USB...
Mr Greiman is the author of SdFat - forum search will find his posts/threads and link to his github presence where an issue could be posted.
The ...\hardware\teensy\avr\libraries\SdFat\library.properties file...
Not an EE either ...
example: LED's of diff colors take diff voltages to 'turn on'.
> Up to that voltage there is no light and current is blocked by nature of being a diode
In the lower part of that circuit 'IN'...
P#1 noted: I'm using (SdioConfig(FIFO_SDIO)). Could that be it?
Are there options that work on that media? That might indicate generic or specific issue.
Perhaps rewrite using only SD.h style calls to SD (from...
Was any other SD media tried? What size is the Media?
Was a chkdsk/scandisk done on the Media before PC reformatting?
The code in ZIP is short so here it is:
#include <SdFat.h>
#include <SdFatConfig.h>
...
Indeed, once a 1062 MCU's bootloader chip is updated to v1.07, as indicated on that page, only a required portion of the FLASH is erased. At least the indicated minimum, and if used space is beyond that then it extends...
There is a posted NewPinTest .ino .zip posted somewhere.
Assuming that sketch is doing the right thing and that the 1's on the schematic are dropped on the silkscreen as primary:
Using that here the ATP labeled...
With the two functions calling each other the stack won't last long and it will go beyond that causing undesired and unplanned behavior ... such as a reset.
That's one side effect and value of posting code. Either...
If all clocks are started, and no clock changes any other clock, does it run without failure or restart?
Please post reference code per the Forum Rule ... at the top of each forum page.
Without code, a reader has...
Those three scripts are for the TeensyDuino devices using NXP 1062's:
./imxrt1062_mm.ld :: Sparkfun MicroMod
./imxrt1062.ld :: Teensy 4.0
./imxrt1062_t41.ld :: Teensy 4.1
Perhaps 'Arduino' support defines the 'philosophy' at hand? See :: arduino.cc/reference
User code enters setup() with 'device' 'online' and ready to provide and respond to Arduino documented functionality.
User...
Glad you got it working!
No problem it was a fun exercise writing the StaticTrace code. It may come in handy some time.
Bummer, you didn't get to use it to see it work - or needed changes. But in this case simple...
Not personal - It isn't about being a cool kid - but having a topic or problem presented that is recognized as something where usable help can be offered.
Only 11 unique folks (jhall0326+10) have viewed the thread -...
@Eyal: p#9 indicated the sprinf() to large buffers could work.
With 2 buffers of say 512B*10+256 bytes: sprintf into buf1 until it holds over 5120 bytes.
- copy the bytes beyond 5120 to buf2
- write 5120 bytes of...
Welcome back! Hope the sketch helps - let me know if it seems to, or there are questions.
If you can get a battery on the VBAT - those 4 DWORDS will survive reprogramming and even power loss restart.
How you...
Data collection on ISR() or DMA at elevated priority - should be fast and low overhead - with nothing blocking.
loop() writing data to SD will have intermittent blocking of SD writes of 100ms or more as the SD writes...
The 3.3V current is limited - not seen trouble with common 128x32 OLEDS taking too much, and the linked SFun item shows: "Operation Current: < 1.5mA"
Teensy restarting is not at all common - sounds like something is...
I wondered about those items as well ... but didn't seem germane to the issue.
> .available() can be checked as often as desired 50 us or ms ... but yes the comment disagrees with the code
> The data String compared...
p#13 sketch has EEPROM write commented out and a pin #9 interrupt that calls a void function, may not be triggered? Not sure if the void _isr() might be cascading in multiple triggers with no code to allow the fast Core...