Go to advanced search

by gordon77
Thu Aug 16, 2018 1:31 pm
Forum: Graphics, sound and multimedia
Topic: Fancy GPS overlay on video
Replies: 4
Views: 139

Re: Fancy GPS overlay on video

I've been experimenting with this and here's the latest using opencv. It will display time, gps position, speed and direction and plot upto the last 100 gps positions, currently set to store every 10 seconds. Very beta ! The video maybe a bit jerky ! #!/usr/bin/env python import cv2 import math impo...
by gordon77
Tue Aug 14, 2018 1:48 pm
Forum: Graphics, sound and multimedia
Topic: Fancy GPS overlay on video
Replies: 4
Views: 139

Re: Fancy GPS overlay on video

To get you started... This uses picamera to record video with GPS data on it.. GPS is on USB. #!/usr/bin/env python3 import picamera import datetime as dt import os import RPi.GPIO as GPIO import serial import sys #shutdown button gpio SD = 27 # pin 13 (Set SD = 21 for PiB ver1) #software stop butto...
by gordon77
Tue Aug 14, 2018 7:34 am
Forum: General discussion
Topic: How does the forum search work?
Replies: 18
Views: 457

Re: How does the forum search work?

Summary..pretty useless !
by gordon77
Mon Aug 13, 2018 5:46 pm
Forum: Automation, sensing and robotics
Topic: Calculate distance traveled with a variable time and speed
Replies: 3
Views: 86

Re: Calculate distance traveled with a variable time and speed

I would calculate it from the lat and long coordinates you record, using haversine which calculates between 2 points.

https://stackoverflow.com/questions/491 ... gps-points
by gordon77
Mon Aug 13, 2018 5:22 pm
Forum: General discussion
Topic: How does the forum search work?
Replies: 18
Views: 457

How does the forum search work?

If l enter a search eg 'OpenCV' and search it lists some results, but what order are they in?

If l select Past Month or Past Week it always shows no results, why?
by gordon77
Sun Aug 12, 2018 3:47 pm
Forum: Python
Topic: GPIO Pin reading for Photoresistor help please
Replies: 4
Views: 93

Re: GPIO Pin reading for Photoresistor help please

After this line

print rc_time(pin_to_circuit)

Try Adding...

x = rc_time(pin_to_circuit)

if x > 1 and x < 9: (change numbers to Suit)
Do something...
by gordon77
Sun Aug 12, 2018 3:39 pm
Forum: Beginners
Topic: Use old tablet screen
Replies: 2
Views: 82

Re: Use old tablet screen

Might be useful if you have a nexus 7..

viewtopic.php?t=158525
by gordon77
Sun Aug 12, 2018 12:32 pm
Forum: Raspbian
Topic: Python 2. 7.
Replies: 4
Views: 107

Re: Python 2. 7.

Looking at the release notes l would assume only the link is removed, so it's still available, and works ok on my pi.

* Python 2 IDLE menu link removed
by gordon77
Sat Aug 11, 2018 7:37 pm
Forum: Beginners
Topic: cheap screen that won't block gpio pins
Replies: 3
Views: 124

Re: cheap screen that won't block gpio pins

There are 2 versions of the adaftuit

https://www.adafruit.com/product/2441

One uses the 26 way Connector so the rest may be available to use on a pi3?. The other has a 40 way but has the first 26 pins of gpio available on another connector, you can use the 'unused' ones.

Worth checking out.
by gordon77
Fri Aug 10, 2018 5:27 pm
Forum: General discussion
Topic: USB Relay board Interface with Raspberry Pi
Replies: 1
Views: 86

Re: USB Relay board Interface with Raspberry Pi

You could use the sainsmart USB relay card and crelay. https://www.sainsmart.com/products/4-channel-5v-usb-relay-module http://ondrej1024.github.io/crelay/ https://github.com/ondrej1024/crelay https://www.raspberrypi.org/forums/viewtopic.php?t=216670 Or this may help.. https://www.raspberrypi.org/fo...
by gordon77
Fri Aug 03, 2018 8:47 am
Forum: General discussion
Topic: Build your own NASA Rover using a Raspberry Pi
Replies: 5
Views: 174

Re: Build your own NASA Rover using a Raspberry Pi

Nice idea but "for as little as $2,500" stopped me.
by gordon77
Fri Aug 03, 2018 7:40 am
Forum: Python
Topic: Running chromium-browser from Python3 ?
Replies: 5
Views: 120

Re: Running chromium-browser from Python3 ?

