Ahh if not homework to me it sounds like work assignment and it's obvious he's 
planning on running barebones to perhaps do proof of concept. Barebones 
examples come from starterware and are fastest way.I agree with Dennis either 
way you need to make an effort If I was green and clueless how to code this I'd 
start with part 1 and find an I2C starterware example  and modify it
Part 2 Google "PCA9685 I2C driver c code" basically you are encapsulating the 
device commands from data sheet so read that
If you  can't get part A to work I would 
A) ask for a refund  from your  university  and/OrB) work as much overtime  as 
you  can before you get fired from the job when your boss sees you are asking 
questions that show how green you are.


Sent from Yahoo Mail on Android 
 
  On Sun, Aug 9, 2020 at 8:15 PM, Graham Stott<[email protected]> wrote:   
If (as Dennis asked) you are asking about this program for a bare-board (no OS) 
configuration, then I suggest you look at TI's starterware. It has routines for 
I2C and GPIOs that you can use from the C program to provide the functionality 
you are asking for. You can use CCS for the development. There are videos 
online for "getting started" with starterware and CCS.

Graham

P.S Dennis - FYI, I have a Beaglebone white and a PocketBeagle and I only run 
starterware on them. I do read this forum often.



-----Original Message-----
From: [email protected] [mailto:[email protected]] On 
Behalf Of Dennis Lee Bieber
Sent: Sunday, August 09, 2020 11:08 AM
To: Beagleboard <[email protected]>
Subject: [beagleboard] Re: I2C driver for a PCA9685 servo controller board for 
s90 servos

On Wed, 5 Aug 2020 18:36:12 -0700 (PDT), in gmane.comp.hardware.beagleboard.user
[email protected] wrote:

>Can anyone provide a C program that can be run in CCS that would 
>program an I2C controller on the BBB board to generate the desired 
>clock frequency signal and the required data signals on the I2C bus.
>
>
>Part 1. Program the device to generate signals to turn LED15 to full ON. 
>Should be measurable voltage from the number 15 signal pin on the servo 
>board.
>
>Part 2. Develop commands you send to  to intialize it for the 
>correct frequency for your servo, set up a timer on the BBB to control 
>delays, and intialize the BBB User LEDs.

    The phrasing of this sounds very much like it is some sort of homework 
assignment.

    Doing someone else's homework is frowned upon in many forums. The mention 
of CCS also complicates matters in that CCS supports bare-board development 
(using TI's SDK, I believe) and maybe Linux development.

    If running under Linux, there are native compilers which run on the BBB, 
though without an IDE (especially if one hasn't installed X-Window system). 
Also one can set up a cross-development environment (easiest to be running in a 
desktop Linux -- set up Debian in Oracle VirtualBox if running on a Windows 
system... Instructions for cross-development, including configuring Eclipse, 
are in Chapter 7 of Molloy's Exploring Beaglebone 2nd Ed [or use his Exploring 
Raspberry-Pi -- chapter 7 is practically identical).

    So first: Are you talking about a bare-board (no OS) configuration or an 
application to run under Linux? I don't recall anyone on the forum that 
regularly works with bare-board -- there is just so much that has to be set up 
just to start a program running.

    Second: Show us YOUR code and explain what doesn't seem to be working with 
it. And don't submit the equivalent of

#include <stdio>
void main(argc, *argv)
{
    /* need help here */
}

We can help correct your attempts, but won't write the code for you.
Providing a link to the documentation for your peripheral board would also have 
been useful.

    Heh -- I'd probably start with the out-of-stock Adafruit board, and use 
Python via the Adafruit_Blinka compatibility library to use their CircuitPython 
PCA9685 module.


--
Dennis L Bieber

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/4dd0jfd9hajh7649m43sun2j6t02ti9a1p%404ax.com.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/000501d66eb3%24a5aa96b0%24f0ffc410%24%40comcast.net.
  

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/1841026887.1654500.1597023905505%40mail.yahoo.com.

Reply via email to