Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
542f174
Kicad: adding an adpater pcb for Teensy4.0
mandraga Jun 14, 2023
6335efb
kicad: connected UART3 because of the tesla module.
mandraga Jun 14, 2023
a855129
Swaped some pins according to the adapter schematic revision
mandraga Jun 14, 2023
9678720
gitignore: ignore the gerber files
mandraga Jun 14, 2023
ed10e64
[DEV] Renamed config.h to lower case, did not pass compilation on linux.
mandraga Jul 15, 2023
551c9c2
compilation warnings, removing them and using FlexCAN_T4
mandraga Jul 18, 2023
ed2c7cf
More warning cleaning
mandraga Jul 18, 2023
3b6b64c
Flexcan fix the define
mandraga Jul 18, 2023
c30e623
Get the headers sorted out for FlexCAN_T4
mandraga Jul 18, 2023
d5e96f6
[DEV] Adapt to Teensy 4 library
mandraga Jul 29, 2023
a8df58c
Watchdog, replace with a library, again from tonton81, thanks
mandraga Aug 2, 2023
0e8e67a
Low voltage deteector: removing the code for teensy 4
mandraga Aug 2, 2023
0171c49
Can0.available() n on Flex_CanT4, read() returns 0 instead.
mandraga Aug 2, 2023
4b370f8
Compiling firmware, not tested.
mandraga Aug 9, 2023
7748dce
Merge branch 'master' into Teensy4Port, conflocting binaries but we r…
Dec 27, 2023
c5fdd0c
Just one comment on the library sources, seems to work at 150Mhz when…
Dec 27, 2023
3f70665
Adding closed solder jumpers to the CAN bus pins
mandraga Dec 28, 2023
69736b6
Fix: the can bus in use is the first one, not the second.
Dec 28, 2023
b8c6bf7
Use an enum for the menu codes to clarify the program.
Dec 29, 2023
c38acae
Serial console rework such as to buffer configuration command lines.
Dec 29, 2023
f0de526
FIX: only use the newline buffer once a line is read.
Dec 29, 2023
9bc3344
output console: adds error message details.
Dec 30, 2023
57a9faf
Voilà, works on teensy4.0
Dec 30, 2023
7ae00fc
Clean up before the pull request.
Dec 30, 2023
bf40822
Comme back to 3.2 to merge with master.
Dec 30, 2023
474c447
Fixing merge damage on a VWBMSV2.ino.lst
Dec 30, 2023
c24e3fd
Fixing merge damage on VWBMSV2.ino.lst
Dec 30, 2023
8b409d9
Merge branch 'Teensy4Port' of github.com:mandraga/VW-bms into Teensy4…
Dec 30, 2023
066ef34
Bump up firmware version, and fix a directive
Jan 1, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
*.bak
*.sch-bak
*.kicad_pcb-bak
*.zip
*-cache$
*-cache.lib
fp-info-cache
*.bck
*_autosave-*
*.gbr
*.drl
*.gbrjob

8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
# VW-bms
Can based decoding of VW bms data

## Teensy 4 version

This is a port for Teensy4.0, it uses a connection PCB to reroute signals to the Teensy3.2 footprint. The board adapter is in kicad format.
On the Teensy4, you can lower the frequency to 150Mhz and it works.
A second can, CAN2, is available on Teensy4.0 to add functionalities or to resolve CAN speed conflicts.

Uncomment //#define USING_TEENSY4 in config.h and select Teensy4.0 as board to use it.
14 changes: 14 additions & 0 deletions Teensy4_PCB_adapter/LICENCE
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
teensy4 adapter
Copyright 2023 Patrick Areny

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
9 changes: 9 additions & 0 deletions Teensy4_PCB_adapter/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Adapter to use a Teensy4.0 board with the simpBMS in place of the Teensy3.2.

Mostly all pins are the same, but CAN1 must be rerouted. And the Teensy4.0 UART3 is used as Teensy3.2 UART2.
The firmware is modified to take the rerouting into account.
The source code modifications are under the USING_TEENSY4 directive.

The schematic is drawn with kicad 7.0 and under the Apache licence

Note that this is just a proof of concept, the schematics of the carrier board could be adapted to add a CAN bus or two.
4,831 changes: 4,831 additions & 0 deletions Teensy4_PCB_adapter/teensyBMSadapter.kicad_pcb

Large diffs are not rendered by default.

77 changes: 77 additions & 0 deletions Teensy4_PCB_adapter/teensyBMSadapter.kicad_prl
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
"board": {
"active_layer": 37,
"active_layer_preset": "All Layers",
"auto_track_width": true,
"hidden_netclasses": [],
"hidden_nets": [],
"high_contrast_mode": 0,
"net_color_mode": 1,
"opacity": {
"images": 0.6,
"pads": 1.0,
"tracks": 1.0,
"vias": 1.0,
"zones": 0.6
},
"selection_filter": {
"dimensions": true,
"footprints": true,
"graphics": true,
"keepouts": true,
"lockedItems": false,
"otherItems": true,
"pads": true,
"text": true,
"tracks": true,
"vias": true,
"zones": true
},
"visible_items": [
0,
1,
2,
3,
4,
5,
8,
9,
10,
11,
12,
13,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
32,
33,
34,
35,
36,
39,
40
],
"visible_layers": "fffffff_ffffffff",
"zone_display_mode": 1
},
"meta": {
"filename": "teensyBMSadapter.kicad_prl",
"version": 3
},
"project": {
"files": []
}
}
Loading