all home built solar system
| Author | Message | ||||
| poida Guru Joined: 02/02/2017 Location: AustraliaPosts: 1461 |
I make it it uses a standard 20x4 LCD, maybe with I2C or without and a nano. a small bit of code loaded into the nano make it take serial data and put it onto the LCD. I do this since I've had a lot of problems with driving I2C LCDs directly, there is far too much EMI and the very lightly buffered I2C pins of the nano get upset easily, causing the chip to lockup The serial LCD thing presents 3 wires to the outside world. ground, 5V and data_in. Data_in is well buffered due to the arduino code using it as software serial. It seems far more reliable in the very noisy environment of inverters and mppt controllers. I just wire up the nano to the LCD, in the case of that pictured below it's non I2C, so I drive the 4 data pins, 2 control lines, 5V and ground direct from the nano. Then I have Gnd,5V and D4 on the nano coming out to be connected to the inverter or mppt. My inverter and mppt code uses a simple protocol. I send "$" to set the cursor at the beginning (0,0) and any other character is printed at the cursor position, moving it to the next location. load one of these into the nano.. nano_serial_to_parallel_LCD_2.ino.zip nano_serial_to_i2c_LCD.ino.zip ![]() Edited 2022-11-14 20:44 by poida |
||||