Wifi for Weather Station WS2357 Lacrosse

by philoupoat6283 in Circuits > Wireless

4375 Views, 32 Favorites, 0 Comments

Wifi for Weather Station WS2357 Lacrosse

20151007_213856.jpg
20151115_112100.jpg

Use of the module ESP8266 with a meteo station LACROSSE WS2357

PART

20151007_213842.jpg
20151007_213755.jpg
20151007_214018.jpg
icl7660small1.jpg
SKU116803 (1).jpg
SKU116802 (1).jpg
WiFi Serial Transceiver Module.jpg
max232.jpg

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 €

SUPPLY 6V

LM317-typical-adjustable-regulator-ckt.png

Realize a supply 6v with the regulator lm317

NEGATIVE -6V

NegativeSupply.png

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

CONNECT RS232 and ESP8266

microcontroller_uart_max232_circuit.jpg
meteo3.jpg

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...

UPGRADE ESP8266

SKU116802 (1).jpg
esp8266-pins.png
SKU116803 (1).jpg
rtKQE.png
2016-03-06 19.13.25.jpg
2016-03-12 21.12.34.jpg

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)

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

ENJOY

2016-03-12 21.19.03.jpg
20151115_112120.jpg

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

ASSEMBLY

20151007_213842.jpg
20151007_214018.jpg
2016-03-07 21.39.28.jpg
2016-03-07 21.39.20.jpg
2016-03-07 21.39.38.jpg
2016-03-07 21.38.56.jpg

Assemble the circuits on a plate