I want to add a garage door opener to open and close my observatory's roll-off roof. I can easily program a Linux single-board computer to accept commands received on a serial port or Ethernet connection, and actuate relays to control the garage door opener.

My problem is that I'm stuck trying to figure out how to write an ASCOM roof driver. The sample code from the ASCOM site assumes I'm using Microsoft's Visual Studio (I'm not -- I use SharpDevelop), and there is virtually no information about how the code is structured.

Can anyone point me to a clear tutorial on writing an ASCOM driver? Or does someone have working C# (or VB) code they'd be willing to share with me? If I could get my hands on some code that doesn't require a Visual Studio project to compile, I'm sure I could work my way through it.

Thanks in advance for any help.

Mike