Page 1 of 1

Serial Communikation Arduino ->espeasy

Posted: 04 Aug 2019, 01:24
by Jaenes
Hey Guys,
i have a problem: I have an Arduino mega which is used for some analog measurements. I need this data in my wifi. So how can I get the serial data from my Arduino into espeasy on my nodemcu???
I have connected my arduiono and nodemcu 3.3V, GND, RX, TX. Which settings do I need in espeasy?

Re: Serial Communikation Arduino ->espeasy

Posted: 04 Aug 2019, 03:02
by happytm
You can use ProMini extender plugin.It works on I2C bus though.

Thanks

Re: Serial Communikation Arduino ->espeasy

Posted: 04 Aug 2019, 12:47
by TD-er
You can also try my (highly experimental) serial proxy plugin which does read strings from serial and make them available for controllers.

See https://github.com/letscontrolit/ESPEasy/pull/2529

It is still under development, but you can at least try to see if it may be suitable for your needs.

Re: Serial Communikation Arduino ->espeasy

Posted: 04 Aug 2019, 19:07
by Shardan
If you want to set values inside ESPEasy there is a workaround to get serial running:

- define a dummy variable inside ESPEasy.

- program a serial routine in the arduino sketch that sendsa "taskvalueset,x,y,z"
(X=Task nummer, y=Task value number, z=value to set the task value to()

For example Task 3 in ESPEasy is a dummy with two values "Analog1" and "Analog2"

To set Analog2 in ESPEasy you should send a
taskvalueset,3,2,<your value here>

Uh forgot:
Check serial speed on both sides or you get data garbage....
Don't ask why I remeber...

Re: Serial Communikation Arduino ->espeasy

Posted: 04 Aug 2019, 19:56
by TD-er
@Shardan
That's also a nice one, to let Arduino generate ESPeasy commands

Re: Serial Communikation Arduino ->espeasy

Posted: 04 Aug 2019, 22:13
by Shardan
TD-er wrote: 04 Aug 2019, 19:56 @Shardan
That's also a nice one, to let Arduino generate ESPeasy commands
Honestly i read this solution somewhere here at the forum a while ago... it works.
And it can do more then "taskvalueset" - every command that can be used by serial is possible.

Re: Serial Communikation Arduino ->espeasy

Posted: 21 Aug 2019, 19:36
by kimot
But do not forgot, that Arduino Mega has got 5v TX, RX and ESP 3.3V