Skip to content

Add support for 10 micron MGPBox #74

Description

@gnthibault

Follow suggestion from this issue: mworion/MountWizzard4#151

In particular, this pyserial piece of code:

def toggle(): 

	import serial
	import time

	# This is the serial command to toggle 10Micron power
	pulseCommand = ':pulse,1500*\n'

	# Open port
	serialCon = serial.Serial(port=MGPBox, baudrate=38400)

	# Send pulse to relay
	time.sleep(2)
	serialCon.write(str.encode(pulseCommand))
	time.sleep(2)

	# Tell the user that we're done
	print('Toggled power to 10Micron Mount')

	# Close the port
	serialCon.close()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions