Go to advanced search

by rurwin
Sat May 12, 2018 12:15 am
Forum: Raspbian
Topic: Static IP address templates for dhcpcd.conf
Replies: 26
Views: 39741

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: 7011

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 better power supply
Replies: 35
Views: 5175

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: 703

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 better power supply
Replies: 35
Views: 5175

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: 703

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 better power supply
Replies: 35
Views: 5175

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: 1011

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: 4454

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: 1007

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: 2843

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: 1007

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: 894

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: 355

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: 550

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: 347

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: 32
Views: 3781

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...
by rurwin
Tue Dec 19, 2017 9:28 am
Forum: General programming discussion
Topic: VS17 Help
Replies: 32
Views: 3781

Re: VS17 Help

Yes, as fully as it should/could have been. This is just pictures of cats and cake recipes. @jahboater, I wonder if one of the other MX switches may be closer to the M-type, maybe the green or brown. My keyboard is also a Filco Majestouch 2, although the keytops come from WASD. If I'd known about th...
by rurwin
Mon Dec 18, 2017 4:44 pm
Forum: General programming discussion
Topic: VS17 Help
Replies: 32
Views: 3781

Re: VS17 Help

IBM M-type is just the tip of the iceberg. Its modern commercial version is probably the Cherry GP80. I've got one at home and one at work. At home it's been relegated to spare since it's so loud. But that, and just about every mechanical keyboard you will find out there, is just the Cherry MX blue ...
by rurwin
Mon Dec 18, 2017 9:30 am
Forum: General programming discussion
Topic: VS17 Help
Replies: 32
Views: 3781

Re: VS17 Help

We will probably never know why the OP is building in VS, because we may have scared them off. But... Consider a development team of 100 developers, or even just 25. Consider daily builds carried out by a dedicated VM in a server farm. That is how real-world projects work. It isn't unusual and it is...
by rurwin
Thu Dec 14, 2017 4:02 pm
Forum: General programming discussion
Topic: VS17 Help
Replies: 32
Views: 3781

Re: VS17 Help

We could argue all day, Heater; we often do. But it would be off-topic in this thread. If the OP wanted to defend their position, that would be OK.
by rurwin
Wed Dec 13, 2017 1:41 pm
Forum: General programming discussion
Topic: VS17 Help
Replies: 32
Views: 3781

Re: VS17 Help

It is saying that it can't find the library lib-Wl,--rpath=$ORIGIN.lib The -l flag to ld specifies the name of the library to which it prepends "lib". The command line seems to contain the string "-l-Wl,--rpath=$ORIGIN.lib" The -Wl,--rpath=$ORIGIN.lib was intended to be an option in which case it sh...
by rurwin
Sat Dec 02, 2017 2:45 pm
Forum: General discussion
Topic: 4x4 keypad over expander ?
Replies: 7
Views: 837

Re: 4x4 keypad over expander ?

Four metres is rather too much for I2C or USB. It's probably too much for 3.3V power as well although you could probably get away with passing 5V over the cable and regulating it down to 3.3V. With all that in mind, I would tend toward using RS232 or the 5V alternative that the BBC Microcomputer use...
by rurwin
Sat Dec 02, 2017 8:16 am
Forum: General discussion
Topic: 4x4 keypad over expander ?
Replies: 7
Views: 837

Re: 4x4 keypad over expander ?

You are not likely to find a PCB for sale that does exactly what you are asking for. We do need to know a little more before we can give you a solution to your problem (rather than just an answer to your question, which is "no" and doesn't help you.) Do you have a plan for how you will write the sof...
by rurwin
Sat Dec 02, 2017 7:55 am
Forum: Beginners
Topic: Not sure if this will all work together...
Replies: 2
Views: 375

Re: Not sure if this will all work together...

Here's a solution for a case that also supplies the SSD interface: http://uk.farnell.com/element14/pi-desktop/element-14-pi-desktop-hatencl/dp/2687142 Also a note just in case you have misunderstood: the Raspberry Pi does not have USB 3. There is no problem using that hub with a Raspberry Pi but you...

Go to advanced search