Go to advanced search

by davef21370
Fri May 29, 2015 8:02 pm
Forum: Other projects
Topic: Very short term power supply
Replies: 4
Views: 661

Re: Very short term power supply

Thanks for the info, I think the hearing aid batteries may be the way to go, cheap & light, no need for rechargeables, one shot job. (don't be a troll... this has been hashed out ad nauseum on this forum) I wasn't being lazy, trust me, I've googled this to death and couldn't find a suitable solution...
by davef21370
Fri May 29, 2015 5:35 pm
Forum: Other projects
Topic: Good/best way to remotely control a camera?
Replies: 1
Views: 482

Re: Good/best way to remotely control a camera?

I do have a very small, very cheap LCD display that I can use but then I'd need a means to control the Pi (start/stop video
Buttons on the GPIO, loads of examples available.

Dave.
by davef21370
Fri May 29, 2015 5:01 pm
Forum: Other projects
Topic: Very short term power supply
Replies: 4
Views: 661

Very short term power supply

What's the smallest and, more importantly, lightest way to power the RPi for 5 minutes max?
Model A+ with camera, low current GPIO output and no other peripherals.

Dave.
by davef21370
Fri May 22, 2015 4:24 pm
Forum: Python
Topic: UDP sending via python
Replies: 3
Views: 8395

Re: UDP sending via python

Bit of a shot in the dark but http://en.wikipedia.org/wiki/Nagle%27s_algorithm , maybe you need to send more data or disable the delay... Applications that expect real time responses can react poorly with Nagle's algorithm. Applications such as networked multiplayer video games expect that actions i...
by davef21370
Fri May 22, 2015 4:11 pm
Forum: Python
Topic: how to use _get_camera_settings() in picamera module
Replies: 1
Views: 754

Re: how to use _get_camera_settings() in picamera module

The leading underscore denotes an internal function and calling it should be avoided. Also (and I'm ready to be corrected) if you were to use from SomeModule import * any functions with the leading underscore wouldn't be imported. As for the settings, once you have an instance of the camera class, i...
by davef21370
Fri May 22, 2015 3:41 pm
Forum: Python
Topic: Python variables to web page in real time
Replies: 5
Views: 7432

Re: Python variables to web page in real time

http://mattrichardson.com/Raspberry-Pi-Flask/
Possibly the easiest way to put output from Python into a web page.

Dave.
by davef21370
Sat May 16, 2015 6:13 am
Forum: Python
Topic: ADCPi Plus from ABElectronics
Replies: 1
Views: 571

Re: ADCPi Plus from ABElectronics

by davef21370
Tue Apr 28, 2015 5:53 pm
Forum: Python
Topic: Autonomous boat: Auto compensate the rudder?
Replies: 19
Views: 2203

Re: Autonomous boat: Auto compensate the rudder?

What format is the data from your compass module?

Dave.
by davef21370
Tue Apr 28, 2015 5:10 pm
Forum: Python
Topic: Minecraft Python
Replies: 3
Views: 707

Re: Minecraft Python

by davef21370
Fri Apr 24, 2015 6:27 pm
Forum: Python
Topic: give variable as name
Replies: 6
Views: 1100

Re: give variable as name

You need to create the file "act.txt" then write the date/time data to it.
Do a bit of googling about python and files, you'll find loads of examples.

Dave.
by davef21370
Fri Apr 17, 2015 12:14 pm
Forum: Python
Topic: NameError: name 'port' is not defined
Replies: 2
Views: 2330

Re: NameError: name 'port' is not defined

Should it not be rcv = worksheet.readline() ?

Dave.
by davef21370
Thu Apr 16, 2015 12:25 pm
Forum: Python
Topic: Importing of 3D STL Image
Replies: 2
Views: 991

Re: Importing of 3D STL Image

Google numpy-stl

Dave.
by davef21370
Wed Apr 15, 2015 5:36 pm
Forum: Python
Topic: Tearing in pygame using HWSURFACE
Replies: 6
Views: 2561

Re: Flickering in pygame using HWSURFACE

Have a look here https://www.pygame.org/docs/tut/newbieguide.html and read about dirty rect animation. This only updates areas of the screen that have actually changed instead of updating the whole thing.

Dave.
by davef21370
Tue Apr 14, 2015 6:19 pm
Forum: Off topic discussion
Topic: Generating a pulse signal in tkinter
Replies: 9
Views: 1383

Re: Generating a pulse signal in tkinter

@scoty101: thank you for that link.. Do you think this could be used with the beaglebone? I mean is there something like this for the beaglebone connected to the MCP23017? You're more likely to get the answer on the . B E A G L E B O N E . forum This is the . R A S P B E R R Y . P I . forum! This i...
by davef21370
Wed Apr 08, 2015 6:10 pm
Forum: Python
Topic: refreshing rate
Replies: 4
Views: 777

Re: refreshing rate

I will pretty much guarantee that nobody will write this code for you. It's not terribly complicated but will take up a fair amount of someone else's time and effort so here's my advice... Use PyGame if you just need to display a big circle, loads of examples online. Get to grips with the graphics a...
by davef21370
Wed Apr 08, 2015 5:43 pm
Forum: Python
Topic: dt11 is not detecting on raspberry pi 2
Replies: 7
Views: 1406

Re: dt11 is not detecting on raspberry pi 2

Not familiar with the RPi 2 pins and can't tell much from your picture but I think you need to decide between BOARD and BCM pin layout. Google GPIO.setmode and see if that helps.

Dave.
by davef21370
Fri Apr 03, 2015 6:49 am
Forum: Python
Topic: Storing data from Python program to MySQL database
Replies: 9
Views: 13776

Re: Storing data from Python program to MySQL database

What error do you get?
by davef21370
Thu Apr 02, 2015 7:02 pm
Forum: Python
Topic: How to display 3 latest results from text file in Python?
Replies: 7
Views: 1187

Re: How to display 3 latest results from text file in Python

Firstly just an observation if classnumber==int(1): fname = 'class2.txt' should that be class1.txt? Anyway, SQL would be the normal way to go as what you're making is a simple database. However, if this is an exercise in learning Python you may be better creating a class (not a school class, a Pytho...
by davef21370
Sun Mar 22, 2015 3:08 pm
Forum: Python
Topic: DS18b20 rx on pi
Replies: 37
Views: 7600

Re: DS18b20 rx on pi

As much as I like Arduino (especially the Nano) I'd be tempted to leave it out of this project and just have the Pi reading the temperature. This may help https://www.cl.cam.ac.uk/projects/raspb ... mperature/

Dave.
by davef21370
Sun Mar 22, 2015 3:01 pm
Forum: Python
Topic: Reading a single bit from a serial port in Python.
Replies: 6
Views: 1862

Re: Reading a single bit from a serial port in Python.

Try Googling bitstring, that may help.
Dave.

EDIT python bitstring
by davef21370
Wed Mar 18, 2015 1:24 pm
Forum: Python
Topic: Running a script
Replies: 4
Views: 929

Re: Running a script

Put a small delay in your loop to free up some processor time.
http://www.tutorialspoint.com/python/time_sleep.htm

Dave.
by davef21370
Sat Mar 07, 2015 5:29 pm
Forum: Python
Topic: Autonomous Boat Project
Replies: 7
Views: 1443

Re: Autonomous Boat Project

As already suggested sack the PIR's. Stick with the HC-SR04's, they have a range of up to 4 metres so assuming you're not batting along at 40 knots they should give you ample time to respond. Now just to complicate things further (it's actually not that bad) might I suggest using an Arduino Nano to ...
by davef21370
Sat Feb 21, 2015 9:07 pm
Forum: Other projects
Topic: Transistor selection
Replies: 5
Views: 1395

Re: Transistor selection

Thanks all, I have a MOSFET knocking about somewhere (something 540) so I'll try that.

Dave.
by davef21370
Sat Feb 21, 2015 4:18 pm
Forum: Other projects
Topic: Transistor selection
Replies: 5
Views: 1395

Re: Transistor selection

gregeric wrote:I'd recommend you use a MOSFET instead of a junction transistor.
I'm using PWM (980Hz max) to control the LED's, will a MOSFET be able to switch fast enough?
by davef21370
Sat Feb 21, 2015 3:27 pm
Forum: Other projects
Topic: Transistor selection
Replies: 5
Views: 1395

Transistor selection

This isn't strictly a Raspberry Pi question as the project is now using an Arduino Nano but I'm programming it through the Pi so fair's fair. I've currently got the board flashing and flickering several LED's (separate pins) and it's working as expected. Now I want it to do the same with strings of ...

Go to advanced search