Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Pytrack and Pysense Libraries Release 1.0.0

    Scheduled Pinned Locked Moved Announcements & News
    pytrackpysenselibrary
    41 Posts 14 Posters 20.2k Views 15 Watching
    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.
    • P Offline
      Pajarraco @livius
      last edited by

      @livius I was running next to a window and it didnt work for me. Now I have just peeped the Pytrack outside with one hand and running the script and I could obtain the coords outside and inside. A little strange but well, it works :)

      1 Reply Last reply Reply Quote 0
      • G Offline
        gertjanvanhethof Pybytes Beta @papasmurph
        last edited by

        @papasmurph @jmarcelino Yes, I pressed the button and did a sudo call.
        Atom pymakr plugin is working fine so I'am able to communicate with the board. What could be wrong?

        papasmurphP 1 Reply Last reply Reply Quote 0
        • papasmurphP Offline
          papasmurph @gertjanvanhethof
          last edited by

          @gertjanvanhethof Pressed the button and then inserted USB? Just checking :).

          G 1 Reply Last reply Reply Quote 0
          • G Offline
            gertjanvanhethof Pybytes Beta @papasmurph
            last edited by

            @papasmurph Yes, pressed button on the pysense board and then inserting the USB.
            No problem to ask. You never now.
            Could it be a problem because I'am using linux from in virtualbox.
            As said Atom is working fine so port is working. But probably it takes more time to setup the serial connection through USB in that case, so causing the problem?
            Make that sense?

            P J robert-hhR 3 Replies Last reply Reply Quote 0
            • P Offline
              Pajarraco @gertjanvanhethof
              last edited by Pajarraco

              @gertjanvanhethof Are you releasing the buttom 1 s once you plug in the USB wire? Maybe you can try instead of dfu-util, dfu-util-stable, and try to add --device (the device id when it cannot be opened). I think another option to see if it detects the Dfu devices is to show a list with the option -l

              1 Reply Last reply Reply Quote 0
              • J Offline
                jmarcelino @gertjanvanhethof
                last edited by

                @gertjanvanhethof
                Maybe virtualbox doesn't connect the DFU device automatically to Linux? The board appears as two different USB devices depending on if it's in DFU mode or not, not sure what Virtualbox does with that

                1 Reply Last reply Reply Quote 0
                • robert-hhR Offline
                  robert-hh @gertjanvanhethof
                  last edited by

                  @gertjanvanhethof The USB-support in virtual machine is mediocre, to be polite. Simple devices like a memory stick work most of the time, complicated ones like smartphones, Pyboard, ... almost never. Better grab an old computer and install linux there. Even a 10 year old will give you good performance with an window manager like XFCE. Try for instance Xubuntu or Mint Xfce.

                  G 1 Reply Last reply Reply Quote 0
                  • G Offline
                    gertjanvanhethof Pybytes Beta @robert-hh
                    last edited by

                    @robert-hh @jmarcelino @Pajarraco I switched to a system without virtualbox and problem solved. Thanks for your help!

                    1 Reply Last reply Reply Quote 1
                    • J Offline
                      johncaipa
                      last edited by

                      Anyone know how to get the battery voltage in the code from these boards?

                      C 1 Reply Last reply Reply Quote 0
                      • C Offline
                        Camot @johncaipa
                        last edited by

                        @johncaipa

                        from pysense import Pysense

                        py = Pysense()

                        volt_float = py.read_battery_voltage()

                        M 1 Reply Last reply Reply Quote 0
                        • M Offline
                          mqlopes @Camot
                          last edited by

                          @Camot Hello. I have both a Pysense and a Pytrack. I'm trying to read the battery voltage using "py.read_battery_voltage()", but I keep receiving the same values when the boards are connected to USB (with the batteries attached). For Pysense: 0.1203943 and for Pytrack 0.06017921. Thanks for your help.

                          C papasmurphP 2 Replies Last reply Reply Quote 0
                          • C Offline
                            Camot @mqlopes
                            last edited by

                            @mqlopes

                            I am not sure I understand your point. Why do you expect a changing battery voltage when you board is USB powered? Unplug USB and you see the voltage decreasing slowly.

                            M 1 Reply Last reply Reply Quote 0
                            • papasmurphP Offline
                              papasmurph @mqlopes
                              last edited by

                              @mqlopes When USB is connected the voltage is stable 3.3 Volts, while the battery is being charged. What you are asking about would require hooking into the battery itself, which is not the case.

                              M J 2 Replies Last reply Reply Quote 0
                              • M Offline
                                mqlopes @Camot
                                last edited by

                                @Camot Tks for your advice.

                                1 Reply Last reply Reply Quote 0
                                • M Offline
                                  mqlopes @papasmurph
                                  last edited by

                                  @papasmurph Ok, I see. Thanks for your support.

                                  1 Reply Last reply Reply Quote 0
                                  • J Offline
                                    Jiemde Pybytes Beta @papasmurph
                                    last edited by

                                    Hi @papasmurph
                                    What I understand is that it's the 3.3 volts who is tested with this function not the voltage of the battery ? Am I right ?
                                    Jiemde

                                    papasmurphP 1 Reply Last reply Reply Quote 0
                                    • papasmurphP Offline
                                      papasmurph @Jiemde
                                      last edited by

                                      @Jiemde As far as I understand it's the driving voltage, so if connected to USB it's measuring the stable 3.3 Volt from the power supply, that then also charges the battery.

                                      1 Reply Last reply Reply Quote 0
                                      • IplookyI Offline
                                        Iplooky
                                        last edited by

                                        0_1507708741732_Untitled.png

                                        What am I missing ?

                                        1 Reply Last reply Reply Quote 0
                                        • D Offline
                                          daniel
                                          last edited by

                                          it should be:

                                          from pysense import Pysense
                                          

                                          Note the capital P in the class name.

                                          IplookyI 1 Reply Last reply Reply Quote 0
                                          • IplookyI Offline
                                            Iplooky @daniel
                                            last edited by

                                            @daniel It has the same result in all the 4 combinations : pysense Pysense, pp, Pp and PP (it doesn't find the module pysense, if i delete it then it will not recognise the module LIS2HH12 and so on..). It is enough just to put the libraries in the same folder and then declare them in the code ?

                                            1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 3
                                            • 2 / 3
                                            • First post
                                              Last post

                                            Pycom on Twitter

                                            Pycom