Finally got all my boards from jlcpcb. Soldered on the Attiny841-ssu on to 7 of the cell modules including jst connectors etc… triple check checked all my solder joints etc…
Following @stuart tutorials on YouTube, flashing the controller PCB went well without a hitch. Then I attempted to flash the cell modules oh, and no matter what I try platform IO errors out with Error 1.
Also when platform IO attempts to flash the cell modules, as soon as it initialises and tries to flash it the LED on the cell module itself briefly blinks and immediately afterwards platform IO fails.
These are all of the things I checked and tried:
*Made sure my USB asp is set to 3.3v (also tried 5v… may have fried that board. Idk)
tried to short jumper 3 on the usbasp to enable slower flashing
reinstall the newest driver for Windows 10 for the usbasp
checked the firmware readme file for usbasp and verified it is compatible with Attiny841
tried newer and older avrdude versions
verified pin one of the connector from the usbasp was connected to the right pin of the cell module etc…
probably forgetting a few other things…
I attempted two flash 4 different cell modules just in case one of them was faulty
I will try to post the contents of the platform IO terminal, below. If I am unable to I will include a link to pastebin.
I appreciate any help you can provide. Thank you
Platform IO terminal error output below. For some reason to put the entire string and one line. Here is a link to pastebin also:
Doing a little research and I think my problem is pinout of the usbasp does not match the pinout on the controller module in order to program the Attiny841-ssu.
At first in Stuart’s video I seen he was using a 10 pin connector from the usbasp in that pin one of the connector was connected to pin one of the control module and I made sure I did the same. But now that I think back on it he had rewired the ribbon cable on to the usbasp itself. And I did not I just used it the way it was set up from the factory. The ribbon cable is plugged into the connector on the usbasp and I just took the other end with the 10 pin connector and put pin one to pin one of the controller module just assuming that it was correct.
So when I get home from work I will verify which wire goes to what pin. I just found a schematic of the wiring diagram from the usbasp to the attiny841.
Below is a photo of the schematic of my usbasp factory 10 pin connector if anyone knows off hand if it is wired correctly or not to join up to the controller module without changing anything
I just hope if the wires are wrong I didn’t burn up 5 different attiny841’s this morning trying to get it to work😞
Ive been troubleshooting and working on getting the cell modules programmed all night long. No sleep. Literally over 30+ chrome tabs open, tried 5 different versions of avrdude also adding custom code to avrdude, etc…
Guess what the problem was.?.?.?
A set of 4 female dupont wires I had didn’t have continuity!!! WTF… that also explains why a few of my breadboard diy circuits weren’t working recently etc…
OMG…
Hopefully people can get something out of this…
If your trying to program the diybms cell modules using a USBasp and keep getting a Error 1 or the signature of the attiny841 doesnt match the expected signature etc, CHECK YOUR WIRING AND CHECK FOR CONTINUITY!!!
Dont trust these cheap garbage premade dupont connectors