Exemplo n.º 1
0
 def initInterfaces(self):
     if self.providedInterface:
         self.fabnet = self.providedInterface  # providedInterface is defined in the virtualMachine class.
     else:
         self.fabnet = interfaces.gestaltInterface(
             "FABNET", interfaces.serialInterface(baudRate=115200, interfaceType="ftdi", portName="/dev/ttyUSB0")
         )
Exemplo n.º 2
0
 def initInterfaces(self):
     if self.providedInterface:
         self.fabnet = self.providedInterface  #providedInterface is defined in the virtualMachine class.
     else:
         self.fabnet = interfaces.gestaltInterface(
             'FABNET',
             interfaces.serialInterface(baudRate=self.baudRate,
                                        interfaceType=self.interfaceType,
                                        portName=self.portName))
Exemplo n.º 3
0
 def initInterfaces(self):
     if self.providedInterface:
         self.fabnet = self.providedInterface  #providedInterface is defined in the virtualMachine class.
     else:
         self.fabnet = interfaces.gestaltInterface(
             'FABNET',
             interfaces.serialInterface(baudRate=115200,
                                        interfaceType='ftdi',
                                        portName='/dev/ttyUSB0'))
Exemplo n.º 4
0
	def __init__(self):
		self.fabnet = interfaces.gestaltInterface('FABNET', interfaces.serialInterface(baudRate = 115200, interfaceType = 'ftdi', portName = '/dev/tty.usbserial-FTVG67VT'))
		self.xAxis = axis(nodes.networkedGestaltNode('X Axis', self.fabnet, filename = '086-005a.py'))
		self.yAxis = axis(nodes.networkedGestaltNode('Y Axis', self.fabnet, filename = '086-005a.py'))
		self.zAxis = axis(nodes.networkedGestaltNode('Z Axis', self.fabnet, filename = '086-005a.py'))	

		self.motorCurrent = 1.0	#amps
		self.motorsInitialized = False	#gets set to true once motors have been run once.
		
		self.machinePosition = [0.0, 0.0, 0.0]
Exemplo n.º 5
0
    def __init__(self):
        self.fabnet = interfaces.gestaltInterface(
            'FABNET',
            interfaces.serialInterface(baudRate=115200,
                                       interfaceType='ftdi',
                                       portName='/dev/tty.usbserial-FTVG67VT'))
        self.xAxis = axis(
            nodes.networkedGestaltNode('X Axis',
                                       self.fabnet,
                                       filename='086-005a.py'))
        self.yAxis = axis(
            nodes.networkedGestaltNode('Y Axis',
                                       self.fabnet,
                                       filename='086-005a.py'))
        self.zAxis = axis(
            nodes.networkedGestaltNode('Z Axis',
                                       self.fabnet,
                                       filename='086-005a.py'))

        self.motorCurrent = 1.0  #amps
        self.motorsInitialized = False  #gets set to true once motors have been run once.

        self.machinePosition = [0.0, 0.0, 0.0]
Exemplo n.º 6
0
	def initInterfaces(self):
		if self.providedInterface: self.fabnet = self.providedInterface		#providedInterface is defined in the virtualMachine class.
		else: self.fabnet = interfaces.gestaltInterface('FABNET', interfaces.serialInterface(baudRate = 115200, interfaceType = 'ftdi', portName = self.PORT))
Exemplo n.º 7
0
 def initInterfaces(self):
     self.arduinoInterface = interfaces.serialInterface(
         baudRate=38400, interfaceType='lufa', portName='/dev/ttyACM0')
Exemplo n.º 8
0
 def initInterfaces(self):
     if self.providedInterface:
         self.fabnet = self.providedInterface		#providedInterface is defined in the virtualMachine class.
     else:
         self.fabnet = interfaces.gestaltInterface('FABNET', interfaces.serialInterface(baudRate = self.baudRate, interfaceType = self.interfaceType, portName = self.portName))
     return self.fabnet
Exemplo n.º 9
0
from gestalt.Nodes import printrboard
from gestalt import nodes
from gestalt.Nodes import dummyNode
from gestalt import interfaces

#myPrintrboard = nodes.soloIndependentNode(name = 'myPrintrboard', module = printrboard)
#gsArduino = nodes.soloGestaltNode(name = 'gsArduino1')

myInterface = interfaces.gestaltInterface('myInterface', interfaces.serialInterface(baudRate = 115200, interfaceType = 'ftdi', portName = '/dev/tty.usbserial-FTVG67VT'))
myFabUnit = nodes.networkedGestaltNode('myFabUnit', myInterface, module = dummyNode)

