Forum Rule: Always post complete source code & details to reproduce any issue!
-
07-23-2023, 08:13 PM
#1026
The .65 marking is the same as i have here.
The last version should have an other 6pin chip.
"Teensy 4.1 manufactured after March 2023 has U4 replaced by TLV75533P, D1-D2 replaced by BAT54CTB6, and a different SD socket (J2)."
I guess the best way to see if you have the latest version is looking at the micro-SD socket. The pins solder connection are no longer visible in the latest version. My picture was with the old socket.
The marking on the 6-pin chip should be TY I guess.
This is the table I see in the datasheet.
BAT54TB6 TH
BAT54ATB6 TJ
BAT54CTB6 TY
BAT54STB6 T6
BAT54DTB6 TL
-
07-23-2023, 08:37 PM
#1027
Senior Member+

Originally Posted by
pe1pwf
The .65 marking is the same as i have here.
...
Good point - those 'latest' PJRC direct items arrive early FEB - so ".65" not the 'latest' revision for that part.
Though these two PJRC units do have the altered SD socket where soldered pins migrated under the top cover from the forward edge.
The repro test code in prior post would rule out/confirm it isn't from other 'batty software' perhaps if it indeed some 'newer' part is having a bad influence, as they work here.
> Though not on the PCB/hardware as shown in demo.
> Though perhaps battery here is at a diff point in voltage life curve [here at ~2.92 V].
-
07-24-2023, 05:14 AM
#1028
Good morning together,
the Teensys I have here are from two different suppliers and I don't think tey are from the same batch.
Both boards have a SD card socket with "invisible" pins, but one has a diode array marked with "TY" and one marked with "65".
I assume the phenomenon has nothing to do with the diode types, because it's all the same behaviour with both boards.
Anyway, I will check the voltages at the diode array...
Regards, Thorsten
Edit:
BTW, if the battery is populated time and parameters are preserved, so this works fine...
-
07-24-2023, 06:29 AM
#1029
Man this really is a stange one. Two different Teensy's from different batches give the same error, so it is not expected in the Teensy's
You measured the connections on the mainboard to the teensy and those seemed fine. The software is the precompiled version from Cor's Github as most other uses loaded into their prooject
Maybe I should just send you another mainboard so you can test that, and not only rely on the measurements.
Did you also try the code defragster wrote about?
-
07-24-2023, 06:29 AM
#1030
Here are the measurements with the CR2032 inserted, diode array is type "65":
Power off or no LiPo battery connected:
A2 3,064V
K1-4 2,845V
A3 0,251V
A4 0,030V
Power on:
A2 3,070V
K1-4 3,260V
A3 3,300V
A4 2,072V
Regards, Thorsten
-
07-24-2023, 06:29 AM
#1031
Senior Member+

Originally Posted by
dl9sec
Good morning together,
the Teensys I have here are from two different suppliers and I don't think tey are from the same batch.
Both boards have a SD card socket with "invisible" pins, but one has a diode array marked with "TY" and one marked with "65".
I assume the phenomenon has nothing to do with the diode types, because it's all the same behaviour with both boards.
Anyway, I will check the voltages at the diode array...
Regards, Thorsten
Edit:
BTW, if the battery is populated time and parameters are preserved, so this works fine...
Was this basic p1025 sketch tried? : pjrc.com/threads/38988-Bat-detector?p=329279&viewfull=1#post329279
Time was ONLY added to that simple sketch to verify each execution after power on that the battery was or was not connected, and of course working as expected on a cold power start.
If that fails then it rules out the loaded sketch and calls into question the Teensy or the PCB supporting it if not removed. If it runs on the PCB - or if the Teensy is not connected to the PCB, as here, it gives more info ...
The FEB 2023 unit with ".65" came as a pair - just tried on the other and pulling that posted sketch works as expected with and without battery. Even edited the comments from this "root.openRoot(volume);" and the .ls() that follows and 7 pages of files listed are displayed.
Also noteworthy perhaps: IDE 1.8.19 with TeensyDuino 1.59 beta 2 is in use here.
-
07-24-2023, 07:18 AM
#1032
No coin cell inserted:
Initializing SD card...Wiring is correct and a card is present.
Card type: SDHC
Volume type is FAT32
Volume size (Kbytes): 15549952
Volume size (Mbytes): 15185
Mon Jul 24 09:13:18 2023
Coin cell inserted:
Initializing SD card...initialization failed. Things to check:
* is a card inserted?
* is your wiring correct?
* did you change the chipSelect pin to match your shield or module?
Mon Jul 24 09:17:21 2023
That doesn't look good :-(
-
07-24-2023, 07:26 AM
#1033
Senior Member+

