Go to advanced search

by rurwin
Fri Jul 05, 2019 1:28 am
Forum: General discussion
Topic: Problem with Processor
Replies: 2
Views: 322

Re: Problem with Processor

I don't see any files on that page that would work with a Raspberry Pi.

The Pi uses an ARM processor. All those files are for x86 processors. You need to talk to the ImagingSource and ask if they have ARM files available.
by rurwin
Mon Jul 01, 2019 12:09 pm
Forum: General discussion
Topic: Universal case
Replies: 10
Views: 888

Re: Universal case

With two micro HDMI ports replacing one full-sized one, how can there be standardisation? Most of the stuff is in the same place, but many cases make a lot of assumptions such as the clearance around the edges of the board and the heights of various components. Cases that include heatsinking capabil...
by rurwin
Mon Jul 01, 2019 12:37 am
Forum: Python
Topic: need help for script python
Replies: 1
Views: 255

Re: need help for script python

Does this help? #!/usr/bin/env python #The standard Python libraries "time" and "signal" are required for this program import time import signal #From the libraries supplied with the GFX HAT, we are going to use the touch, lcd, backlight and fonts libraries from gfxhat import touch, lcd, backlight, ...
by rurwin
Sat Jun 29, 2019 11:00 am
Forum: General discussion
Topic: another pi4 power supply query
Replies: 8
Views: 817

Re: another pi4 power supply query

(some cables have too much resistance) I would argue that all USB cables have too much resistance. It's difficult to get datasheets for USB cables. One I've just checked uses 28AWG for signals and 24AWG for power. 24AWG copper wires have a resistance of 0.08 ohms/metre. With a 1m cable, that would ...
by rurwin
Fri Jun 28, 2019 11:50 pm
Forum: General discussion
Topic: another pi4 power supply query
Replies: 8
Views: 817

Re: another pi4 power supply query

The thing about USB chargers is that they are not required to provide 5V. At zero current they will provide the rated voltage but as the current goes up, the voltage will go down. The lower end of the voltage range specified for USB (1 & 2) chargers is below the minimum voltage at which a Pi will wo...
by rurwin
Thu Jun 27, 2019 12:11 pm
Forum: General discussion
Topic: (again) Raspberry Pi sleep/standby modes software support
Replies: 8
Views: 973

Re: (again) Raspberry Pi sleep/standby modes software support

It seems to me that it should be fairly simple to make a "standby HAT". At the worst this would involve a microcontroller and a relay. The Pi would have to boot from standby mode, but that is fairly fast and programming could get it back to where it needed to be. So the Raspi programs the HAT "wake ...
by rurwin
Thu Jun 27, 2019 1:01 am
Forum: General discussion
Topic: How is 3.5 mm analog audio out on PI4?
Replies: 26
Views: 8015

Re: How is 3.5 mm analog audio out on PI4?

I don't think it would be worth a high quality audio out unless it also came with a decent quality audio in. As it is you can just use a cheap USB adapter. I haven't tried it but this would almost certainly work: Amazon: Plugable USB Audio Adapter with 3.5mm Speaker/Headphone and Microphone Jacks (B...
by rurwin
Wed Jun 26, 2019 8:13 pm
Forum: General discussion
Topic: Monitor
Replies: 9
Views: 866

Re: Monitor

DVI is the same as HDMI (except it does not support sound). So a HDMI to DVI cable will work on many older monitors that do not have HDMI sockets. If the monitor only has a VGA socket, then it may be possible to buy a HDMI to VGA adapter cable but they don't all work, depending on how the monitor su...
by rurwin
Sat May 12, 2018 12:15 am
Forum: Raspbian
Topic: Static IP address templates for dhcpcd.conf
Replies: 32
Views: 84045

Re: Static IP address templates for dhcpcd.conf

About templates.... (a bit offtopic), is there a way to keep dynamic and static IP at same time? I need dynamic to be used in dhcp network while active static IP as default for maintenance. See my second post with "fallback twopi". That should do what you want; it only uses the profile with the sta...
by rurwin
Tue Mar 20, 2018 9:53 am
Forum: General discussion
Topic: MPEG2 Patent expires this month
Replies: 19
Views: 9828

Re: MPEG2 Patent expires this month

Maybe look into xlwings, albeit I don't know if it works with open-source spreadsheet programs, just Excel. xlwings allows you to write a Python program that either creates or interrogates a spreadsheet. So you can write a program that compiles serial numbers, sends in an order, receives the reply a...
by rurwin
Sat Mar 17, 2018 12:54 am
Forum: General discussion
Topic: pi3b+ needs a beefier power supply than the pi3b
Replies: 61
Views: 16131

Re: pi3b+ needs better power supply

Thats because your samsung charger uses the data pins of the USB to check some things, detect a Samsung phone, and bump the voltage to power a different charge circuit. Yes, but the way to do that is defined by the USB3 specification, all the way up to delivering 100W with 5A at 20V . https://en.wi...
by rurwin
Sat Mar 17, 2018 12:30 am
Forum: Python
Topic: open txt file and get variables inside
Replies: 6
Views: 1406

Re: open txt file and get variables inside

Yeah, split is better than a regular expression. It can be done more neatly with maps, filters and comprehensions though. with open("variables.txt","r") as f: stuff = f.readlines() #remove everything after first # and split at first = stuff = map(lambda x: x[:x.find("#")].split("=",1), stuff) #remov...
by rurwin
Fri Mar 16, 2018 10:19 pm
Forum: General discussion
Topic: pi3b+ needs a beefier power supply than the pi3b
Replies: 61
Views: 16131

Re: pi3b+ needs better power supply

I have tested "5V/2.4A" chargers that dipped well below 5V at only a 1A load. Unfortunately, a power supply can be within USB specs and outside Raspberry Pi requirements. It's allowed to drop as low as 4.4V (USB2) or 4.45V (USB3) unless it is a smart USB3 Power Delivery device, which none of these ...
by rurwin
Fri Mar 16, 2018 10:52 am
Forum: Python
Topic: open txt file and get variables inside
Replies: 6
Views: 1406

Re: open txt file and get variables inside

I assume you've checked the standard library and there's nothing there to help. In that case I'd pull in the file with readlines filter out any text after the first # remove leading whitespace filter out blank lines use a regular expression such as "^([^=]+)=([^=]+)$" to split each line in two. That...
by rurwin
Fri Mar 16, 2018 9:50 am
Forum: General discussion
Topic: pi3b+ needs a beefier power supply than the pi3b
Replies: 61
Views: 16131

Re: pi3b+ needs better power supply

Something else to consider about cables. According to the USB specification, power supplies with sockets are required to provide 5V within spec at the socket. However power supplies with fixed cables are required to provide 5V within spec at the end of the cable. Therefore a fixed-cable power supply...
by rurwin
Wed Feb 14, 2018 10:55 am
Forum: Python
Topic: Threading - Thread not consistent
Replies: 11
Views: 1930

Re: Threading - Thread not consistent

First of all, how good are your grounds? You need a star earth to one point, but I doubt I need to tell you that. The RFI must be coming through wiring and there's a limited amount of that. It wouldn't be a bad idea to put some RF chokes on the Pi power lead. Since you say you had problems with USB ...
by rurwin
Wed Feb 07, 2018 1:43 pm
Forum: Beginners
Topic: Outdoor power using light socket
Replies: 25
Views: 7159

Re: Outdoor power using light socket

I doubt we can say without being qualified electricians able to inspect the lamp. However if you did get such an electrician I imagine they would feel obliged to say it wouldn't be safe. Indoors is indoors and outdoors is outdoors. It isn't just rain you have to contend with. Condensation is an issu...
by rurwin
Wed Jan 31, 2018 1:37 pm
Forum: Troubleshooting
Topic: Can't connect my Raspberry Pi Zero W to my house router.
Replies: 8
Views: 2002

Re: Can't connect my Raspberry Pi Zero W to my house router.

I've certainly had to change the country to the UK before now. It may be that it is unassigned by default so that, wherever it is used, it uses the minimum legal allocation. (Israel doesn't allow channels 1-4 outdoors.) The config utility might show the UK first on the basis that lots of people want...
by rurwin
Wed Jan 31, 2018 9:51 am
Forum: Raspbian
Topic: Networking - Raw Ethernet programming
Replies: 20
Views: 5960

