michael.oosten wrote: Hi,
I installed LinuxCNC on my RPi
Got the hal_gpio driver
Compiled it: comp --install hal_gpio.c
Loaded it: halcmd: loadrt hal_gpio
>SNIP
When I measure between pin 7 (GPIO 4) and 3v3, I get 3v3, so pin 7 is indeed low.
After: halcmd: setp hal_gpio.pin-07-out TRUE
I am expecting to measure 0v, but I'm still measuring 3v3.
What am I doing wrong here?
Thanks, Michael
I have no idea, linuxcnc on raspberry pi has never really worked very well with direct gpio control, it was all work in progress. I have not looked at linuxcnc on the rpi since last year, I don't think much has been done for the rpi, maybe better to check the beagle?
I am thinking about getting back to work on linuxcnc on the raspberry pi, but I am not sure if it is viable.
I have never tried using xenomai kernels, I may give that a try in the hope that the UI is a little more responsive.
I have always used RT_PREEMPT kernel and there are problems with it that I am not sure may cause safety issues.
So far you can either have good realtime performance but lockup issues on the UI or you can have poor realtime performance and a better UI control.
The issue being you can click buttons in axis and occasionally the mouse will freeze for upto 2-3 seconds, this happens intermittently but will probably occur every 10 minutes, the safety issue comes if you click jog it can get stuck on moving a motor for 2 seconds without possible stopping.
I also have never implemented input via GPIO.
I am not sure how kinsa's pic IO board functions as I never got time to actually try his work.
I am considering setting up a kickstarter project to fund development of the DMA direct gpio driver, but I want to be able to offer more than just the driver so have been looking to workout a crowdfunding bulk purchase of stepper motors and drivers for a 5 axis hobby system. Part of me thinks its a bad idea as perfect cnc control maynot be possible with the rpi, but I thought maybe hobbyists would put up with it if they got a good deal on motors and drivers.
I doubt there would be enough people interested to justify the effort though.
I was looking along the lines of getting 10,000 people interested enough to donate $65 each and it could be possible to get 5 nema17 0.4Nm motors with A4988 drivers for all backers (would still need to know how to solder and provide a power supply).
Otherwise I would probably just run the kickstarter as request for $2000 so I can buy some decent stepper drivers and some test equipment to make sure there are no missed steps.
I got as far as getting 6 motors running under axis using the dma driver and it would run the default test gcode from axis, but never fully tested it as there was the problem with mouse lockups and I was waiting for a decent RT_PREEMPT kernel to be released.
I doubt the hal_gpio.c driver will give decent performance, but I have never tried it so that is just my unproven opinion.