Git Product home page Git Product logo

bigtreetech / bigtreetech-s42b-v1.0 Goto Github PK

View Code? Open in Web Editor NEW
108.0 20.0 53.0 19.95 MB

The closed-loop drive is to feedback the rotation angle of the stepping motor to the control panel, compare the distance that needs to be rotated with the distance of the actual rotation, calculate the error value, and then compensate, so as to prevent the problem of multi-step and lost step. The closed-loop drive can completely overcome the lost step of the open-loop stepping motor, and can also significantly improve the performance of the motor at high speed

C 98.40% Objective-C 0.95% Assembly 0.61% Python 0.04%

bigtreetech-s42b-v1.0's Introduction

BIGTREETECH-S42B-V1.0

The closed-loop drive is to feedback the rotation angle of the stepping motor to the control panel, compare the distance that needs to be rotated with the distance of the actual rotation, calculate the error value, and then compensate, so as to prevent the problem of multi-step and lost step. The closed-loop drive can completely overcome the lost step of the open-loop stepping motor, and can also significantly improve the performance of the motor at high speed

bigtreetech-s42b-v1.0's People

Contributors

bigtreetech avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bigtreetech-s42b-v1.0's Issues

How to Update firmware

How Do you connect the S42B v1.1 board to USB?
it has no USB ports

IF i need to use another device.. what pins does it use?

Configuration for 0.9 degree step angle steppers

I have steppers with a 0.9 degree step angle instead of the 1.8 degree step angle the S42B seems configured for. On the MisfitTech Nanosteppers, that these are based on, support for 0.9 degree steppers was added a long time ago and I am wondering if the manual for the S42B just leaves out how to configure for 0.9 degree steppers.

OLED Screen doesn't stay on

Is there a reason the OLED screen would flicker and turn off completely when the stepper motor is enabled? The screen never seems to stay on. It does stay on when the motor is not enabled, but not always.

Reverse engineer and firmware rewrite

I must admit I was very sad when I received my S42Bs and they didn't work well (display issues, skewed prints, steps missing, ...). At the time fixes for said problems were not available on this github page (and even today some are not really sure to work).

The code is not well documented, it is messy and apparently it doesn't work too well. Would anyone be interested to cooperate/make/use fresh code and decent open source firmware?

I have experience with STM but I am not ready to commit to such project if there is no interest in making such project happen if there is not enough interest.

Steppers misbehaving workaround and steps per mm wrong

When I recieived the 2 stepper motors, one did not move. I followed the fixes in teaching techs video by changing 2 lines in config_adv.h

#define MINIMUM_STEPPER_PULSE 3
#define MAXIMUM_STEPPER_RATE 150000

After implementing this, both steppers worked.

However, both have radically altered the steps per mm setting. Before the changes, they were set to 1280 with 16 microstepps. After, the movement was way off. By some experimentation, I was able to get it to print properly with y 204.95 and x 207.03 and 32 microsteps on both.

Reading config_adv.h, I will try
#define MINIMUM_STEPPER_PULSE 1
#define MAXIMUM_STEPPER_RATE 500000
to match the driver.

RTC too fast

Hi,
I tried to implement RTC (LSI) but I am always getting too fast speed. So the result of a second=LL_RTC_TIME_GetSecond(RTC); is always too fast - around 20% which is out of any specs.
I tried:

  • using existing SystemClock_Config
  • SystemClock_Config from CubeMX in LL or HAL mode LL version is pretty much the same - just different freq
  • played around with different freq values (default in firmware: LL_Init1msTick(48000000); LL_SetSystemCoreClock(48000000); )

It does not matter how much I change anything - speed is always the same.

my MX_RTC_Init btw:

