Page 1 of 1

Newbie Arduino Uno to ESP8266 - 12

Posted: 06 Jan 2016, 14:30
by Foggy
Hi All,

I am a real newbie, but coming along.
I have a project that I would like to try.

I would like to find out when my washing machine / Dishwasher has stopped
I am going to hook up ACS712 Current sensor to an Arduino and I hope by measuring the current and then setting a variable to tell me if the current is 0 or x, I can set a digital pin high or low.

However I would then like to be able to see this on Domoticz.

Question: Can I just use a voltage divider (Resistors) from the output of the Arduino to get it down to 3.3v?
If yes would it be just a simple matter of connecting a wire from the output of the voltage divider into the esp8266 (Ground of Arduino & ESP conncted)
Then I would configure espeasy to act as a switch.

*** Just had a thought - would this work if I used a "Level shifter"?

Best wishes for 2016.

James.

Re: Newbie Arduino Uno to ESP8266 - 12

Posted: 06 Jan 2016, 14:39
by chrille
Foggy wrote:Question: Can I just use a voltage divider (Resistors) from the output of the Arduino to get it down to 3.3v?
If yes would it be just a simple matter of connecting a wire from the output of the voltage divider into the esp8266 (Ground of Arduino & ESP conncted)
Then I would configure espeasy to act as a switch.
Yes, you can use a simple voltage divider. I use the same to connect the ECHO pin of a HC-SR04 module to the ESP8266 (the HC-SR04 is a 5V module)

- Jan

Re: Newbie Arduino Uno to ESP8266 - 12

Posted: 06 Jan 2016, 16:44
by Martinus
Foggy wrote:...I would like to find out when my washing machine / Dishwasher has stopped
I am going to hook up ACS712 Current sensor to an Arduino...
Hello James,

I wonder if you still need an Arduino Uno to solve this.
I guess you should be able to connect the sensor with proper level shifting to the ADC port of the ESP module?
It looks to me like this sensor has a simple analog output.

Re: Newbie Arduino Uno to ESP8266 - 12

Posted: 06 Jan 2016, 19:18
by Foggy
Thank you Jan for confirmation.

Hi Martinus. To be honest I was wondering the same thing myself, but I could not see any Google entries. I think I will try with the Arduino + ESP first as I kind of understand the sketch. However clearly your suggestion is far more elegant. I just need to google what and how you use ADC port :D .

I'll be back I'm sure.

Thank you for your help.

Best wishes.

James.

Re: Newbie Arduino Uno to ESP8266 - 12

Posted: 20 Jan 2016, 17:48
by BertB
Foggy wrote:Hi All,

I am a real newbie, but coming along.
I have a project that I would like to try.

I would like to find out when my washing machine / Dishwasher has stopped
I am going to hook up ACS712 Current sensor to an Arduino and I hope by measuring the current and then setting a variable to tell me if the current is 0 or x, I can set a digital pin high or low.

However I would then like to be able to see this on Domoticz.

Question: Can I just use a voltage divider (Resistors) from the output of the Arduino to get it down to 3.3v?
If yes would it be just a simple matter of connecting a wire from the output of the voltage divider into the esp8266 (Ground of Arduino & ESP conncted)
Then I would configure espeasy to act as a switch.

*** Just had a thought - would this work if I used a "Level shifter"?

Best wishes for 2016.

James.
Hi Foggy,

Just to be sure, I do not know what type of board you are going to use, but many of the Chinese break-out boards do not comply with directives for safety distances for isolation between the terminal side for the current measuring leads and the power and output leads.
This could cause dangerous safety issues when using it in situations where currents are measured of appliances connected directly with mains.

Re: Newbie Arduino Uno to ESP8266 - 12

Posted: 20 Jan 2016, 19:31
by kr0815
ACS712 is already a separte unit, no direct contact to mains, so don´t worry to much about safety, just keep the main line insulated