Lada 2106 Red AirPlane
SAZAN-GARAGE
Был 1 месяц назад
Женя, 35 лет
Я езжу на Lada 4×4 3D 4WD на пневмоблокировках (до этого — Lada 2106)
Харьков, Украина
Контроллер управления станком — 4-осевой контроллер BSMCE04U-PP. Возможности контроллера и его подключение.
27 апреля 2020
Метки: другое
17
Ранее Мастерская всё-таки будет ☺️
Далее Как влияют граверы на ширину дорожек печатных плат
Разместить рекламу
Реклама
Машины в продаже
Москва
Dodge Challenger, 2018
3 900 000 ₽
Москва
Voyah Free, 2023
5 400 000 ₽
Москва
Tank 500, 2023
6 359 000 ₽
Москва
Chevrolet Traverse, 2019
3 050 000 ₽
Посмотреть больше машин на Дроме
Войдите или зарегистрируйтесь, чтобы писать комментарии, задавать вопросы и участвовать в обсуждении.
Войти
Зарегистрироваться
grbHAL now runs on the BSMCE04U-PP board. This controller is also known as the 4 axis Bitsensor, rnrmotion or 4 axis RED board. This controller board normally runs only with Mach3 software but with a simple firmware upgrade, it is now grbl compatible. The grblHAL STM32F11xx driver is now compatible with this controller which uses a STM32F103RCT6 processor. This becomes a basic 4 axis grbl controller board with line drivers, optocouplers and easy screw terminals for only $15. Many of the cheaper grbl boards do not use optocouplers for the I/O and PWM. This is one of the reasons this BSMCE04U-PP board is safer to use on a cnc machine.
The following pin assignments is for the 10pin IDC header. I soldered a 4pin header to the programming port, next to the USB plug, to make it easier to upgrade the firmware. I used a Mini ST-Link V2 clone STM32 USB programmer that I purchased from Ebay for $6. You need to download the free ST-Link programming software to upgrade the firmware. This overwrites the original Mach3 compatible firmware and cannot be reversed. The original firmware is locked in the processor and no copy is available to re-install.
/* LED PC2 10 pin IDC connector, top view +----- -----+ | 9 7 5 3 1 | | 10 8 6 4 2 | +------------+ 1 5v 2 gnd 3 PB8 - feed hold 4 PB9 - reset 5 PB6 - start safety door 6 PB7 - cycle 7 PB4 - probe 8 PB3 - MPG mode or Aux out 0 9 PD2 - UART5 Rx - remove pull up/pull down resistors! 10 PC12 - UART5 Tx - remove pull up/pull down resistors! Programming port, top view (not mounted) +--- ---+ | 1 2 3 4 | +---------+ 1 3v3 2 gnd 3 SWDIO 4 SWCLK */ Other Pin mappings X axis limit IN1 Y axis limit IN2 Z axis limit IN3 A axis limit IN4 SPINDLE ENABLE OUT1 SPINDLE DIRECTION OUT2 COOLANT FLOOD OUT3 COOLANT MIST OUT4 SPINDLE PWM AVI + ACM
I ran some basic tests using IOSender, a grbHAL compatible gcode sender. Single axis maximum step pulse rate is about 200Khz, much faster than the original 100Khz Mach3 firmware. So far no issues were found. I’ll upgrade this post if I find anything.
grbl requires the reset pin to be enabled before the gcode sender can initiate axis movements. I just put a jumper on pin 4 (reset) and 2 (ground) on the 10 pin IDC header for testing.
This is the compiled STM32 grbl 4 axis firmware using the 5-17-2023 grblHAL source code. You can use this instead of compiling your own version.
This is the compiled STM32 grbl 3 axis firmware with dual slave axis using the 6-07-2023 grblHAL source code. The dual slave axis is the Y and A step and direction outputs.
There is also a online grblHAL compiler at http://svn.io-engineering.com:8080/ if you want to make your own firmware version. Add options such as axis slaving and backlash compensation.
Programming the BSMCE04U-PP
The usual disclaimer. Flashing the grblHAL firmware is at your own risk. This may make your controller unusable if it fails. Understand how to do this procedure before attempting. There are plenty of online instructions on how to compile and program STM32 processors that are available. Please don’t ask for help if you run into problems.
The 4 pins to the left of the USB port are the microcontroller programming pins. I soldered a 4 pin header to the board to make it easy to connect the ST-Link. The first pin is labeled 3.3V, the other three are unlabeled.
Programming port, top view (not mounted) +--- ---+ | 1 2 3 4 | +---------+ 1 3.3V 2 ground or gnd 3 SWDIO 4 SWCLK
Use jumper wires to connect the corresponding ST-Link adapter pins to the controller board. When programming do not plug the BSMCE04U-PP board in with the USB cable. The ST-Link supplies the necessary 3.3volts to program the microcontroller.
Download and install the free ST-Link programming software. Plug in the ST-Link programming adapter to a USB port and the software should recognize the adapter. There are some settings that need to be configured for ST-Link to work. Under the Settings Menu,
Port should be set to SWD, Frequency to 4.0Mhz
Mode should be set to Connect Under Reset
Reset Mode should be set to Hardware Reset
On the top menu, select Target > Connect. The bottom windows should say:
19:49:26 : ST-LINK SN : 53FF72067182555320180967
19:49:26 : V2J32S7
19:49:26 : Connected via SWD.
19:49:26 : SWD Frequency = 4,0 MHz.
19:49:26 : Connection mode : Connect Under Reset.
19:49:26 : Debug in Low Power mode enabled.
19:49:26 : Device ID:0x414
19:49:26 : Device flash Size : 256KBytes
19:49:26 : Device family :STM32F10xx High-density
If the above “Device family :STM32F10xx High-density” does not match, DO NOT program! You may have a different processor and the firmware I compiled will not be compatible.
Load the grbl firmware File > Open
To program select Target > Program&Verify>Start. It will give a error message about over writing existing firmware. Ok to continue. The bottom windows should say Verification…OK
19:49:26 : Debug in Low Power mode enabled.
19:49:26 : Device ID:0x414
19:49:26 : Device flash Size : 256KBytes
19:49:26 : Device family :STM32F10xx High-density
19:52:56 : [BSMCE04-PP_grblHAL_firmware.bin] opened successfully.
19:52:56 : [BSMCE04-PP_grblHAL_firmware.bin] checksum : 0x00E3C50B
19:53:12 : Memory programmed in 7s and 218ms.
19:53:12 : Verification…OK
19:53:12 : Programmed memory Checksum: 0x00E3C50B
All done, unplug ST-link programmer and run your favorite gcode sender to configure grbl.
Some BSMCE04U-PP boards do not have the 4 pin programming port. The processor SWDIO (LQFP64 Pin46/PA13) and SWCLK (LQFP64 Pin49/PA14) have two test points on the board. You can carefully solder wires to these two test points for programming. The middle terminal of the AMS1117 3.3volt regulator is the 3.3volt output pin. You can get ground from one of the screw terminals.
Step output
Single axis grbHAL step output at 200Khz. Step pulse width set at 2microsecond, active low. Nice clean pulses at 200Khz.
Maximum simultaneous 4 axis G0 move is approximately 180Khz. The top trace is the X axis, the other three axis match up nicely.
PWM Output
The default grblHAL PWM frequency is 5000Hz. The output of the STM32 processor is connected to a optocoupler and then through a transistor/resistor divider network to get the 0-10volt PWM signal. This circuit seems to have better voltage linearity if the PWM frequency is set lower. 1100Hz is the lowest the grblHAL firmware seems to accept. Setting it lower gives a wrong frequency output. Bug in the firmware? 1000Hz PWM is what the original Mach3 firmware used. For more information on how to use this controller boards input and output ports, see my original review using Mach3
PWM output is on terminal AVI and ACM ground. Must supply a voltage to terminal 10V and GND for this to work. The voltage can be between 2-12 volts. Most diode lasers use a 5volt PWM while VFD’s use 10volt PWM.
EDIT: Newer firmware seems to have fixed the PWM frequency bug. $33=1000 sets a nice 1000.000Hz PWM output waveform.
Stepper Enable
This controller board doesn’t have a actual enable output terminal. grblHAL invert stepper enable pins setting should be set to $4=15. Step idle delay setting should be set to $1=255 to keep it always enabled. Using different settings will cause abnormal step pulse output behavior. The controller board uses a 75hc541 octal line driver buffer with enable for the step and direction output. The above settings makes sure the 74hc541 output enable line is set correctly.
Backlash Compensation
The original MACH3 rnrmotion driver didn’t support backlash compensation for this controller board. grblHAL firmware supports backlash compensation if you enable it. Tested and work pretty good.
Lightburn Cluster
grblHAL supports Lightburn Laser cluster feature for faster raster engraving. This is currently experimental but I compiled firmware to test. Lightburn was able to recognize the cluster option and created compatible cluster gcode. Seems to work with my limited testing.
Non scientific EMF and USB noise test
I’ve read about this controller board having EMF/USB disconnect problems. There have been no issues with my wood lathe conversion using a older BSMCE04U-PP controller board with Mach3. This newer version running grblHAL seems stable too. There are reports of I/O ports not working but haven’t had those problems, optocouplers are fairly resilient. That can be attributed to wrong Mach3 configuration or incorrect optocoupler usage since the manual instruction can be difficult to understand. STM32 processors are used by the millions in all kinds of consumer electronics and are reliable. I do prefer using UCCNC/UC300eth or Linuxcnc/Mesa ethernet hardware but they can cost quite a bit more. I’ll be using this board for simple motion control applications until something better is found for the price.
Update 06/09/2023
Geehy APM32 on BSMCE04U-PP board
Hamish had contacted me about a BSMCE04U-PP board that he purchased recently. Instead of a STM32 processor, it came with a Geehy APM32 version. The APM32 is suppose to be pin and function compatible. He flashed the board with grblHAL and he was able to see output step pulses with a oscilloscope. With some more testing, we will soon know if all functions work. This is the email he sent me.
Hi Jim, I did flash new firmware onto it, st-link shows this when it connects to it: 17:52:24 : ST-LINK SN : 55FF6D064887565209440387 17:52:24 : V2J32S7 17:52:24 : Connected via SWD. 17:52:24 : SWD Frequency = 0,9 MHz. 17:52:24 : Connection mode : Connect Under Reset. 17:52:24 : Debug in Low Power mode enabled. 17:52:24 : Device ID:0x414 17:52:24 : Device flash Size : 256KBytes 17:52:24 : Device family :STM32F10xx High-density This is what it currently shows. The first time I connected using st-link, it did not report the device flash size. -- The firmware I put on it was compiled by the web page '' Web Builder v0.9c '' Terjelo made available. (keeping all options on their default, except the kinematics which I set to CoreXY). 17:58:51 : [grblHAL build 20230607 firmware.bin] opened successfully. 17:58:51 : [grblHAL build 20230607 firmware.bin] checksum : 0x00D143BB 17:59:33 : Memory programmed in 8s and 969ms. 17:59:33 : Verification...OK 17:59:34 : Flash memory [0x08000000:0x08040000] Checksum: 0x02AFFFF0 A cheapo usb oscilloscope shows pulses when jogging using IOSender. So far so good, I'd say. When I've received the proper ph- an xh- connectors, I'll wire the plotter and test further. Have a good weekend!, Hamish
This is the picture of the clone Geehy APM32 processor used on Hamish’s BSMCE04U-PP board. Corexy step output and limit switch inputs have been tested to work.
SVP писал(а): ↑31 май 2021, 13:14
1. Никто вникать увы не будет, выж не хотите документацию читать, вот и мы не хотим.
2. ШИМ мультиметром не померять, осцилограф надо…, либо сделайте RC-фильтр и меряйте после него.
3. Что там входы, что выходы знать не знаю, однако некоторые устройства имеют в своем составе «повышайку», а некоторые не имеют, и тогда в документации написано «до ХХ вольт, но не более чем подано».
1. Очень хочу,читаю и перечитываю, просто уровень компетенции не даёт понять всё, что там написано. Даже уже обратился к англоязычной документации. Потихонечку что-то становится ясно, но вот например то что вы написали в пункте два, я не знал. Это уже требует более фундаментального бэкграунда. Спасибо что сказали, сэкономите мне массу времени. Про то что никто не хочет вникать, так я не просто так предлагаю расплатиться. Я прекрасно понимаю что мои проблемы могу стать чужими добровольно только за деньги.
3. По входам выходам детальной инфы я пока не нашёл. Но потихоньку обрастаю новыми мануалами.
вот напимер нашел вот такой даташит. Правда он для платы более ранней ревизии. Нет 10в клеммы.
Кстати я так и разобрался это клемма выводит 10в или принимает. Ведь рядом 5в приходит с БП.
Я уже утратил надежду, что мне комплексно кто-то поможет, вот иногда заскакивает кто-нить и подкинет мне крупицу ценной инфы.
Это дело мне придётся добить, выбора нет другого. Потом отчитаюсь, авось кому еще поможет.
xvovanx писал(а): ↑31 май 2021, 13:42
digiTALker писал(а): ↑
Потому как у меня на плату приходит 5 вольт только, и я вот задумался а как она сделает 10?! Будет преобразовывать или мне их надо подать, чтобы ШИМ мог их использовать?Гляньте на вами выложенную схему в первом сообщении, особое внимание на пины двух плат 24V-24V…
Правильно ли я понимаю ход вашей мысли, что плате управления можно подкормить 24в извне, и тогда у неё хватит мощи генерить 10в?
Кстати что касается ШИМ и померять его мультиметром…
В документации сказано что у моей платы
В версии платы 2016г имеется встроенный конвертер ШИМ – Аналоговое
напряжение.
Не требует настройки, необходимые параметры встроены в плагин к Mach3.
Должно быть включено управление ШИМ, как описано выше.
Именно эту схему я и прикладывал выше. Означает ли это, что мультиметр должен таки выдавать значения осмысленные?
Последний раз редактировалось digiTALker 31 май 2021, 15:58, всего редактировалось 1 раз.
Имею фрезерный ЧПУ 250кг весом, рама профиль 150х150. Стол 300х600. Nema 24 c энкодерами. Оси ХУ 20ки
китайские. Плата
RNR CNC bsmce04u-pp. Инвертор KINDA KD200.
Шпиндель 2.2kwt.
Два 3D принтера . ZAV MAX PRO и самопал-дрыгостол — для нейлона.
Похожие видео 🎬
📺 Дополнительные видео 🌟
Pages: « 1 2 3 4 » Go Down
Topic: New setup for USB board by BSMCEO4U-PP Bitsensor (Read 59095 times)
0 Members and 2 Guests are viewing this topic.
To add a little more to the BSMCEO4U-PP definitions.
1) 24V: Input can be anywhere from 12V to 36V to power the digital input and outputs only. It is usually the same voltage that supplies the motor drivers, but it can be a separate supply (200ma minimum).
2) DCM: connection is digital ground for both input switches (Limits, E-Stop, & Probe) and output loads (VFD Start, Flood, & Mist).
3) ACM is the analog ground specifically for the spindle speed control. It goes to the ACM pin on the VFD.
4) AVI: is the analog output to the spindle speed control. (not very linear). It goes to the AVI pin on the VFD.
5) 10V: is the input analog reference voltage for the spindle speed control. This should come from the VFD low voltage supply (10V to 13V) output.
6) 5V: is a low power output to supply the motor driver opto-isolators providing you use «Low-True» logic (pull to ground for ON)
7) GND: output is the ground to the motor drivers used when driving «High-True» logic (Pull to 3,3V to 5V for ON).
Note: For the motor drivers, you will use either the 5V or the GND connection, not both. Choosing the right method may require some experimentation.
Note: DCM, ACM, and GND (all grounds) are not connected together. Each serves an isolated purpose, and their isolation is an attempt to protect your equipment. If you want everything grounded together (and you should), run a separate ground wire from each piece of equipment to a common grounding point near your master power input. This method should prevent a single failure from destroying everything.
Thanks.
Bill
Logged
Pixel Tamer
Hey scintilla,
Did you ever get the config set up right and could you share those? As, I am in the same boat as not being able to purchase a new usb board.
Logged
Hello kthoma85,
Yes, my setup is running well (at last) as far as driving the motors, etc. is concerned, the problem I have had for some time has been the ‘try before you buy’ limitations of the Mach3 software.
You will probably find that the Bitsensor board is okay anyway but there are other boards for sale which are reasonably cheap and even more refined.
I understand that Mach3 is no longer being ‘developed’ (read: making it work for ordinary users) so I can offer you a couple of suggestions to see if they are of help.
Firstly, you need to be sure you have a license loaded into the Mach3 folder on your computer’s drive. Without this, you cannot run more than about 50 lines of g.code.
Secondly, Follow the suggestions posted by Tweaky and Claudio. The settings they have posted have worked for me but you need to also look at settings for ‘direction, homing, axis calibration’ and so on to get your machine into working order. There are some good YouTubes for this.
I assume you are using a Chinese 6040 X,Y,Z and A (rotary) 4 axis setup.
If you don’t make any progress doing all this I can transcribe all my settings in the Mach3 configuration tab but, as always with these things, it’s better to plod through the tedious learning process so that you can better understand ’cause and effect’.
Can I also suggest that you have a look at the YouTube clips put out by Roger Webb and others, including the Artsoft tutorials, which go some way to clearing away the mists of this really poorly-contrived software.
It’s a paradox when you are invited to download and try a program which doesn’t run and which has a really counter-intuitive GUI.
I hope this is helpful 
Scintilla.
Logged
I was troubled by the lack of any good interface documentation for this Bitsensor board, and so traced the schematic before starting to hook it up. Wvancura was correct, but the attached .pdf file provides more internal details. The schematic reference designators are arbitrary, and the schematic symbols are approximately correct for the functional behavior (for example, the two enable lines to the ULN2003N chip are actually active low, but I didn’t want to figure out how to make the new object for an Eagle library). All voltages and returns are correct, as are the circuits associated with input and output.
There is a serious design error, if I have correctly interpreted the abbreviated surface mount device markings. A series diode in the 24V supply line prevents the catch diodes inside the ULN2003 from suppressing the inductive flyback when an external relay is turned off. The relay current will decay instead through a sneak path via an input if it has a switch connected to ground. It would be a good idea to provide your own external relay coil suppressor diodes, making sure to connect them properly (cathode to the positive terminal).
Mike
Logged
Sorry, I meant the two enable lines to the ‘HC541 chip. The ULN2003 doesn’t have any.
Which brings up another design error. The HC541 input logic levels are really not compatible with 3.3V driving logic. The HCT541 would have been the right choice, but the part on my board is clearly marked <abunchofcharacters>HC541, with a TI logo. The step and direction signals are coming out, though, so that part is working.
Mike
Ref: Bitsensor BSMCE04U USB board
Logged
Mike,
Really useful information. Thanks for sharing.
I’m using the same card on Mach 3. It has its limitations but so far it’s been solid on my cutting requirements.
Just about to join the world of Mach 4 so need to purchase a new controller…. I’m not clued up on this after a long break from cnc world.
Cheers.
Logged
Hi two things,
As far as I know, the Bitsensor board is compatible with Mach4. It just doesn’t have a manual for saying how.
Second:
I just updated my user guide for the BSMCEO4U. New name and new link. I have identical web pages on two different home servers in attempt for 100% up time. One in Chicago and the other in Rock Island, IL (see cnc.vancura.biz and cnc.vancura-innovations.com)
http://shoelessdave.com/Vancura.Innovations/files/BSMCEO4U%20Install%20Manual-converted%20wjv%202.2.pdf
http://vancura.biz/files/BSMCEO4U%20Install%20Manual-converted%20wjv%202.2.pdf
It is in effect a full translation from the Chinese version of the manual. I put some serious time into it trying to make American English out of it. I added a few more installation diagrams and some more documentation on the ports.
What it needs now is a Mach4 addendum. I personally don’t plan to go to Mach4, but anyone willing to document their frustrations in setting it up, will be welcome to send me the procedure for publishing.
Bill
Logged
Pixel Tamer
Hi,
As far as I know, the Bitsensor board is compatible with Mach4. It just doesn’t have a manual for saying how.
Incorrect, it does not have a Mach4 plugin.
Craig
Logged
‘I enjoy sex at 73…..I live at 71 so its not too far to walk.’
Hi,
I personally don’t plan to go to Mach4, but anyone willing to document their frustrations in setting it up, will be welcome to send me the procedure for publishing.
I’ve been using Mach4 for six years, and yes there is a learning curve to set it up but thereafter it is light years ahead of Mach3.
This thread lists some of the many improvements:
https://www.machsupport.com/forum/index.php?topic=42891.0
Craig
Logged
‘I enjoy sex at 73…..I live at 71 so its not too far to walk.’
Dear Wvancura, maybe you have some information, does this board support threading (does the index support signal)?
MF2D
Logged
Подключение индуктивных датчиков PNP и NPN к контроллеру BSMCE04U-PP
Возможности контроллера и его подключение
🤍youtu.be/75LOGCNT7h8
Настройка, параметры и подключение частотника к контроллеру 🤍youtu.be/Tx1KE4_fpEQ
*
Контроллер
🤍a.aliexpress.com/_993vMn
Плата развязки
🤍a.aliexpress.com/_AmlO5l
#sazan_garage, #cnc, #чпу, #фрезеровка, #гравировка
Basil Stadnik
2023-09-11 17:56:40
так вроде в программе можно инвертировать сигнал ……… или я чего то не понял ?
MaxiBox
2023-06-05 13:03:50
Что блин! Почему нельзя объяснить в чём проблема? Зачем бсод вставлять?
Night Binary
2022-12-22 11:04:25
да отличное решение . у тебя нет нужного датчика и надо их заказывать неудобно. зато очень удобно заказать плату с опторазвязкой
Steppp
2022-07-23 11:27:25
А плату покупать, это не время? И не деньги))) Да уже датчики покупать которые нужны)
Сергей Клименко
2022-06-17 16:31:40
Приветствую. Посмотрел ваши видосы про этот контроллер, но тему вы так и не раскрыли полностью. Вы написали в заголовке про оба типа датчиков, но как только оказалось что у вас не тот, то купили опторазвязку дополнительно. А что же со вторым делать? Как я понял то подключение по умолчанию как изначально показали? Без опторазвязки NPN пойдут как положено? Просто я в этой теме с датчиками полный ноль, поэтому и если вы объясняете, то постарайтесь объяснять так, как будто объясняете человеку с нулем информации в голове. Я к тому, что сам я репетитор уже 17 лет по ТММ. Но вот с электроникой на вы и на расстоянии. У меня такая же плата. Была другая, которую я благополучно спалил как раз таки индукционным датчиком, потому что не понимаю разницы что такое ПНП и НПН. ПОДСКАЖИТЕ какой конкретно тип датчика нужен этому контроллеру, чтобы не использовать эту доп плату развязки? Ждать еще 2 месяца из китая ее нет желания. В общем, на моих датчиках написано SN04-N. черный провод подписан как NPN NO. коричневый питание и синий ноль.
Евгений Беликов
2022-05-26 09:32:53
а что, плату эту ждать не надо? через реле можно прям щас, они везде есть
Домик в Деревне
2022-04-20 13:12:16
А разве в Мач3 нельзя изменить уровень сигнала? Вроде в описании к rnr-usb2 пишут, что можно?
владимир Иванов
2022-04-11 18:56:08
Не нашёл ссылку на плату 2, мне нужна та, что без орла
Kolya Kurenko
2022-04-01 18:47:35
Для тех кто не правильный датчик приобрёл можно использовать через реле любой датчик.
MagicCnc
2022-02-08 15:18:45
Горбушки лепите!
Мухаммад Тариков
2022-01-02 15:26:22
Здравствуйте, чем отличается плата с орлом и синяя плата stb4100,
krot. neskladny
2021-12-06 11:58:19
Иван, здравствуйте. Так какие датчики надо брать для этой платы без танцев с бубном и дополнительных плат? NPN, NC; PNP, NC; NPN, NO или PNP, NO?
Дозор Ферма
2021-07-23 05:33:15
Осталось сделать самому такую 🤔
Иван Васильев26
2021-06-15 14:04:36
Здравствуйте! Можно ли к этому контроллеру подключить таблетку — датчик длины инструмента?
Ваня Семёнов
2021-06-12 18:25:44
👍
Turuk Makto
2021-05-29 04:18:25
Ненашол сылки на плату 🙄
SerG’s Hobby
2021-05-29 00:06:51
Эх, до датчиков всё руки не доходят… Уже без них как то привычно 😁 надо исправлять ситуацию
Александр Павлов
2021-05-28 18:37:30
Попробуй компенсацию люфтов на этой плате