void MX_RTC_Init(void)
{

  /* USER CODE BEGIN RTC_Init 0 */

  /* USER CODE END RTC_Init 0 */

  LL_RTC_InitTypeDef RTC_InitStruct = {0};

  /* Peripheral clock enable */
  LL_RCC_EnableRTC();

  /* USER CODE BEGIN RTC_Init 1 */

  /* USER CODE END RTC_Init 1 */
  /** Initialize RTC and set the Time and Date
  */
  RTC_InitStruct.HourFormat = LL_RTC_HOURFORMAT_24HOUR;
  RTC_InitStruct.AsynchPrescaler = 127;
  RTC_InitStruct.SynchPrescaler = 255;
  LL_RTC_Init(RTC, &RTC_InitStruct);
  LL_RTC_SetAsynchPrescaler(RTC, 127);
  LL_RTC_SetSynchPrescaler(RTC, 255);
  /* USER CODE BEGIN RTC_Init 2 */
  LL_RTC_DisableWriteProtection(RTC);
  LL_RTC_TIME_SetHour(RTC,__LL_RTC_CONVERT_BIN2BCD (18));
    LL_RTC_TIME_SetMinute(RTC,__LL_RTC_CONVERT_BIN2BCD(30));
    LL_RTC_TIME_SetSecond(RTC,__LL_RTC_CONVERT_BIN2BCD (0));
  LL_RTC_EnableWriteProtection(RTC);
  /* USER CODE END RTC_Init 2 */
}

Thank you!

CLOSE LOOP MODE FAIL

Good night,

I just installed the module on my own stepper as DIY.

I have changed in configuration from original UART 2209 to A5984, also removed UARt jumper and installed all harware.

I move dip switch pos 4 to ON and complete properly the calibration process, then move it back to OFF.

If I try to extrude material with DIP Swich pos 3 OFF then it moves fine in both directions (only motor not coupled to anything for the moment) however If I move jumper 3 to ON then I get direclty red light on, not movement at all.

What could be the issue?

I have set dip switch 1 yo ON and 2 to OFF.

Thanks in advance

Stepper drive in closed loop misbehaves...

Bought diy kits and installed on Geeetech a10 (printer similar to ender3 ). Calibrated and installed according TEaching tech video. Drivers in closed loop mode misbehave.. they count steps as red led lights up ( shows error) but driver doesnt move motors or moves periodically then once again dont move.... also tried changing stepping pulse width, and reflashed most current firmware from this repository. Uppon further inspection drivers works well in open loop but doesnt performs movement correctly in closed loop.
What could be the problem??

S42B-V2.0 firmware rebuild

Hi I tried to rebuild firmware for S42B-V2.0 version. It works, however, built firmware has only 35kB while pre-build firmware 2.0 has 54kB. This is ok, but the OLED display refreshes very slowly when flashed rebuilt firmware. If I flash pre-built, refresh speed is normal. Moreover, platformio settings for V2.0 has actually settings for V1.2.

Any ideas how to rebuild fast V2.0 firmware?

S42B_v2.0 won't enter calibration mode

Hey I'm writing this be cause the lack of clear instructions on the BTT github site.
My set up:
BTT SKRv1.3
Stepper 17HS4023
S42B_V2.0 board
This is what I've done so far:
I installed the hardware S42B and the oled display on my x axis stepper motor. After that, I remove my TMC2208 driver from the skr 1.3 and installed the cable from the S42B and put it in place (in UART mode). On the S42B I flipped all the switches to off but switch #4 which remained on according to the pdf from BTT to enter calibration mode.
On marlin, in the configuration.h, I comment out //#define X_DRIVER_TYPE TMC2208 in order to make the stepper driver to default "A4988". In configuration_adv.h I enabled "#define MINIMUM_STEPPER_PULSE 3" and also enabled "#define MAXIMUM_STEPPER_RATE 150000" changing the values from 250000 to 150000. I compiled everything on visual studio code and uploaded the sketch to the skr1.3. I turned on the printer and everything seemed working just right but when I try to calibrate the stepper using the oled display of the S42B nothing happens. I mean, the s42b turns on but no blinking lights or motor movement at all. From the lcd display of the printer I was able to make the steppers move no problem. The only problem is that the S42B won't enter calibration mode. I'm I missing some step to set up closed loop control right? Any help would be pretty much appreciated thanks

Step problem

Sometimes the number of steps is more than the set value.
Why can this be?
This occurs when the printer has not been used for a long time but has been turned on (approximately 30 minutes).

Steppers running too hot

