Serial Communikation Arduino ->espeasy

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Jaenes
Normal user
Posts: 1
Joined: 04 Aug 2019, 01:12

Serial Communikation Arduino ->espeasy

#1 Post by Jaenes » 04 Aug 2019, 01:24

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?

happytm
Normal user
Posts: 105
Joined: 15 Aug 2016, 17:53

Re: Serial Communikation Arduino ->espeasy

#2 Post by happytm » 04 Aug 2019, 03:02

You can use ProMini extender plugin.It works on I2C bus though.

Thanks

TD-er
Core team member
Posts: 2793
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Serial Communikation Arduino ->espeasy

#3 Post by TD-er » 04 Aug 2019, 12:47

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.

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Serial Communikation Arduino ->espeasy

#4 Post by Shardan » 04 Aug 2019, 19:07

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

TD-er
Core team member
Posts: 2793
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Serial Communikation Arduino ->espeasy

#5 Post by TD-er » 04 Aug 2019, 19:56

@Shardan
That's also a nice one, to let Arduino generate ESPeasy commands

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Serial Communikation Arduino ->espeasy

#6 Post by Shardan » 04 Aug 2019, 22:13

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

kimot
Normal user
Posts: 171
Joined: 12 Oct 2017, 20:46

Re: Serial Communikation Arduino ->espeasy

#7 Post by kimot » 21 Aug 2019, 19:36

But do not forgot, that Arduino Mega has got 5v TX, RX and ESP 3.3V

Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests