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; If debugging is only needed to attach an openlog, could we connect 2 extra pins to the "send" and "recieve" bus of the circuit? Is only the TX...
M

Mike747

Dabei seit
11.03.2021
Beiträge
203
Punkte Reaktionen
33
If debugging is only needed to attach an openlog, could we connect 2 extra pins to the "send" and "recieve" bus of the circuit?

Is only the TX capable for debugging? Or could it be an other pin aswel?

measuring battery-level idea:
How to measure battery level with ESP32 microcontroller
 
Zuletzt bearbeitet:
S

szupek

Dabei seit
17.06.2022
Beiträge
11
Punkte Reaktionen
0
Ort
rzeszów/PL
Details E-Antrieb
batavus
range the ESP32 can measure well (0.0 - 1.0v, maybe a bit smaller as the edges aren't measured so well if I recall correctly).
0.14 - 2.5V should have more less linear characteristic if I get it well.

BTW. I received ESP32 wroom (the bigger one :) ) what is the package that I can flash it with? @void-spark do you share project or compiled version?
 
V

void-spark

Dabei seit
08.09.2021
Beiträge
218
Punkte Reaktionen
89
BTW. I received ESP32 wroom (the bigger one :) ) what is the package that I can flash it with? @void-spark do you share project or compiled version?
If you know how to use the Espressif IDF you can find the code here: GitHub - void-spark/ion1: ESP32 firmware to drive a Sparta Ion motor
Otherwise there is a binary attached if you look a few posts back, it's built to support CU3 display (the big rectangular one): Zweiter Frühling für ION-Antrieb --- Sparta, Batavus, Koga ...
 
U

Uli2412

Dabei seit
02.04.2022
Beiträge
50
Punkte Reaktionen
5
It would be very useful to have a recording of the data on a fully working 5 speed sparta ion :)
It could also help to have a recording of the data of just the display unit though :)
Are you able to hook it up to a PC? (only need rx from PC connected to the voltage divider that is also connected to rx on esp32, the PC serial adapter must not have a led on RX though, because it draws too much power :) ).
Start recording before you power it on (remember, 9600 baud right now), and slowly cycle through each assist level on the display.
That will give me the display commands for the higher assist levels, and maybe some extra commands/data it sends to the motor or BMS when it powers on.
@void-spark
Made a protocol with CU3, XHP and ESP32 with your last binary. I drove about 500m with all assist levels. I also tried 2 times the throttle function (@~250m and ~300m). Let me know whether you can extract information from this log and if you need further tests.
 

Anhänge

  • output_2022-06-22_17-50-37.zip
    27,8 KB · Aufrufe: 3
V

void-spark

Dabei seit
08.09.2021
Beiträge
218
Punkte Reaktionen
89
@void-spark
Made a protocol with CU3, XHP and ESP32 with your last binary. I drove about 500m with all assist levels. I also tried 2 times the throttle function (@~250m and ~300m). Let me know whether you can extract information from this log and if you need further tests.
Cool!
I attached the parsed log, if anyone is interested :)
Will need to find some time to have a good look at it, but seems to have some new stuff for sure, I see a new command '0x36' between the display and motor at least, one time with 01 as payload, rest with 04. No idea what it does :D
tgt:MT typ:1 src:DP [10-01c1-3601-b0] [3601]
tgt:DP typ:2 src:MT [10-c200-36-5e] [36]

tgt:MT typ:1 src:DP [10-01c1-3604-e3] [3604]
tgt:DP typ:2 src:MT [10-c200-36-5e] [36]

And a new 'get data' return value of item '3f': '0b', also no idea what it means, but that's interesting :)

tgt:MT typ:1 src:DP [10-01c4-0880df003f-68] [0880df003f] - GET DATA 80df003f 00:df(Unknown) 00:3f(Unknown)
tgt:DP typ:2 src:MT [10-c207-080080df00003f0b-4b] [080080df00003f0b] - GET DATA - OK 0080df00003f0b

Also, new values for assist, like we thought they get passed to the motor, which seems happy with it:
tgt:BT typ:1 src:DP [10-21c1-1d06-75] [1d06] - CU3: SET ASSIST 06
tgt:DP typ:2 src:BT [10-c220-1d-7b] [1d] - CU3: SET ASSIST - OK
tgt:MT typ:1 src:BT [10-0121-3406-4d] [3406] - SET ASSIST LEVEL 06
tgt:BT typ:2 src:MT [10-2200-34-49] [34] - SET ASSIST LEVEL - OK

tgt:BT typ:1 src:DP [10-21c1-1d07-e4] [1d07] - CU3: SET ASSIST 07
tgt:DP typ:2 src:BT [10-c220-1d-7b] [1d] - CU3: SET ASSIST - OK
tgt:MT typ:1 src:BT [10-0121-3407-dc] [3407] - SET ASSIST LEVEL 07
tgt:BT typ:2 src:MT [10-2200-34-49] [34] - SET ASSIST LEVEL - OK

Nothing that looks related to a throttle though, think we really need a working bike for that :)
 

Anhänge

  • output_2022-06-22_17-50-37.log.txt
    1,2 MB · Aufrufe: 3
M

Mike747

