B4R Question WeMos D1 WiFi uno based ESP8266 & rAdafruitMotorShield (V2) library

Discussion in 'B4R Questions' started by Pencil3, Jan 4, 2019.

  1. Pencil3

    Pencil3 Member Licensed User

    Anyone have any experience with the two? I believe the shield will need to be configured for 3.3v operation, but is the library itself compatible?
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    It is not clear from the open source project documentation whether it is compatible with ESP8266.
     
    Pencil3 likes this.
  3. Pencil3

    Pencil3 Member Licensed User

    In case it ever comes up again, preliminary testing appears that they are compatible.
     
    Erel likes this.
  4. Pencil3

    Pencil3 Member Licensed User

    Have run into an issue. When trying the two examples from HERE I can run the DC motor example fine, but the Motor Stepper example fails with:
    Code:
    AppStart
    style: 
    1
    Soft WDT reset
    ctx: cont
    sp: 3ffffcd0 
    end: 3fffffd0 offset: 01b0
    >>>stack>>>
    3ffffe80:  3ffffed0 3ffffef0 402045dc 
    00000006 
    3ffffe90:  
    00000000 00000000 3ffee809 40203a18 
    3ffffea0:  
    40106538 3ffee8f4 3ffee7f8 40203a40 
    3ffffeb0:  3ffee8f4 
    00000002 3ffee8f4 402029f8 
    3ffffec0:  3ffffed0 
    00000002 00000002 3ffee7c4 
    3ffffed0:  
    00000001 00000002 3ffee7c4 40202bc2 
    3ffffee0:  
    40106538 00007530 0000005e 40202ea3 
    3ffffef0:  
    00000001 0000005e 00007530 40202f04 
    3fffff00:  
    00000002 00000066 402369bc 00000001 
    3fffff10:  
    00000001 3fffff58 3ffee809 00000000 
    3fffff20:  
    00000000 00000001 3ffee7ec 402037b1 
    3fffff30:  
    00000000 00000001 3ffee7ec 4020361c 
    3fffff40:  
    00000003 402035b0 0000000c 401004e4 
    3fffff50:  3fffff58 
    00000003 00030201 402044dc 
    3fffff60:  3fffff50 
    00000003 3ffee75c 40203561 
    3fffff70:  3ffee7f0 3ffee7ec 3ffee748 3ffee9cc 
    3fffff80:  3fffdad0 3ffef5fc 3ffee75c 402034d6 
    3fffff90:  feefeffe 3ffee764 
    00000000 40203537 
    3fffffa0:  3fffdad0 
    00000000 3ffee9c4 402037df 
    3fffffb0:  feefeffe feefeffe feefeffe 
    40204668 
    3fffffc0:  feefeffe feefeffe 3ffe8520 
    40100739 
    <<<stack<<<
    I can call the below from a timer and it works.
    Code:
    stepper.Step(50stepper.DIR_FORWARD, stepper.STYLE_MICROSTEP)
    But if I try to call the below it will fail with the same error as above.
    Code:
    stepper.Step(900stepper.DIR_FORWARD, stepper.STYLE_MICROSTEP)
    Anyone have any ideas?
     
  5. Erel

    Erel Administrator Staff Member Licensed User

    What is the first parameter? Is it duration? Is this method blocking?
     
  6. Pencil3

    Pencil3 Member Licensed User

    It is the amount of steps (steps As UInt). I believe it does and causes the software wdt to restart. Not sure where to start to try to resolve.

     
  7. Erel

    Erel Administrator Staff Member Licensed User

    You can split it to several calls and add Delay(1) between them.
     
    Pencil3 likes this.
  8. Pencil3

    Pencil3 Member Licensed User

    That works, thank you so much!

     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice