- Hardware & Machines
 - Computers and Hardware
 - LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
 
LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
- meister
 - Offline
 - Platinum Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 659
 - Thank you received: 408
 
			
	
						27 Dec 2024 21:11				#317508
		by meister
	
	
		
			
				
 			
					
	
			
			 		
													
	
				Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)			
			never tested, sorryDo you see, that there's an issue with RealtimeIO and EtherCAT in parallel? (For EtherCAT I'll use the NIC of the PC chipset. For RIO I wanted to use the W5500 Ethernet module with an USB-Ethernet adapter to the PC.
Thanks for your support!
Please Log in or Create an account to join the conversation.
- meister
 - Offline
 - Platinum Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 659
 - Thank you received: 408
 
			
	
						27 Dec 2024 21:15				#317509
		by meister
	
	
		
			
	
	
		
	
			 		
													
	
				Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)			
			
				I'm currently rewriting the i2c stuff from scratch,
until now, each device needed its own bus with its own pins.
now i can configure several per bus and also separate them again via multiplexer chip
 
was a lot of work, but this is only the config of one i2c-master, you can also create several, on different pins with different speeds.
I'm still testing and not all the types I've created are working properly yet, but I'm hopeful
 			
					until now, each device needed its own bus with its own pins.
now i can configure several per bus and also separate them again via multiplexer chip
was a lot of work, but this is only the config of one i2c-master, you can also create several, on different pins with different speeds.
I'm still testing and not all the types I've created are working properly yet, but I'm hopeful
Attachments:
		The following user(s) said Thank You: Zayoo 	
			Please Log in or Create an account to join the conversation.
- epineh
 - Offline
 - Senior Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 72
 - Thank you received: 25
 
			
	
						29 Dec 2024 09:34				#317596
		by epineh
	
	
		
			
	
			
			 		
													
	
				Replied by epineh on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)			
			
				That is really cool, once I have my existing machine fully tested I intend to start playing around with all the extra stuff you've implemented. When you say several devices per bus, is that now as per the standard i2c protocol, so 128 devices ? I understand that lots of i2c devices only have a couple of address options so that doesn't help.			
					Please Log in or Create an account to join the conversation.
- Ehsan_R
 - Offline
 - Premium Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 88
 - Thank you received: 1
 
			
	
						30 Dec 2024 20:45				#317686
		by Ehsan_R
	
	
		
			
	
			
			 		
													
	
				Replied by Ehsan_R on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)			
			
				Has anyone worked with Rio and Colorlight 5A-75E?
Can I work with this board?
					Can I work with this board?
Please Log in or Create an account to join the conversation.
- mBender
 - Offline
 - Premium Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 133
 - Thank you received: 15
 
			
	
						30 Dec 2024 21:18				#317687
		by mBender
	
	
		
			
	
			
			 		
													
	
				Replied by mBender on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)			
			
				In my early days with RIO I bought one of the Colorlight 5A-75E. They work, but I believe they don't have any inputs and the ethernet port is not supported. I never followed up with it and switched to the Tang Nano 9k.			
					Please Log in or Create an account to join the conversation.
- Cant do this anymore bye all
 - 
				
											 - Offline
 - Platinum Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 1200
 - Thank you received: 425
 
			
	
						30 Dec 2024 23:27				#317694
		by Cant do this anymore bye all
	
	
		
			
	
	
			 		
													
	
				Replied by Cant do this anymore bye all on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)			
			
				They require a lot of rework to get inputs. Swapping out chips, add jumpers, messing with power supply voltages, can be done but fiddly.
Best starting with one of the more common boards discussed on this thread.
Just keep this is mind that it may end up costing close to the cost of original Mesa board (less postage if you are outside the locality of a local supplier). Most of these projects turn out that way.
BTW Linuxcnc-RIO is a great project, well supported and actively developed.
					Best starting with one of the more common boards discussed on this thread.
Just keep this is mind that it may end up costing close to the cost of original Mesa board (less postage if you are outside the locality of a local supplier). Most of these projects turn out that way.
BTW Linuxcnc-RIO is a great project, well supported and actively developed.
		The following user(s) said Thank You: meister 	
			Please Log in or Create an account to join the conversation.
- meister
 - Offline
 - Platinum Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 659
 - Thank you received: 408
 
			
	
						31 Dec 2024 13:15				#317714
		by meister
	
	
		
			
				
