Go Down

Topic: ESP8266 (Read 102170 times) previous topic - next topic

bojankoce



Hey guys.

I use ESP8266 module and Arduino UNO to control 40W light bulb via simple relay (5V input, 10A/250V output). In my first iteration of the project, I used LED diode instead of a light bulb. Everything was DC and everything worked fine! By the way, I give power supply to the ESP8266 module through 3.3V pin on the Arduino Uno board.

However, when I replace LED with a 40W light bulb supplied by AC, troubles appear! I eventually can ON/OFF light bulb just one or two times and everything just stop. It seems to me that the presence of the AC supplied wires introduces some noise that makes ESP8266 module confused and frozen.
I just wanted to hear from you about your experience with the ESP8266 module around AC wires. Did you encounter any trouble ? Is there anything I'm missing all the time ?

Thank you in advance for your time and effort.

Sincerely,
Bojan.

oxijin

There's a new ESP8266 Arduino WiFi Shield available at www.8266.rocks.  Lots of information including examples, schematics, instructions and tutorial videos are available here.  http://www.8266.rocks/#!freeboarddweetexample/c3vb




Simpson_Jr

Looks quite nice,  I like the possibility of using it as either shield/standalone board, with the freedom to choose every pin you like.  It's a pity only 2 types of modules can be used.

Unfortunately I won't be buying an 8266 soon, my wife won't even allow me to visit Ebay for more as 5 minutes a day, because of our bank account :(

Anyway, I have been creating an Eagle Cadsoft library for modules 1 - 12 though plus 2 DW- modules.

Feel free to use it any way you like...

PSG_Guru

Hello,
    Simplest way to send message from an Android app using ESP8266 to Arduino Mega? I would deeply appreciate help in terms of the Connection of the app and the ESP8266 ; and sending data, to light an led on pin 13 of Mega2560.
Thanks

rogerClark

What do you mean by

Arduino app
Freelance developer and IT consultant
www.rogerclark.net

PSG_Guru

What do you mean by

Arduino app
Sir,
   Its ANDROID app.

rogerClark

OK.

Which "Android App" , there are so many of them ;-)
Freelance developer and IT consultant
www.rogerclark.net

PSG_Guru

We made an app suggested by
http://allaboutee.com/2015/01/20/esp8266-android-application-for-arduino-pin-control/
But, issue is, it ain't working for us. So thought of sharing and getting some help form the forum.
i just wanna know Can I 'Send data, like a button press on an APP saying 'GO', which is read by the arduino Mega, via ESP8266, and send it to a particular PWM pin, say pin #2 on MEGA, to be read by other hardware connected to that particular PWM pin (#2)'
Thanks

rogerClark

Quote
i just wanna know Can I 'Send data, like a button press on an APP saying 'GO', which is read by the arduino Mega, via ESP8266, and send it to a particular PWM pin, say pin #2 on MEGA, to be read by other hardware connected to that particular PWM pin (#2)'
Yes. This is technically feasible
Freelance developer and IT consultant
www.rogerclark.net

Paulware8

  Sorry this is off -topic, but I have found the simplest way to communicate from Android to Mega or Arduino is using bluetooth and MIT App Inventor 2.

electricalhobbyist

ESP8266 can work stand alone. Can switch on and off devices. I have seen it here. might as well help. http://thinkingparts.blogspot.com/2015/02/home-automation-lan-based-stand-alone.html

trackerj

ESP8266 can work stand alone. Can switch on and off devices. I have seen it here. might as well help. http://thinkingparts.blogspot.com/2015/02/home-automation-lan-based-stand-alone.html
If you want it standalone, take a look also here:
http://esp8266-projects.blogspot.com/2015/03/esp8266-cbdb-web-power-switch-for-mains.html

It still looks more stable using ESP8266 Module as WIFI only module and run the Main Application on a separate MCU, but for small apps it's quite stable already :)
http://www.esp8266-projects.com

EasyIoT

Here are some useful tutorials for ESP8266 and Arduino:


ESP8266 temperature and humidity sensor

ESP8266 relay switch

ESP8266 water leak (rain, soil moisture) sensor

ESP8266 air pressure and weather forecast sensor

ESP8266 real time clock display

ESP8266 LED dimmer

ESP8266 touch screen thermostat


It uses EasyIoT server (windows or Raspberry) with nice Web interface. It also supports SMS control, native app (comming soon), data logging and automation functions.




impeham

see attached pics for this pins and serial monitor screenshots.

i just got the ESP8266 module from here:

http://www.ebay.com/itm/ESP8266-Serial-WIFI-Wireless-Transceiver-Module-Send-Receive-LWIP-AP-STA-arduino-/181583935325?pt=LH_DefaultDomain_3&hash=item2a473ef75d

I wired it up:
RX to arduino's pin 3
TX to arduino's pin 2
VCC + CH_PD to 3.3v input (not related to arduino)
GND (black) to ground

Using the following arduino code:

--------
#include <SoftwareSerial.h>

SoftwareSerial mySerial(2,3);

void setup()
{
  mySerial.begin(9600);
  Serial.begin(9600);
}

void loop()
{
  if (mySerial.available())
    Serial.write(mySerial.read());
  if (Serial.available())
    mySerial.write(Serial.read());
}
--------
The wifi red led is working, and I'm trying to send commands to it using the serial monitor (it is set to 9600 baud and carriage return mode).
When I send the command, I can see the WIFI's blue light flickering (I'm sending AT+GMR to display its firmware version) - seems that it is getting the transmission, but the serial monitor displays strange characters and not the expected result (happens for any AT command I send).

I want to test it with AT commands before I code an arduino app for it.


What am I missing here?


rogerClark

#59
Mar 28, 2015, 06:50 am Last Edit: Mar 28, 2015, 06:56 am by rogerClark
Hey Guys

I'm not sure if any of your have seen this new thread


http://forum.arduino.cc/index.php?topic=311117.new#new

This is compiling code straight onto the ESP8266 using the Arduino IDE.

You can get an installer exe from the guys website, which puts the files in the Windows Programs (x86) folder, or the technically better approach for Arduino 1.6.x (which is now the current release of the Arduino SW) is to copy the files into use hardware folder in the normal Arduino folder e.g. where the libraries folder is

So I've forked the repo and built a version for 1.6.x  

https://github.com/rogerclarkmelbourne/arduinesp


Note. Looking at the current code it seems to be based on some older version of the Arduino, I'm not even sure its Arduino 1.0 as the Hardware Serial class is not derived from the Stream class as it is in Arduino 1.0

However it does work !


Edit

Someone just told me about another Arduino to ESP8266 build
https://github.com/esp8266/Arduino
Freelance developer and IT consultant
www.rogerclark.net

Go Up