示例#1
0
文件: home.py 项目: toozinger/POF
def home_axes():
    #################X AXIS HOME#################
    GPIO.output(xDir, GPIO.LOW)
    while (GPIO.input(xSensor)):
        pulse(xPul, pdX)
    global_variables.set_to("x", 0)

    #################R AXIS HOME#################
    status = [0]

    while (sum(status) != 5):
        pulse(rPul, pDr)
        status = []
        for i in range(5):
            status.append(GPIO.input(limit))

    GPIO.output(rDir, GPIO.HIGH)

    moveLater = 0

    while (GPIO.input(rSensor) == 0):
        pulse(rPul, pdR)
        moveLater = 1
    if (moveLater):
        move.r(-1)
    global_variables.set_to("r", 0)

    #################Z AXIS HOME#################
    GPIO.output(zDir, GPIO.LOW)
    while (GPIO.input(zSensor) == 0):
        pulse(zPul, pdZ)
    global_variables.set_to("z", 0)
示例#2
0
def make_layer(mass, angle):
    move.x("deposition"
           )  #select station from deposition, heating, compression, or end

    move.r(
        angle
    )  #select plate angle (not done yet due to still unknown scaling factor)

    peripherals.auger_pulse("long")
    time.sleep(3)
    peripherals.auger_pulse("short")
    time.sleep(3)

    move.r(0)

    peripherals.heat_on()

    move.x("heating")
    time.sleep(30)
    peripherals.heat_off()

    move.x("compression")
    time.sleep(0.1)

    time.sleep(5)
    time.sleep(0.1)

    peripherals.heat_on()

    move.x("heating")
    time.sleep(10)

    peripherals.heat_off()
示例#3
0
def first_layer(mass, angle):
    move.x("deposition")
    move.r(angle)
    move.z("down")
    #zero the scale
    #dispense media using scale and motor
    move.r(0)
    move.z("up")
    move.x("heating")
示例#4
0
def last_layer(mass, angle):
    move.x("deposition") #select station from deposition, heating, compression, or end
    move.r(angle) #select plate angle (not done yet due to still unknown scaling factor)
    move.z("down") #select up or down
    #zero the scale
    #dispense media using scale and motor
    move.r(0)
    move.z("up")
    move.x("heating")
    #heat for some amount of time
    move.x("compression")
    #actuate pneumatic piston
    move.x("end")