text: Pytrack and Pysense Libraries Release 1.0.0
  Hi Everyone,
  Today we're sharing the first release version of the Pysense & Pytrack libraries. They're intended to get you up and running with your various Pycom boards/modules and allow you to start using the deep sleep functionality with your devices.
  The libraries have the basic functionality of all the sensors include and will be updated down the line to include additional features like interrupts, additional config for the sensors, etc.
  Please remember to update both your Pycom device (i.e. LoPy, SiPy, WiPy 2.0) as well as your Pysense & Pytrack before you get started. Check out these two links for how to update both devices ( and, respectively)
  Navigate to to find the libraries you need. You'll want to grab the Pysense and Pytrack folders for your respective devices. Locate a lib folder for your Pysense/Pytrack; it will contain the various files for each sensor. There will be some examples to follow and the documentation will be updated to reflect the various sensors and changes that have taken place since!
  Thanks for your patience and we can't wait to see what you end up building with the new boards! Feel free to tweet them to us, at @pycomiot!
  All the best,
  The Pycom Team
  @daniel you where right, I had all the libraries outside the lib folder and that's why it did not work.
  still:
  import sys
  sys.path.append('/flash/my_folder')
  helped me a lot! Thank you!
  - daniel administrators
  How does your file system on the module look like? By default libraries are only searched inside the lib folder. Are you putting it there or somewhere else?
  If you want to add other folder to the system path, you can do for example:
  import sys sys.path.append('/flash/my_folder')
  Cheers,
  Daniel
  @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 ?
  - daniel administrators
  it should be:
  from pysense import Pysense
  Note the capital P in the class name.
  What am I missing ?
  - papasmurph
  @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.
  - Jiemde Pybytes Beta
  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
  @papasmurph Ok, I see. Thanks for your support.
  - papasmurph
  @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.
  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.
  @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.
  from pysense import Pysense
  py = Pysense()
  volt_float = py.read_battery_voltage()
  Anyone know how to get the battery voltage in the code from these boards?
  - gertjanvanhethof Pybytes Beta
  @robert-hh @jmarcelino @Pajarraco I switched to a system without virtualbox and problem solved. Thanks for your help!
  @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.
  - jmarcelino
  @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
  @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
  - gertjanvanhethof Pybytes Beta
  @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?