Menu

Problems compiling Focuserv168_DRV8825_HW02_F

Dave Jones
2016-12-16
2016-12-19
  • Dave Jones

    Dave Jones - 2016-12-16

    Hi

    Thanks for sharing this project in so much detail !

    I am new to Arduino and programming generally and am having problems compiling the above code. I beleive that I ihave loaded all the required libraries but it failed because it could not find LCD.h. I found this on the interent and installed it in the libraries folder and it now fails because it cannot fing LCD.config.

    I ma sure that I am doing domething wrong, bout would appreciate some asssistance as I am starting to tear my hair out !

    I have tried compiling on both 1.6.12 (my installed version) and 1.6.11, but neither work.

    I also tried to compile the _ M version of the code, but got the message that the sketch was too long.

    Cheers

    Dave

    Update #1 - I have uploaded the M version - I had the wrong processor selected for the Nano board - but the compilation problem with the Ful version remains . . .

    Update #2 - I tried loading the New Liquid Crystal Library and the Full version now compiles OK. I have uploaded it to the Nano and everything appears to work as it should, however the LCD just displays a single row of blocks, so still some work to do.

    Anyone had a similar LCD issue?

    Cheers

    Dave

     

    Last edit: Dave Jones 2016-12-16
  • brownrb

    brownrb - 2016-12-17

    For lcd issues see
    https://sourceforge.net/projects/arduinoascomfocuserpro2diy/files/LCD%20ISSUES/

    I would suggest ripping out the libraries you may have installed previously to try and make the lcd wok and starting again. 1.6.12 is ok as this is what I use.

    For the LCD library please do not try and find other files but use the one provided here
    https://sourceforge.net/projects/arduinoascomfocuserpro2diy/files/LCD%20ISSUES/
    NewliquidCrystal_1.3.4.zip

    Make sure you remove all the previous stuff and libraries first before installing this one.

    Libraries are generally stored in Documents\Arduino\libraries (you just delete the folder for the library that you installed earlier).

    Make sure that you use the i2cguessor to identify the correct initialization string required for your lcd.
    Follow the instructions in the myLCD.pdf document

    With the Arduino IDE running, click File, then preferences, then
    Show Verbose Output during compilation - turn oN
    Display Line numbers - turn ON

    When you compile, it will then list what libraries it is using etc so u can then identify if its using the correct ones. Do not modify the arduino file proved (the one you download ending in .ino)
    Get it compiling without errors first.

    If it wont compiler properly, copy all the text messages in the compiler window into a text file and send it to me and I will have a look at it.

    Cheers
    Robert

     
  • Dave Jones

    Dave Jones - 2016-12-17

    Hi Robert, many thanks for that - I stopped working on it last night when I realised that the changes documented in Appendix I of the main document didn't apply to the latest arduino code.

    Today I will follow your instructions and am sure that I will get it running very soon.

    In its current state it responds correctly to the windows app and the puishbuttons/LEDs are working fine, so I have the basic functionality that I hoped for. THe LCD/Temp probe/buzzer are nice to have, but not essential for me right now:)

    Thanks again for your very prompt assistance!

    Cheers

    Dave

     
  • brownrb

    brownrb - 2016-12-17

    Hi Dave
    If you have issues with the buzzer try lowering the 100 ohm resistor to 47 ohm or bit less.

    For temp probe, the problems often relate to the wiring and crimping of the connectors. But it will require the pullup resistor to work. Just use the test program to test the temperature probe
    https://sourceforge.net/projects/arduinofocuscontrollerpro/files/Testing/TestProgram3.ino/download

    Make sure you have installed the correct libraries
    The Onewire library can be downloaded from
    http://www.pjrc.com/teensy/td_libs_OneWire.html

    The Dallas Temperature library can be downloaded from
    https://github.com/milesburton/Arduino-Temperature-Control-Library

    Once you have downloaded the zip file you can add them to the Arduino - Start the Arduino program and select Sketch, Include Library, Add .Zip library, browse to where the .zip file is and click on it etc.
    Repeat for the other library. You would have already done this for the NewLiquid.... library for the LCD.

    The test programs use the Arduino IDE Serial port monitor to display messages. If you get a "Temp probe 1 NOT found" message thten it a wiring issue, the pullup resistor (4.7K) is missing, or the temp probe is not connected to the right pin on the Arduino (pin 2).

    Once its working you can then reprogram the Arduino with the Focuserv168_DRV8825_HW02_F.ino file.

    Regards
    Robert

     
  • Dave Jones

    Dave Jones - 2016-12-19

    Hi Robert

    I deleted and reinstalledthe LCD libraries and entered the correct hardware addressand all was fine. The Temp probe worked when I connected it correctly, so all is fine.

    Spent todat converting it from a plastic breadboard to soldered stripboard - will check it and test tomorrow. I ended up getting both a PG5 and PG27 moto. Initially I will connect the motor using pulleys and a GT2 belt which will give a further drive reduction, so the PG5 may be OK for that.

    Thanks again for your help!

    Dave

     
  • brownrb

    brownrb - 2016-12-19

    Hi Dave
    Glad to hear all is ok, looking forward to seeing the result!

    Cheers
    Robert

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.