Zweiter Frühling für ION-Antrieb --- Sparta, Batavus, Koga ...

Diskutiere Zweiter Frühling für ION-Antrieb --- Sparta, Batavus, Koga ... im Nabenmotoren Forum im Bereich Fertig-Pedelecs; I do think so, but I am not 100% sure. I do not have a CU2 setup ready for testing, but maybe VoidSpark can recall if he tested the round CU2...
  • Zweiter Frühling für ION-Antrieb --- Sparta, Batavus, Koga ... Beitrag #1.021
Mike747

Mike747

Dabei seit
11.03.2021
Beiträge
340
Reaktionspunkte
65
Do you tested old round displays?
I do think so, but I am not 100% sure. I do not have a CU2 setup ready for testing, but maybe VoidSpark can recall if he tested the round CU2 displays also.
 
  • Zweiter Frühling für ION-Antrieb --- Sparta, Batavus, Koga ... Beitrag #1.022
V

void-spark

Dabei seit
08.09.2021
Beiträge
336
Reaktionspunkte
168
I might have used a round display a long time ago, but it certainly hasn't been tested in forever :) So far it seemed to work pretty much the same as the square ones, but I guess there might be some difference
 
  • Zweiter Frühling für ION-Antrieb --- Sparta, Batavus, Koga ... Beitrag #1.023
D

dvjcodec

Dabei seit
04.05.2023
Beiträge
33
Reaktionspunkte
17
Damn, nice display's collection :) In Poland peoples charge lot of monney per one piece :(

PCB recieved
pcb.jpg
 
Zuletzt bearbeitet:
  • Zweiter Frühling für ION-Antrieb --- Sparta, Batavus, Koga ... Beitrag #1.024
S

szupek

Dabei seit
17.06.2022
Beiträge
15
Reaktionspunkte
1
Ort
rzeszów/PL
Details E-Antrieb
batavus
This was quite fast! Have you managed to test it already? Willing to sell one or two? :)
 
  • Zweiter Frühling für ION-Antrieb --- Sparta, Batavus, Koga ... Beitrag #1.025
D

dvjcodec

Dabei seit
04.05.2023
Beiträge
33
Reaktionspunkte
17
Not yet, but I hope Sunday solder components. Yes, I can send to U two pieces. Catch me on FB -> Krzysztof Dymianiuk
 
  • Zweiter Frühling für ION-Antrieb --- Sparta, Batavus, Koga ... Beitrag #1.026
V

void-spark

Dabei seit
08.09.2021
Beiträge
336
Reaktionspunkte
168
Works fine on original battery.
on orig batt bow bus 24v
on esp32 bow same 24v
Vcc 5V on orig and 5v on esp32
Used latest firmware version.
Anhang anzeigen 500288
Well, on my desk test setup (with fake motor), it currently runs fine with the one round display I have left that still works.. :)
There are differences, it's esp32c3, fake motor, and currently resistors and voltage are for 32-42 volt range. But none of that should really have much effect.
If it really is software causing this, you can try sending a log (ideally, a log of it working with the original battery, and a log of it failing with the esp32).
 
  • Zweiter Frühling für ION-Antrieb --- Sparta, Batavus, Koga ... Beitrag #1.027
V

void-spark

Dabei seit
08.09.2021
Beiträge
336
Reaktionspunkte
168
Installed openlog as a 'permanent' addition to the breadboard on my bicycle too, so I should be able to capture a log of it stopping to respond after sleeping. HAve a log of today, but the issue didn't occur ofcourse :) Did have the display not giving anything for a bit after one time parking and removing the display though, so there might be some interesting bits in there :) Mind, these logs are huge :) (well, relatively, 4mb for today, but that's a lot to dig through. I need to add something to look for or at least graph trip/total time/km and so :).
 
  • Zweiter Frühling für ION-Antrieb --- Sparta, Batavus, Koga ... Beitrag #1.028
D

dvjcodec

Dabei seit
04.05.2023
Beiträge
33
Reaktionspunkte
17
Finaly done,
now I have to learn more how to run it :)

1685046517450.jpg

1685046517461.jpg

1685046517472.jpg
 
  • Zweiter Frühling für ION-Antrieb --- Sparta, Batavus, Koga ... Beitrag #1.030
D

dvjcodec

Dabei seit
04.05.2023
Beiträge
33
Reaktionspunkte
17
My test-stuff
I try to compile firmware under visual studio, but now have error missing button.h

fatal error: button.h: No such file or directory
18 | #include "button.h"
| ^~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.

Latest, precompiled firmware downloaded from this topic (may 2022), uploaded to ESP32 via web, follow instruction, tested under web esptool-js.

