Jump to content
bowgod02

Slave Control

Recommended Posts

Ron, try adding the sertxd code line listed below to the cds_chk function:

 

CdsChk:

High CDS_Out 'Turn on pin to supply voltage to cds voltage divider

readadc 4 , CDS_Value ' Read light value

sertxd ("CDS Value ",#CDS_Value,13,10)

 

Then run your code and press F8 to open the serial communication window. Every time the cds_chk function runs it will post the value in the window...kinda like debug but without having to stop everything. This should show you whats going on after the flash and hopefully why it's changing back to daytime.

 

Share this post


Link to post
Share on other sites
 

 

getting back to reading current,

 

if the device you want to read current has a power switch, turn it OFF and clip the amp meter's leads across the power switche's 2 terminals. This effectively (and easily) puts the meter in series

Share this post


Link to post
Share on other sites
 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×