GithubHelp home page GithubHelp logo

grove_lv8545_motor_driver's Introduction

LV8548MC_Grove motor driver

A arduino example for LV8548_Grove motor driver control.

Introduction of motor driver

The LV8548MC is a 2-channellow saturation voltage forward/reverse motor driver IC.It is optimal for motor druve in 12V system products and can drive either two DC motors,one DC motor using parallel connection,or it can drive a stepper motor in Full-step and Half-step.


Introduction of library

This library contains two firewarm. serial_control_example is just a independent skecth. module_fireware is a firewarm source code for MEGA328U4 MUC on module.


usage:

1、At first,What you need to know is the LV8548MC_Grove motor driver sensor module contains a LV8548 IC and a atmel-MEGA-32U4 MCU. In fact, Arduino sends the protocol data to the arduino MCU on the module and controls the motor drive through the MCU on the module.The process is arduino-baseboard->arduino-MCU on module->LV8548. 2、Download all the source files and open serial_control_example/serial_control_example.ino in arduino IDE,This is a sketch. 3、Then compile and download. 4、Connect the corresponding motor to the module, and then connect the module to the arduino-baseboard with the Grove connection cable to control the module.The routine implements some simple control instructions

The following two points are not necessary,Because the MCU on the module already has the default, available firmware. but I suggest you do so to achieve better motor control 5、If you need to understand the underlying principles of the driver chip, or to achieve more customized, more flexible control, you can Read all the code in module_fireware/,The excel file motor_protocol.xlsx is the communication protocol between two board. 6、Modify the module firmware and write it according to your own needs.This may cost you some time, but it's worth it. It is worth noting that you should select Genuino Micro board as develop board in arduino IDE.

Notice:

1 The defualt angle(The angle at which the motor runs) value is 7.5 at the part of STEP motor,Every motor has a fixed value.You should ensure the angle per step of the motor you use,and set it. Otherwise,controls for precise corners will be inaccurate.

2 The minimum interval time between two control protocols is 80ms,Don't send data continuously,A small delay is needed.Otherwise,the module will not recognize the protocol data.If you don't like this form,you can also change it by modify the protocol between arduino-baseboard and module firewarm,Or modify the receiving method.However, it is necessary to modify the arduino-baseboard firmware and the firmware of the module at the same time


LV8548 reference manual:

LV8548 reference manuals website


This software is written by downey for seeed studio
Email:[email protected] and is licensed under The MIT License. Check License.txt for more information.

Contributing to this software is warmly welcomed. You can do this basically by
forking, committing modifications and then pulling requests (follow the links above
for operating guide). Adding change log and your contact into file header is encouraged.
Thanks for your contribution.

Seeed Studio is an open hardware facilitation company based in Shenzhen, China.
Benefiting from local manufacture power and convenient global logistic system,
we integrate resources to serve new era of innovation. Seeed also works with
global distributors and partners to push open hardware movement.

grove_lv8545_motor_driver's People

Contributors

linux-downey avatar

Stargazers

 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.