Re: Networking - Raw Ethernet programming

If you want an accurate test tap to check traffic, check out the Netgear ProSAFE Plus Switch GS105E. It does port mirroring. Amazon have it for £25. As a solution to your problem in itself, it isn't as cheap but it doesn't slow down a gigabit link either. The v2 version has a web-browser interface, ...
by rurwin
Thu Jan 18, 2018 1:46 pm
Forum: Troubleshooting
Topic: Can't connect my Raspberry Pi Zero W to my house router.
Replies: 8
Views: 2002

Re: Can't connect my Raspberry Pi Zero W to my house router.

Also make sure that the Pi Zero is configured for the country it is working in. Some of the channels are disabled by default (because they are not available in the USA) and your router may be using one of those. If you've got an Android phone, there's a useful app called WiFi Analyzer that shows you...
by rurwin
Thu Jan 18, 2018 11:44 am
Forum: General discussion
Topic: Whoops! - Two Power Sources
Replies: 9
Views: 1610

Re: Whoops! - Two Power Sources

If the power supplies were different by a fraction of a volt then there could have been large currents flowing through the power leads and the power tracks on the PCB. That could have made them hot enough to break. The self-resetting "fuse" on the power connector will have seen that current and may ...
by rurwin
Thu Jan 18, 2018 11:21 am
Forum: Beginners
Topic: Current through gpio pins
Replies: 3
Views: 679

Re: Current through gpio pins

The control pins of servo motors do not take a huge amount of current. The current draw specified for the servos is for the motor itself which doesn't come from the GPIO I/O pins and so doesn't count in the 16mA limit. You would probably be able to connect the servos to a Pi3's GPIO pins and power t...
by rurwin
Thu Jan 18, 2018 10:28 am
Forum: Beginners
Topic: Amazed Newbie!!!
Replies: 5
Views: 1007

Re: Amazed Newbie!!!

It may not be likely to get you in trouble, but it is clearly a breach of copyright if you don't own the game on ROM and may still be a breach of copyright if you do. This forum is required to not support discussions in support of breaking criminal law and could be placed in a difficult position eve...
by rurwin
Fri Dec 22, 2017 9:22 am
Forum: Python
Topic: Getting project code from github
Replies: 1
Views: 602

Re: Getting project code from github

On the page before that: https://github.com/DexterInd/GrovePi There is a Clone or Download button. You can download it as a zip, unzip it and then delete the parts you don't want. If you want to work on the project, here's a quick tutorial I wrote on how you might go about it: http://www.soronlin.or...
by rurwin
Wed Dec 20, 2017 9:36 am
Forum: General programming discussion
Topic: VS17 Help
Replies: 34
Views: 15477

Re: VS17 Help

The -Wl... flag is for gcc -- it specifies a set of options to pass to the linker. It may be that the OP tried to pass that option by specifying it as a library file, hence the -l prefix. I've never used the targeted compilation stuff in VS, so I don't know how it works, but I imagine MS would try t...

Go to advanced search