Results 1 to 2 of 2

Thread: dc motor, monster moto shield VNH2SP30 ,arduino uno and matlab

  1. dc motor, monster moto shield VNH2SP30 ,arduino uno and matlab

    hi
    I want to control a dc motor with a monster moto shield VNH2SP30 ,arduino uno and matlab ,I checked the shield with arduino program and it worked as the datasheet of the shield the digital pins 7 and 8 are used to run the dc motor 1 but in matlab I write this code:
    Code:
    a=arduino('com9','uno');
    writeDigitalPin(a,'D7',1);
    writeDigitalPin(a,'D8',0);
    but nothing happened and the dc motor didn't run

  2. #2

    Re: dc motor, monster moto shield VNH2SP30 ,arduino uno and matlab

    Are you running the correct firmware on the Arduino?
    Can you make a LED blink using the Matlab code? (The LED lives on pin 13 IIRC)
    If you hook up an oscilloscope on the serial RX/TX lines on the Arduino, does it get any packets?

Thread Information

Users Browsing this Thread

There are currently 2 users browsing this thread. (0 members and 2 guests)

Similar Threads

  1. Arduino Shield Question
    By brian25 in forum Software and Programming
    Replies: 4
    Last Post: 10-02-2013, 01:31 AM
  2. Question(s) Motor shield needed for RG90?
    By Westside in forum Rovers
    Replies: 2
    Last Post: 04-08-2013, 10:46 PM
  3. Question(s) Getting software for the Seeedstudio Bluetooth Arduino Shield...
    By st2000 in forum Software and Programming
    Replies: 1
    Last Post: 12-09-2012, 04:00 AM
  4. Designing a shield for Arduino Rev 3 boards that also work with non Rev 3 boards...
    By KurtEck in forum Arbotix, Microcontrollers, Arduino
    Replies: 4
    Last Post: 10-23-2012, 09:06 PM
  5. Question(s) MD23 Motor Driver and Arduino
    By ROBOTMAN in forum Software and Programming
    Replies: 14
    Last Post: 01-08-2010, 01:13 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •