Jump to content

LiviuM

Members
  • Content Count

    91
  • Joined

  • Last visited

  • Days Won

    13

Posts posted by LiviuM


  1. Hi,

    nice to see that making the connection properly bring it to work. :D Carefully reading the replies you receive may even accelerate the success. ;)

    For your last problem - writing without writing - maybe you should open the file in the correct mode. In this case the mode should be FA_WRITE.

    Try to replace

    On 5/25/2017 at 1:49 PM, hemangjoshi37a said:

    rc = FatFs.open("T_WRITE.TXT");

    with

    rc = FatFs.open("T_WRITE.TXT", FA_WRITE);

    or

    rc = FatFs.open("T_WRITE.TXT", FA_WRITE | FA_READ);

    for read & write access.

     


  2. Have you tried with the last version of the library, mentioned on the https://hmario.home.xs4all.nl/arduino/LiquidCrystal_I2C/?

    Quote

    Update 12/2011: V2 release.
    Due to the release of Arduino IDE 1.0 some changes were made to the library to get it working under the new IDE.
    Because of these changes this version of the LiquidCrystal_I2C library can not be used for older IDE versions!
    The Multiple display example is moved to the samples directory so it becomes available as a sample in the IDE.
    (Thanks to Ailton F. for beta testing.)

    The old V1.0 version of the LiquidCrystal_I2C library can be downloaded here.

     


  3. From the description of the error codes (pff.h),

    pff.h

    /* File function return code (FRESULT) */
    
    typedef enum {
    	FR_OK = 0,			/* 0 */
    	FR_DISK_ERR,		/* 1 */
    	FR_NOT_READY,		/* 2 */
    	FR_NO_FILE,			/* 3 */
    	FR_NOT_OPENED,		/* 4 */
    	FR_NOT_ENABLED,		/* 5 */
    	FR_NO_FILESYSTEM	/* 6 */
    } FRESULT;

    I understand that rc=3 means the file you are trying to open doesn't exist and that rc=6 means bad connection.

    In the same time, reading one of the original posts:

    Quote

    The write function has some limitations :

    • Cannot create file. Only existing file can be written.
    • Cannot expand file size.
    • Cannot update time stamp of the file.
    • Write operation can start/stop on the sector boundary.
    • Read-only attribute of the file cannot block write operation.

    I understand that the files should exist before trying to access them.

    With these considerations, I suppose your first set-up (the one with rc=3) is correct and the file you try to access doesn't exist.

    Cheers,

    Liviu

    PS I'll PM you my bank data.


  4. Hi,

    for the projects I need to access from multiple places (and needing some privacy) I've configured a small git server and put gogit/gogs *) on top of it.

    Because the core is git, I can use it from command line and gogit gives me the possibility to use it in a way similar to github and (the reason I use it) allows me to define "virtual users" - I can allow other people to access the private repositories without sharing my (main) credentials.

    I have luck with a good hosting offering all needed tools.

    Cheers,

    Liviu

    *) I suppose any "interface" will do the same, I've used gogs because I found a tutorial (in German) about the installation on my server.


  5. Hi @@brelliott18,

     

    There are some known problems with i2c on 2553 Launchpads, mentioned in various posts over this forum.

    One of them is mentioned in http://forum.43oh.com/topic/2641-i2c-lcd/page-2#entry75927; in this post is also a link to a solution http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/529036/1924562#1924562

     

    Have you already seen this posts? Have you tried the solutions presented in them?

     

    Regards,

    Liviu


  6. Hello,

     

    these days I was trying to use an array of servos, something like:

    #include <Servo.h>
    
    #define IOS_NR 5
    
    byte myIos[IOS_NR] = {1,2,3,4,5};
    
    Servo myServos[IOS_NR];
    
    boolean bServoOut[] = {true false, false, true, false};
    
    void setup(){
       for(i=0; i < IOS_NR; i++){
          if(bServoOut[i]){
             myServos[i].atatch(myIos[i]);
          }
       }
    }
    
    void loop(){
       
    // do some things
    
          if(bServoOut[k]){
             myServos[k].write(servoValue);
          }
    
    // do other things
    }
    
    

    but the servos behaved totally other than expected. Digging through the Servo library, I've found some (in my opinion) wrong used indexes and (again, in my opinion) fixed them.

    After the fix my two servos behave as expected.

     

    I'm attaching the changed files (actually only the .cpp file is changed), maybe someone can test them thoroughly than I, or even use them.

     

    Best regards,

    Liviu

     

    PS I've renamed the files after the project I'm using them in.

    RNServo.zip

×
×
  • Create New...