Installed the driver on X and Y ( on SKR 14 Turbo) Z and E use TMC2209 and are much cooler than before specially Z (E is pancake stepper that comes with BB direct drive extruder, all on Ender 3 pro)
but X and Y are too hot, over 60-70 deg (approx) once I burned myself on X axis drive
stepper in standard creality motor, before was hot (on standard ender 3 MB, but now it HOOOOOT, tried to reduce the current to 600mA same, no changes,

motor is 1.2 A rated, should I set the current to 2400 mA, will that lower the temp (makes no sense that higher current will lower it)
seriously thinking to remove the drivers and go with TMC2209 for X and Y too, this is just a crap!
and yes, I do not see any improvements to the prints

Motor will not move!

I installed a S42B on the X-axis of one of my printers which has a SKR 1.4 turbo board and Marlin-2.0.5_7_7_20 installed and was working fine on a 2209 driver. Calibrated the S42B OK, commented out the X Driver info in Config.h, removed the references to stalled homing for the X-axis, changed the Minimum stepper pulse to 3 and Maximum stepper rate to 150000, all in Config.adv.h . Motor has faint vibration which changes slightly when I give a 'move X' command but the motor shaft does not turn. The only response to a move command is that the error value changes slightly and then goes back to its previous value (usually 0).
I have tried 2 different motors but neither work. Any ideas?

Example how to read angle?

Hi,
I already asked for a beginner example
#48
but in the meantime I dig into Marlin and it is a crazy overhead but also quite simple to use anyway.

But I am still searching for an example how to read the current target angle (the "Deg" value which is shown on display) in Marlin?
Thank you!

Build Failing with new version of ST STM32 (11.0.0)

PLATFORM: ST STM32 (11.0.0) > STM32F030C8 (8k RAM. 64k Flash)
HARDWARE: STM32F030C8T6 48MHz, 8KB RAM, 64KB Flash
DEBUG: Current (blackmagic) External (blackmagic, cmsis-dap, jlink, stlink)
PACKAGES:

  • framework-stm32cubef0 1.11.1
  • tool-ldscripts-ststm32 0.1.0
  • toolchain-gccarmnoneeabi 1.70201.0 (7.2.1)
    AssertionError: Missing MCU or Product Line field:
    File "C:\Users\windsorchris.platformio\penv\lib\site-packages\platformio\builder\main.py", line 170:
    env.SConscript("$BUILD_SCRIPT")
    File "C:\Users\windsorchris.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Script\SConscript.py", line 598:
    return _SConscript(self.fs, *files, **subst_kw)
    File "C:\Users\windsorchris.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Script\SConscript.py", line 287:
    exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
    File "C:\Users\windsorchris.platformio\platforms\ststm32\builder\main.py", line 99:
    target_elf = env.BuildProgram()
    File "C:\Users\windsorchris.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Environment.py", line 219:
    return self.method(*nargs, **kwargs)
    File "C:\Users\windsorchris.platformio\penv\lib\site-packages\platformio\builder\tools\platformio.py", line 61:
    env.ProcessProgramDeps()
    File "C:\Users\windsorchris.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Environment.py", line 219:
    return self.method(*nargs, **kwargs)
    File "C:\Users\windsorchris.platformio\penv\lib\site-packages\platformio\builder\tools\platformio.py", line 127:
    env.BuildFrameworks(env.get("PIOFRAMEWORK"))
    File "C:\Users\windsorchris.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Environment.py", line 219:
    return self.method(*nargs, **kwargs)
    File "C:\Users\windsorchris.platformio\penv\lib\site-packages\platformio\builder\tools\platformio.py", line 342:
    SConscript(env.GetFrameworkScript(f), exports="env")
    File "C:\Users\windsorchris.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Script\SConscript.py", line 661:
    return method(*args, **kw)
    File "C:\Users\windsorchris.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Script\SConscript.py", line 598:
    return _SConscript(self.fs, *files, **subst_kw)
    File "C:\Users\windsorchris.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Script\SConscript.py", line 287:
    exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
    File "C:\Users\windsorchris.platformio\platforms\ststm32\builder\frameworks\stm32cube.py", line 43:
    assert PRODUCT_LINE, "Missing MCU or Product Line field"

How to update the firmware?

Hi people!
I was reading tome topics related but the documentation itself is very minimum.
I'd like to know if there is some kind of tutorial or similar to help me on how to update the S42b.
So far, the only thing I know is the need for an adapter.

not all NEMA17 motors are "magnetically compatible"?

After playing around with 5 different NEMA17 and 3 hybrid stepper DIY boards I figured that not all motors are "magnetically compatible" with the concept.

I did not bother reading out the field values with a hall probe or similar but just compared working setups with non-working ones by using "magnetic view foil".

The difference I observed is a change in sharpness of the N/S boarder (center) as well as the outer shape of the magnetic contour while rotating the shaft for the same airgap (no magnet tilt etc.).
Seems, like the motor casing is magnetic or the permanent magnets from the inside of the motor interfere somehow.

20201005_232431
20201005_232443
20201005_232523

I have no direct proof but after seeing this I just added spacers between the motor shaft and the magent and additional spacers on the mounting screws. This got one of three previoulsy non-working setups working.

Therefore, if the S42B is not working for you maybe just try exchanging the NEMA17.
For me it was a 50:50 chance up to now with smaller motors (e.g 4047) working generally better than large ones.

Could, of course, have various different reasons but I just wanted to share in case someone made a similar observation.

Missing License file and source files.

Hi BTT,

Seems BigTreeTech's major positive selling point is that sells "Open Source Hardware". Giving users freedom to modify, repair and create new applications with BTT hardware. However, this goal is not backed up by the appropriate license or source files (gerber PCB design files, etc) in this repo, see #5 for example.

Please add an appropriate Open-Hardware License (e.g. OSHW) and provide the hardware source files (e.g. gerber, netlists, etc files) to this great project.

Best wishes.

Calibration Runs / Motors Won't Move

I am using the Kit... Should have just bought it already assembled. I would return it and exchange if it weren't shipping from China. (delay).

I have read through the other threads:
1-Changed spacing of board to magnet both ways
2-Changed Marlin:
a- #defineMINIMUM_STEPPER_PULSE 7
b- #defineMAXIMUM_STEPPER_RATE 150000
c- commented out x and y driver designations
3-Stripped everything down to just one motor and a bare SKR V1.4 Turbo at 12v
4-Calibration runs successfully
5-Switch pot 4 on dipswitch to off
6-Motor does not turn in open or closed loop modes
a-Vibrates but does not move
b-Red light comes on with "Err: 035.99"

I'm not sure what else to try. How sensitive is it to the magnet being perfectly center? If it is super sensitive, how do you get it centered perfectly? I have superglue all over my fingers and a big frowny face.

Direction of motor rotation during calibration?

My motor was worked well only in an open-loop mode (DIP 3 is OFF).
After Calibration (when DIP 3 is ON) when the motor shaft was rotated manually, the Err: parameter changed near +/- 1 degree.
I pushed the magnet out of the motor housing as described in issue #19. That not helped.

Closed-loop mode began work, only when I swapped two wires of one motor coil. That changed the direction of motor rotation during the calibration process.
So I think there is a bug in the calibration process which requires a certain direction of motor rotation. First CCW, then CW (View from the shaft, not from the driver board).

Board no longer powers up

I'm afraid I fried my board. I have been very careful to power down before making any connection or switch changes. Now the green LED no longer turns on. Just on the off chance that I can resurrect this thing, Has anyone else saved one of these?

S42B Closed loop stepper inaccuracy

Well I cant be the only person with this problem.
Tried the 1.1 version first then the 2.0 version with exactly the same issue.
SETUP
SKR1.4 turbo
connected using the direct adaptor to the board
current 1600
steps 16
once calibrated (if does a full 360 deg turn both ways) if you send a command to the machine of 10mm it moves only around 7.8mm

Machine steps are accurate for an ender 5 plus

if I disconnect the motor and run it with a 2209 drive I get 10mm, change back I get the 7.8mm

My understanding of calibration is first run you turn on sw1 and sw2 plus sw4

when set up for 16 pulses is dip switch 1 on, 2 off 4096

I have tried every combination possible lol

Who else has had this?

PID adjustment via LCD

Please provide firmware, which allows PID parameter modification via LCD screen. Without the option to adjust PID setting, running closed-loop mode (left cube, activated by DIP switch 3 on) provides much worse print quality than open-loop mode (right cube, activated by DIP switch 3 off).
s42b_text
My printer is Railcore II with direct drive extruder and heavy gantry. The overshoots at the cubes corners are visible. The default PID settings apparently result in too little dynamic of the closed-loop system.

Furthermore, please implement PID parameter identification. I'm thinking of issuing a chirp signal (sine wave with increasing frequency) trajectory to identify the motion system. Then optimize PID setting e.g. via Q-parametrization (https://www.google.com/url?sa=t&source=web&rct=j&url=http://web.mit.edu/6.245/www/images/ch7.pdf&ved=2ahUKEwjo6PPXpJvrAhWF-6QKHZ-tAUUQFjABegQIAhAC&usg=AOvVaw3tUTxwAj_G_qB2R07_86SD). If you need help implementing PID autotune, please let me know.

Also please see https://www.facebook.com/groups/505736576548648/?post_id=1015249378930696&comment_id=1015283328927301 for initial error report.

schematics??? and 0.9deg motor support?

Hi,
on the documentation, it's said we have to cross some motor control lines and not some others... on my motor there is only wire that goes outside... I assumed the wire color were the same as the provide cable... but there is nothing that happens when entering calibration except a bad noise... my motor is a 0.9degree motor, obviously the calibration will fail because a whole rotation won't be performed...

  1. I need the schematics of the board to now how the drivers are connected to the motor control interface
  2. I don't get what the purpose of the switches on the center of the board, again a schematic will greatly help
  3. I will have to reflash the board in order to support my 0.9 motor... I read that there is only a way through the JTAG inteface on P4 connector?

thanks and regards

Error in OLED initialization code

In the file oled.c, where the clock divide ration and oscillator frequency are initialized with the 0xD5 command. The parameter
in the file is "80", but I think it should be the hex value "0x80". This might address some of the display instability issues.

[FR] TMC stepper driver

What you have done is impressive with the integrated closed loop circut - but the A4950 is older and antiquated. What about the TMC4671 - ? Or other even two options with the TMC5160 & TMC2209?

motors loud/screeching

I am at a loss here. I have installed these drivers/kits on my x and y axis, and on both axes when holding position they emit a loud whine. When moving it becomes more of a screech. I have tried loosening my belts, which did not help much. I have ensured the voltages are correct as well, and that everything is mounted flush.
The printer still runs well, the screeching is nearly unbearable though.
Is there anything i'm missing that fixes this?

BTT S42B V2.0 - will not enter calibration

I've got 2 brand new BTT S42B V2.0 and I can't get either one of them to calibrate. They start up to say calibration OK but when I click calibrate with Dip4 on if does nothing, the K4 button works because I can use it to change every other menu option but selecting calibrate does absolutely zero. If i remove the magnet i get the 10 red led flash that is expected and if i click calibration with out the magnet i get a red flash again. with the magnet in i get no red led so it is seeing them magnet. I just cant calibrate the damn thing.

It's not functioning in closed loop either well it is but its acting just like it does in open loop.(dip4 off dip3 on). But it is working I can move the stepper It never corrects its self, the RPM always says 0000, error always 000.00 and degrees never change from the initial value when turning on the stepper. I've gone over the documentation several times its pretty sparse. What am I missing?

Schematic?

Hello, I received this board recently. Is it possible to get the schematic for it?

Manual file

Manual file is brocken. Please upload again

Poor quality prints

Hello all. I installed 2 BTT S42B V1 on to my x and y. Calibrated ok. Uncommented x and y in configuration.h. Y was playing up. Wasn’t moving all the way to 0 on my bed. Changed 2 lines in configuration_adv.h
#define MINIMUM_STEPPER_PULSE 3

#define MAXIMUM_STEPPER_RATE 150000

Now y is working ok
Had to change x steps to 100 and y steps to 100

The problem is I get poor quality cube. Vertical banding and horrible ringing. The nice one was with my TMC2130s.
My max acceleration is 500
Any help would be appreciated 😃
BFBF4DDA-6EEC-45AF-AB52-3B24478832A9
1704014B-7D16-40E0-BBC2-FCFD91A7553E
F4635E30-5864-420D-B20A-E47CD32BCDB6

Nanodlp

Is this compatible with nanodlp shield

S42b 1.1 after calibration write 357.7 degrees

Hello boys, i bought two S42B 1.1 for my printer. I test both with a nema17 and as after calibration, on screen write rpm 0, error 0 and degress 357.7. I tried many times to do it again calibration but the result is the same. I watched some presentation videos in youtube and saw after calibration on screen write 0 degress. my question is, is it defective or let me fix it. this video shows the problem please check - and the second problem is, when moving the stepper motor, the speed on the screen is 0. some write something

https://youtu.be/cgP7WpYkTbE

Code example without Marlin?

Hi, I ordered some S42B V1.1 and SKR V1.4/V1.4 Turbo board. I want to use these in a project which does not have any connection to a 3D printer or something similar.

As I see everything here is made so for 3D printer use with Marlin firmware. I already found examples about how to implement custom functions for custom G-Code commands in Marlin.
But I am wondering how it would be possible to use that board + that closed loop S42B just in a plain example without Marlin overhead?
In both scenarios (custom G-Code command) or plain code: how to use these motors (Wifi, display,...)?

Thank you!

The Y-axis is stuttering and acts sometimes like a guillotine

Hi everybody, today I was able to implement the S42B on my Artillery Sidewinder X1 Y-axis.
I followed the steps that were shown on YT by Teaching Tech.
I put switch 4 on and did the calibartion. After that I entered the microsteps (16) and also entered the mAh (1700).
But the first test wasn't successful because the hotbed only moved stutteringly and not fluently. Also I'm not able to move the bed all the way to the front. I thought that maybe the voltage isn't high enough so I raised it to 2100. But still the same problems. Also the Y motor is somehow "humming" as if it's somehow working once it moved. Sometimes when I've shutoff the motors, turn them back on and home Y it's flying like a guillotine. If I had my thumb between the plate and the camera mount it might have cut it off (or at least hurt me). See a video here:
https://youtu.be/cmb-l_VJqSY

I've calibrated it once again but still the same problem. I would say that the magnet it quite in the middle of the motor and the distance to the pcb is also okay because of the spacers that were delivered. I hope to get some help asap so that I can go on with printing.
PS: when Closed Loop is off (dipswitch 3) it moves fluently. My firmware is Marlin 1.1.9

s42b v1.1 frame err! ch340g connection

Hello to all,
I have some issue when I connect s42b v1.1 board via ch340g usb to ttl driver, no baud rate works and still getting only Frame Err! when I am on serial monitor.

Even connecting with TrueStep Terminal is not working and I am still getting this error again and again, but TS Terminal is reading the settings I need but when I change I can not write back with error message that something went wrong.

Does anyboody have any clue what to do to get it work ? I need to change PID settings due oscilation os X axis arm
image
image

when I change to 115200 baud I am getting only symbols
image

please help guys

when I try to move the arm it is like when the amatuer driver is trying to get the car mooving forward :)

