Pytrack and Pysense Libraries Release 1.0.0
-
@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? -
@gertjanvanhethof Pressed the button and then inserted USB? Just checking :).
-
@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? -
@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
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 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.
-
@robert-hh @jmarcelino @Pajarraco I switched to a system without virtualbox and problem solved. Thanks for your help!
-
Anyone know how to get the battery voltage in the code from these boards?
-
-
@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.
-
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.
-
@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.
-
@Camot Tks for your advice.
-
@papasmurph Ok, I see. Thanks for your support.
-
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 -
@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.
-

What am I missing ?
-
it should be:
from pysense import PysenseNote the capital P in the class name.
-
@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 ?
-
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
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