Replies: 5 comments 31 replies
-
As of right now, you cannot use CAN at all due to a pin allocation issue. I will be fixing CAN functionality soon. There is currently no support for position commands, but I suppose that the commands could be added with only a little work. I'll add it to the long term feature plan. As of right now, I'm still working on making sure that the motor steps correctly and hopefully getting it a little quieter |
Beta Was this translation helpful? Give feedback.
-
hummmm according to my investigations,
3.3V is provided by U8 which is a 1117 3.3 regulated power (either 1A or
800mA depending of manufacturer)
the input pin of U8 is connected to a chip marked "BNOR 11" pin3or4 through
a 15kohm restistor, there is a huge self right beside this chip and pin2or5
is connected to VMOT through a huge diode....
I made some mesurements, with +5V of DIR/STEP interface unpluged (just let
the VMOT, GND, EN, DIR, STP), the board still works and VCC pin of
PCA82C251 is 5V
so it seems that if BTT software engineer are bad, electrical ones did the
work by far better than the MKS servo engineers....
1) they use VMOT to create internal power, which is by far better
2) VMOT is droped to 5V using the unknown chip BNOR11,
3) 5V is then regulated to 3.3V using the 1117 3.3 regulated power...
too bad they didn´t used pins that could do analog sampling for the
switches, else I could have replaced the switches by a connector and used
them for end stops and thermal... without having to do huge redesing...
so at least the CAN chip is correctly powered.
I´ll start work on klipper, I think I´ll add a menu in the display to
activate or not the support of the protocol, once I understood how they do
it...
don´t like too much #ifdef... it makes the code unreadble... better use
compiler optimizations to whipe the dead code using
#define KLIPPER_SUPPORT 0
if(KLIPPER_SUPPORT)
{
....
}
this way you can still indent the code and allow folding
Le sam. 15 mai 2021 à 20:11, Christian Piper ***@***.***> a
écrit :
… The only concern that I have is that the CAN voltage might not be 5v.
You'd have to check on that, otherwise you could accidentally cause the
magic smoke to escape.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#19 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJUDLRDFHXKYB4EDCRBCQMLTN22MZANCNFSM442TREQA>
.
|
Beta Was this translation helpful? Give feedback.
-
I've some question because I started schematics for the new board.
the motor are driven by analog write on PB4 and PB5, but I don't find where
theses pins are setup and if they are connected to PWM's timer1 of
stm32f103R8....
where are the pins configured?
thanks and regards
Le dim. 16 mai 2021 à 00:22, jl forums ***@***.***> a écrit :
… hummmm according to my investigations,
3.3V is provided by U8 which is a 1117 3.3 regulated power (either 1A or
800mA depending of manufacturer)
the input pin of U8 is connected to a chip marked "BNOR 11" pin3or4
through a 15kohm restistor, there is a huge self right beside this chip and
pin2or5 is connected to VMOT through a huge diode....
I made some mesurements, with +5V of DIR/STEP interface unpluged (just let
the VMOT, GND, EN, DIR, STP), the board still works and VCC pin of
PCA82C251 is 5V
so it seems that if BTT software engineer are bad, electrical ones did the
work by far better than the MKS servo engineers....
1) they use VMOT to create internal power, which is by far better
2) VMOT is droped to 5V using the unknown chip BNOR11,
3) 5V is then regulated to 3.3V using the 1117 3.3 regulated power...
too bad they didn´t used pins that could do analog sampling for the
switches, else I could have replaced the switches by a connector and used
them for end stops and thermal... without having to do huge redesing...
so at least the CAN chip is correctly powered.
I´ll start work on klipper, I think I´ll add a menu in the display to
activate or not the support of the protocol, once I understood how they do
it...
don´t like too much #ifdef... it makes the code unreadble... better use
compiler optimizations to whipe the dead code using
#define KLIPPER_SUPPORT 0
if(KLIPPER_SUPPORT)
{
....
}
this way you can still indent the code and allow folding
Le sam. 15 mai 2021 à 20:11, Christian Piper ***@***.***> a
écrit :
> The only concern that I have is that the CAN voltage might not be 5v.
> You'd have to check on that, otherwise you could accidentally cause the
> magic smoke to escape.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#19 (reply in thread)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AJUDLRDFHXKYB4EDCRBCQMLTN22MZANCNFSM442TREQA>
> .
>
|
Beta Was this translation helpful? Give feedback.
-
hummm ok you use the arduino lib.... I'm not used to it, I done freertos or
the like dev, never arduino... so I don't know how the pins are
configured...
one other thing, I've also s42Bv1 board, the MCU is a STM32F030C8....
didn't looked into datasheet yet, but do you think your Firmware will be
compatible? because they seems broken as well (sensor seems same and
overall design seems the same only can isn't present on this board)
Le dim. 16 mai 2021 à 20:28, Christian Piper ***@***.***> a
écrit :
… As for the timer, they are connected on channel 1 and 2 of timer 3 of the
STM32. That's a hardware linkage that is handled automatically by the
Arduino library. Keep in mind that you will have to figure out the correct
CAN bus pins, as the ones that I had listed are wrong (I think, check with
BTT's code)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#19 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJUDLRBYB2ZCIGK7JZXFQ2TTOAFFDANCNFSM442TREQA>
.
|
Beta Was this translation helpful? Give feedback.
-
Here CAN is remapped to PB8, PB9, but the CAN driver is connected to PA11 and PA12 on the schematic. Intellistep/src/lib/CAN/CAN.cpp Lines 17 to 27 in 49a0e18 And I find commented CANInit() and can't find another CAN code Intellistep/src/hardware/canMessaging.cpp Lines 16 to 24 in 49a0e18 Please clarify for me about the CAN. |
Beta Was this translation helpful? Give feedback.
-
I wonder if you have any documentation how to use CAN interface ? I'm building a CNC with dual closed loop controled motors for Y and Z axis, right now using STEP/DIR interface, but I think that CAN could be better....
Beta Was this translation helpful? Give feedback.
All reactions