Query/not issue

Whilst waiting for delivery of this item, and looking at the code, was wondering what the +0x08008000 did on this line

y = (uint16_t)((ReadValue(READ_ANGLE_VALUE)>>1)*2+0x08008000)

Thanks

DEFAULT_ENV

I cant seem to be able to compile the firmware with vs code. i get a "Warning! env_default configuration option in section [platformio] is deprecated and will be removed in the next release! Please use default_envs instead" when i try to compile. From what ive read it has to do with the core of platforio but i checked i have the latest 5 which is backwards compatible with 4 which is what im guessing was out when this code was written. so how do i go about compiling it or should i just not worry and flash the bin file thats available and flash with my sd card?

Dual steppers (z axis) wiring confusion

Good morning,

I cannot figure out how to wire dual Z to the S42B drivers on my SKR 1.4 turbo. It appears that i could use the adapter as well as the CLS pins on the board, but am not sure if this would cause issues. Would i be better off crimping a cable to use them in parallel, or daisy chain them? I just don't want to experiment with it and let the magic smoke out of the board or burn out a motor.

X axis dancing

Hi. i just installed s42b on my diy printer and did the calibration and it works but the x axis when i try to move it it just goes back and forward really fast.I think the whole asamble is to large in weight and it overshouts when moving then try to compensate then it overshouts in reverse and that becames a loop.
I try to lower the accelaration but the same thing.
The Y axis does the same but not every time (as shown in video).
And when i turn off the motors in the interface below, the y axis i can move it but the x axis the motor stays energized but there is no compensation meaning the board is not active for close-loop.
Any ideea how to solve this?
https://drive.google.com/file/d/1P0TRuBtJh8re5k-FxD4gFDRKnzX-ddsW/view?usp=sharing

