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 problem


  • Please log in to reply
5 replies to this topic

#1 coose

coose

    New Member

  • Members
  • Pip
  • 9 posts

Posted 03 January 2014 - 06:36 PM

hi,

 

i'm trying to do a pizeo buzzer on PWM_3, and I'm getting nothing. when moving to PWM_2 (and moving the wire from pin 20 to 19), it works fine.

 

is there anything special about PWM_3 that i need to be aware of? is it possible I have a dead pin?

 

i'm certain my trivial circuit is correct, as it works on my Netduino 1, and works on PWM_2.

 

thanks.



#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 03 January 2014 - 07:33 PM

Hi coose, Three things: 1. Use the PWMChannels.PWM_PIN_## enumeration, rather than PWM_3. That will make sure you're aligned with the proper pin. 2. If you can drive a signal high/low on that pin using OutputPort, the pin is fine. [We check each pin after manufacturing as well.] 3. Are you running the latest production firmware (4.2.2.2)? Chris

#3 coose

coose

    New Member

  • Members
  • Pip
  • 9 posts

Posted 03 January 2014 - 10:07 PM

I changed to use PWMChannels.PWM_PIN_20 and no luck.

Then i tried to blink an LED declaring this pin as an output port:

OutputPort x = new OutputPort(Pins.GPIO_PIN_20, false);while (true){	x.Write(!x.Read());	Thread.Sleep(100);}

This doesn't work. Driving it off of another pin (i.e. 15) works fine. I'm moving the wire to match the pin defined in code (I've made this dumb mistake before...but not this time).

 

It's reporting TinyCLR build 4.2.0.0 and Bootloader build v4.2.0.1

 

I didn't know there was a 4.2.2.2 available?



#4 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 03 January 2014 - 10:30 PM

Hi coose, Do pins GPIO_PIN_16 through GPIO_PIN_19 work for you? If so, can you try reflashing your board with 4.1 firmware? It's possible that the board has been damaged--but I'd like to isolate any potential firmware issue for you first. Chris

#5 coose

coose

    New Member

  • Members
  • Pip
  • 9 posts

Posted 03 January 2014 - 11:39 PM

16 - 19 work fine. I'll flash 4.1 and see what happens.

#6 coose

coose

    New Member

  • Members
  • Pip
  • 9 posts

Posted 05 January 2014 - 02:58 AM

Looks like it's a dead pin. No response with PWM or OutputPort on 4.1 either.

Thanks for your help.

 

Now if only I had considered that before I spent hours trying to debug a silly buzzer. Seriously...hours.






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.