Newbie Arduino Uno to ESP8266 - 12

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Foggy
Normal user
Posts: 8
Joined: 30 Aug 2015, 00:09

Newbie Arduino Uno to ESP8266 - 12

#1 Post by Foggy » 06 Jan 2016, 14:30

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.

chrille
Normal user
Posts: 88
Joined: 26 Aug 2015, 15:11
Location: Horsens, Denmark

Re: Newbie Arduino Uno to ESP8266 - 12

#2 Post by chrille » 06 Jan 2016, 14:39

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
Jan Chrillesen, Denmark

Martinus

Re: Newbie Arduino Uno to ESP8266 - 12

#3 Post by Martinus » 06 Jan 2016, 16:44

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.

Foggy
Normal user
Posts: 8
Joined: 30 Aug 2015, 00:09

Re: Newbie Arduino Uno to ESP8266 - 12

#4 Post by Foggy » 06 Jan 2016, 19:18

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.

BertB
Normal user
Posts: 1036
Joined: 25 Apr 2015, 14:39

Re: Newbie Arduino Uno to ESP8266 - 12

#5 Post by BertB » 20 Jan 2016, 17:48

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.

kr0815
Normal user
Posts: 132
Joined: 18 Nov 2015, 18:24

Re: Newbie Arduino Uno to ESP8266 - 12

#6 Post by kr0815 » 20 Jan 2016, 19:31

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

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 28 guests