Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

PWM Confusion


  • Please log in to reply
6 replies to this topic

#1 Tim Long

Tim Long

    New Member

  • Members
  • Pip
  • 9 posts

Posted 10 June 2011 - 08:28 PM

I have the ArduMoto shield and a Netduino Plus. I'm confused about how to configure things. I think this is just general confusion because I'm new to Netduino. The Netduino schematic calls the pins PB19 and PB20; CPU pins 64 and 65; Digital I/O 5 and 6. Does that mean I need to use Pins.GPIO_PIN_D5 and Pins.GPIO_PIN_D6? The ArduMoto board has PWMA on pin 3 and PWMB on pin 11 - confusion abounds! Does this mean the ArduMoto board isn't compatible with Netduino Plus? --Tim

#2 Justinius

Justinius

    Member

  • Members
  • PipPip
  • 15 posts

Posted 11 June 2011 - 02:22 PM

I don't have any experience with this shield, but I found a guy who does. http://forums.netdui...ndpost__p__9743 Hope that helps.

#3 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 13 June 2011 - 07:09 AM

Hi Timm, The AVR microcontroller used on the Arduino has 6 PWM. The ARM microcontroller used on the Netduino has 4 PWMs. The "outside 2" PWMs on the AVR (digital pins 3/11) are the two not enabled on the Netduino. We are working on a software PWM feature which will let the Netduino drive PWM signals in the background (at least one channel, maybe two)--which will enable PWM on those pins. Chris

#4 aalmada

aalmada

    Advanced Member

  • Members
  • PipPipPip
  • 44 posts
  • LocationPortugal

Posted 22 June 2011 - 08:34 AM


The ArduMoto board has PWMA on pin 3 and PWMB on pin 11 - confusion abounds! Does this mean the ArduMoto board isn't compatible with Netduino Plus?

--Tim


Hi Tim,

I made a few changes to the Ardumoto shield to make it compatible with the Netduino:
  • Changed the V-Logic from 5V to 3.3V as the Netduino outputs 3.3V through the digital pins.
  • Wired pin 3 to pin 5 and pin 11 to pin 6.
  • Clipped the pins 3 and 11.
The only problem now is that pins 3 and 11 are disabled for shields above.
I've already asked for a PWM pins change in a next shield version. Please "star" the comments to show that other people would also like to have these changes: http://www.sparkfun.com/products/9815

aalmada

Attached Files



#5 aalmada

aalmada

    Advanced Member

  • Members
  • PipPipPip
  • 44 posts
  • LocationPortugal

Posted 11 May 2012 - 10:50 AM

The "Go-Between Shield" helps you with shield compatibility without having to cut and solder. http://www.sparkfun.com/products/11002

#6 Gutworks

Gutworks

    Advanced Member

  • Members
  • PipPipPip
  • 363 posts
  • LocationOttawa, Ontario

Posted 11 May 2012 - 01:28 PM

Hi Tim,

In addition to aalmada's post you may find this Netduino Wiki page helpful: Ardumoto Motor Driver Shield

Cheers and good luck!
Steve

#7 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 11 May 2012 - 02:23 PM

Also, the Shield Base has support for these additional two PWMs--presumably without needing to modify your shield. :) Chris




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.