-->
Page 1 of 1

Simple first program on WEMOS D1 Mini

PostPosted: Mon Jan 22, 2018 2:59 am
by PerH
Hi!

My first project with this cool litte unit is to make my Epson Projector controllable over Wifi. It has a RS232 contact and good command documentation.

I started with installing Arduino IDE, and i loaded one D1 with ESPeasy. I also bought a RS232 to TTL converter, and hooked it up.

This enabled me to control the projector by telnet to the D1, and send commands to the projector. Problem is, ESPeasy also transmits internal log messages to the serial bus, which the projector replies with ERR to..

This is why i want to make my own code simply for this use, Telnet is simple to use, so i'll try that.
(other suggestions to easily implementable communication to the D1 is well recieved, but i'll try to steer clear of MQTT for now)

Anyone here who can start me off in the right direction? :)

Re: Simple first program on WEMOS D1 Mini

PostPosted: Mon Jan 22, 2018 4:30 pm
by PerH
Well, i didnt see the "Wait for administrator" message, so I reposted it. Administrator may delete this post, sorry. :) :oops:

Re: Simple first program on WEMOS D1 Mini

PostPosted: Mon Jan 22, 2018 11:19 pm
by gdsports
See the WiFiTelnetToSerial example included when the ESP8266 package is installed.

https://github.com/esp8266/Arduino/blob ... Serial.ino

Or for a full featured (but not Arduino) WiFi to UART program see esp-link.

https://github.com/jeelabs/esp-link#esp ... -wrestmqtt

Re: Simple first program on WEMOS D1 Mini

PostPosted: Tue Jan 23, 2018 3:21 am
by PerH
Perfect! thanks!

ESP Link is loaded now and it works well, but I think i'll try to modify the arduino example so the output is interpreted.

I.E. error codes are much easier to get in clear writing rather than a number.