Picaxe & pca9685

Peterrey

New Member
Has anyone out there tried to get the PCA9865 based adafruit servo board to work on i2c with a PICAXE? Would it work in theory?
 

westaust55

Moderator
It should be possible to connect the PCA9685 to a PICAXE.
I2c is fairly universal and the PCA9685 supports Standard (100 kHz), Fast (409 kHz) and FastPlus (1 MHz) clock speeds.
 

mikeyBoo

Senior Member
Been using Adafruit PCA9685 & Picaxe on my yak for lighting effects for a couple of years, works great. The frequency is adjustable 40Hz...1000Hz so works great for servos & LED lighting (via MOSFETs) (defaults to 200Hz which works fine on either). Each of 16 channels may have a different PWM value (set it & forget it).
Need to use a separate +5v supply for driving lots of servos.
However, found it best to use PWM off Picaxe-20M2 for motor control.
 

mikeyBoo

Senior Member
I just nabbed one for $2: http://www.ebay.com/itm/PCA9685-16-Channel-12-bit-PWM-Servo-motor-Driver-I2C-Module-For-Arduino-Robot/272557014281

@mikeyBoo: Can you share your code to get me jump-started using this with servos? Thanks.
hi erco,
Look at my kayak control software under misc. projects: Picaxe Kayak Control System.bas
http://www.picaxeforum.co.uk/showthread.php?28063-Picaxe-Kayak-Control-Project&p=290084#post290084
I use a PCA9685 to run the UFO effects on my yak.
PCA9685-related procs begin with “LED.”
or search for “PCA9685”
also attached my notes on PCA9685
 

Attachments

Top