Endstop issues

Hi,

i have to say i am very unpleased with this Product so far. Bought 5 pre-assembled s24b v1.2 from biqu and I am now troubleshooting since 14h. So on all 5 Steppers the magnet has different dimension so I had to disassemble all of them and measure, combining spacers to fit correct distance between magnet and sensor. Also 1 Display provided a short (lucky I had spares). 1 Motor is still not running in closed loop, but in open. So much "fun" for 32€ each. Anyway ...

I am running an skr 1.4 Turbo with 5 of these and newest marlin Bugfix. The only thing I really think I can't figure out myself is the problem I had on all endstops in closed loop.


X and Y - hits endstop, stepper stops but raise up from 0.04° to ~35° error/misalignment and stepper shows red led till I press reset button or reset printer. No issues in open loop.

BL touch clone for z - axis turns up a bit (5 mm) should then pull down pin and motor steps down to heatbed, but instead it doesn't pull down the pin but also here error count goes up to ~35° , red led turns up and only reset pin or printer reboot fix it.

With other motors and tmc 2209 everything is running fine, also in open loop everything is as it should be. But I need the closed loop feature otherwise this product is absolutely useless for me.

I hope someone could help.

Cheers,

MBPM

S42b firmware upgrade TrueStep

hello, today i upload the Truestep X1 firmware. After upload on screen write " NOT Calibration Please Calibrate".. i cant see Navigate menu. working only reset. i try connect with TrueStep Terminal but no connected. With Ttl, i connect the TTL TX to BT RX , and TTL RX to BT TX and gnd to gnd.. the 3.3v not need.. and Baudrate to 34800.... help me plz.. how to calibrate

