Giter Club home page Giter Club logo

wemos_motor_shield's Introduction

Wemos_D1_Motor_Shield

Arduino library for the Wemos D1 mini Motor Shield (i2c interface, TB6612 based).

Firmware Warning

WARNING: The shipped firmware with the Motor Shield is bugged. You need to update it. You can update it from Windows with a D1 Mini. You can find the update instructions below.

Sources

Update the Firmware (from Windows)

Step 1

Upload an empty sketch to you D1 Mini. This will allow serial data to pass from the USB port to the Motor Shield. Basically, we are telling the D1 Mini to ignore all serial data that will pass through to the Motor Shield.

Sketch:

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

Step 2

Solder RTS and 3V on the Motor Shield. This activates the reprogramming mode of the Motor Shield. Then build this circuit: Image of circuit to update the firmware

Step 3

Download STM32Flash from here https://sourceforge.net/projects/stm32flash/files/

Extract in a directory.

Step 4

Download the motor_shield.bin: https://cdn.hackaday.io/files/18439788894176/motor_shield.bin

Extract and put in the same directory as stm32flash.exe downloaded in the step above.

Step 5

Execute the following three commands. IMPORTANT: Replace COM8 with the port of your Wemos D1 Mini.

  1. stm32flash.exe COM8

Replace COM8 with the port of your Wemos D1 Mini.

image of stm32flash.exe result

  1. stm32flash.exe -k COM8

This will unlock your shield, replace COM8 with the port of your Wemos D1 Mini

image of stm32flash.exe -k result

  1. stm32flash.exe -f -v -w motor_shield.bin COM8

This will flash the bin and re-lock the shield, replace COM8 with the port of your Wemos D1 Mini.

image of stm32flash.exe -f -v -w motor_shield.bin result

Step 6

Disconnect everything and unsolder RTS and 3V on the Wemos Motor Shield.

wemos_motor_shield's People

Contributors

wemos avatar l0laapk3 avatar urish avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.