Introduction: Wifi for Weather Station WS2357 Lacrosse

About: diy student

Use of the module ESP8266 with a meteo station LACROSSE WS2357

Step 1: PART

Here is a realization a meteo station ws2357 in WiFi with the module ESP8266 to realize this assembly

it is necessary:

ESP8266 : 3.49 €

http://www.banggood.com/Upgraded-Version-1M-Flash-...

Power converter : 1.75 €

http://www.banggood.com/Mini-DC-DC-Converter-Step-...

USB converter FTDI : 3.12 €

http://www.banggood.com/buy/ftdi-serial-adapter

LM317 : 4.10 €

MAX 232 : 2.50 €

ICL7660 : 3.50 €

Step 2: SUPPLY 6V

Realize a supply 6v with the regulator lm317

Step 3: NEGATIVE -6V

Realize a negative tension of -6v with the circuit icl7660

Step 4: CONNECT RS232 and ESP8266

Realized a converter rs232 ttl and to DB9 connector Pin 2, 3, and 5

On pin 11 and 12 connect the WiFi transmitter ESP8266 with a resistance of 1k ohm

The working unit has DTR as -6v and RTS at +6v

to other realize

http://www.kiblerelectronics.com/corner/ccii_12.ht...

http://www.astrosurf.com/ubb/Forum2/HTML/033894.ht...

http://www.open-electronics.org/how-to-connect-a-w...

Step 5: UPGRADE ESP8266

Adjust the converter dcdc 6v to 3.3v

Link the module esp8266 with a FTDI

upgrade the Firmware of the module in LUA language

Look

https://github.com/nodemcu/nodemcu-flasher

http://randomnerdtutorials.com/home-automation-usi...

http://www.xess.com/blog/esp8266-reflash

http://www.allaboutcircuits.com/projects/update-th...

Program with ESPlorer the module with the code init.lua and bridge.lua to realize a serial bridge tcp / ip

Look

https://github.com/4refr0nt/ESPlorer

https://github.com/nodemcu/nodemcu-firmware

http://www.esp8266.com/viewtopic.php?f=24&t=4152

------------------------------------------------------------------------------------------------------------------------------------------------------

-- init.lua
abort = false

wifi.setmode(wifi.STATION)

--modify according your wireless router settings

wifi.sta.config("SSID","PWS")

wifi.sta.connect()

function startup()

tmr.stop(2)

if abort == true then

print('startup aborted')

return

end

uart.setup(0, 9600, 8, 0, 1, 1)

dofile("bridge.lua")

end

abort = false

tmr.alarm(1, 1000, 1, function()

if wifi.sta.getip()== nil then

print("IP unavailable, Waiting...")

else

tmr.stop(1)

print("Config done, IP is "..wifi.sta.getip())

tmr.alarm(2, 5000, 0, startup)

end

end)

------------------------------------------------------------------------------------------------------------------------------------------------------

-- Bridge.lua
-- Based loosely on code by Thorsten von Eicken, esp8266-lua-bridge , (C) 2015

uartConn = nil -- current connection that uart input goes to

ser2net = net.createServer(net.TCP, 28800)

ser2net:listen(23, function(conn)

if uartConn then

uartConn:close()

else

uartConn = conn

end

conn:on("sent",function(conn)

collectgarbage()

end)

-- Disconnection

conn:on("disconnection", function(conn)

uartConn:close()

collectgarbage()

end)

-- Reconnection

conn:on("reconnection", function(conn)

if uartConn then

uartConn:close()

else

uartConn = conn

end

end)

-- UART receive, TCP send

uart.on("data", 0, function(data)

conn:send(data)

end, 0)

-- TCP receive, UART send

conn:on("receive", function(conn, data)

uart.write(0, data)

end)

end)

------------------------------------------------------------------------------------------------------------------------------------------------------

Step 6: ENJOY

Download the software USR-VCOM virtual serial converter

http://www.tcp232.net/com-net-software

Download the sofware to weather station SkinWS2800 and other

http://schnellbach.pagesperso-orange.fr/PageSkinTe...

Enjoy

Step 7: ASSEMBLY

Assemble the circuits on a plate