Byte2Bot Homing Question
- Chia
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
06 Mar 2025 08:14 #323337
by Chia
Byte2Bot Homing Question was created by Chia
I am using byte2bot and currently trying to use homing. I pressed the limit switch, but it still doesn’t trigger the homing.
Regardless of whether I press the limit switch or not, it always returns TRUE.(Like the attached picture.)
Here are my HAL and INI files.
Regardless of whether I press the limit switch or not, it always returns TRUE.(Like the attached picture.)
Here are my HAL and INI files.
Please Log in or Create an account to join the conversation.
- Clive S
- Offline
- Platinum Member
-
Less
More
- Posts: 2245
- Thank you received: 480
06 Mar 2025 08:26 #323338
by Clive S
Replied by Clive S on topic Byte2Bot Homing Question
For that board to work with the inputs you will have to connect a 12-24V supply to the terminals on the relay side of the board.
Please Log in or Create an account to join the conversation.
- unknown
- Offline
- Elite Member
-
Less
More
- Posts: 278
- Thank you received: 99
06 Mar 2025 12:29 - 06 Mar 2025 12:54 #323345
by unknown
Replied by unknown on topic Byte2Bot Homing Question
For a read & write to occur the hal_gpio read & write functions need to be connected to a thread.
linuxcnc.org/docs/devel/html/drivers/hal_gpio.html#_functions
What I would do is run a basic config for your machine, then use halshow from axis or whatever you are using to monitor the input you need to.
linuxcnc.org/docs/devel/html/drivers/hal_gpio.html#_functions
What I would do is run a basic config for your machine, then use halshow from axis or whatever you are using to monitor the input you need to.
Last edit: 06 Mar 2025 12:54 by unknown. Reason: I'm an idiot
Please Log in or Create an account to join the conversation.
- unknown
- Offline
- Elite Member
-
Less
More
- Posts: 278
- Thank you received: 99
06 Mar 2025 12:35 - 06 Mar 2025 12:48 #323346
by unknown
Replied by unknown on topic Byte2Bot Homing Question
I'm basing the following on the 2.9.4 image. either Rpi4 or Rpi5
If you read the man page for hal_gpio you will notice there is an issue with the way the module is loaded.
Other info:
forum.linuxcnc.org/9-installing-linuxcnc...sberry-pi-4-5#320852
In the config below you will have to change the GPIO assignments to match the Byte2Bot board.
forum.linuxcnc.org/9-installing-linuxcnc...-4-5?start=10#321296
Finally it also helps if you stated the type of Pi you are using and the image.
A word of warning if you are using a RPi5 I would pay very close attention to the temperatures, as the Byte2Bot board would inhibit the cooling. I've never run my RPi5 without the cooler.
If you are using an RPi4 you may not get the stepper speeds you want.In either case it looks like they have used a very slow base period of 100000ns. Most parallel port setups on a PC aim for around 25000ns.
If you read the man page for hal_gpio you will notice there is an issue with the way the module is loaded.
loadrt hal_gpio inputs=GPIO5,GPIO6,GPIO12,GPIO13,GPIO16,GPIO17,GPIO18,GPIO19 \
outputs=GPIO20,GPIO21,GPIO22,GPIO23,GPIO24,GPIO25,GPIO26,GPIO27 \
invert=GPIO20,GPIO27 \
reset=GPIO21,GPIO22
forum.linuxcnc.org/9-installing-linuxcnc...sberry-pi-4-5#320852
In the config below you will have to change the GPIO assignments to match the Byte2Bot board.
forum.linuxcnc.org/9-installing-linuxcnc...-4-5?start=10#321296
Finally it also helps if you stated the type of Pi you are using and the image.
A word of warning if you are using a RPi5 I would pay very close attention to the temperatures, as the Byte2Bot board would inhibit the cooling. I've never run my RPi5 without the cooler.
If you are using an RPi4 you may not get the stepper speeds you want.In either case it looks like they have used a very slow base period of 100000ns. Most parallel port setups on a PC aim for around 25000ns.
Last edit: 06 Mar 2025 12:48 by unknown.
Please Log in or Create an account to join the conversation.
Time to create page: 0.109 seconds