Motor board connected to ESP32, so display connected too. Display ON, I can go to menu, try to start calibration (from menu or pressing BOOT on ESP), but nothing happened :( Trip on display is still 0.00, and after few seconds display flash Batavus splash screen and no londer menu available.

What I doing wrong?

test.jpg
 
  • Zweiter Frühling für ION-Antrieb --- Sparta, Batavus, Koga ... Beitrag #1.031
Mike747

Mike747

Dabei seit
11.03.2021
Beiträge
340
Reaktionspunkte
65
The board looks great! well done (y)
Motor board connected to ESP32, so display connected too. Display ON, I can go to menu, try to start calibration (from menu or pressing BOOT on ESP), but nothing happened :( Trip on display is still 0.00, and after few seconds display flash Batavus splash screen and no londer menu available.
The toprun motor (probably) only supports 9600 baud, CU3 display can do 9600 and 19200. Do you use 19200 or 9600 baud?

Zweiter Frühling für ION-Antrieb --- Sparta, Batavus, Koga ...
CU3 will start up with power and bow connected, but without communication or when you stop pushing the buttons, it will go in standby very quick.
 
  • Zweiter Frühling für ION-Antrieb --- Sparta, Batavus, Koga ... Beitrag #1.032
V

void-spark

Dabei seit
08.09.2021
Beiträge
336
Reaktionspunkte
168
My test-stuff
I try to compile firmware under visual studio, but now have error missing button.h

fatal error: button.h: No such file or directory
18 | #include "button.h"
| ^~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.

Latest, precompiled firmware downloaded from this topic (may 2022), uploaded to ESP32 via web, follow instruction, tested under web esptool-js.

Motor board connected to ESP32, so display connected too. Display ON, I can go to menu, try to start calibration (from menu or pressing BOOT on ESP), but nothing happened :( Trip on display is still 0.00, and after few seconds display flash Batavus splash screen and no londer menu available.

What I doing wrong?

Anhang anzeigen 502062

Build locally/missing button.h:
There are some git submodules, so make sure to use git and use the appropriate options to get those, e.g.: Using submodules in Git - Tutorial

All my automated builds on github are expired, so I started a new one, get a binary from: CI · void-spark/[email protected]
You will need to choose one that matches your setup, so at least CU3, firmware-esp32-cu3-std should best match your setup.

Pins look like a match. Are your light/motor power signal active high or active low? Might need to adjust ion1/sdkconfig.defaults.esp32 at master · void-spark/ion1 for that depending on it.

You have a motor connected? I see a motor board, so I guess yes. Without a motor to talk to it will just sit and wait :)

After that you'll have to start watching what happens on the bus, collect serial dumps using the diagram from the first days: Zweiter Frühling für ION-Antrieb --- Sparta, Batavus, Koga ... :) Use a serial to usb adapter that doesn't draw power to light a led from the serial side, as the bus doesn't have the power for that :)
 
  • Zweiter Frühling für ION-Antrieb --- Sparta, Batavus, Koga ... Beitrag #1.033
D

dvjcodec

Dabei seit
04.05.2023
Beiträge
33
Reaktionspunkte
17
I look to firmware, but I can't find any line, where I can choose matched setup for this board :/
Where is setup line?
Can U precompile firmware and put all nececery files to upload it via web-tool?
 
  • Zweiter Frühling für ION-Antrieb --- Sparta, Batavus, Koga ... Beitrag #1.034
V

void-spark

Dabei seit
08.09.2021
Beiträge
336
Reaktionspunkte
168
I look to firmware, but I can't find any line, where I can choose matched setup for this board :/
Where is setup line?
Can U precompile firmware and put all nececery files to upload it via web-tool?

You can click here when you follow the link (CI · void-spark/[email protected]). It should give you a zip with the 3 files you need.
Make sure you're logged into GitHub :)
If it still gives you trouble I can upload the zip

1685112021347.png
 
  • Zweiter Frühling für ION-Antrieb --- Sparta, Batavus, Koga ... Beitrag #1.035
D

dvjcodec

Dabei seit
04.05.2023
Beiträge
33
Reaktionspunkte
17
Got it :) Thank you. Firmware uploaded, tested under web-tool - compilation from 25 may 6am
Test results:
- system power on (29V charger connected to test)
- display show 0% battery
- light output ON (led flash)
- motor output turn on for a moment and off, and pending off all the time
- motor boards connected direct to power, without relay to test
- pressing BOOT, choose Calibration under menu - no data change on display (but I think mileage from motor boards should be visible)
 
Zuletzt bearbeitet:
  • Zweiter Frühling für ION-Antrieb --- Sparta, Batavus, Koga ... Beitrag #1.036
Mike747

Mike747

Dabei seit
11.03.2021
Beiträge
340
Reaktionspunkte
65
  • Zweiter Frühling für ION-Antrieb --- Sparta, Batavus, Koga ... Beitrag #1.037
D

dvjcodec

Dabei seit
04.05.2023
Beiträge
33
Reaktionspunkte
17
I found in config mismatch with battery pin. Current PCB use 34, in sdkconfig I found 35


# CONFIG_ION_CHARGE is not set
CONFIG_ION_CHARGE_PIN=35

Battery show 0% because (probably) connected 29V power supply. Voltage divider onboard 10/100kOhm give 2.63V to ESP32 pin. Tomorrow I will test with 42V power supply.
Now I saw, 42V battery (full 10S) and divider 10/100 give 3.818V to ESP32 pin. It should be recalculated for 10S battery.
 
Zuletzt bearbeitet:
  • Zweiter Frühling für ION-Antrieb --- Sparta, Batavus, Koga ... Beitrag #1.038
V

void-spark

Dabei seit
08.09.2021
Beiträge
336
Reaktionspunkte
168
Got it :) Thank you. Firmware uploaded, tested under web-tool - compilation from 25 may 6am
Test results:
- system power on (29V charger connected to test)
- display show 0% battery
- light output ON (led flash)
- motor output turn on for a moment and off, and pending off all the time
That suggests your circuit is active high (high signal is on), and the software is set to active low,
that's the CONFIG_ION_RELAY_PIN_INVERTED setting :)