Take a look at where /etc/alternatives/*brow* are pointing. One of those will be a symbolic link to Epiphany. lrwxrwxrwx 1 root root 25 Sep 7 2017 gnome-www-browser -> /usr/bin/chromium-browser lrwxrwxrwx 1 root root 13 Sep 7 2017 infobrowser -> /usr/bin/info lrwxrwxrwx 1 root root 29 Sep 7 2017 in...
by gordon77
Fri Aug 03, 2018 7:31 am
Forum: Python
Topic: Running chromium-browser from Python3 ?
Replies: 5
Views: 120

Re: Running chromium-browser from Python3 ?

Your script starts chromium-browser for me. strange.. I get the following messages and then a browser opens which I believe now is GNOME web browser, it doesn't say chromium.. --disable-quic --enable-tcp-fast-open --disable-gpu-compositing --ppapi-flash-path=/usr/lib/chromium-browser/libpepflashpla...
by gordon77
Thu Aug 02, 2018 12:26 pm
Forum: Python
Topic: Running chromium-browser from Python3 ?
Replies: 5
Views: 120

Running chromium-browser from Python3 ?

I've tried..

Code: Select all

import os
import webbrowser

inputx = 'http://www.google.co.uk'

webbrowser.register('/usr/bin/chromium-browser',None)
webbrowser.get('chromium-browser')
webbrowser.open(inputx, new=2)
and various variations but it always calls epiphany.

What am I doing wrong ?
by gordon77
Thu Aug 02, 2018 12:24 pm
Forum: Camera board
Topic: Hardware camera sync pulses
Replies: 27
Views: 2659

Re: Hardware camera sync pulses

There have been various requests over the years for external triggers for frame synchronisation. Generally it's been stated that doing such things isn't trivial, and it wasn't. However, as of the 22nd July firmware , there is support for repurposing the camera LED GPIO to change state on frame star...
by gordon77
Thu Aug 02, 2018 8:08 am
Forum: Camera board
Topic: Hardware camera sync pulses
Replies: 27
Views: 2659

Re: Hardware camera sync pulses

There have been various requests over the years for external triggers for frame synchronisation. Generally it's been stated that doing such things isn't trivial, and it wasn't. However, as of the 22nd July firmware , there is support for repurposing the camera LED GPIO to change state on frame star...
by gordon77
Tue Jul 31, 2018 3:38 pm
Forum: Camera board
Topic: Camera sensor
Replies: 1
Views: 112

Re: Camera sensor

try the pi camera, or a webcam, and zbar-tools

https://lb.raspberrypi.org/forums/viewt ... 1#p1173647
by gordon77
Mon Jul 30, 2018 6:17 pm
Forum: Beginners
Topic: Temperature?
Replies: 12
Views: 405

Re: Temperature?

jamesh wrote:
Mon Jul 30, 2018 8:37 am
gordon77 wrote:
Sun Jul 29, 2018 7:21 pm
Tytie wrote:
Sat Jul 28, 2018 10:20 pm
yes my pi is is model 3b and it overheat lots too and i had to use a battery pack to fix it
How did a battery pack fix a temperature overheating problem?
I doubt it did. Will have been something else, that coincided with changing to a battery pack.
That was my assumption.
by gordon77
Sun Jul 29, 2018 7:21 pm
Forum: Beginners
Topic: Temperature?
Replies: 12
Views: 405

Re: Temperature?

Tytie wrote:
Sat Jul 28, 2018 10:20 pm
yes my pi is is model 3b and it overheat lots too and i had to use a battery pack to fix it
How did a battery pack fix a temperature overheating problem?
by gordon77
Sun Jul 29, 2018 7:19 pm
Forum: Beginners
Topic: Temperature?
Replies: 12
Views: 405

Re: Temperature?

I got power bank 5V with up to 2.4A. I wanted to plug it into the socket and to RPi. You think it will do? I thought the minimal amperage is 2.5A (5.1V) The 2.5A is the suggested current rating for a fully USB loaded RPi 3B, if you don't need a lot of usb current you should be OK. Ensure you use a ...
by gordon77
Sun Jul 29, 2018 3:40 pm
Forum: Camera board
Topic: raspistill arguments to capture text on backlit screen
Replies: 4
Views: 171

Re: raspistill arguments to capture text on backlit screen

Thank your for the advice. ag and dg don't seem to be valid arguments for raspistill. Any idea on replacement arguments? try - ISO eg -ISO 400, range is 100 to 800 You may also need to add -ex off You may also want to experiment with brightness (-br, range 0 to 100) and contrast (-co, range -100 to...
by gordon77
Sun Jul 29, 2018 9:57 am
Forum: Android
Topic: Some official RPI 7" touchscreen resolution issues with lineage
Replies: 9
Views: 434

Re: Some official RPI 7" touchscreen resolution issues with lineage

Just edit the title to say [SOLVED]
by gordon77
Thu Jul 26, 2018 4:57 pm
Forum: Python
Topic: translating a terminal command line into python
Replies: 2
Views: 115

Re: translating a terminal command line into python

Try this...

Code: Select all

import os, sys, subprocess
rpistr = "arecord -D dmic_sv -c2 -r 48000 -f S32_LE -t wav -V mono -v /home/pi/Desktop/recording.wav"
p = subprocess.Popen(rpistr, shell=True, preexec_fn=os.setsid)
 
by gordon77
Mon Jul 23, 2018 9:02 am
Forum: Troubleshooting
Topic: I cannot be made an access point.
Replies: 3
Views: 108

Re: I cannot be made an access point.

In your entry above you have a " missing at the end of the command

Go to advanced search