Newly Installed BeagleY-AI with Kernel 6.1.x and Finding i2c-2 Addresses/New to Me

After all this time, this may sound silly but…

  1. Do I need to have an overlay if using a PCA9685 chipset on /dev/i2c-1?
  • First off, I do not believe I need the overlay. I will test it with i2cdetect -y -r 1.
  • Secondly, I will need to alter some source code for Donkey Car (I think)…
  1. The reason I bring up an overlay here…
  • I am using the Servo Cape and it has an address but I am using it on another address line.
  • Donkey Car seems to handle i2c commands well enough now.

Seth

P.S. Right now, right now, I am adding some commands in python3 to handle a library that ports a USB CAM or CV CAM (Donkey Car jargon stuff) for training and managing/starting Donkey Car on the command line.

update

I, and this is without testing, was thinking talking directly to the PCA9685 is possible. I also thought the i2c peripheral talk and back talk is possible with the Servo Cape (which is needed for the PCA9685). I will using i2c-1 and/or i2c-2 via smbus2 or smbus solely (I think). This depends on Donkey Car and their libraries… Anyway, I think it works because I know how sometimes people forget to handle specifics on beagleboard.org Capes and peripheral usage cases. I really dislike saying it that way but if it works, it works and I can use it.

I call this a neat library. It is neat because they made it so commands given to the peripheral, Web Cam or whatever, at an address can then become acted upon. So for instance, I run the initial command.

Then, via learning techniques, the auto mechanism takes hold and allows movement in a coordinated way via whatever it has learned. Now, how well does it work? No clue as of yet.

I am a bit slow to get around to pushing out things and posts these days.

Seth

P.S. It may just work!

If the I2C channel is already showing up in Linux, you do not need to do anything further.

Sub-devices are really only needed if you plan to attach a kernel driver to said device.

Nothing prevents you from claiming the device yourself.

1 Like

I figured this much. I will claim the device and keep testing.