ModalAI Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Using GPIO/I2C as pwm from voxl for payload

    Ask your questions right here!
    5
    17
    710
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Chad SweetC
      Chad Sweet ModalAI Team
      last edited by

      To be clear though, @Aldo-Castro-Freire you will still need to use voxl-io to communicate with the peripheral

      Aldo Castro FreireA 1 Reply Last reply Reply Quote 0
      • Aldo Castro FreireA
        Aldo Castro Freire @Chad Sweet
        last edited by

        @Chad-Sweet I am confused now, I thought the point of the library is that so I will not have to deal with the low-level logic. vox-i2c Basically I still wanna be using the pca9865 to convert to PWM that I can use to control
        using this:
        https://learn.adafruit.com/16-channel-pwm-servo-driver/python-circuitpython

        right now I am not sure. how to connect those two together.

        1 Reply Last reply Reply Quote 0
        • Chad SweetC
          Chad Sweet ModalAI Team
          last edited by

          Yes, sorry for the confusion, voxl-i2c is a part of voxl-io. You will want to use voxl-i2c to communicate with an i2c peripheral

          1 Reply Last reply Reply Quote 0
          • Aldo Castro FreireA
            Aldo Castro Freire
            last edited by

            My question is there a driver for pca9865 that I can use? Cause right now it seems I have not way of accessing the i2c port even if I use the libraries from adafruit.

            So my question is can I run a python program that uses the i2c port to control the pca9865 that will allow me to control servos or payload actuation as an IoT device basically.

            1 Reply Last reply Reply Quote 0
            • Chad SweetC
              Chad Sweet ModalAI Team
              last edited by

              No, that is not currently available. What you described would require coding in python to make the appropriate voxl-i2c calls per the pca9865 specification

              1 Reply Last reply Reply Quote 0
              • Aldo Castro FreireA
                Aldo Castro Freire
                last edited by

                Is there any other module that I can use to control something using the voxl. As I see I am not sure if voxl support any other devices.

                Do you have any recommendations?
                Looking for a way to trigger servos without having to install another computer.

                1 Reply Last reply Reply Quote 0
                • M
                  MattO @tom
                  last edited by

                  @tom said in Using GPIO/I2C as pwm from voxl for payload:

                  @Aldo-Castro-Freire If you haven't yet, you will want to follow the steps here to get voxl-docker installed on your desktop in order to use voxl-emulator which allows you to build IPKs for VOXL on your desktop machine.

                  • First you will run voxl-docker -i voxl-emulator
                  • Then in the docker container you will run ./build.sh
                  • Next, also in the container you will run ./make_package.sh
                  • After, this you can exit the docker container and push the ipk to your VOXL with adb push Python_3.6.9_8x96.ipk /home/root/ipk
                  • Lastly, you can install the ipk with opkg install /home/root/ipk/Python_3.6.9_8x96.ipk

                  Hi Tom - I just wanted to let you know, after following these directions, I think there may be an error in the step for pushing the IPK to VOXL. Basically, what happened to me using the push command above, is that the contents of the Python_3.6.9_8x96.ipk file got put into a file named "ipk", and the reason is I'm pretty sure I did not have an "ipk" directory yet in /home/root (never pushed an ipk up prior to this). Basically, I had to delete the ipk file that was created, and mkdir an ipk directory in /home/root/. Then, I ran the command below to push the package, and the last step to install worked perfect.

                  adb push Python_3.6.9_8x96.ipk /home/root/ipk/Python_3.6.9_8x96.ipk

                  Might want to fix the instructions/README in the "voxl-python-3.6.9" in github too. Hope this helps!

                  Thanks

                  1 Reply Last reply Reply Quote 0
                  • tomT
                    tom admin
                    last edited by

                    @MattO Thanks for the heads up! I will take a look at this.

                    tomT 1 Reply Last reply Reply Quote 0
                    • tomT
                      tom admin @tom
                      last edited by

                      @tom It's not required to push the ipk to a specific directory, that was just an example of a location that I like to use.

                      1 Reply Last reply Reply Quote 0
                      • tomT
                        tom admin
                        last edited by

                        @MattO The instructions should be more clear now: https://gitlab.com/voxl-public/other/voxl-python-3.6.9#installing-the-ipk

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Powered by NodeBB | Contributors