Go to advanced search

by przemof
Wed Mar 18, 2015 8:00 pm
Forum: Python
Topic: Inconsistent behaviour of time.clock() after time.sleep(
Replies: 6
Views: 1243

Re: Inconsistent behaviour of time.clock() after time.sleep(

Yes, it number of second since 1970.01.01. Storing a few bytes more shoudn't be a problem and I suggested it because you had a problem with funcion that is deprecated in python 3.3 [1], so you should avoid using it if possible anyway.

[1] http://bugs.python.org/issue14309
by przemof
Wed Mar 18, 2015 4:14 pm
Forum: Python
Topic: Inconsistent behaviour of time.clock() after time.sleep(
Replies: 6
Views: 1243

Re: Inconsistent behaviour of time.clock() after time.sleep(

Some suggestions about coding style: 1. UsingVariableNameThatIsCrazyLongDoesNotImproveReadability, I'd prefer to read t_btn_pressed instead timeElapsedSinceLastButtonPressed, but that's just me 2. Comments line before command unless very short: timeElapsedSinceLastButtonPressed = 0 # To keep track o...
by przemof
Fri Mar 06, 2015 10:35 am
Forum: General discussion
Topic: Best battery to power a portable media centre?
Replies: 3
Views: 511

Re: Best battery to power a portable media centre?

More info here: http://www.raspberrypi.org/forums/viewt ... 02#p697702
I'm currently backfeeding 3.7V to GPIO, but I didn't test the time yet.
by przemof
Thu Mar 05, 2015 11:53 am
Forum: General discussion
Topic: Best battery to power a portable media centre?
Replies: 3
Views: 511

Re: Best battery to power a portable media centre?

I'd start with power supply requirements (5V or 3.3V? or 3.7V?) and expected run time. Then calculate battey capacity and check it's size.
A reference point: I have model A+ with 2.8" display running of 2500 mAh battery for ~8 hours taking ~0.2A (no wifi)
by przemof
Tue Mar 03, 2015 9:25 pm
Forum: Other projects
Topic: Model A+ blender model
Replies: 6
Views: 1673

Re: Model A+ blender model

I found this [1] and it should be enough. If we could get board drawing for model A+ it would be perfect. [1] http://www.raspberrypi.org/documentation/hardware/raspberrypi/mechanical/README.md Edit: I can't edit the original post, but the model is now here: https://github.com/PrzemoF/Open-Cycling-Co...
by przemof
Tue Mar 03, 2015 2:37 pm
Forum: General discussion
Topic: Email server
Replies: 6
Views: 856

Re: Email server

It's just a shot in the dark, but have youu seen this:

" -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks"

in "Set Postfix to use ClamSMTP" in the ubuntu guide?
by przemof
Mon Mar 02, 2015 2:02 pm
Forum: General discussion
Topic: Email server
Replies: 6
Views: 856

Re: Email server

Can you post a link to the tutorial you used? How does it fail? Is there an error message? Is there anything in the logs that could tell what's wrong?

Doing something in a wrong way 20 times should give you 20 failures, so that part is OK ;-)
by przemof
Mon Mar 02, 2015 9:15 am
Forum: Other projects
Topic: Model A+ blender model
Replies: 6
Views: 1673

Re: Model A+ blender model

Yes, it's a .blend model, but anything really that I can convert to something usable would be good. Could you share the bare board model? That should make positioning of elements much easier. I wanted do create a model that could be used to design cases, but with pcb model I could take it a step fur...
by przemof
Tue Feb 17, 2015 10:05 pm
Forum: Other projects
Topic: Model A+ blender model
Replies: 6
Views: 1673

Model A+ blender model

I'm looking for RPI model A+ blender model and pitft model as well to design a waterproof case. The usual places didn't yield any results. Plese share if you have the models.
by przemof
Tue Feb 17, 2015 8:38 pm
Forum: HATs and other add-ons
Topic: Model A+ battery powered
Replies: 0
Views: 981

Model A+ battery powered

I couldn't find any info about battery powered model A+, so I had to test it :D I just connected model A+ to a 2500 mAh lipo battery. Connection was through adafruit lipoly charger to rpi usb power supply (not to the GPIO header) instaed of the usual 5V. The whole thing takes 190-230mA, so I hope to...
by przemof
Thu Feb 12, 2015 5:01 pm
Forum: Off topic discussion
Topic: Microsoft windows 10 on pi2
Replies: 6
Views: 1213

Microsoft windows 10 on pi2

What do you think about the idea of windows on pi2? I'm not a big fan of it and I'm affraid that it might cause more bad than good.

Edit. The original question was not precise enough. I'm asking about microsoft windows 10
by przemof
Thu Feb 12, 2015 4:07 pm
Forum: Advanced users
Topic: Bluetooth LE - tester needed
Replies: 4
Views: 1292

Re: Bluetooth LE - tester needed

Thanks for catching that! :oops:
I had to strip the full stop from the post title & the link - I had some problems editing my original post.
by przemof
Thu Feb 12, 2015 12:04 pm
Forum: Advanced users
Topic: Bluetooth LE - tester needed
Replies: 4
Views: 1292

Bluetooth LE - tester needed

I'm looking for someone to test notifications on a BLE device using gatttool. I wrote a post here [1], but I can test it only on one BLE device which is not a big sample ;-) I'm mostly concerned about the notification part as plain read from BLE seems to be quite straightforward. I used fedora, but ...
by przemof
Thu Feb 12, 2015 11:56 am
Forum: Graphics programming
Topic: hello_videocube video is not smooth
Replies: 3
Views: 1603

Re: hello_videocube video is not smooth

Links? Details? Code?
by przemof
Fri Dec 19, 2014 9:03 pm
Forum: General discussion
Topic: Fastest booting OS
Replies: 22
Views: 7755

Re: Fastest booting OS

Thanks again for the replies! The details: I'm working on an open cycling computer written in python, based on pygame running on model A+. The display is PiTFT capacitive, so I don't care about GPU (gpu_mem set to 32MB, HDMI will be switched off). The framebuffer is handled directly from pygame, so ...
by przemof
Fri Dec 19, 2014 3:23 pm
Forum: General discussion
Topic: Fastest booting OS
Replies: 22
Views: 7755

Re: Fastest booting OS

Thanks for the replies! I'll try to provide some test results later.
Current boot time to fully functional sytem, with my cycling computer running on class 4 SD card is 39.8s from cold start.
by przemof
Fri Dec 19, 2014 11:11 am
Forum: General discussion
Topic: Fastest booting OS
Replies: 22
Views: 7755

Re: Fastest booting OS

What is the fastest booting Linux OS for the Pi? Why is it important? Even the fully bloated Raspbian comes up before you can say "Raspbian runs". It's an old thread, but the issue remains exactly the same.. Mine model A+ takes about a minute to boot - way too long for me as it will run a battery p...
by przemof
Thu Dec 18, 2014 10:46 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C strange behaviour of MMA8451
Replies: 2
Views: 1426

Re: I2C strange behaviour of MMA8451

Thanks! I have to investigate it. Anyway, without those 2 commands the sensor shows up on the bus, but I can read only zero from the WHO_AM_I register. I'll try to code software reset. P.S. Those 2 lines in the rc.local and software reset seems to fix the problem: pi@occberry ~ $ sudo ./i2ctest.py 2...
by przemof
Thu Dec 18, 2014 9:10 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C strange behaviour of MMA8451
Replies: 2
Views: 1426

I2C strange behaviour of MMA8451

I have a MMA8451 [1] connected to RPI. There is also PiTFT capacitive on the came I2C bus: pi@occberry ~ $ sudo i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- 1d -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- ...
by przemof
Wed Dec 17, 2014 9:34 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C - software emulation, python, RPi.GPIO
Replies: 0
Views: 1813

I2C - software emulation, python, RPi.GPIO

I need to use I2C for an accelerometer [1]. Hardware I2C in rpi doesn't seem to be an option as the accelerometer uses repeated start signal and looks like rpi I2C doesn't do that. So my only option is software emulation of I2C. I need advice what is better: swiching gpio pins from OUT to IN and bac...
by przemof
Thu Dec 04, 2014 1:14 pm
Forum: Beginners
Topic: GPS tracker for a drone
Replies: 4
Views: 1298

Re: GPS tracker for a drone

search for accelerometer, gyroscope and Kalman filter
by przemof
Fri Nov 28, 2014 10:50 am
Forum: General discussion
Topic: License
Replies: 18
Views: 5088

Re: License

ghans wrote:Oracles JDK , Wolfram Mathematica , Minecraft Pi Edition and IndieCitys PiStore.
ghans
Thanks!

Go to advanced search