Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Electronics : nanoverter build
Page 5 of 15 | |||||
Author | Message | ||||
poida Guru Joined: 02/02/2017 Location: AustraliaPosts: 1418 |
Ok, it looks to be related to nano2 code using a particular I2C LCD library. I write to the LCD memory in the most direct manner possible. I do not use LCD.print(blah,blah..) This is a hangover from when I had all code running on one nano so needed something fast when writing to the LCD. I could not spend much time doing this before I had to service PWM interrupts. So I wrote LCD text, one character at a time, direct to LCD memory bypassing the arduino LCD library overheads. I wonder if the new LCD you have has a different controller and so the way I do things will not work, ever, with your new LCD. I need to change the code. Maybe I can find the time to rewrite nano2 to use the standard arduino LCD methods this weekend. wronger than a phone book full of wrong phone numbers |
||||
renewableMark Guru Joined: 09/12/2017 Location: AustraliaPosts: 1678 |
Frigg, sounds like a big job, sorry to be a pain mate. Cheers Caveman Mark Off grid eastern Melb |
||||
renewableMark Guru Joined: 09/12/2017 Location: AustraliaPosts: 1678 |
I got a couple of torroids for you so that will cheer you up. BTW I had two internet purchased lcd's, I thought they were the cause so got one from jarcar and it too has the same issue, so all three display the same trait. Very frustrating how they appear to be made differently, you would think an I2c adaptor did just that and they all did it the same way, but clearly NUP. Cheers Caveman Mark Off grid eastern Melb |
||||
renewableMark Guru Joined: 09/12/2017 Location: AustraliaPosts: 1678 |
Just noticed when this is added the nano lights up, loads then it briefly writes NANOVERTER, on the screen then it goes blank. Without that extra line it just lights up. loads the nano then goes blank. Cheers Caveman Mark Off grid eastern Melb |
||||
poida Guru Joined: 02/02/2017 Location: AustraliaPosts: 1418 |
Mark, I did a quick and brutal hack of nano2 code so that it works using the same libraries as Madness regulator It's not good, but it works. Not the sort of code I want to show the world. 2019-03-22_173528_nano2_2.ino.zip Put this into nano2 and see if you get a display. The backlight might come later. wronger than a phone book full of wrong phone numbers |
||||
renewableMark Guru Joined: 09/12/2017 Location: AustraliaPosts: 1678 |
Loaded that and it highlights lcd.init(); And has below In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0, from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:90, from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28, from C:\Users\admin\AppData\Local\Temp\arduino_build_749884\sketch\nano2_2.ino.cpp:1: C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h: In function 'void i2c_wait_scl_high()': C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h:172:31: error: 'SCL_PORT' was not declared in this scope #define SCL_IN (_SFR_IO_ADDR(SCL_PORT) - 2) ^ C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h:210:23: note: in expansion of macro 'SCL_IN' : : [SCLIN] "I" (SCL_IN), [SCLPIN] "I" (SCL_PIN)); ^ In file included from C:\Users\admin\Desktop\nano2_2\nano2_2.ino:15:0: C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h:210:46: error: 'SCL_PIN' was not declared in this scope : : [SCLIN] "I" (SCL_IN), [SCLPIN] "I" (SCL_PIN)); ^ In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0, from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:90, from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28, from C:\Users\admin\AppData\Local\Temp\arduino_build_749884\sketch\nano2_2.ino.cpp:1: C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h: In function 'boolean i2c_init()': C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h:168:38: error: 'SCL_PORT' was not declared in this scope #define SCL_DDR (_SFR_IO_ADDR(SCL_PORT) - 1) ^ C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h:264:23: note: in expansion of macro 'SCL_DDR' [SCLDDR] "I" (SCL_DDR), [SCLPIN] "I" (SCL_PIN), ^ In file included from C:\Users\admin\Desktop\nano2_2\nano2_2.ino:15:0: C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h:264:47: error: 'SCL_PIN' was not declared in this scope [SCLDDR] "I" (SCL_DDR), [SCLPIN] "I" (SCL_PIN), ^ In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0, from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:90, from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28, from C:\Users\admin\AppData\Local\Temp\arduino_build_749884\sketch\nano2_2.ino.cpp:1: C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h:167:38: error: 'SDA_PORT' was not declared in this scope #define SDA_DDR (_SFR_IO_ADDR(SDA_PORT) - 1) ^ C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h:266:23: note: in expansion of macro 'SDA_DDR' [SDADDR] "I" (SDA_DDR), [SDAPIN] "I" (SDA_PIN), ^ In file included from C:\Users\admin\Desktop\nano2_2\nano2_2.ino:15:0: C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h:266:47: error: 'SDA_PIN' was not declared in this scope [SDADDR] "I" (SDA_DDR), [SDAPIN] "I" (SDA_PIN), ^ In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0, from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:90, from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28, from C:\Users\admin\AppData\Local\Temp\arduino_build_749884\sketch\nano2_2.ino.cpp:1: C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h: In function 'bool i2c_start(uint8_t)': C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h:167:38: error: 'SDA_PORT' was not declared in this scope #define SDA_DDR (_SFR_IO_ADDR(SDA_PORT) - 1) ^ C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h:284:25: note: in expansion of macro 'SDA_DDR' : : [SDADDR] "I" (SDA_DDR), [SDAPIN] "I" (SDA_PIN), ^ In file included from C:\Users\admin\Desktop\nano2_2\nano2_2.ino:15:0: C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h:284:49: error: 'SDA_PIN' was not declared in this scope : : [SDADDR] "I" (SDA_DDR), [SDAPIN] "I" (SDA_PIN), ^ In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0, from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:90, from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28, from C:\Users\admin\AppData\Local\Temp\arduino_build_749884\sketch\nano2_2.ino.cpp:1: C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h:172:31: error: 'SCL_PORT' was not declared in this scope #define SCL_IN (_SFR_IO_ADDR(SCL_PORT) - 2) ^ C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h:285:21: note: in expansion of macro 'SCL_IN' [SCLIN] "I" (SCL_IN),[SCLPIN] "I" (SCL_PIN)); ^ In file included from C:\Users\admin\Desktop\nano2_2\nano2_2.ino:15:0: C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h:285:43: error: 'SCL_PIN' was not declared in this scope [SCLIN] "I" (SCL_IN),[SCLPIN] "I" (SCL_PIN)); ^ In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0, from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:90, from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28, from C:\Users\admin\AppData\Local\Temp\arduino_build_749884\sketch\nano2_2.ino.cpp:1: C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h: In function 'bool i2c_rep_start(uint8_t)': C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h:168:38: error: 'SCL_PORT' was not declared in this scope #define SCL_DDR (_SFR_IO_ADDR(SCL_PORT) - 1) ^ C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h:309:25: note: in expansion of macro 'SCL_DDR' : : [SCLDDR] "I" (SCL_DDR), [SCLPIN] "I" (SCL_PIN),[SCLIN] "I" (SCL_IN), ^ In file included from C:\Users\admin\Desktop\nano2_2\nano2_2.ino:15:0: C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h:309:49: error: 'SCL_PIN' was not declared in this scope : : [SCLDDR] "I" (SCL_DDR), [SCLPIN] "I" (SCL_PIN),[SCLIN] "I" (SCL_IN), ^ In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0, from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:90, from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28, from C:\Users\admin\AppData\Local\Temp\arduino_build_749884\sketch\nano2_2.ino.cpp:1: C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h:167:38: error: 'SDA_PORT' was not declared in this scope #define SDA_DDR (_SFR_IO_ADDR(SDA_PORT) - 1) ^ C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h:310:25: note: in expansion of macro 'SDA_DDR' [SDADDR] "I" (SDA_DDR), [SDAPIN] "I" (SDA_PIN)); ^ In file included from C:\Users\admin\Desktop\nano2_2\nano2_2.ino:15:0: C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h:310:49: error: 'SDA_PIN' was not declared in this scope [SDADDR] "I" (SDA_DDR), [SDAPIN] "I" (SDA_PIN)); ^ In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0, from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:90, from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28, from C:\Users\admin\AppData\Local\Temp\arduino_build_749884\sketch\nano2_2.ino.cpp:1: C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h: In function 'void i2c_start_wait(uint8_t)': C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h:167:38: error: 'SDA_PORT' was not declared in this scope #define SDA_DDR (_SFR_IO_ADDR(SDA_PORT) - 1) ^ C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h:337:24: note: in expansion of macro 'SDA_DDR' : : [SDADDR] "I" (SDA_DDR), [SDAPIN] "I" (SDA_PIN), ^ In file included from C:\Users\admin\Desktop\nano2_2\nano2_2.ino:15:0: C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h:337:48: error: 'SDA_PIN' was not declared in this scope : : [SDADDR] "I" (SDA_DDR), [SDAPIN] "I" (SDA_PIN), ^ In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0, from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:90, from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28, from C:\Users\admin\AppData\Local\Temp\arduino_build_749884\sketch\nano2_2.ino.cpp:1: C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h:172:31: error: 'SCL_PORT' was not declared in this scope #define SCL_IN (_SFR_IO_ADDR(SCL_PORT) - 2) ^ C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h:338:20: note: in expansion of macro 'SCL_IN' [SCLIN] "I" (SCL_IN),[SCLPIN] "I" (SCL_PIN)); ^ In file included from C:\Users\admin\Desktop\nano2_2\nano2_2.ino:15:0: C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h:338:42: error: 'SCL_PIN' was not declared in this scope [SCLIN] "I" (SCL_IN),[SCLPIN] "I" (SCL_PIN)); ^ In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0, from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:90, from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28, from C:\Users\admin\AppData\Local\Temp\arduino_build_749884\sketch\nano2_2.ino.cpp:1: C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h: In function 'void i2c_stop()': C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h:168:38: error: 'SCL_PORT' was not declared in this scope #define SCL_DDR (_SFR_IO_ADDR(SCL_PORT) - 1) ^ C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h:357:25: note: in expansion of macro 'SCL_DDR' : : [SCLDDR] "I" (SCL_DDR), [SCLPIN] "I" (SCL_PIN), [SCLIN] "I" (SCL_IN), ^ In file included from C:\Users\admin\Desktop\nano2_2\nano2_2.ino:15:0: C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h:357:49: error: 'SCL_PIN' was not declared in this scope : : [SCLDDR] "I" (SCL_DDR), [SCLPIN] "I" (SCL_PIN), [SCLIN] "I" (SCL_IN), ^ In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0, from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:90, from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28, from C:\Users\admin\AppData\Local\Temp\arduino_build_749884\sketch\nano2_2.ino.cpp:1: C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h:167:38: error: 'SDA_PORT' was not declared in this scope #define SDA_DDR (_SFR_IO_ADDR(SDA_PORT) - 1) ^ C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h:358:25: note: in expansion of macro 'SDA_DDR' [SDADDR] "I" (SDA_DDR), [SDAPIN] "I" (SDA_PIN)); ^ In file included from C:\Users\admin\Desktop\nano2_2\nano2_2.ino:15:0: C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h:358:49: error: 'SDA_PIN' was not declared in this scope [SDADDR] "I" (SDA_DDR), [SDAPIN] "I" (SDA_PIN)); ^ In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0, from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:90, from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28, from C:\Users\admin\AppData\Local\Temp\arduino_build_749884\sketch\nano2_2.ino.cpp:1: C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h: In function 'bool i2c_write(uint8_t)': C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h:168:38: error: 'SCL_PORT' was not declared in this scope #define SCL_DDR (_SFR_IO_ADDR(SCL_PORT) - 1) ^ C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h:433:22: note: in expansion of macro 'SCL_DDR' [SCLDDR] "I" (SCL_DDR), [SCLPIN] "I" (SCL_PIN), [SCLIN] "I" (SCL_IN), ^ In file included from C:\Users\admin\Desktop\nano2_2\nano2_2.ino:15:0: C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h:433:46: error: 'SCL_PIN' was not declared in this scope [SCLDDR] "I" (SCL_DDR), [SCLPIN] "I" (SCL_PIN), [SCLIN] "I" (SCL_IN), ^ In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0, from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:90, from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28, from C:\Users\admin\AppData\Local\Temp\arduino_build_749884\sketch\nano2_2.ino.cpp:1: C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h:167:38: error: 'SDA_PORT' was not declared in this scope #define SDA_DDR (_SFR_IO_ADDR(SDA_PORT) - 1) ^ C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h:434:22: note: in expansion of macro 'SDA_DDR' [SDADDR] "I" (SDA_DDR), [SDAPIN] "I" (SDA_PIN), [SDAIN] "I" (SDA_IN)); ^ In file included from C:\Users\admin\Desktop\nano2_2\nano2_2.ino:15:0: C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h:434:46: error: 'SDA_PIN' was not declared in this scope [SDADDR] "I" (SDA_DDR), [SDAPIN] "I" (SDA_PIN), [SDAIN] "I" (SDA_IN)); ^ In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0, from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:90, from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28, from C:\Users\admin\AppData\Local\Temp\arduino_build_749884\sketch\nano2_2.ino.cpp:1: C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h: In function 'uint8_t i2c_read(bool)': C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h:168:38: error: 'SCL_PORT' was not declared in this scope #define SCL_DDR (_SFR_IO_ADDR(SCL_PORT) - 1) ^ C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h:502:22: note: in expansion of macro 'SCL_DDR' [SCLDDR] "I" (SCL_DDR), [SCLPIN] "I" (SCL_PIN), [SCLIN] "I" (SCL_IN), ^ In file included from C:\Users\admin\Desktop\nano2_2\nano2_2.ino:15:0: C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h:502:46: error: 'SCL_PIN' was not declared in this scope [SCLDDR] "I" (SCL_DDR), [SCLPIN] "I" (SCL_PIN), [SCLIN] "I" (SCL_IN), ^ In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0, from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:90, from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28, from C:\Users\admin\AppData\Local\Temp\arduino_build_749884\sketch\nano2_2.ino.cpp:1: C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h:167:38: error: 'SDA_PORT' was not declared in this scope #define SDA_DDR (_SFR_IO_ADDR(SDA_PORT) - 1) ^ C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h:503:22: note: in expansion of macro 'SDA_DDR' [SDADDR] "I" (SDA_DDR), [SDAPIN] "I" (SDA_PIN), [SDAIN] "I" (SDA_IN) ^ In file included from C:\Users\admin\Desktop\nano2_2\nano2_2.ino:15:0: C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/SoftI2CMaster.h:503:46: error: 'SDA_PIN' was not declared in this scope [SDADDR] "I" (SDA_DDR), [SDAPIN] "I" (SDA_PIN), [SDAIN] "I" (SDA_IN) ^ In file included from C:\Users\admin\Desktop\nano2_2\nano2_2.ino:7:0: C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/LiquidCrystal_I2C.h: In function 'void setup()': C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal/LiquidCrystal_I2C.h:154:9: error: 'int LiquidCrystal_I2C::init()' is private int init(); ^ nano2_2:195: error: within this context lcd.init(); ^ Using library LiquidCrystal_PCF8574 at version 1.1.0 in folder: C:\Users\admin\Documents\Arduino\libraries\LiquidCrystal_PCF8574 Using library NewliquidCrystal in folder: C:\Users\admin\Documents\Arduino\libraries\NewliquidCrystal (legacy) Using library Wire at version 1.0 in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\Wire Using library EEPROM at version 2.0 in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\EEPROM exit status 1 within this context Cheers Caveman Mark Off grid eastern Melb |
||||
renewableMark Guru Joined: 09/12/2017 Location: AustraliaPosts: 1678 |
It's Friday, put your feet up have a beer. This can wait. Cheers Caveman Mark Off grid eastern Melb |
||||
poida Guru Joined: 02/02/2017 Location: AustraliaPosts: 1418 |
ok, it's beer o'clock wronger than a phone book full of wrong phone numbers |
||||
poida Guru Joined: 02/02/2017 Location: AustraliaPosts: 1418 |
Mark, I found what libraries are needed to run Madness's program, got them and made MAdness's program compile OK. Then I changed nano2 code to use the same LCD library that MAdness uses. It then compiles and runs fine. The library you need to make sure is installed is "LiquidCrystal I2C" by Frank de Brabander version 1.1.2 This is the library I use now. If you have problems compiling, maybe avoid posting the entire error output. I know I did not read any of it. It was clear the problem is due to library links. Best code, using the above mentioned library, and so, likely compatible with most 20 x 4 LCD with I2C: 2019-03-23_103743_nano2_4.ino.zip wronger than a phone book full of wrong phone numbers |
||||
renewableMark Guru Joined: 09/12/2017 Location: AustraliaPosts: 1678 |
Thanks, that loaded ok, when the sketch is loaded the screen breifly said "NANOVERTER" then the screen lights up without any writing and the OC light comes on. I have the reset (NC) plugged in. hit that a few times and nothing. Adjusted the trimpot then hit the reset, still the same, red light on constantly. Cheers Caveman Mark Off grid eastern Melb |
||||
poida Guru Joined: 02/02/2017 Location: AustraliaPosts: 1418 |
If the OC light is on, the inverter will never run. Can you connect to the menu, via the serial monitor? type "?" and press Enter, get a menu? I am concerned that nothing much is displayed. Even when shutdown, the LCD should show stuff. wronger than a phone book full of wrong phone numbers |
||||
renewableMark Guru Joined: 09/12/2017 Location: AustraliaPosts: 1678 |
Tried that, it just restarts the nano, does the same thing and doesn't display the menu. Cheers Caveman Mark Off grid eastern Melb |
||||
poida Guru Joined: 02/02/2017 Location: AustraliaPosts: 1418 |
maybe this nano is broken? you could pull it out of the socket, power it via the usb cable and upload the software again. open the serial monitor and see what you see. (need to wait at least 2 seconds after connecting via serial monitor for any response..) or maybe something on the board is stopping it from working. first things first, let's see if the nano is OK or not. wronger than a phone book full of wrong phone numbers |
||||
renewableMark Guru Joined: 09/12/2017 Location: AustraliaPosts: 1678 |
That got it Cheers Caveman Mark Off grid eastern Melb |
||||
renewableMark Guru Joined: 09/12/2017 Location: AustraliaPosts: 1678 |
Thanks Poida, made you earn those toroids! Cheers Caveman Mark Off grid eastern Melb |
||||
renewableMark Guru Joined: 09/12/2017 Location: AustraliaPosts: 1678 |
OK running the house now, tripped a few times due to scr. To increase the allowed current turn the trimpot anti clockwise. So wave is perfect on everything apart from the dreaded inverter air con as below. So how to smooth that out?? Tinker previously said to remove the ferrite, I'll give that a go. Failing that what would smooth out the voltage to stop/reduce these spikes being placed on the machine? Choke on air con 240v supply? Big caps on 240v inverter output? Cheers Caveman Mark Off grid eastern Melb |
||||
mackoffgrid Guru Joined: 13/03/2017 Location: AustraliaPosts: 460 |
What brand and model is that inverter Air cond ? |
||||
Warpspeed Guru Joined: 09/08/2007 Location: AustraliaPosts: 4406 |
Would not have a clue Mark. So many issues it could possibly be. But if the aircon is the only load that does it, that is probably the place to start looking. I think I might run the aircon off the grid, and look at the current waveform as a first step. Cheers, Tony. |
||||
renewableMark Guru Joined: 09/12/2017 Location: AustraliaPosts: 1678 |
Mitsubishi SRC50ZSA-W Cheers Caveman Mark Off grid eastern Melb |
||||
renewableMark Guru Joined: 09/12/2017 Location: AustraliaPosts: 1678 |
Yeah tried that, it's perfect running with grid. Cheers Caveman Mark Off grid eastern Melb |
||||
Page 5 of 15 |
Print this page |