I have a board all together but I need help with the programing. If you read the post above with Patrick I have conflicting information. But beyond that, The programing side is all new to me so I need a step by step tutorial or alike to get me where I should be
Andrew,
I think there is no working example when I see the whole sequence.
Patrick has little to no time I think.
the variable resistor that has been added cannot be found on the print layout.
Platformio is a nice and good tool but Patrickâs software also gives several errors, too bad.
All this does not inspire much confidence.
Too bad for Stuartâs robust project.
Have you installed Code_vs and Platformio yet?
Leodien
Leodien,
I have Platformio and the third party tool for uploading the code, I also have loaded the sketch onto an Arduino nano to use this as a programmer, I setup platformio to use the nano in the correct order to program with, etc. I have watched a ton of Youtube videos and read a ton of websites but still I canât figure out how. There are too many steps involved for someone like myself to load code onto a chip.
I know how to program an Arduino, I know how to program cars/vehicles with manufactures equipment, but this is just outside my knowledge.
Iâm just not sure where and/or what Iâm doing wrongâŠ
Andrew
Andrew,
Then it will indeed be a challenge.
The easiest way is if Patrick would post a compiled version on GTIhub.
Otherwise it will be a learning curve.
Leodien
hi,
while compiling the software code I get the following error:|
TypeError: âNoneTypeâ object is not subscriptable: File â/home/gerard-giga/.platformio/penv/lib/python3.12/site-packages/platformio/builder/main.pyâ, line 167: env.SConscript(env.GetExtraScripts(âpreâ), exports=âenvâ) File â/home/gerard-giga/.platformio/packages/tool-scons/scons-local-4.8 .1/SCons/Script/SConscript.pyâ, line 620: return _SConscript(self.fs, *files, **subst_kw) File â/home/gerard-giga/.platformio/packages/tool-scons/scons-local-4.8.1/SCons/Script/SConscript.pyâ, line 280: exec(compile(scriptdata, scriptname, âexecâ), call_stack[-1].globals) File â/home/gerard-giga/Software-hardware/Software/BMS/DIY High Voltage Shunt (PPrasse)/diyBMS_CurrentVoltage_ADS1115-main/code/buildscript_versioning.pyâ, line 31: env.Append(git_sha_short=git_sha[32:])
does anyone have a tip?
I had the same problem, I solved it by modifying these lines in the buildscript_versioning.py file
Also adding a library to the platformio.ini file.
Thank you,
Unfortunately I now get the following message:
NameError: name âgit_datetimeâ is not defined:
File â/home/gerard-giga/.platformio/penv/lib/python3.12/site-packages/platformio/builder/main.pyâ, line 167:
env.SConscript(env.GetExtraScripts(âpreâ), exports=âenvâ)
File â/home/gerard-giga/.platformio/packages/tool-scons/scons-local-4.8.1/SCons/Script/SConscript.pyâ, line 620:
return SConscript(self.fs, *files, **subst_kw)
File â/home/gerard-giga/.platformio/packages/tool-scons/scons-local-4.8.1/SCons/Script/SConscript.pyâ, line 280: exec(compile(scriptdata, scriptname, âexecâ), call_stack[-1].globals) File "/home/gerard-giga/Software-hardware/Software/BMS/DIY_High_Voltage_Shunt(PPrasse)/diyBMS_CurrentVoltage_ADS1115-main/code/buildscript_versioning.py", line 77: )
hi Andrew,
did you find a solution yet?
PS,
how many cells do you use?
Leodien.
Hello,
It shows you an error on line 77 of the buildscript_versioning.py file
Hello,
With platformio you cannot record the chip. I use the AVRDUDESS program to save the .hex file generated by platformio.
I have not been able to get it to work as I do not have enough knowledge to code and upload the firmware, etc⊠The problems that Iâm reading you guys are having are things that I wouldnât even know are problems. This is really way over my head and would need to do a lot of research and trial and error, unless I had someone show me how to do it or had a really good write up on how to do the process. To add, I havenât had much time to play with it. I also need other little tid bits⊠and also need to get my DIY BMS and DIY balance boards finalized and all of them programed and so onâŠ
Iâll be running 36S LFP cells, down the road I may be changing my inverter setup and will be going up to 108S LFP cells.
Best, Andrew
Ruben, Perhaps next weekend Iâll pull up the sleeves and dust off the boards and give it another go. I appreciate any help you all are giving.
Thank You, Andrew
Hi, Iâm using Patrickâs latest design, but with a modified PCB. The modification consists of removing some connectors and reducing the voltage of the voltage divider. In the potentiometer adjustment, to zero the amperage measurement, Iâve had problems to adjust it to zero. Iâve had to add resistors to the potentiometer in order to reduce its adjustment range. Making it easier to adjust to zero, but there is a small instability of ± 0.1-0.2A, I think itâs due to the instability of the power input. Iâm working on a new design adding a DC regulator to Patrickâs design, just like Stuartâs design, in his current monitor.
Hello Rubén?
Hi Ruben?
I have a few questions:
Regarding Patrickâs software:
Can you send a hex file of the current monitor?
Regarding Stuartâs software:
Which line of which module did you add the V_bus divider to?
Did you also apply the divider to the Power readout of the INA229:
Thanks in advance and kind regards
Leodien.
Leodien.
Hi Rubén,
It would be nice if you could also place your modified version of the current monitor software on Github.
I have now found your modifications regarding the espcontroller.
I think it is adjustable via the web interface.
Greetings Leodien.
Hello,
This is the hex for Patrickâs current monitor
diyBMS_CurrentVoltage_ADS1115_ATtiny1614.hex (36.8 KB)
The github repository is unfinished and untested.
Thanks!