FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
5159 Discussions

Request for a verilog code to connect PCA9685 to Altera Cyclone IV FPGA based development board

first_rain
Novice
474 Views

Hello

I'm need to control a bunch of servo-motors by a FPGA board (Altera cyclone IV core).  I'm using a PCA9685 as the driver of the motors. I would be greatly tanksful if you could give me some hint or if it's possible a Verilog based example for running the motor driver. 

So far I assigned a pwm output from the fpga pin to SCL pin on PCA board, beside the vcc and the ground, I also wired one of the switches as for 0 or 1 to SDA pin assuming that the 0 would chose the servo 1th and the 1 would be choosing the servo number 1. nothing happens so far :)).

 

Thanks in advance.

0 Kudos
4 Replies
first_rain
Novice
473 Views

I would appreciate if someone could help

SyafieqS
Moderator
440 Views

Hi Artin,


I found a open source reference related to servo controller that might be heloful. You can refer to link below for details.


https://gist.github.com/mcgodfrey/b94acfc796c240a4a164


Thanks,

Regards


first_rain
Novice
426 Views

Hi, thanks for reply however my concern is about controlling the PCA9685 as the i2c to controll the servos.... not direct control.

allthegoodnamesaregon
158 Views

Are there any updates on the subject, i have the same issue since i'm trying to use the PCA9685 of the adafruit with my de0 nano

Reply