Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

EC5 Sensor Program for CR1000


Bayer1 Jul 15, 2021 03:39 PM

Hi, I am looking to use a CR1000 and AM 16/32 multilplexer to us 30 EC5 sensors. I used shortcut to create a program but the readings I am getting aren't good (same in air and in soil). 

Wiring:

1H to Com Odd L

1L to Com Even H

Ground to Com Ground

2H to Com Even L

VX1 to Com Odd H

G to G

12V to 12V

C4 to Clk

C5 to Res

Sensors:

white: 1H

Red: 1L

Bare: grouns

sensor 2: white: 1H

red: 2H

bare ground

Sensor 3 white: 1H, red: 2L, bare: ground

And so on with the sensors

Program as follows:

'CR1000
'Created by Short Cut (3.1)

'Declare Variables and Units
Dim LCount
Public BattV
Public PTemp_C
Public VW(30)

Units BattV=Volts
Units PTemp_C=Deg C

'Define Data Tables
DataTable(Table2,True,-1)
DataInterval(0,1440,Min,10)
Minimum(1,BattV,FP2,False,False)
EndTable

'Main Program
BeginProg
'Main Scan
Scan(1,Min,1,0)
'Default Datalogger Battery Voltage measurement 'BattV'
Battery(BattV)
'Default Wiring Panel Temperature measurement 'PTemp_C'
PanelTemp(PTemp_C,_60Hz)
'Turn AM16/32 Multiplexer On
PortSet(4,1)
Delay(0,150,mSec)
LCount=1
SubScan(0,uSec,10)
'Switch to next AM16/32 Multiplexer channel
PulsePort(5,10000)
'ECHO Probe EC-5 measurement VW on the AM16/32 Multiplexer
BrHalf(VW(LCount),3,mV2500,1,1,3,2500,False,10000,_60Hz,2.975,-0.4)
LCount=LCount+3
NextSubScan
'Turn AM16/32 Multiplexer Off
PortSet(4,0)
Delay(0,150,mSec)
'Call Data Tables and Store Data
CallTable Table2
NextScan

I tried removing the multiplier and offset to get a voltage reading to check my sensors are working but that did not work.

1) What command can I use to get voltage readings?

2) Any ideas why the program might not be working

Thanks in advance


Nico Jul 16, 2021 08:15 AM

Program not working..

Where are you looking for the EC5 sensor readings?
You need to look into the 'Public' Table on the 'Connect' Screen to see them, should change every 1 minute.
Your Table2 does not log any value besides the logger supply voltage..
Table2 also runs not very often.. like once a day only?

Testing of a single EC5 directly on CR1000 (with your multiplexer code = checking your multiplexer code):

White (EC5 sensing output?): 1H
Red (EC5 power input?): VX1
Bare (EC5 GND for signal + power?): Analog Ground

Use your code.. should give you the same readings for all values in VW(30). Look for them in the 'Public' table when you are connected to the logger.

Testing of a single EC5 directly on CR1000 (no multiplexer code = checking sensor working):

Connect as above..

Change code to this:

Public VW

'Define Data Tables
DataTable(_1min,True,-1)
  DataInterval(0,5,Min,10)
  Average (1,VW,IEEE4,False)
EndTable

'Main Program
BeginProg
  'Main Scan
  Scan(1,Min,1,0)
    BrHalf(VW,1,mV2500,1,1,3,2500,False,10000,_60Hz,2.975,-0.4)
    CallTable Table2
  NextScan
EndProg

If you got Loggernet, you will have CRbasic .. open your code in that and if you need any help with a command, use the right mouse button on it (click).
It will give you an easy to use field table for the command and a button for further help/examples.

PS: look on the support pages for Loggernet Patches.. v4.7 is the latest. Download and install.
Then also grab the latest firmware for the CR1000 - version v32.05 is available - and install it into CRbasic and then flash your CR1000 with it. Just in case you deal with some bug from some old firmware version.. I had that 2 weeks ago with a CR800 where a port status reacted inverted and an upgrade from v28 to v32 solved that...

Log in or register to post/reply in the forum.