The invention discloses a locomotive sandbox comprising a sandbox, a sandbox end cover is arranged above the sandbox body, an upper surface of that sandbox end cover is provided with a threaded mounthole, a drive motor controller is mounted on the top end of the drive motor fixed to the left of the threaded mounting hole, at that tail end of the sandbox body, a sandbox pressure detection module is fix, and the sandbox body electronic module part comprises a driver display unit, an output unit, an MVB transmission module, a battery pack, a power conversion module, a sand spreading module, a gateway GW, a locomotive central control unit and a CAN transmission module. As that sand supply pipe of the machine room is arrange, sand supply pipe funnel, funnel end cap of sand supply pipe, drive motor, drive motor controller, the sand pumping screw and its casing, sand pipe, sand nozzle, sandbox pressure detection module, driver display unit, output unit, MVB transmission module and power conversion module solve the problems that the sand amount in the sandbox cannot be automatically detected, and the sand spreading devices in Gaza and sand spreading devices are affected by wind pressure during operation, especially when the sand is insufficient, so that the sand spreading is uneven and the sand is wasted.