#gsArduino = nodes.soloGestaltNode(name = 'gsArduino', interface = interfaces.serialInterface(baudRate = 76800, interfaceType = 'lufa', 
#																								portName = "/dev/tty.usbmodemfa131"), module = dummyNode)

#gsArduino.identifyRequest()

#print gsArduino.urlRequest()
Exemplo n.º 10
0
from gestalt.Nodes import printrboard
from gestalt import nodes
from gestalt.Nodes import dummyNode
from gestalt import interfaces

# myPrintrboard = nodes.soloIndependentNode(name = 'myPrintrboard', module = printrboard)
# gsArduino = nodes.soloGestaltNode(name = 'gsArduino1')

myInterface = interfaces.gestaltInterface(
    "myInterface",
    interfaces.serialInterface(baudRate=115200, interfaceType="ftdi", portName="/dev/tty.usbserial-FTVG67VT"),
)
myFabUnit = nodes.networkedGestaltNode("myFabUnit", myInterface, module=dummyNode)

# gsArduino = nodes.soloGestaltNode(name = 'gsArduino', interface = interfaces.serialInterface(baudRate = 76800, interfaceType = 'lufa',
# 																								portName = "/dev/tty.usbmodemfa131"), module = dummyNode)

# gsArduino.identifyRequest()

# print gsArduino.urlRequest()
Exemplo n.º 11
0
        while self.xAxis.virtualNode.getMoveStatusRequest(
        ) != 0:  #prior move still pending
            time.sleep(0.05)

        self.xAxis.virtualNode.stepSync(maxSteps, velocity, velocity,
                                        0)  #start move, no acceleration

        #update machine position
        self.machinePosition[0] += self.xAxis.getDelta(xSteps)
        self.machinePosition[1] += self.yAxis.getDelta(ySteps)
        self.machinePosition[2] += self.zAxis.getDelta(zSteps)


EFD = nodes.soloIndependentNode(name='EFD',
                                interface=interfaces.serialInterface(
                                    baudRate=115200,
                                    interfaceType='lufa',
                                    portName="/dev/tty.PL2303-000012FD"),
                                filename='ultimus.py')

#myMachine = virtualMachine()
#myMachine.move(25, 25, 25, 50)
#
#EFD.dispense()
#time.sleep(5)

fabnet = interfaces.gestaltInterface(
    'FABNET',
    interfaces.serialInterface(baudRate=115200,
                               interfaceType='ftdi',
                               portName='/dev/tty.usbserial-FTVG67VT'))
myNode = nodes.networkedGestaltNode('myNode', fabnet, filename='086-005a.py')
Exemplo n.º 12
0
		while self.xAxis.virtualNode.getMoveStatusRequest() != 0:	#prior move still pending
			time.sleep(0.05)
		
		self.xAxis.virtualNode.stepSync(maxSteps, velocity, velocity, 0)	#start move, no acceleration
		
		#update machine position
		self.machinePosition[0] += self.xAxis.getDelta(xSteps)
		self.machinePosition[1] += self.yAxis.getDelta(ySteps)
		self.machinePosition[2] += self.zAxis.getDelta(zSteps)
		





EFD = nodes.soloIndependentNode(name = 'EFD', interface = interfaces.serialInterface(baudRate = 115200, interfaceType = 'lufa',
																								portName = "/dev/tty.PL2303-000012FD"),
									filename = 'ultimus.py')

#myMachine = virtualMachine()
#myMachine.move(25, 25, 25, 50)
#
#EFD.dispense()
#time.sleep(5)

fabnet = interfaces.gestaltInterface('FABNET', interfaces.serialInterface(baudRate = 115200, interfaceType = 'ftdi', portName = '/dev/tty.usbserial-FTVG67VT'))
myNode = nodes.networkedGestaltNode('myNode', fabnet, filename = '086-005a.py')
#myNode.loadProgram('086-005a.hex')
myNode.setMotorCurrent(0.5)
myNode.stepConfigRequest(1, 3000)
myNode.stepSync(10000,1000,0,500)
for i in range(12):
Exemplo n.º 13
0
 def initInterfaces(self):
     self.arduinoInterface = interfaces.serialInterface(
         baudRate=38400, interfaceType="lufa", portName="/dev/ttyACM0"
     )
Exemplo n.º 14
0
	def init(self, **kwargs):
		#connect to the printrboard
		self.interface.set(interfaces.serialInterface(baudRate = 200000))
		self.interface.acquirePort('lufa')