- motor boards connected direct to power, without relay to test
- pressing BOOT, choose Calibration under menu - no data change on display (but I think mileage from motor boards should be visible)

I found in config mismatch with battery pin. Current PCB use 34, in sdkconfig I found 35


# CONFIG_ION_CHARGE is not set
CONFIG_ION_CHARGE_PIN=35
That's a different pin, it's a feature for another user, you don't want to change that :) I should change the default from 35 for that one to be clearer though.

ADC is always a bit confusing, because you don't set the pin directly, you set the ADC channel, which is tied to a specific pin.
Right now it's hard-coded to ADC1_CHAN ADC_CHANNEL_7, which is pin 35, so it doesn't match the PCB.
Fortunately ADC1_CHAN ADC_CHANNEL_6 is attached to pin 34, so I'll need to make the ADC channel configurable, that's not too hard.

Battery show 0% because (probably) connected 29V power supply. Voltage divider onboard 10/100kOhm give 2.63V to ESP32 pin. Tomorrow I will test with 42V power supply.
Now I saw, 42V battery (full 10S) and divider 10/100 give 3.818V to ESP32 pin. It should be recalculated for 10S battery.

I can do the changes tomorrow, and add a dvjcodec configuration :)
Let me know if the light and motor pin need to be active high or active low though :)
 
  • Zweiter Frühling für ION-Antrieb --- Sparta, Batavus, Koga ... Beitrag #1.039
V

void-spark

Dabei seit
08.09.2021
Beiträge
336
Reaktionspunkte
168
Looking at the schema, I think those mosfets allow current to pass on a high input, so it would have to become:
CONFIG_ION_LIGHT_PIN_INVERTED=n
CONFIG_ION_RELAY_PIN_INVERTED=n
:)
 
Thema:

Zweiter Frühling für ION-Antrieb --- Sparta, Batavus, Koga ...

Zweiter Frühling für ION-Antrieb --- Sparta, Batavus, Koga ... - Ähnliche Themen

ION Antrieb codieren: Wer kann ION Systeme codieren? Hallo zusammen! Sparta, Koga, Batavus und andere Untermarken der Accell Gruppe haben zur Jahrtausendwende ION...
Sparta Ion, Hercules emove, Batavus, Koga auf Li-Ion Akku umbauen reparieren.: Ich bin Besitzer zweiter solcher Bikes und habe diese nach einem Akkudefekt erfolgreich umgebaut. Gleich vorweg, es ist zeitaufwendig, man sollte...
Sparta M7e ion Antrieb von 2016: Hallo Leute, kurz zu mir: Ich bin seinerzeit mit einem Bausatz aus China angefangen (mit dem ich mich entsetzlich auf die Nase gelegt habe), dann...
verkaufe (Teile) Koga E-Runner, Rh 47cm, ION-Antrieb, wie neu, super ausgestattet: Schnäppchen: Koga E-Runner, nur EUR 2.050,-/Neupreis EUR 3.000,- muß wg OP leider verkaufen, Fahrrad kaum genutzt, Heck-Motor ION-Antrieb (33 Nm)...
Sparta/Koga oder eher Villiger/BionX?: Tagchen Sorry, wenn das Thema vielleicht shcon zu Tode gekaut worden ist (bin neu hier), aber ich stehe auch kurz vor dem Kauf eines Pedelecs...
Oben