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

Plus 2 with PCA9685 16 channel PWM Controller (I2C)


  • Please log in to reply
7 replies to this topic

#1 iced98lx

iced98lx

    Advanced Member

  • Members
  • PipPipPip
  • 134 posts
  • LocationSouth Dakota

Posted 16 April 2013 - 11:45 PM

Okay, so I've updated my N+2 to 4.2.2.2 and I am transitioning my PWM controls off the on board (since I need 15) to the AdaFruit 16 channel 12 bit PWM controller. (http://www.adafruit.com/products/815). I've got it hooked up as such:

 

Netduino + 2 SC Pin -> SCL Pin (Pullup off 3.3v with a 2.2k)

Netduino + 2 SD Pin -> SDA Pin (Pullup off 3.3v with a 2.2k)

3.3v -> VCC

GND -> GND

 

Here is how it is set up:

 

Posted Image

 

 

I am using the 'driver' class from http://forums.netdui...wms/#entry42442

 

and executing the following:

 

Adafruit_PWMServoDriver Light1 = new Adafruit_PWMServoDriver();Light1.setPWMFreq(100);Light1.setPWM(4, 0, 200);

 

I don't have a scope, so I'm sort of flying blind but with the PWM of channel 4 hooked up to a channel that works if I control it directly from the N+2 nothing changes when I set it as displayed, it's at 100%.

 

I'm a 100% newbie on i2c stuff, BrandonW6's driver doesn't mean too much to me, where can I start troubleshooting?

 

Thanks!



#2 NooM

NooM

    Advanced Member

  • Members
  • PipPipPip
  • 490 posts
  • LocationAustria

Posted 17 April 2013 - 10:24 AM

did you try connecting it to sda and scl makred pins on netduino?



#3 iced98lx

iced98lx

    Advanced Member

  • Members
  • PipPipPip
  • 134 posts
  • LocationSouth Dakota

Posted 17 April 2013 - 01:56 PM

did you try connecting it to sda and scl makred pins on netduino?

 

Indeed, that is how I have had it set up from the start- the diagram hooked to analog 4 and 5 with no pullups is from AdaFruit's website, showing how they suggest connecting it to a UNO. I posted it as a "Should I connnect it like this instead?!"  Perhaps it'd help if I made my own diagram? I have tried it without the pullups with no further success.



#4 NooM

NooM

    Advanced Member

  • Members
  • PipPipPip
  • 490 posts
  • LocationAustria

Posted 17 April 2013 - 02:29 PM

have you made the update to 4.2.2.2 ?



#5 iced98lx

iced98lx

    Advanced Member

  • Members
  • PipPipPip
  • 134 posts
  • LocationSouth Dakota

Posted 17 April 2013 - 05:23 PM

have you made the update to 4.2.2.2 ?

 

Yes.



#6 iced98lx

iced98lx

    Advanced Member

  • Members
  • PipPipPip
  • 134 posts
  • LocationSouth Dakota

Posted 17 April 2013 - 06:13 PM

updated original post to show how I've attached it.



#7 iced98lx

iced98lx

    Advanced Member

  • Members
  • PipPipPip
  • 134 posts
  • LocationSouth Dakota

Posted 17 April 2013 - 10:01 PM

NooM Helped me break it down and just check to see if my hardware works, and it does appear to be working- I can read / write



#8 iced98lx

iced98lx

    Advanced Member

  • Members
  • PipPipPip
  • 134 posts
  • LocationSouth Dakota

Posted 18 April 2013 - 02:11 AM

Alright, so - the diagram above works fine. 

 

You can find the driver I ended up using in this thread:http://forums.netdui...y-pwms/?p=48501

 

But the long and short is things are working well.






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.