stancecoke
1 MW
- Joined
- Aug 2, 2017
- Messages
- 2,088
Xnyle said:Not sure where it was, stancecoke reported it to me.
https://endless-sphere.com/forums/viewtopic.php?p=1419585#p1419585
regards
stancecoke
Xnyle said:Not sure where it was, stancecoke reported it to me.
Aeron said:I have quite the same question but the other way around : I have a 36/48V version, but I want to run it at 52V.
The FETs and caps were changed to their 80V counterparts to accomodate higher voltage (and I am thinking about changing the LM317 regulator*), but is there any hardware modification to make this controller work with 14S battery ? (voltage limits or other)
*edit : original LM317T replaced by TL783CKCSE3.
bushido said:+1
i would also love to have higher voltage on a small 6FET/9FET controller. because i will use it with high geared hub motors, i would max out @ ~45km/h. i dont need more power (A), just higher voltage.
i just want to know if its an "easy" mod. if i have to replace one third of the components its not worth it
Aeron said:I don't have a good understanding of the electronics behind LVC so I thought it would be a good idea to ask first.
If I were using a lower voltage, I guess I'd still be in the mesurement range of the LVC circuit.
But when overvolting, isn't there a risk of falling out of that range and saturate the chip ?
The answer I'm looking for is whether or not the LVC circuit needs any modification (in addition to a setting change in the firmware), like change a resistor value, to shift this range (hence adjusting to a slightly higher battery voltage). Wouldn't it be "too easy" if it were already compatible with higher voltages ? Maybe it is already good enough to set LVC to 42-44V, but I thought I'd check.
bushido said:+1
i would also love to have higher voltage on a small 6FET/9FET controller. because i will use it with high geared hub motors, i would max out @ ~45km/h. i dont need more power (A), just higher voltage.
i just want to know if its an "easy" mod. if i have to replace one third of the components its not worth it
If you are interested, I'll let you know how the 6fet I have behaves @52V (stock amps, I'm like you and don't want to up the amps for now).
kdog said:Hi KT gurus
Before I destroy another kt controllerI thought I'd ask first this time!!
The output on the controller that is at battery voltage, I'm assuming it is for lights. Is this regulated at all? Am I safe to chuck in any old led (rated for 6-60v) front and rear combo or do I have to worry about current draw etc
Thanks in advance
Casainho implemented the function in the code, but I never set it active. I don't know, if Xnyle has done it. There's no hardware pin for activating, it's automatically activated, if you hold the throttle at a constant value for a certain period of time. It's deactivated by breaking or by turning the throttle.mercamg said:• Cruise control appears to be supported, but it is not clear how it is activated (I cannot find a pin assignment in the code)
mercamg said:• Phase current B – this is measured by the ACS712. It is not clear whether the absolute value of this is important. Does it need to be calibrated or is the firmware just looking at relative values. There is a comment in the code to the effect that for FOC ‘this needs to be regulated to zero’ in which case the absolute value is unimportant. Since the zero current output of the ACS712 sits at VCC/2 I would have expected to find an ADC_value -511 or 512 but I cannot.
mercamg said:would you expect a sine controller to get hotter than a square wave controller for the same load conditions?
Determine OPT area
Due to its file extension (or lack thereof), "option_bytes_pwm_n_channels_enabled.bin" is considered as RAW BINARY format!
15 bytes at 0x4800... Tries exceeded
Perhaps casainho or Xnyle can give you a hint, I don't use linux.flangefrog said:Note that I'm using Linux. I don't currently have any Windows PCs around.
flangefrog said:BTW I made a simple web app yesterday to interface to stock Kunteng controllers from any mobile/tablet/pc via a HM-10 Bluetooth LE module. In theory it should work with almost any controller/firmware with a few changes.
function connect() {
exponentialBackoff(8 /* max retries */ , 1 /* seconds delay */ ,
function toTry() {
time('Connecting to Bluetooth Device... ');
document.getElementById("connectBtn").textContent = "bluetooth_searching";
return bluetoothDevice.gatt.connect();
},
function success(server) {
time('Bluetooth Device connected');
document.getElementById("connectBtn").textContent = "bluetooth_connected";
onConnected(server);
},
function fail() {
time('Failed to reconnect.');
document.getElementById("connectBtn").textContent = "bluetooth";
});
}
Make sure you have permissions to write to device, maybe you need to use sudo??flangefrog said:I was trying to use this firmware but I get an error when using stm8flash as per this link: https://opensourceebikefirmware.bitbucket.io/INSTALL_FIRMWARE--Tools_build_and_flash_firmware--How_to_erase_and_unlock_protected_read_memory.html
Determine OPT area
Due to its file extension (or lack thereof), "option_bytes_pwm_n_channels_enabled.bin" is considered as RAW BINARY format!
15 bytes at 0x4800... Tries exceeded
Any ideas? I confirmed I'm using the correct connections, tried on a couple of different controllers, tried external power etc. At this point I'm thinking it's most likely an issue with the stlink or stm8flash. Note that I'm using Linux. I don't currently have any Windows PCs around.
No local web servers needed. I will simply use a JavaScript Service Worker. It only requires a few lines of code for a simple offline implementation. The other way it can be done is with the Application Cache but that's now deprecated.stancecoke said:nice work, but can you explain some details. You have to run a local web server on your device, if you want to use it offline? How do you pair the HM10 with your web-application?flangefrog said:BTW I made a simple web app yesterday to interface to stock Kunteng controllers from any mobile/tablet/pc via a HM-10 Bluetooth LE module. In theory it should work with almost any controller/firmware with a few changes.
Do you plan to publish the source?
you can use a high side switch on a GPIO Pin of the HM-10 to switch on/off the controller by the app, I've done this for a Lishui controller:
https://www.pedelecforum.de/forum/index.php?threads/nachbau-lishui-bluetooth-modul.45072/
Permissions should be fine, I've added the udev rule and also tried using sudo.casainho said:Make sure you have permissions to write to device, maybe you need to use sudo??flangefrog said:I was trying to use this firmware but I get an error when using stm8flash
Another alternative to stm8flash is OpenOCD. I use OpenOCD because it alsoet me debug, which needed for development.
flangefrog said:Currently to connect you just click the Bluetooth icon on the header (ux could be better). You should see a Bluetooth device chooser dialog.
The Windows implementation is available in Chrome 70.0.3526.0 and requires Windows 10 version 1703 (Creators Update).
Android: Requires Android 6.0 Marshmallow or later.
WebBLE is an app for iOS that supports the GATT Communication API
flangefrog said:I'll add offline support when I have some time.
stancecoke said:Sorry, but both of the main developers don't like any display. (Xnyle prefers his BlueOsec App for the android cell phone, I prefer to have no device at my handlebar at all :wink: )
stancecoke said:Of course everbody is invited to implement the stock Bafang-protocol to our firmware. I think it could be done by copy and paste from the "Forumscontroller" code. As long as there is no possibility to flash the sw102 without destroying the housing, a custom firmware for the display is no alternative...
qwerkus said:how do you check batt level and how do you control power / temperature to make sure it doesn't overheat ?
FedeleC said:I want to investigate on my thought that in some situations (hilly journeys), the power saved by auto shift (letting the driver legs/motor work with the most adequate gear) is more than the power consumption of this sub-system.
So, I rerouted/created some input/output of my KT36/48SVPR-HRD01:
- Rearranged some wires to power the Sempu T2 @ 36 V
- Draw current directly from Vbat +36V pad to a DC/DC Step Down Converter to 6,8V, to power the servo. I reached to connect and enclose it inside the controller box
- Attached Servo signal output to a pad connected (via a 2,2K resistor) to PIN 43 of STM8S: I want try to use it as a PWM output of Timer 3, not used yet by OSEC, @ about 50 Hz. I've to check if i'll need to short circuit the 2,2 K resistor, I hope not :wink:
- Attached a passive buzzer output to a pad connected (via 2,2 K resistor, again) to PIN 45: it would be sooo nice to notice the driver of an imminent gear shift...This PIN has to be reconfigured with the STM8 S Option byte to work as a Beep source.
After finishing optimizing the OSEC to my motor (it worked at first start!), next days I'll work on FW to create the automatic gear shift function: altough I'm not a programmer I have a past experience in motor controllers...so let's try!![]()