Posted: Mon Mar 20, 2023 3:01 am Post subject: WizFi360, Translational emails, O-Family ILI9341 Library
On April 15, 2022 I posted a program that uses a WizFi360 WiFi module to send translational emails through an LTE router to the smtp provider smtp2go. Smtp2go then sends messages to my email account. The hardware included an ATMega2560 to interface with the WizFi360 and an ATtiny861A to collect data to be transmitted. The two microcontrollers are linked using the I2C master/slave library available from MCS. The system has been operating successfully and unattended for about one year. The introduction to the ATMega2560 program explains in some detail how this all works and what one must go through to set up a smtp account.
On May 28, 2019 O-Family posted a library useful for interfacing with a ILI9341 240X320 LCD. Recently I have completed revising the hardware and software mentioned above to use two ILI9341 LCDs. For the slave I needed to change to a ATMEGA168 accommodate the requirements of it ILI9341. The master hardware is unchanged. This change was made with some difficulty.
ATMega168
Ports (D.0 and D.1) of the ATMega168 must be reserved for use by the MCS I2C library. The ILI9341 must use other ports for Si and Sclk. The following worked for me;
The O-Family posting indicates that use of Cs1 is optional. For me I found it must be used.
ATMega2560
I encountered a problem that the II9341 screen would fill with red. O Family found a
rather odd fix for this problem. If I added $include statements for both the color16x16
and color8x8 fonts the problem would be corrected. So, the program uses:
The attached photo shows my new system. The LCD mounted on the panel shows the steps taken to link the WiFi360 to my Cudy LTE router, the Cudy router to my smtp provider, and my smtp provider to my email account. This is accomplished in Sub WIZFI360 of the ATMega2560 coding. The text in white are Unsolicited Response Codes (URCs) returned to the ATMega2560. These data are displayed in a “scrolling ticker tape” or “running banner” fashion. This programming is in Sub INPUT_UART also of the ATMega2560 coding. Even if I am not present to speed read the display, I can tell from the last banner displayed for each connection, if one of the steps have failed. Almost all of my failures to send are due to a weak cell phone connection.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum