I could do with a hand sorting out what seems like a mismatch between the library files and the firmware that I installed. I have been backing down in stages from a 1.8.n ide and myFocuserPro2 build so could have wires crossed somewhere.
Presently on Linux using IDE 1.6.8. The firmware: V171, I downloaded the Libraries.zip file from Libraries directory.
Focuserv171_DRV8825_HW203_M firmware built okay.
Building Focuserv171_DRV8825_HW203_F the #include <LCD.h> failed & I haven't found it.
There is an #include <LiquidCrystal_I2C.h> in the firmware code but the library I 'm working with has
LiquidCrystal_I2C1602.
I suspect that I have the wrong library file, which LiquidCrystal_I2C should I be using.
Tom
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Tom
The myFocuserPro2 is completely different, and has firmware starting with v2xx.ino
The myFocuserPro uses firmware v1xx.ino
The LCD library was changed ages ago to the one attached.
Use the Sketch-Include Library menu option of the Arduino IDE to import the library before trying to compile the firmware (and repeat for other libraries .zip files)
Regards
Robert
I am using Arduino IDE 1.6.8 but I know that 1.8.5 also works. Ignore warning messages.
Thanks for the file, this is where I have been going wrong. Where would I find this file along with the other .zip library files you mention. What I find is a single file "Libraries.zip" in the V1 "libraries" sub-directory which contains individual directories and files. These I have been copying into ~/Arduino/libraries and compiling against them. I am obviously looking in the wrong place.
Home BrowseSystem AdministrationHardwareArduino ASCOM Focuser Pro DIY Files
Home / Libraries/Libraries.zip.
Sorry to be dim but I'd like to understand so I don't need hand feeding the next time.
Regards
Tom
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I would first delete anything that is in Documents\Arduino libraries first
1. Create a myFocuserPro folder on your drive and move each of the downloaded files into it
2. Unzip each zip file
3. Copy the folders in the Libraries into Documents\Arduino\libraries folder (there should be 7 folders)
4. Now navigate to the firmware folder and locate the one that matches your hardware Focuserv171_DRV8825_HW203_F.ino
5. Double click that ino file and should load into the Arduino IDE
6. Try to compile and upload to the controller
7. If there is an issue please let me know - copying any error messages is very helpful.
Regards
Robert
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks, the new libraries.zip is what I was searching for.
I now get the following errors.
1) The following 2 libraries have only a .ino file when unzipped and are missing in the IDE's sketch > libraries > contributed libraries list.
Error compiling for board Arduino Nano.
Invalid library found in /home/tg/Arduino/myFocuserPro1/libraries/i2cLCDguesser: /home/tg/Arduino/myFocuserPro1/libraries/i2cLCDguesser
Invalid library found in /home/tg/Arduino/myFocuserPro1/libraries/I2CScanner: /home/tg/Arduino/myFocuserPro1/libraries/I2CScanner
2) Don't know if these are important since the above #1 seems to be the fatal error. There is
some kind of duplication/multiple definitions going on involving Wire / OneWire and the DallasTempurature libraries.
<Wire.h> and <OneWire.h> are included in the .ino source and both pulled in as libraries.
Dallas Temperature is found in both the firmware directory, the libraries .zip.
There is a lot, so just including the initial few:
"/home/tg/.arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.4-arduino2/bin/avr-gcc" -Wall -Wextra -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/myFocuserPro1.ino.elf" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/sketch/DallasTemperature.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/sketch/myFocuserPro1.ino.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/sketch/full/DallasTemperature.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/libraries/Wire/Wire.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/libraries/Wire/utility/twi.c.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/libraries/OneWire/OneWire.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/libraries/NewliquidCrystal/FastIO.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/libraries/NewliquidCrystal/I2CIO.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/libraries/NewliquidCrystal/LCD.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/libraries/NewliquidCrystal/LiquidCrystal.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/libraries/NewliquidCrystal/LiquidCrystal_I2C.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/libraries/NewliquidCrystal/LiquidCrystal_I2C_ByVac.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/libraries/NewliquidCrystal/LiquidCrystal_SI2C.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/libraries/NewliquidCrystal/LiquidCrystal_SR.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/libraries/NewliquidCrystal/LiquidCrystal_SR1W.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/libraries/NewliquidCrystal/LiquidCrystal_SR2W.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/libraries/NewliquidCrystal/LiquidCrystal_SR3W.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/libraries/NewliquidCrystal/SI2CIO.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/core/core.a" "-L/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp" -lm
/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/sketch/full/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::readScratchPad(unsigned char const*, unsigned char*)':
(.text+0x0): multiple definition ofDallasTemperature::readScratchPad(unsigned char const, unsigned char)'
/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/sketch/DallasTemperature.cpp.o (symbol from plugin):(.text+0x0): first defined here
/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/sketch/full/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::readScratchPad(unsigned char const*, unsigned char*)':
(.text+0x0): multiple definition ofDallasTemperature::isConnected(unsigned char const, unsigned char)'
/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/sketch/DallasTemperature.cpp.o (symbol from plugin):(.text+0x0): first defined here
/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/sketch/full/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::readScratchPad(unsigned char const*, unsigned char*)':
(.text+0x0): multiple definition ofDallasTemperature::DallasTemperature()'
/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/sketch/DallasTemperature.cpp.o (symbol from plugin):(.text+0x0): first defined here
Multiple libraries were found for "OneWire.h"
Used: /home/tg/Arduino/myFocuserPro1/libraries/OneWire
Not used: /home/tg/Arduino/myFocuserPro1/libraries/DallasTemperature
/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/sketch/full/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::readScratchPad(unsigned char const*, unsigned char*)':
(.text+0x0): multiple definition ofDallasTemperature::DallasTemperature()'
/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/sketch/DallasTemperature.cpp.o (symbol from plugin):(.text+0x0): first defined here
/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/sketch/full/DallasTemperature.cpp.o (symbol from plugin): In function DallasTemperature::readScratchPad(unsigned char const*, unsigned char*)':
(.text+0x0): multiple definition ofDallasTemperature::DallasTemperature(OneWire*)'
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
multiple definition
means it is finding more than one occurrence of the file -
So it should be only be in one place - in the libraries folder
Delete all other files of the same name
Its referencing myDallasTemperature.h (which was in a folder called myDallasTemperature, you copied the folder to the libraries folder - so thats the only place where that folder should now be with those two files)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I could do with a hand sorting out what seems like a mismatch between the library files and the firmware that I installed. I have been backing down in stages from a 1.8.n ide and myFocuserPro2 build so could have wires crossed somewhere.
Presently on Linux using IDE 1.6.8. The firmware: V171, I downloaded the Libraries.zip file from Libraries directory.
Focuserv171_DRV8825_HW203_M firmware built okay.
Building Focuserv171_DRV8825_HW203_F the #include <LCD.h> failed & I haven't found it.
There is an #include <LiquidCrystal_I2C.h> in the firmware code but the library I 'm working with has
LiquidCrystal_I2C1602.
I suspect that I have the wrong library file, which LiquidCrystal_I2C should I be using.
Tom
LiquidCrystal_I2C1602. is the wrong library - we dropped that ages ago
Hi Tom
The myFocuserPro2 is completely different, and has firmware starting with v2xx.ino
The myFocuserPro uses firmware v1xx.ino
The LCD library was changed ages ago to the one attached.
Use the Sketch-Include Library menu option of the Arduino IDE to import the library before trying to compile the firmware (and repeat for other libraries .zip files)
Regards
Robert
I am using Arduino IDE 1.6.8 but I know that 1.8.5 also works. Ignore warning messages.
Last edit: brownrb 2018-02-01
Hello Bob,
Thanks for the file, this is where I have been going wrong. Where would I find this file along with the other .zip library files you mention. What I find is a single file "Libraries.zip" in the V1 "libraries" sub-directory which contains individual directories and files. These I have been copying into ~/Arduino/libraries and compiling against them. I am obviously looking in the wrong place.
Home BrowseSystem AdministrationHardwareArduino ASCOM Focuser Pro DIY Files
Home / Libraries/Libraries.zip.
Sorry to be dim but I'd like to understand so I don't need hand feeding the next time.
Regards
Tom
The myFocuserPro (compatible with Moonlite) is here.
The myFocuserPro2 (not compatible with Moonlite) with a lot more features is found at
https://sourceforge.net/projects/arduinoascomfocuserpro2diy/
Its basically the same hardware for both but different firmware, ascom drivers and window applications.
If you are using myFocuserPro, then everything is v1xxxx. You cannot use anything that is v2xxxxx
So first, please delete anything you have downloaded cause I just uploaded some new files.
If you want to proceed with myFocuserPro, make sure you now download the following
https://sourceforge.net/projects/arduinofocuscontrollerpro/files/CODE%20ARDUINO/Arduino%20Firmware%20myFocuserPro%20v171.zip/download
https://sourceforge.net/projects/arduinofocuscontrollerpro/files/CODE%20WINDOWS/myFocuserProL_1_0_2_7.zip/download
https://sourceforge.net/projects/arduinofocuscontrollerpro/files/Documentation/myFocuserPro.pdf/download
https://sourceforge.net/projects/arduinofocuscontrollerpro/files/Libraries/Libraries.zip/download
I would first delete anything that is in Documents\Arduino libraries first
1. Create a myFocuserPro folder on your drive and move each of the downloaded files into it
2. Unzip each zip file
3. Copy the folders in the Libraries into Documents\Arduino\libraries folder (there should be 7 folders)
4. Now navigate to the firmware folder and locate the one that matches your hardware Focuserv171_DRV8825_HW203_F.ino
5. Double click that ino file and should load into the Arduino IDE
6. Try to compile and upload to the controller
7. If there is an issue please let me know - copying any error messages is very helpful.
Regards
Robert
Bob,
Thanks, the new libraries.zip is what I was searching for.
I now get the following errors.
1) The following 2 libraries have only a .ino file when unzipped and are missing in the IDE's sketch > libraries > contributed libraries list.
Error compiling for board Arduino Nano.
Invalid library found in /home/tg/Arduino/myFocuserPro1/libraries/i2cLCDguesser: /home/tg/Arduino/myFocuserPro1/libraries/i2cLCDguesser
Invalid library found in /home/tg/Arduino/myFocuserPro1/libraries/I2CScanner: /home/tg/Arduino/myFocuserPro1/libraries/I2CScanner
2) Don't know if these are important since the above #1 seems to be the fatal error. There is
some kind of duplication/multiple definitions going on involving Wire / OneWire and the DallasTempurature libraries.
<Wire.h> and <OneWire.h> are included in the .ino source and both pulled in as libraries.
Dallas Temperature is found in both the firmware directory, the libraries .zip.
There is a lot, so just including the initial few:
"/home/tg/.arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.4-arduino2/bin/avr-gcc" -Wall -Wextra -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/myFocuserPro1.ino.elf" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/sketch/DallasTemperature.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/sketch/myFocuserPro1.ino.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/sketch/full/DallasTemperature.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/libraries/Wire/Wire.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/libraries/Wire/utility/twi.c.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/libraries/OneWire/OneWire.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/libraries/NewliquidCrystal/FastIO.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/libraries/NewliquidCrystal/I2CIO.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/libraries/NewliquidCrystal/LCD.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/libraries/NewliquidCrystal/LiquidCrystal.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/libraries/NewliquidCrystal/LiquidCrystal_I2C.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/libraries/NewliquidCrystal/LiquidCrystal_I2C_ByVac.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/libraries/NewliquidCrystal/LiquidCrystal_SI2C.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/libraries/NewliquidCrystal/LiquidCrystal_SR.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/libraries/NewliquidCrystal/LiquidCrystal_SR1W.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/libraries/NewliquidCrystal/LiquidCrystal_SR2W.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/libraries/NewliquidCrystal/LiquidCrystal_SR3W.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/libraries/NewliquidCrystal/SI2CIO.cpp.o" "/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/core/core.a" "-L/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp" -lm
/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/sketch/full/DallasTemperature.cpp.o (symbol from plugin): In function
DallasTemperature::readScratchPad(unsigned char const*, unsigned char*)': (.text+0x0): multiple definition of
DallasTemperature::readScratchPad(unsigned char const, unsigned char)'/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/sketch/DallasTemperature.cpp.o (symbol from plugin):(.text+0x0): first defined here
/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/sketch/full/DallasTemperature.cpp.o (symbol from plugin): In function
DallasTemperature::readScratchPad(unsigned char const*, unsigned char*)': (.text+0x0): multiple definition of
DallasTemperature::isConnected(unsigned char const, unsigned char)'/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/sketch/DallasTemperature.cpp.o (symbol from plugin):(.text+0x0): first defined here
/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/sketch/full/DallasTemperature.cpp.o (symbol from plugin): In function
DallasTemperature::readScratchPad(unsigned char const*, unsigned char*)': (.text+0x0): multiple definition of
DallasTemperature::DallasTemperature()'/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/sketch/DallasTemperature.cpp.o (symbol from plugin):(.text+0x0): first defined here
Multiple libraries were found for "OneWire.h"
Used: /home/tg/Arduino/myFocuserPro1/libraries/OneWire
Not used: /home/tg/Arduino/myFocuserPro1/libraries/DallasTemperature
/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/sketch/full/DallasTemperature.cpp.o (symbol from plugin): In function
DallasTemperature::readScratchPad(unsigned char const*, unsigned char*)': (.text+0x0): multiple definition of
DallasTemperature::DallasTemperature()'/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/sketch/DallasTemperature.cpp.o (symbol from plugin):(.text+0x0): first defined here
/tmp/builde0616d73edb807c3bf9f2476b7fb5126.tmp/sketch/full/DallasTemperature.cpp.o (symbol from plugin): In function
DallasTemperature::readScratchPad(unsigned char const*, unsigned char*)': (.text+0x0): multiple definition of
DallasTemperature::DallasTemperature(OneWire*)'Last post is 2 days "awaiting moderation", should I resubmit?
multiple definition
means it is finding more than one occurrence of the file -
So it should be only be in one place - in the libraries folder
Delete all other files of the same name
Its referencing myDallasTemperature.h (which was in a folder called myDallasTemperature, you copied the folder to the libraries folder - so thats the only place where that folder should now be with those two files)
Invalid library found in /home/tg/Arduino/myFocuserPro1/libraries/i2cLCDguesser: /home/tg/Arduino/myFocuserPro1/libraries/i2cLCDguesser
Invalid library found in /home/tg/Arduino/myFocuserPro1/libraries/I2CScanner: /home/tg/Arduino/myFocuserPro1/libraries/I2CScanner
Remove the above
For the firmware .ino, it should only be one file in the firmware folder.
Everything is in the file
https://sourceforge.net/projects/arduinofocuscontrollerpro/files/CODE%20ARDUINO/Arduino%20Firmware%20myFocuserPro%20v171.zip/download
Email me at yahoo and I will send you v172
Robert
Last edit: brownrb 2018-02-06
Robert,
I cleaned up my environment and followed the directions. Everything built fine.
Thank you for the support.
Tom