Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 02:45 27 Nov 2024 Privacy Policy
Jump to

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: Australia
Posts: 1418
Posted: 04:46am 22 Mar 2019
Copy link to clipboard 
Print this post

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: Australia
Posts: 1678
Posted: 05:36am 22 Mar 2019
Copy link to clipboard 
Print this post

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: Australia
Posts: 1678
Posted: 05:41am 22 Mar 2019
Copy link to clipboard 
Print this post

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.Edited by renewableMark 2019-03-23
Cheers Caveman Mark
Off grid eastern Melb
 
renewableMark

Guru

Joined: 09/12/2017
Location: Australia
Posts: 1678
Posted: 07:19am 22 Mar 2019
Copy link to clipboard 
Print this post

  tinyt said   For the LCD that I purchased, I cannot get the backlight on unless I do a hardware mod or add the 'setBacklight' as follows:
lcd.begin(20,4); // LCD stuff
lcd.setBacklight(255); // <<<
lcd.clear();


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: Australia
Posts: 1418
Posted: 07:37am 22 Mar 2019
Copy link to clipboard 
Print this post

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: Australia
Posts: 1678
Posted: 07:48am 22 Mar 2019
Copy link to clipboard 
Print this post

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: Australia
Posts: 1678
Posted: 07:49am 22 Mar 2019
Copy link to clipboard 
Print this post

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: Australia
Posts: 1418
Posted: 07:52am 22 Mar 2019
Copy link to clipboard 
Print this post

ok, it's beer o'clock
wronger than a phone book full of wrong phone numbers
 
poida

Guru

Joined: 02/02/2017
Location: Australia
Posts: 1418
Posted: 12:39am 23 Mar 2019
Copy link to clipboard 
Print this post

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: Australia
Posts: 1678
Posted: 02:08am 23 Mar 2019
Copy link to clipboard 
Print this post

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: Australia
Posts: 1418
Posted: 02:17am 23 Mar 2019
Copy link to clipboard 
Print this post

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: Australia
Posts: 1678
Posted: 02:22am 23 Mar 2019
Copy link to clipboard 
Print this post

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: Australia
Posts: 1418
Posted: 02:36am 23 Mar 2019
Copy link to clipboard 
Print this post

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.Edited by poida 2019-03-24
wronger than a phone book full of wrong phone numbers
 
renewableMark

Guru

Joined: 09/12/2017
Location: Australia
Posts: 1678
Posted: 03:17am 23 Mar 2019
Copy link to clipboard 
Print this post

That got it



Cheers Caveman Mark
Off grid eastern Melb
 
renewableMark

Guru

Joined: 09/12/2017
Location: Australia
Posts: 1678
Posted: 03:24am 23 Mar 2019
Copy link to clipboard 
Print this post

Thanks Poida, made you earn those toroids!
Cheers Caveman Mark
Off grid eastern Melb
 
renewableMark

Guru

Joined: 09/12/2017
Location: Australia
Posts: 1678
Posted: 06:01am 23 Mar 2019
Copy link to clipboard 
Print this post

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: Australia
Posts: 460
Posted: 06:35am 23 Mar 2019
Copy link to clipboard 
Print this post

What brand and model is that inverter Air cond ?
 
Warpspeed
Guru

Joined: 09/08/2007
Location: Australia
Posts: 4406
Posted: 06:41am 23 Mar 2019
Copy link to clipboard 
Print this post

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: Australia
Posts: 1678
Posted: 06:42am 23 Mar 2019
Copy link to clipboard 
Print this post

Mitsubishi SRC50ZSA-W
Cheers Caveman Mark
Off grid eastern Melb
 
renewableMark

Guru

Joined: 09/12/2017
Location: Australia
Posts: 1678
Posted: 06:43am 23 Mar 2019
Copy link to clipboard 
Print this post

  Warpspeed said   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.


Yeah tried that, it's perfect running with grid.
Cheers Caveman Mark
Off grid eastern Melb
 
     Page 5 of 15    
Print this page
© JAQ Software 2024