View Single Post
  #4  
Old 29-06-2016, 09:35 PM
aarong (Aaron)
Registered User

aarong is offline
 
Join Date: Mar 2013
Location: Lower Blue Mountains, NSW
Posts: 92
Hi again,

You may have already seen this: http://astro.neutral.org/software/tu...m-arduino.html

Also I have had a go at making a cloud sensor and make an ASCOM driver for it. I have had some success, but still learning. You can find the code here: https://github.com/agreenville

The SGL Observatory Automation yahoo group had some great info. I'll write it all up when I get time and finish testing it. They will be able to help you.

The cloud sensor is connected as a safety device and there isn't that much going on with the ASCOM driver (probably why I could get it to work). Just sends commands seeing if things are still connected and if conditions are safe. At the Arduino end, there needs to be some functions to receive these commands and send a reply. My Arduino code is on GitHub as well.

One thing I found that helped was giving the commands a character that defines the end of the command. I used "#". Then there are some functions in VB and Arduino that will read the command until the "#". This helps in sending and receiving the commands in full.

Microsoft Visual Studio and the ASCOM developer downloads are handy for using the existing templates. There is an alternative to VS, but I haven't used it.

I hope some of this helps and do check out the SGL Observatory Automation yahoo group. I'm also sure there will be someone here that can help out more than this beginner.

Cheers,
Aaron
Reply With Quote