When closed loop is set it stops moving

I have installed a S42B (pre assembled) only on my Y axis using a SKR 1.3.
When printing in closed loop the stepper stops or will jump large distances.
I have modified my marlin 2 for the correct stepper by commenting the Y stepper driver and also modified # define MINIMUM_STEPPER_PULSE 3 and # define MAXIMUM_STEPPER_RATE 150000 in the configuration_adv.h file. I have also managed to calibrate my steps per unit.
It starts to print ok but will suddenly stop moving and give a whine from the stepper. the printer keeps printing now but horizontally. It then may start jumping backwards and forwards at random intervals. See attached picture.
20200822_135456
When I set the stepper to open loop it prints fine. Can anyone shed some light on this.

S42B 2.0 Closed Loop Not Working.

Just installed the new S42B 2.0, and closed loop doesn't seem to want to work. I'm waiting on a response from BTT (which takes a little while) so I figured I'd ask here in the meantime. I also have a V1.1 on my X axis that works flawlessly. Any idea as to what the issue could be?
Info:
Calibration went fine (Supposedly)
DIP 3 is set to ON
DIP 1, 2, 4 are set to OFF
32 Microstepping
Tried currents as high as 1000mA (2000 setting) with no luck.
Board: SKR 1.4 Turbo

Notice the deg. value not changing as the axis moves:

ezgif-3-3ef1ae54515c

Motor Spin after M17 command

After auto-disable timeout, sending M17 (enable) will cause motor to jump to almost the end of travel of an axis. Is there work around?

Thanks

Change of Filament (Homing) not working

I'm using a Sidewinder X1 and Repetier Server!
Before installing the S42B there was no problem to change the filament during a print.
When I hit PAUSE the nozzle would raise 5mm and X/Y would home! Then I could change the filament, hit CONTINUE and the print would continue where it stopped. Normal behaviour!
WITH the S42B I've tested it maybe 12 times in the beginning of a print and it worked like I was used to, BUT everytime I had to do it during a longer print, the beaviour was like this:
PAUSE: Nozzle raises, X and Y are homing! Perfect.
CONTINUE: X goes to the right position but Y (S42B) rushes completely forward so that the print can't be continued.
I think that I'll get rid of the S42B when this project is done. In my case it's not reliable enough and has killed 3x 30h prints with that problem. I now have to buy 4.5kg spools so I can print 3 parts without having to change filament.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.