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

More
More
09 Aug 2023 02:12 - 09 Aug 2023 02:14 #277391 by cornholio
Until someone has reverse engineered them it's a bit of work.
And honestly once you add in the price of a carrier board and designed and produced interface boards it's starting to get a bit pricey.
Not that I'm against these projects, and ATM there is a good argument for them due to some MESA boards being hard to come by, also if you like tinkering they are great to spend a bit of time with.
And some of these boards do require some skill in soldering, specially when replacing chips on a .65mm pitch. Just replacing the chip isn't the whole story, you have to take into consideration your VCC so as not to take out the FPGA.
If you have the skill go for it, but you really need to do some research before jumping in.

Tho the LINUX-RIO project is a little easier as it does use off the shelf dev boards that are well documented and don't require board level mods. A simple 74LVC245 works well for the inputs for translating 5v signals to 3.3v signals. 74HCT540/541 work well for translating from 3.3v to 5v for outputs.

Oh and when dealing with ALiexpress you have to make sure you will get a supported board. As sometimes the adds get be a little unclear regarding the exact model.
Last edit: 09 Aug 2023 02:14 by cornholio.

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

More
09 Aug 2023 10:44 #277418 by meister
the devboards were only an intermediate step,
we are in the process of building our own boards.

I want a modular board, so that I don't have to rebuild everything for every new function.

FPGAs that can be used completely with open source tools.

And a simple code base that I can understand, for example if something goes wrong in litex, I have no idea how to fix it.
The following user(s) said Thank You: cornholio

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

More
09 Aug 2023 10:56 #277422 by meister
It's also possible to use non OpenSource tools with RIO, here is a new video from TurBoss with an TangNano20K board and a his new UDP-Bridge:



I think RIO is a good platform to play around with FPGA's with a flat learning curve
and cheap accessible hardware.

If someone wants to operate a professional milling machine, it is better to use mesa anyway.
The following user(s) said Thank You: Bongo

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

More
09 Aug 2023 11:11 #277424 by cornholio
I really dig your philosophy. Simple open source tools.

The Olimex board is good (good price as well), apart from the pesky 1.27mm connectors.

I reckon a board based on a Lattice Ice40, with 74CBT3245 FET bus switches (or wider) so interfacing with 5v would be easier (maybe 17 pin ports so Generic BoB interfacing is easy). No RAM, maybe 1 or 2 LEDS for status. No fancy USB on board programming, just access to SPI for programming & comms.
The following user(s) said Thank You: meister

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

More
09 Aug 2023 14:41 #277443 by meister
little sensor example with RIO :

I have add a Water-Flow Sensor to my CNC:




config looks like this:
        {
            "type": "vin_frequency",
            "name": "flow",
            "scale": 0.033,
            "display": {
                "type": "meter",
                "text": "Water",
                "subtext": "l/m",
                "min": 0,
                "max": 0.5,
                "region": [
                    [0.2, 0.5, "green"],
                    [0.1, 0.2, "yellow"],
                    [0, 0.1, "red"]
                ]
            },
            "debounce": true,
            "pin": "33",
            "pullup": true,
            "freq_min": 2
        },
Attachments:
The following user(s) said Thank You: cornholio

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

More
17 Aug 2023 16:15 #278273 by meister
first step to integrate the Hunayang VFD into RIO :)

youtube.com/shorts/cMVN13VCYEs

only a test to check the modbus protocol , not sure if i should use a microcontroller between FPGA and the VFD or implementing the modbus direct into the FPGA.
The following user(s) said Thank You: eduardo20

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

More
17 Aug 2023 17:53 #278288 by MaxEkb77

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

More
17 Aug 2023 18:31 #278292 by meister
yes, but only to understand the protocol and for testing the max485

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

More
19 Aug 2023 11:54 #278457 by meister
The following user(s) said Thank You: tommylight, Bongo

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

Time to create page: 0.153 seconds
Powered by Kunena Forum