Dabei seit
11.03.2021
Beiträge
203
Punkte Reaktionen
33
Only sort of, TX is noisy on boot, but you could use it as the light out pin, since that's off (relay off) during boot.
But you would need to use a special firmware with light disabled then to do debugging.
And you would need to add a jumper to connect TX either to the debugging interface, or to the light (unless you like blinking lights :) )
I moved the pins around (and pretty much everything else :)). 8+9 for bow-bus, RX does relay and TX for lights. I added a jumper (sorry :p ) for debugging via TX in order to free up 2 (adc) for a battery-meter later. I figure adding the light is most simple in software and no more debugging is needed when we reach the point of building our own batteries;).
It seems battery-voltage is usually measured by (another) voltage-divider; only 2 resistors more. (Might also be connected "after" the relay to save a bit of power-loss in the divider in standby.)

1655917078005.png
 

Anhänge

  • 1655916365394.png
    1655916365394.png
    86 KB · Aufrufe: 5
V

void-spark

Dabei seit
08.09.2021
Beiträge
218
Punkte Reaktionen
89
Looks interesting, now to build a prototype ;) do you have the schema too? :)
 
M

Mike747

Dabei seit
11.03.2021
Beiträge
203
Punkte Reaktionen
33
now to build a prototype ;)
No way back now :). Time to put the C3 to work.
Some thoughts:
*Can we add something against sparking (in relay)? Does it help to add/bridge a capacitor or resistor?
*Would it help (or not?) to ad capacitors to stabilize the circuit? I'am thinking for the ESP32 (you use one yourself?) and 3.3V buck-convertor.
*Do we have to implement some "safety-features"? Like short-circuit-protection or false +/- on the light output?

Any other thoughts on necessary additions or improvements?
 
Hochsitzcola

Hochsitzcola

Themenstarter
Dabei seit
04.09.2009
Beiträge
4.286
Punkte Reaktionen
4.179
Details E-Antrieb
Gazelle mit BionX IGH3 + OpenSource Firmware
M

Mike747

Dabei seit
11.03.2021
Beiträge
203
Punkte Reaktionen
33
Would be easy with the MOSFET solution.
point taken ;) . No sparking with that solution, or only few extra components needed?

1656013422251.png

I have to read the topic, but could we use the relais as S1 then? I think it switches the "-". In our case it should switch "+" :mad: .
 
Hochsitzcola

Hochsitzcola

Themenstarter
Dabei seit
04.09.2009
Beiträge
4.286
Punkte Reaktionen
4.179
Details E-Antrieb
Gazelle mit BionX IGH3 + OpenSource Firmware
I think it switches the "-". In our case it should switch "+"
You are right, the trick is to increase the voltage on the gate of the MOSFET slowly, then the resistance of the drain-source path decreases slowly. This will charge the capacitors in the motors slowly.

So you just have to add a little capacitor to the output of the VOM1271. Maybe the gate capacitance is sufficient already.
Perhaps I can do some tests at the weekend to find a suitable value for that capacitor.

Regards
hochsitzcola
 
Zuletzt bearbeitet:
M

Mike747

Dabei seit
11.03.2021
Beiträge
203
Punkte Reaktionen
33
So you just have to add a little capacitor to the output of the VOM1271. Maybe the gate capacitance is sufficient already.
Perhaps I can do some tests at the weekend to find a suitable value for that capacitor.
That would be great (y). I did not get further than this:
1656055167014.png
 
S

szupek

Dabei seit
17.06.2022
Beiträge
11
Punkte Reaktionen
0
Ort
rzeszów/PL
Details E-Antrieb
batavus
Hi,
Yesterday I bought C3 in I think quite a decent price of 4$ at banggood. A few days ago it was more expensive.
here
 
Zuletzt bearbeitet:
V

void-spark

Dabei seit
08.09.2021
Beiträge
218
Punkte Reaktionen
89
What has to be changed for the round one support? :)
Been playing around with github actions, there should be a build for the 'regular' (big) esp32 and the 'round' (CU2) display here now:
Build for different displays · void-spark/[email protected]
You want the zip "firmware-esp32-cu2"

Note: this a untested build :)

There are also esp32c3 builds there, but they are currently set up for my/the old C3 pinout.
I will add a build with the new PCB pinout later :)
 
V

void-spark

Dabei seit
08.09.2021
Beiträge
218
Punkte Reaktionen
89
Note that github actions mean the project now builds itself. You can fork it in github, make some changes, and you'll have a new firmware :)
 
H

herman74

Dabei seit
28.04.2022
Beiträge
19
Punkte Reaktionen
3
Ort
Utrecht
The builds for the regular' (big) esp32 for cu2 is it with auto in learning the display?

The builds for the cu3 got it new functions? Or the same as in the forum
 
Thema:

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

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

Sparta ION Akku defekt?: Hallo zusammen, ich bin neu hier, vielen Dank für die Aufnahme...und ich komme gleich mit einem Problem/Frage. Meine Frau fährt (wenig, da sie...
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 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)...
erledigt E-Bike SPARTA Blackline ION mit Garantie: BeschreibungHalle verkaufe hier ein E-Bike von Sparta, Model Black Line kompl. mit Ladegerät. Das E-Bike war ein Ausstellungsstück und hat das...
Oben