AC Current Sensor, instead of Door Switch...

37 views
Skip to first unread message

candjp...@gmail.com

unread,
Feb 17, 2019, 4:58:06 PM2/17/19
to PrivateEyePi
I am need of some help setting up an AC current switch to work like the door switch sold on JemRF. I'll start with a little background.

I purchased a dozen or so temperature sensors for a different application and decided I needed about 10 AC current sensors instead of the temperature. I currently own a chicken house and I am having trouble with a feed line motor in a particular house. I want to be notified each time a motor kicks on so that I know the poultry is receiving feed. I am currently running privateeyepi in the facility. I am already receiving reports of when someone enters the facility (door switch), temperature levels (Temp sensor), and Light readings (light sensor) so I know the daily lights settings are correct (on/off different parts of the day).

With that said, I decided to remove the temperature sensor wires from the temperature sensor I purchased from JemRF. I then connected the AC Current sensor (link below) to the RF sensor on the BtnA ports (just like a door sensor). 


Knowing it was set up as a temp sensor, I proceeded to "wake" (after two weeks of trying "WAKE", when it was really "AWAKE") the sensor, and apply the following settings...

TYPE1
BUTTON
NOMSG3
INTVL999
SLEEP

Once this was complete, I attached the current sensor to the appropriate wire and tested the switch. When the motor started, I received a "BUTTONON, BUTTONOFF" about 3-4 times per second. Which obviously caused my uploads to skyrocket. I did something very similar to this by using a micro switch, which appeared to function just fine. I just don't understand why it wouldn't say BUTTONON when it recognizes a current, and BUTTONOFF when it doesn't. 

Really what I want help with is to make sure my settings are correct for the type of switch I am trying to run. Maybe I have my wires crossed, maybe the switch isn't working properly but I have to start eliminating the possibilities. Any and all help is greatly appreciated. 


Gadjet Nut

unread,
Feb 17, 2019, 11:51:05 PM2/17/19
to candjp...@gmail.com, PrivateEyePi
Hi,

This link may help.

The problem is you are using an analog sensor output to switch a digital input. The output of the current sensor needs to be conditioned to trigger the switch. You can use an analog to digital converter like the one attached to this water sensor (

Another option is to use the analog input on the Flex RF module that will give you an analog reading which you can calibrate using code(ie: if reading>x then send message to PrivateEyePi). 

We received some current sensors recently and plan to do some testing with them in combination with the RF sensor. Stay tuned. 





candjp...@gmail.com

unread,
Feb 18, 2019, 10:17:54 AM2/18/19
to PrivateEyePi
Thank you so much for the help! After weeks of working on this, I never would have thought of that. It seems like it would be easier for me to use the converter as I have quite of few of those laying around.

As a follow up to this, once I hook up the "converter" to the current sensor, where do I tie in the single Digital Out wire on the RF sensor? Would it be to the Rx pin or would it go in one of the BtnA pins? 

I will try and put everything together and let you know how it goes...

JM

Gadjet Nut

unread,
Feb 18, 2019, 8:30:32 PM2/18/19
to candjp...@gmail.com, PrivateEyePi
Follow the schematic for the motion sensor. You need a npn2222a transistor that opens and closes the button circuit when the digital pin goes high/low.. 

Reply all
Reply to author
Forward
0 new messages