Connect to other controllers.

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Lerik
Normal user
Posts: 10
Joined: 30 Nov 2018, 09:19

Connect to other controllers.

#1 Post by Lerik » 30 Nov 2018, 09:57

Help the student.
It is necessary to connect ESPEasy to the Atmega 328P MCU via the serial port for data transmission to the MCU and then process this data to the MCU.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Connect to other controllers.

#2 Post by grovkillen » 30 Nov 2018, 10:47

Ok, what do you need?
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Lerik
Normal user
Posts: 10
Joined: 30 Nov 2018, 09:19

Re: Connect to other controllers.

#3 Post by Lerik » 30 Nov 2018, 12:01

Sorry for bad english.
We are studying the programming of ATMEL products. At home I managed to connect to the ESP8266 with factory firmware. Loaded your firmware. ESPeasy provides data to the COM port, but I cannot get it to ATMEGA328P. Tell me what you need to set up so that the data is loaded into ATMEGA328P.
May need a delay? But I do not know where to start.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Connect to other controllers.

#4 Post by grovkillen » 30 Nov 2018, 15:49

Using serial server maybe? Please give us more information. What you have tried, settings, pictures etc etc
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Lerik
Normal user
Posts: 10
Joined: 30 Nov 2018, 09:19

Re: Connect to other controllers.

#5 Post by Lerik » 30 Nov 2018, 17:59

The task to receive data without the Internet.
scheme.png
scheme.png (35.93 KiB) Viewed 7845 times
It is advisable to use the COM port. Or use I2S, then how to enable the slave mode?

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Connect to other controllers.

#6 Post by grovkillen » 30 Nov 2018, 20:48

What do you need the ATmega for? Can't the ESP drive the LCD?
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Lerik
Normal user
Posts: 10
Joined: 30 Nov 2018, 09:19

Re: Connect to other controllers.

#7 Post by Lerik » 01 Dec 2018, 07:44

1. ATmega works as a server.
2. In addition to ESP, the ATmega also has a clock and an alarm clock.
3. The LCD is connected by 6 pins to the ATmega.
4. There are many pages on the LCD.
5. ATmega saves some data to the SD card.
I managed to listen to the COM port, and read the data on the RXINTO interrupt.
But I can not yet display the line on the LCD as in the COM port.
Last edited by Lerik on 01 Dec 2018, 07:45, edited 1 time in total.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Connect to other controllers.

#8 Post by grovkillen » 01 Dec 2018, 07:45

So that is ATmega problem?
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Lerik
Normal user
Posts: 10
Joined: 30 Nov 2018, 09:19

Re: Connect to other controllers.

#9 Post by Lerik » 01 Dec 2018, 07:51

Not. My knowledge of string data. I hope I will translate ASCII into a string. And all will turn out.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Connect to other controllers.

#10 Post by grovkillen » 01 Dec 2018, 08:18

Ok, I have a hard time getting the project and how you want the ESP Easy to do the communication with the ATmega. Maybe it's that simple that you need to turn the serial logging to "none"?
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Lerik
Normal user
Posts: 10
Joined: 30 Nov 2018, 09:19

Re: Connect to other controllers.

#11 Post by Lerik » 01 Dec 2018, 09:25

Is it possible to output data to the COM port not by delay, but by change? And / or on command from the COM port?
And Else. How to get a log1 signal from the release button (back front)

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Connect to other controllers.

#12 Post by grovkillen » 01 Dec 2018, 09:34

Yes using rules you can do it. But it really sounds that the ATmega is one unit too many. What exactly is the ATmega doing? We're supporting 2004 sized LCD displays out of the box.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Lerik
Normal user
Posts: 10
Joined: 30 Nov 2018, 09:19

Re: Connect to other controllers.

#13 Post by Lerik » 01 Dec 2018, 10:52

1. I do not have LCD with I2C.
2. ATmega can display a lot of information.
3. I do not study Internet programming yet. And everything connected with it. Therefore, I save all the information locally. Not connecting to the internet. (Example: spoiled bully you online What is the temperature graph that shows or gas meter, water.?)
It's too much. Sit at work and watch how much water your wife spent in your absence. This is needed once at the end of the month! That the server counted and sent data to the one who gives energy and water. It sends me a message how much to pay.
Tomorrow the owner of Domoticz or other servers will be a millionaire. Because “someone” was told when and how much John Smith was in the shower, and in what room he is now. Or what will happen to a commercial poultry farm if a competitor gets access to the climate?This is my personal information! And I want so.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Connect to other controllers.

#14 Post by grovkillen » 01 Dec 2018, 13:14

ESP Easy support your LCD. You can do offline dumping of values to SD in ESP Easy or have a MQTT broker and dump values from there. I have a headless system myself.

So my suggestion is to skip the ATmega all together and go 100% ESP Easy. I will be a lot more helpful then ;)
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Lerik
Normal user
Posts: 10
Joined: 30 Nov 2018, 09:19

Re: Connect to other controllers.

#15 Post by Lerik » 01 Dec 2018, 14:59

My future specialty is industrial automation. There their protocols and other power. For me, ESP is a toy.
But for the development is very useful.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Connect to other controllers.

#16 Post by grovkillen » 01 Dec 2018, 15:26

Sorry, I totally are not understanding what you're asking for. I'm suggesting a solution from ESP Easy's point of view. Can't hold me back from that can we? ;)
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Lerik
Normal user
Posts: 10
Joined: 30 Nov 2018, 09:19

Re: Connect to other controllers.

#17 Post by Lerik » 01 Dec 2018, 17:00

You are proposing to abandon Atmega, and completely switch to ESP Easy.
But after all, each of the options has its advantages and disadvantages.
I asked for help in connecting to Atmega to expand the functionality of ESP Easy.
I decided this question.
Yes, the ESP processor is good, and ESP Easy is a mini Arduino with wired sketches. Convenient interface.The work is awesome. Well done.
I think you need to add an MCU to the controllers or devices. For example on I2C. Then the functionality of ESP Easy will greatly increase. In addition, data transmission over the bus is much safer and safer than over the air. At the forum I found a few questions on this topic. So there is demand. And there is no answer.
Another idea: is it possible to install a local mott broker who knows Modbus on ESP and connect to a 485 adapter? Install in a compact case with autonomous power.
Last edited by Lerik on 03 Dec 2018, 08:28, edited 1 time in total.

Domosapiens
Normal user
Posts: 307
Joined: 06 Nov 2016, 13:45

Re: Connect to other controllers.

#18 Post by Domosapiens » 01 Dec 2018, 18:14

@Lerik,
you could start reading the Wiki first ...
https://www.letscontrolit.com/wiki/inde ... le=ESPEasy
30+ ESP units for production and test. Ranging from control of heating equipment, flow sensing, floor temp sensing, energy calculation, floor thermostat, water usage, to an interactive "fun box" for my grandson. Mainly Wemos D1.

Lerik
Normal user
Posts: 10
Joined: 30 Nov 2018, 09:19

Re: Connect to other controllers.

#19 Post by Lerik » 01 Dec 2018, 20:20

Thank you!

Post Reply

Who is online

Users browsing this forum: No registered users and 44 guests