Attempt to move motors when VIN is not in range



  • Hello together,
    I've got the following error "Attempt to move motors when VIN is not in range".
    I checked the V input from the power supply and it shows 12,3V with a voltmeter but if i take a look in the webinterface it shows only 8,5V and if i'm checking via terminal with M122, which i found in an other thread, it shows this:
    M122
    === Diagnostics ===
    RepRapFirmware for Duet 2 WiFi/Ethernet version 2.02(RTOS) running on Duet WiFi 1.02 or later
    Board ID: 08DGM-917DA-G4MSJ-6J1F2-3SJ6T-K9RR8
    Used output buffers: 3 of 20 (8 max)
    === RTOS ===
    Static ram: 25524
    Dynamic ram: 98604 of which 0 recycled
    Exception stack ram used: 200
    Never used ram: 6744
    Tasks: NETWORK(ready,632) HEAT(blocked,1232) MAIN(running,3868) IDLE(ready,200)
    Owned mutexes:
    === Platform ===
    Last reset 00:05:42 ago, cause: power up
    Last software reset at 2019-03-12 21:23, reason: User, spinning module GCodes, available RAM 6788 bytes (slot 1)
    Software reset code 0x0003 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x0440f000 BFAR 0xe000ed38 SP 0xffffffff Task 0x4e49414d
    Error status: 0
    Free file entries: 10
    SD card 0 detected, interface speed: 20.0MBytes/sec
    SD card longest block write time: 0.0ms, max retries 0
    MCU temperature: min -71.7, current -64.3, max -63.8
    Supply voltage: min 8.4, current 8.5, max 8.8, under voltage events: 0, over voltage events: 0, power good: no
    Driver 0: ok, SG min/max not available
    Driver 1: ok, SG min/max not available
    Driver 2: ok, SG min/max not available
    Driver 3: ok, SG min/max not available
    Driver 4: ok, SG min/max not available
    Date/time: 2019-03-13 18:23:55
    Cache data hit count 1295941576
    Slowest loop: 4.86ms; fastest: 0.06ms
    I2C nak errors 0, send timeouts 0, receive timeouts 0, finishTimeouts 0
    === Move ===
    Hiccups: 0, StepErrors: 0, LaErrors: 0, FreeDm: 240, MinFreeDm: 240, MaxWait: 0ms, Underruns: 0, 0
    Scheduled moves: 0, completed moves: 0
    Bed compensation in use: none
    Bed probe heights: 0.000 0.000 0.000 0.000 0.000
    === Heat ===
    Bed heaters = 0 -1 -1 -1, chamberHeaters = -1 -1
    === GCodes ===
    Segments left: 0
    Stack records: 1 allocated, 0 in use
    Movement lock held by null
    http is idle in state(s) 0
    telnet is idle in state(s) 0
    file is idle in state(s) 0
    serial is idle in state(s) 0
    aux is assembling a command in state(s) 0
    daemon is idle in state(s) 0
    queue is idle in state(s) 0
    autopause is idle in state(s) 0
    Code queue is empty.
    === Network ===
    Slowest loop: 14.08ms; fastest: 0.00ms
    Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0) Telnet(0)
    HTTP sessions: 1 of 8

    • WiFi -
      Network state is running
      WiFi module is connected to access point
      Failed messages: pending 0, notready 0, noresp 0
      WiFi firmware version 1.21
      WiFi MAC address cc:50:e3:0d:1c:9e
      WiFi Vcc 4.36, reset reason Turned on by main processor
      WiFi flash size 4194304, free heap 15048
      WiFi IP address 192.168.. <-- changed it
      WiFi signal strength -60dBm, reconnections 0, sleep mode modem
      Socket states: 0 0 0 0 0 0 0 0

    The problem is the Duet do nothing. Only if i plugin a fan to the always on fan pin the fan runs.

    Some information to the setting:
    Tronxy X5s
    Duet 2 Wifi
    PanelDue 7i

    I really don't know what to do?
    Could anybody help me with this issue?

    Kind regards
    AimRabbit


  • administrators

    @aimrabbit said in Attempt to move motors when VIN is not in range:

    Supply voltage: min 8.4, current 8.5, max 8.8, under voltage events: 0, over voltage events: 0, power good: no

    That's the problem. The minimum supply voltage for the stepper drivers is about 10V.



  • @dc42 said in Attempt to move motors when VIN is not in range:

    @aimrabbit said in Attempt to move motors when VIN is not in range:

    Supply voltage: min 8.4, current 8.5, max 8.8, under voltage events: 0, over voltage events: 0, power good: no

    That's the problem. The minimum supply voltage for the stepper drivers is about 10V.

    I already saw that in my log but i don't understand why its so different to what i get from my multimeter. My multimeter show me 12,3V and not 8,5V. Thats my problem what i don't understand.



  • have you got an atx power supply that you can temporarlity hook up?



  • @veti said in Attempt to move motors when VIN is not in range:

    have you got an atx power supply that you can temporarlity hook up?

    yes i have a 24V 15A. I hope its not to much.


  • administrators

    @aimrabbit said in Attempt to move motors when VIN is not in range:

    I already saw that in my log but i don't understand why its so different to what i get from my multimeter. My multimeter show me 12,3V and not 8,5V. Thats my problem what i don't understand.

    Some possible explanations:

    1. VIN connections not tight.
    2. 3.3V rail (which is used by the Duet as the voltage reference to measure VIN) is actually at 5V. But then I would expect the microcontroller to be cooked.
    3. A fault with one of the 3 passive components that form the voltage divider used to measure VIN. Unlikely, but not impossible.


  • @aimrabbit

    what i mean is, have you got another power supply that you can test. i.e. a spare one from a pc.



  • @veti said in Attempt to move motors when VIN is not in range:

    @aimrabbit

    what i mean is, have you got another power supply that you can test. i.e. a spare one from a pc.

    what i said 🙂 24V 15A is my second one.



  • I have made a post with a similar issue and haven't been able to solve it. I have a 24V power supply but when I look in the interface it says 0.5V and the same "attempt to move blah blah..."



  • OK, I changed the power supply to the 24V 15A and get 24V on my multimeter.
    But again I get this from M122:
    Supply voltage: min 16.4, current 16.5, max 17.2, under voltage events: 0, over voltage events: 0, power good: yes

    I don't understand why it drops 7,5V to nothing. I disconnect every wires to check if i have a bad item pluged in but its the same again.



  • A question, is it maybe possible that the PanelDue 7i take the 7,5V ?



  • I solved the problem! And indeed it was the PanelDue 7i which use 7,5V from the V input.
    Thanks to all for helping me!



  • @aimrabbit something is seriously broken, unless your PSU is WAY underpowered. i can power my i7 from USB..... meaning it doesnt take that much power,

    was it miswired?



  • @tenjin said in Attempt to move motors when VIN is not in range:

    @aimrabbit something is seriously broken, unless your PSU is WAY underpowered. i can power my i7 from USB..... meaning it doesnt take that much power,

    was it miswired?

    No everything with the PSU is ok but I don't have my USB wired up to the board. maybe if I do it the VIN will increase but now with the 24V PSU i've got 16,5V on VIN (Webinterface). If I meassure on the VIN screws i have 24V.
    And I checked the wires and everything is like the diagram told me it should be 🙂 I don't know why the PanelDue 7i is taking that much power but now the M122 said also the power is good. I will have an eye on it. I hope that nothing will burn up.
    But if this not normal I appreciate everyone who can solve this miracle!



  • since 12.3/8.5 = 1.44 and 24/16.5 = 1.45 are the same ratio, it is possible that there is something wrong with the resistors of the divider that measures Vin.



  • @genghisnico13 said in Attempt to move motors when VIN is not in range:

    since 12.3/8.5 = 1.44 and 24/16.5 = 1.45 are the same ratio, it is possible that there is something wrong with the resistors of the divider that measures Vin.

    and what could i do to fix that?
    or do i have to send it back to the shop for a replacement?
    or is that no problem and i should do nothing?



  • You could measure Resistors 80,81 or 15,16 (I'm not sure which pair is used to measure) that are near the always on fans connectors and 5vEnable jumper on the side of the expansion header. There should be 2 of 4.7kOhm and 2 of 47kOhm.
    Although as far as I know (could be wrong) not many things are affected considerably by having a wrong input voltage reading (power loss range, heater power voltage compensation,etc) so I wouldn't consider it a big deal, but if it is a resistor it would be easy to fix.
    edit: added pictures1_1552590743971_duet wifi r81_v1.jpg
    you should see Vin/11 more of less.

    0_1552590743970_duet wifi R16_v1.jpg
    same here, I don't know which side is GND so you will see 0 in one of the points.

    edit2: I took the pictures from the internet so they may not match your board exactly, but it should be similar.



  • @genghisnico13 very nice from you but without the connected PanelDue 7i i get the 24V also in the interface.
    Are this two resistors for powering the display?



  • @aimrabbit No, they just lower the voltage to be measured by the microcontroller. if you get 24v in DWC(Web) of M122 without the PanelDue connected then there is no need to do what I told you.



  • @genghisnico13 you don't know how much better i feel now! thank you thank you thank you.


Log in to reply