Connect to other controllers.
Moderators: grovkillen, Stuntteam, TD-er
Connect to other controllers.
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.
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.
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Connect to other controllers.
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

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



Re: Connect to other controllers.
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.
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.
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Connect to other controllers.
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

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



Re: Connect to other controllers.
The task to receive data without the Internet.
It is advisable to use the COM port. Or use I2S, then how to enable the slave mode?- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Connect to other controllers.
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

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



Re: Connect to other controllers.
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.
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.
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Connect to other controllers.
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

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



Re: Connect to other controllers.
Not. My knowledge of string data. I hope I will translate ASCII into a string. And all will turn out.
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Connect to other controllers.
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

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



Re: Connect to other controllers.
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)
And Else. How to get a log1 signal from the release button (back front)
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Connect to other controllers.
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

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



Re: Connect to other controllers.
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.
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.
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Connect to other controllers.
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
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

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



Re: Connect to other controllers.
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.
But for the development is very useful.
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Connect to other controllers.
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

ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you



Re: Connect to other controllers.
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.
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.
-
- Normal user
- Posts: 307
- Joined: 06 Nov 2016, 13:45
Re: Connect to other controllers.
@Lerik,
you could start reading the Wiki first ...
https://www.letscontrolit.com/wiki/inde ... le=ESPEasy
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.
Re: Connect to other controllers.
Thank you!
Who is online
Users browsing this forum: No registered users and 16 guests