but there is also easy support for i2c multiplexer (PCA9548A/TCA9548A) now.
 			
					
	
			
			 		
													
	
				Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)			
			if you have multiple devices that have the same address, you can still use multiple busses on different pins.That is really cool, once I have my existing machine fully tested I intend to start playing around with all the extra stuff you've implemented. When you say several devices per bus, is that now as per the standard i2c protocol, so 128 devices ? I understand that lots of i2c devices only have a couple of address options so that doesn't help.
but there is also easy support for i2c multiplexer (PCA9548A/TCA9548A) now.
Please Log in or Create an account to join the conversation.
- meister
 - Offline
 - Platinum Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 659
 - Thank you received: 408
 
			
	
						31 Dec 2024 13:21				#317715
		by meister
	
	
		
			
	
	
			 		
													
	
				Replied by meister on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)			
			
				now, the i2c-bus is merge into the dev branch
many thanks to 'Schoch' , for the quadencoder(z) fixes and the much better rps/rpm calculations.
and many thanks to all other people that helps here, in github and in the discord chat.
					many thanks to 'Schoch' , for the quadencoder(z) fixes and the much better rps/rpm calculations.
and many thanks to all other people that helps here, in github and in the discord chat.
		The following user(s) said Thank You: digiex_chris 	
			Please Log in or Create an account to join the conversation.
- epineh
 - Offline
 - Senior Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 72
 - Thank you received: 25
 
			
	
						01 Jan 2025 06:41				#317763
		by epineh
	
	
		
			
	
	
			
			 		
													
	
				Replied by epineh on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)			
			
				Very cool, will check that out.
For now I have a very weird issue, I'm not convinced its a riocore issue and not a general linuxcnc issue but here we go..
I cannot set G54 offsets, I've included a screenshot of the problem, as you can see the cutter is within the machine soft limits, and there are values in the G54 in the DRO but the toolpath preview is outside the machine limits. I've copied all machine specific parameters from the MESA config it was running previously, machine homes, enables etc and it is all working as it should. No matter what I do the toolpath remains outside of the bounding box.
Its like the machine is in absolute mode and ignoring the G54, so the origin of the gcode is at machine home and G54 has no effect.
I ran the default Sim (mm) config shipped with the live install and the issue doesn't happen, the toolpath jumps to the relative position to the cutter as normal.
Only thing I've done after the GUI riocore configuration is to add a linuxcnc.var file to the Output/TangNano9K/LinuxCNC folder as it wasn't generated. I copied one from the Sim folder after it generated one.
Other than that its a clean install that I ran docker on to program the FPGA and run Linuxcnc.
					For now I have a very weird issue, I'm not convinced its a riocore issue and not a general linuxcnc issue but here we go..
I cannot set G54 offsets, I've included a screenshot of the problem, as you can see the cutter is within the machine soft limits, and there are values in the G54 in the DRO but the toolpath preview is outside the machine limits. I've copied all machine specific parameters from the MESA config it was running previously, machine homes, enables etc and it is all working as it should. No matter what I do the toolpath remains outside of the bounding box.
Its like the machine is in absolute mode and ignoring the G54, so the origin of the gcode is at machine home and G54 has no effect.
I ran the default Sim (mm) config shipped with the live install and the issue doesn't happen, the toolpath jumps to the relative position to the cutter as normal.
Only thing I've done after the GUI riocore configuration is to add a linuxcnc.var file to the Output/TangNano9K/LinuxCNC folder as it wasn't generated. I copied one from the Sim folder after it generated one.
Other than that its a clean install that I ran docker on to program the FPGA and run Linuxcnc.
Please Log in or Create an account to join the conversation.
- kzali
 - Offline
 - Junior Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 35
 - Thank you received: 12
 
			
	
						01 Jan 2025 21:38		 -  01 Jan 2025 21:41		#317802
		by kzali
	
	
		
			
	
	
			 		
													
	
				Replied by kzali on topic LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)			
			
				"many thanks to 'Schoch' , for the quadencoder(z) fixes and the much better rps/rpm calculations.
and many thanks to all other people that helps here, in github and in the discord chat."
Is the discord chat related to RIO? and if so what is the link to the channel?
Thanks
					and many thanks to all other people that helps here, in github and in the discord chat."
Is the discord chat related to RIO? and if so what is the link to the channel?
Thanks
		Last edit: 01 Jan 2025 21:41  by kzali.			
			Please Log in or Create an account to join the conversation.
- Hardware & Machines
 - Computers and Hardware
 - LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)
 
		Time to create page: 0.264 seconds