LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)

More
31 Oct 2024 18:32 #313546 by mBender

There's this thing called google, you can look up acronyms and find out what they mean. Or you can read the data sheet applicable to your FPGA.

The ones you mentioned are the easy ones, there's a whole raft of others if you want to start messing around with FPGAs. Which is what you are doing, everytime I start on a project I'll have a look at he datasheets of the components involved.

You really need to have a curious mind once you start going down that rabbit hole.
 


Believe it or not, I have used Google before :D My intention is just to make it easier for a broader group of people and have less questions to the developer. Since the tooltip option was provided i will play around with it and see if I can make a meaningful contribution.
The following user(s) said Thank You: tommylight, meister

Please Log in or Create an account to join the conversation.

More
02 Nov 2024 02:37 #313639 by mBender
Had some time to play around with the FPGA again. The new W5500 arrived last week, but I had not enough time to wire it up. I was really surprised. Once I flashed it with the right IP, I was able to ping the board. Started LinuxCNC and it worked! Magic!  Used the wiring from the example before. Will need to change a few things as it seems the logic is inverted and continue to wire up the level shifter and connect to my stepper driver.
Can this error message now being ignored?

Unexpected realtime delay on task 0 with period 1000000
This Message will only display once per session.
Run the Latency Test and resolve before continuing. 

Please Log in or Create an account to join the conversation.

More
03 Nov 2024 22:08 #313727 by digiex_chris
The riocore generator seems to be generating a linuxcnc config and hal file entries for servo drives when I'm using steppers in my config. I've got PID params and other things specific to servos appearing in my rio.ini. Is this intended? I'm just using the default config for the IceShield for now.

Please Log in or Create an account to join the conversation.

More
04 Nov 2024 00:10 #313734 by tommylight

The riocore generator seems to be generating a linuxcnc config and hal file entries for servo drives when I'm using steppers in my config. I've got PID params and other things specific to servos appearing in my rio.ini. Is this intended?

It is for Mesa hardware, so might also be for this.

Please Log in or Create an account to join the conversation.

More
04 Nov 2024 01:34 #313739 by mBender
I kind of have the same issue. I can't get my stepper to work. Regular in and outputs work and I have double checked my wiring.

I don't see any stepgen parameters in the hal file. But I am also not sure if that would be in the hal, since the FPGA is doing the step generation ?!?

Also is there a way to adjust the timing linuxcnc.org/docs/html/man/man9/stepgen.9.html#TIMING ?

Please Log in or Create an account to join the conversation.

More
04 Nov 2024 06:48 #313744 by meister
please add your config if something is not working.

if you add an step/dir plugin, you need to verify that the 'is_joint' option is set to true

Please Log in or Create an account to join the conversation.

More
04 Nov 2024 08:02 #313747 by meister
if i have overlooked any open questions, please ask again, i was a bit busy at the weekend and lost the thread


here is my excuse:mitsubishi rv-e2 

 
without controller and one harmonic drive is broken :(
 
Attachments:

Please Log in or Create an account to join the conversation.

More
04 Nov 2024 10:30 #313751 by mBender

please add your config if something is not working.if you add an step/dir plugin, you need to verify that the 'is_joint' option is set to true
 



I have the joint option set to true. Config file (json) attached, had to zip it due to json files not being allowed as attachments.
Attachments:

Please Log in or Create an account to join the conversation.

More
04 Nov 2024 11:03 #313752 by meister
generally it looks good, i'll test it at home with real hardware, but i don't see why it shouldn't work at the moment.

Please Log in or Create an account to join the conversation.

More
04 Nov 2024 13:57 - 04 Nov 2024 14:05 #313754 by mBender
Awesome. I will test it with my oscilloscope. I wonder if I need something like a pull down resistor after/before the level shifter.

I noticed that the one of my outputs is not always switching. It's tied to the "machine on" but when I toggle the machine on an off, sometimes it's not reacting. I also get some error messages in the Terminal.

This is my current wiring.

 
Attachments:
Last edit: 04 Nov 2024 14:05 by mBender.

Please Log in or Create an account to join the conversation.

Time to create page: 0.185 seconds
Powered by Kunena Forum