Loading 3D model… large boards can take a moment.
Hi, I'm Foccci. Just call me [Foksi] or [Fok-See] or just Foxi :-) My real name is "Fully Open CCS Charge Controller Interface", but that's just too difficult to remember.
What I am? I'm a Charge Controller that enables CCS charging of homebrew electric vehicles. I was born in the OpenInverter forum community, https://openinverter.org/forum/viewtopic.php?t=3727, and I'm growing more and more due to the great people there. Inside, I have a QCA7005 PLC modem and an STM32 microcontroller. I'm a piece of hardware, and because hardware alone is quite boring, I'm in a team with Clara, https://github.com/uhi22/ccs32clara, which is dealing with the bits and bytes of our mission. And together, we can do a lot for you.
While some folks are integrating Foccci in their vehicles and providing nice pictures for the galery (https://openinverter.org/forum/viewtopic.php?t=5077), we were proudly presenting the project at the Augsburg Linux info day (https://openinverter.org/forum/viewtopic.php?t=4800). Sleep and wakeup, new, fast contactor driver and a new connector pinout provide more flexibility for the car integration. That will be the version 5, which will hopefully pop-up in the shop in July.
Johu is charging the Touran on the TESLA Supercharger using the hand-populated V3 board: https://openinverter.org/forum/viewtopic.php?p=64563#p64563 and https://www.youtube.com/watch?v=OKg3VUslol8 The first JLC populated boards have been completed manually, only one bug in the schematic needed a small workaround. Boards are on the way to several enthusiasts for further testing. The software is growing thanks to the great openinverter community.
Received four reservations on openinverter forum, and this was the trigger to create version v4.1 with minor layout improvements, and to order a batch of five at JLCPCB. Total cost for five: $127.32 including shipping, taxes and duties. The NCV8402 was out of stock, and the QCA7005 is anyway not in their stock. So the material price is
Using the foccci V3 board together with ccs32clara software, the muehlpower voltage sense board, a cheap chinese relay, the light-bulb-demo worked on the first attempt on alpitronics hypercharger and on an ABB triple charger.
The foccci board version 2023-07-12 runs the STM32F103 and the QCA7005, and successfully enters the charging loop, with simulated evse by pyPLC. It provides the checkpoint number and some other informations via CAN with 500kBaud. On the other side of the CAN sits an ESP32 Wifi-Kit-32, with a CAN transceiver added. It shows the data of the CAN on its OLED display.
After the PCBs and QCAs arrived, the soldering was the next challenge. It went well, and the board started talking to the ESP32 running ccs32berta https://github.com/uhi22/ccs32berta
...is ready in KiCad and is sent to JLCPCB. It is a two-layer, and has so many capacitors, that they do not really fit to the place where they would make sense. Caused by taking the schematic from the Millisman design, but changing the size to 1206 for easy hand soldering. Btw: Below five dollars for five PCBs, including shipping, duties and taxes.
...and the discussion is starting on the OpenInverter forum https://openinverter.org/forum/viewtopic.php?p=57643#p57643
These are the patches:
fixes the issues of the 4.2
First version with the changed connector pinout. Intermediate version, never produced.
Functionally identical with V4.5b. The first official version with the new connector pinout.
The QCA7005 schematic and board was originally designed by Millisman https://github.com/Millisman/QCA7000, then forked to https://github.com/uhi22/QCA7000board and then renamed to https://github.com/uhi22/foccci
removed JTAG completely
removed connector for SPI flash, added testpoints instead
ATP_P and ATP_N are reserved analog test points. Leave unconnected without testpoints.
ZC_IN connected to ground. Not used.
PLL_BYPASS has an internal pulldown. Removed the external pulldown.
Removed the LEDs on the GPIO.
RSVD06 and 07 are "do not connect". Removed the test points.
Bugfix: The ground was missing between C13 and C14.
[ ] Footprint for L13 leads to complains of JLC, see https://openinverter.org/forum/viewtopic.php?p=72630#p72630
TVS at the CP
Transformerless RF path
do not inject >7V into the enable pin of the step-down
Low-power concept
Clarify interface (electrically and mechanically)
more copper cooling area for the NCVs
analog current feedback from the DRV8874 IPROPI to the controller
Add a version indication analog circuit. Discussed here: https://openinverter.org/forum/viewtopic.php?p=66745#p66745
Change the PP pull-up to 330 ohms and 5V, and optionally prepare pull-down 2k7. Use voltage divider to the controller, to be able to measure the full 0 to 5V range. Discussion here: https://openinverter.org/forum/viewtopic.php?p=66208#p66208
For C69, how to workaround the forced switch from "economy" to "standard" service? Workaround: use C3445244, discussed here: https://openinverter.org/forum/viewtopic.php?p=65016#p65016
Remove DC-grounding of the RX inputs. Done: C32 and C33 added on the RX inputs.
Transformer (discussion here: https://openinverter.org/forum/viewtopic.php?p=64465#p64465) see https://jlcpcb.com/partdetail/3170710-CL4532A201/C2904734 Done: Added into new lib transformerCL4532A-201 and to schematic and pcb.
Adapt the part number for the NCV8402 (discussed here: https://openinverter.org/forum/viewtopic.php?p=62903#p62903). Done: Part number C77755 instead of C236053
Adapt the footprints / part numbers for the parts which JLC could not populate
Add additional mounting holes
Stepdown layout optimization (discussed here: https://openinverter.org/forum/viewtopic.php?p=61697#p61697), including smaller L, e.g. https://jlcpcb.com/partdetail/LantuMicro-SMS1050100MT/C5127462 instead of C3000379. And, next step, even smaller https://jlcpcb.com/partdetail/Sunlord-MWSA0503S100MT/C408412 is 5.1 x 5.4mm.
TVS at the 12V. SMAJ18A
move as much as possible bottom layer components to upper layer, to allow population by JLBPCB
adapt layout for changed footprints
check/remove/correct the JLCPCB part numbers for all parts. Most parts now 0805.
add protection diode for CP sense
CP sensing
5V on the connector for supply of the muehlpower high voltage sense board
Clarify expected contactor current and use appropriate drivers
Footprints for the bigger capacitors too small. -> Use 1210 for C65, C66, C67,
Many texts in the silk screen are not readable due to overlap with solder or components
Some of the many capacitors on the supply lines could be removed
Use 0805 for all 100nF, instead of mixing 0805 and 1206.
The EN pin of the CAN transceiver should have the flexibility to solder-bridge to GND and 3V3, to allow different type of transceivers.
Change footprint of the test points for flash programming, so that squared connector pins fit into.
highside LED drivers for RGB button
VDDA of the STM32 needs additional 1µF according to STM application note AN2834. https://www.st.com/resource/en/application_note/an2834-how-to-get-the-best-adc-accuracy-in-stm32-microcontrollers-stmicroelectronics.pdf chapter 4.2.1 -> C14 added.
add port locking driver
Complete the schematic and the layout for the DRV8874 h-bridge driver
add PP detection
change to 4 layers
One of your AMS1117 seems to have a 100nF output cap and the other doesn't.
470u input cap is an electrolytic? Yes.
Which connector? DTM13-12PA-12PB-R008 https://openinverter.org/forum/viewtopic.php?p=58697#p58697
HCT04: Risk of activating the contactors if the controller power fails. Find a better solution.
Check boot config on GPIO 0 to 2.
add LEDs for functional check
add mounting holes
correct voltage divider in the TPS54302
3V3_uC and NRST on connectors for debugger
removed the wrong part number and datasheet for the 8MHz XTAL
larger footprint for L10: From 1206 to 1812
check all pins -> all plausible with the data sheet.
check the QCA footprint -> fits.
assign footprint to all components in the schematic
add CP logic
add microcontroller
add power supply
add contactor driver outputs
add port temperature sensor inputs
Takeover from CCM:
What's going on with the missing processor Gnd pins, are they mapped within the part? Yes, in the layout they are correct.
Add LIM-like current input for HVDC voltage measuring, https://openinverter.org/forum/viewtopic.php?p=58839#p58839
...is described in the wiki: https://openinverter.org/wiki/Foccci
Plan:
From openinverter VCU (https://github.com/jsphuebner/stm32-vcu/blob/master/Hardware/GS450H_VCU_V3%20-%20Schematic.pdf)
MP2359DJ as step down from (6V to 24V) to 5V.
Inductance 4.7µH
Diodes for reverse polarity and step down: Schottky SS54B-HF, 40V, 5A.
ams1117-3.3V linear from 5V to 3.3V
STM32 selection:
Programming:
An introduction how to use a Raspberry to program the SPI flash is here: https://www.rototron.info/recover-bricked-bios-using-flashrom-on-a-raspberry-pi/ The connection is quite simple: SPI_FLASH_programming_with_Raspberry.jpg
Make sure that SPI is enabled in the settings of the Raspberry.
Install the flashrom tool: sudo apt-get install flashrom
The docu of flashrom is here: https://www.flashrom.org/Flashrom
Check whether the device is detected: flashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=2000 -V
Binary is available here: https://github.com/uhi22/Ioniq28Investigations/blob/main/CCM_ChargeControlModule_PLC_CCS/CCM_FlashDump_SpiFlash_2MB_Ioniq_00_33_79.bin
For viewing the binary, a hex editor can be used, e.g. http://www.funduc.com/fshexedit.htm
To flash the binary file to the SPI flash: flashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=2000 -w myfile.bin In the case that to tool complains that multiple flash chip definitions match the detected chip, choose the correct one with the option -c "MX25L...something...
Starting with KiCad7, the The xsltproc appears to have been removed. So the procedure to create the BOM needs to be adjusted. In https://gist.github.com/arturo182/a8c4a4b96907cfccf616a1edb59d0389 we find, that there is a plugin now: "Fabrication Toolkit". This can be installed with the "Plugin and Content Manager" in the KiCad main window. Then, in the PCB editor, use the FabricationToolkit from the toolbar. This creates a new folder in /production/, which contains a zip with Gerber and drill files, and also the BOM, positions and designator files.
The docu of the Fabrication Toolkit is here: https://github.com/bennymeg/JLC-Plugin-for-KiCad
Some of the IC footprints have the wrong orientation in the JLCPCB viewer. The Fabrication toolkit offers the possibility to rotate (and shift, if necessary) the footprints, by adding in the schematic an attribute 'JLCPCB Rotation Offset'. Thanks to jrbe for the hint in https://openinverter.org/forum/viewtopic.php?p=61049#p61049
Offer 2023-08-27: 5 PCBs, 2 populated.
Offer 2023-08-28: 5 PCBs, 5 populated.
For trouble shooting it is recommended to create a log file of the serial output. You need a serial-to-usb converter and connect it to the UART TX line and ground. For recording, you can use e.g. Putty on windows or any console program. The baud rate is 921600. Not each cheap USB-to-serial is able to catch this high speed. So if you get only garbage, try an other adaptor.
Additionally, use the openinverter web interface to observe spot values. As default, the Node ID of Foccci/Clara is 22.
Check the following points (discussed here: https://openinverter.org/forum/viewtopic.php?p=64449#p64449 )
No. Clara should report something like "[PEVSLAC] received GET_SW.CNF For MAC 04:65:65:ff:ff:ff software version MAC-QCA7005-1.1.0.730-04-20140815-CS"
If you see instead something like "[PEVSLAC] received GET_SW.CNF For MAC 00:b0:52:00:00:01 software version BootLoader" then the QCA7005 was not able to load the firmware from the SPI flash U1. Some possible root causes are
Thanks to Millisman for the initial board design.
Thanks to Lars @evcreate for sponsoring the Ioniq charge control module.
Thanks to celeron55, mikeselectricstuff, Zieg, catphish, projectgus, chrskly, johu, Infant, muehlpower, crasbe, royhen99, asavage, Pete9008, P.S.Mangelsdorf, grgumxlm, royhen99, MeKe, mstegen, jrbe, Bigpie, xvyDFatih, olegiv, ns0708, f0ld, explorer232, dougyip, Gabriel, tom91, quentin42, maciek16c, apple2, CCSknowitall on the openinverter forum for the helpful discussions, proposals, reviews, tests and questions.
Special thanks to projectgus for organizing the chips.
Thanks to cookie_kater1 for the logos.
No comments yet. Be the first to ask about this board.