Originally Posted by
dl9sec
No coin cell inserted:
...
That doesn't look good :-(
No, it does not look good.
It shows it isn't related to the larger and more complex program though so easier to repro.
What happens if a battery is properly connected to the T_4.1's when not placed in the PCB sockets?
One prior test was on a unit on a PJRC supplied simple PCB, and had headers row mounted to plug in battery.
Two other units tested worked just having male pin wires from the battery (thus the adding of the date print to assure it was being 'connected') just pressed into/against the vBat and GND holes on the T_4.1.
The with the 32GB SDHC card inserted all three worked.
-
07-24-2023, 07:48 AM
#1034
Ok, I used my second Teensy and connected the coin cell (with holder) directly to the VBAT pin.
All worked fine. SD is recognized with coin cell inserted.
So I think I will remove the lower pin header on the TeensyBat base board and take a look at the pads...
-
07-24-2023, 07:49 AM
#1035
Senior Member+

Originally Posted by
dl9sec
Ok, I used my second Teensy and connected the coin cell (with holder) directly to the VBAT pin.
All worked fine. SD is recognized with coin cell inserted.
So I think I will remove the lower pin header on the TeensyBat base board and take a look at the pads...
Good luck getting it resolved.
-
07-25-2023, 08:33 AM
#1036
Senior Member
Hi defragster,
Thanks to you and Edwin for chiming in with this rather odd issue. I hope this resolved the problems. Oddly enough I am subscribed to this thread but never got a message that something was going on. Luckily (for me) it had mainly to do with hardware 
cheers
Cor
-
08-11-2023, 08:45 AM
#1037
Thanks for the superb project.
Works geat.
Just an Idea
is it possible to jump directly into the settings by long pressing the L-ENC
and activate the Auto-Recorder by long pressing the R-ENC
-
08-11-2023, 08:54 AM
#1038
Senior Member

Originally Posted by
OE5GHO
Thanks for the superb project.
Works geat.
Just an Idea
is it possible to jump directly into the settings by long pressing the L-ENC
and activate the Auto-Recorder by long pressing the R-ENC
Hi,
Long press R has allready been programmed to save a screenshot to the SDcard. So it would need a special routine to first catch a long L-Enc and then a long R-Enc.
I will consider this in the next update as a request to activate the auto-recorder directly.
cheers
Cor
-
08-11-2023, 09:18 AM
#1039
Hi Cor,
As I said, this is just an idea to possibly make it easier to use.
Especially the direct access to the auto-recorder I see as a golden opportunity.
Then you can give the TeensyBat to a friend - he only needs to turn it on, press the button for 3 seconds and put the device down in the garden.
If you meet him during the day you can also hand over with activate Auto-Recorder in DeepSleep mode. Even easier, but not always possible.
regards, Georg
-
08-11-2023, 09:38 AM
#1040
Senior Member
Hi,
If I am not wrong going to autorecord in the current setup is a matter of rotating the left-encoder to autorecord and press the left-encoder. Thats not a very complicated procedure ...
Cor
-
08-11-2023, 06:03 PM
#1041
I also handed out my detector in deepsleep to a colleague. He only needed to bring it home and place it in a dry spot outdoors. He did find some droppings he was puzzled about, it turned out he has a family of common pips under the rooftiles from time to time. With a big battery you can tecord several nights.
I guess the long press options could be placed on the wishlist of future versions. We all know most whishes do not come true but if there is nothing in its way, it is worth to look at it I guess.
-
09-06-2023, 04:09 PM
#1042
Last week I received Thorstens (dl9sec) perfectly soldered detector. I tested every Teensy pin against the V-bat input with both the Teensy in place and the Teensy removed but I could not find any strange leaks but could not find anything wrong. (I had a second detector to compare against).
Than I tested the SD card in another detector, and found that sometimes no SD appeared also on that detector so there is not something related to the hardware Thorsten was using. One of my Kingston and Sandisk cards in Thorstens detector did not bring up the "no SD" message which points to the Sandisk SD card Thorsten was using.
I tried Thorstens card on the computer an tested it with speedout and found it is not fast enough during writing to match up with the class10 standard. Speedout seems to hang sometimes during the writing process for short periods of time and has different results each time I run the test. I also used H2testw to check ith the 16GB card actually holds 16GB and the card does seem to be a true 16GB. After a slow format of the sd card using sd formatter speedout still had different results.
For some strange reason the card seems to work most of the times and I used it on one of my own detectors the last two nights. It appeared to work fine but a few recordings have some strange artefacts. I have the feeling this sd card can not be trusted.
The fact that it did not seem to work only when the backup coin cell was in place still puzzels me. Maybe there is some difference in timing during the boot sequence and reading the real time clock and accessing the card but I can not understand why that happens. I do not know if the card in place detection is just the card-contact or also involves some data communication. The standard SD library is used.
Anyway, the problems encountered seem to be related to the microSD-card.
Maybe someone knows what card detect does and if there could en any relation to reading the real time clock or simply start the clock from 00:00, I am quite sure it is not a problem in the hardware although the ultimate test for this would be to remove the v-bat pin from the main board and connect the backup battery + directly to the vbat pin of the Teensy without routing anything through the main board.
Kind regards,
Edwin
-
09-08-2023, 05:49 AM
#1043
Senior Member
Hi Edwin,
This looks as if the card used is not a class10 card but could be a counterfeit SD card. They can still have the full 16Gb capacity but read/write speeds of those cards often is far lower than normal.
cheers
Cor
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules