Go to advanced search

by mattmiller
Sat Jan 30, 2016 12:57 am
Forum: Troubleshooting
Topic: Headless connection with a laptop - please help to set up
Replies: 24
Views: 2479

Re: Headless connection with a laptop - please help to set u

I'm getting an error trying to open your zip :(
by mattmiller
Sat Jan 30, 2016 12:56 am
Forum: Troubleshooting
Topic: Headless connection with a laptop - please help to set up
Replies: 24
Views: 2479

Re: Headless connection with a laptop - please help to set u

@rurwin - I think you mis-read the OP The best way to set up a static IP address is to set it on your router. Well I call it reserved addressing not static when you do that on a router but tomato tomato :) That way if you ever take the RaspPi away from home it will still work em yes but that's not w...
by mattmiller
Sat Jan 30, 2016 12:49 am
Forum: Troubleshooting
Topic: Headless connection with a laptop - please help to set up
Replies: 24
Views: 2479

Re: Headless connection with a laptop - please help to set u

How/where have you setup your Pi for 169.254.1.1 ?
Please paste the file here :)
by mattmiller
Sat Jan 30, 2016 12:48 am
Forum: Troubleshooting
Topic: Headless connection with a laptop - please help to set up
Replies: 24
Views: 2479

Re: Headless connection with a laptop - please help to set u

What does ifconfig show on your Linux machine with Pi plugged in then ?
by mattmiller
Sat Jan 30, 2016 12:47 am
Forum: Troubleshooting
Topic: Headless connection with a laptop - please help to set up
Replies: 24
Views: 2479

Re: Headless connection with a laptop - please help to set u

JFI You should be using 255.255.0.0 for 169.254.xxx.yyy addresses
by mattmiller
Fri Jan 29, 2016 11:51 pm
Forum: Troubleshooting
Topic: Headless connection with a laptop - please help to set up
Replies: 24
Views: 2479

Re: Headless connection with a laptop - please help to set u

Try adding

Code: Select all

auto eth0
iface eth0 inet 
static address 169.254.1.2
netmask 255.255.0.0
into /etc/network/interfaces on your Linux machine
by mattmiller
Fri Jan 29, 2016 10:51 pm
Forum: Raspberry Pi OS
Topic: Static fallback when no DHCP server
Replies: 18
Views: 8528

Re: Static fallback when no DHCP server

It works :)

Thanks :)

I did alter it to this just to make it match up to the proper 255.255.0.0 subnet

Code: Select all

## define static profile
profile static_eth0
static ip_address=169.254.64.64/16

## fallback to static profile on eth0
interface eth0
fallback static_eth0
Matthew
by mattmiller
Fri Jan 29, 2016 9:50 pm
Forum: Advanced users
Topic: Turn off Raspberry Pi Zero USB/Wifi
Replies: 11
Views: 7666

Re: Turn off Raspberry Pi Zero USB/Wifi

powering the pi from 3.3v also saves power, and most wifi dongles are still happy running at 3.3v
How do you do that?
by mattmiller
Fri Jan 29, 2016 9:36 pm
Forum: General discussion
Topic: Want solderless headers for the Pi0?
Replies: 46
Views: 9527

Re: Want solderless headers for the Pi0?

Can't see anything suitable there - even the eye type one would probably short out to the next pin
by mattmiller
Fri Jan 29, 2016 8:26 am
Forum: General discussion
Topic: Pi A+ availability
Replies: 43
Views: 10415

Re: Pi A+ availability

Agreed
A+ is excellent VFM for a single project - its much easier/quicker to develop on a 2B but if you don't need wired ethernet - then using an A+ for the working project makes a lot of sense - especially for small robots

But if an A2+ came out for $20 .... :)
by mattmiller
Fri Jan 29, 2016 8:20 am
Forum: General discussion
Topic: Want solderless headers for the Pi0?
Replies: 46
Views: 9527

Re: Want solderless headers for the Pi0?

@morphy_richards

IF the PiZero becomes widely available in our lifetimes, then I envisage a network of soldering geeks who would be more than happy to help out their local schools in soldering on headers for them

But a source of solderless pins would be very usefull :)

Matthew
by mattmiller
Thu Jan 28, 2016 9:41 pm
Forum: Advanced users
Topic: Turn off Raspberry Pi Zero USB/Wifi
Replies: 11
Views: 7666

Re: Turn off Raspberry Pi Zero USB/Wifi

Thanks! That worked pretty well. Dropped the current from 0.19 A to .10 A at idle.
what did you do with iwconfig to achieve it?
Matthew
by mattmiller
Thu Jan 28, 2016 9:14 pm
Forum: Raspberry Pi OS
Topic: Static fallback when no DHCP server
Replies: 18
Views: 8528

Re: Static fallback when no DHCP server

Works also with 169.254.64.64/24. Just tried.
Could you post the code that works please :)
by mattmiller
Thu Jan 28, 2016 5:22 pm
Forum: Raspberry Pi OS
Topic: Static fallback when no DHCP server
Replies: 18
Views: 8528

Re: Static fallback when no DHCP server

I think one or both of us isn't reading the others posts properly :)

I'm trying to get 169.254.64.64/16 working - you seem to be taking about addresses in 192.168.0.0/24 range
by mattmiller
Thu Jan 28, 2016 5:02 pm
Forum: General discussion
Topic: Pi A+ availability
Replies: 43
Views: 10415

Re: Pi A+ availability

I'd take a Model A off your hands. I'd even buy your choice of B+ or Pi2B to replace it.
Scrabbles around in box looking for old Model A!!!!!
by mattmiller
Thu Jan 28, 2016 12:28 pm
Forum: Raspberry Pi OS
Topic: Static fallback when no DHCP server
Replies: 18
Views: 8528

Re: Static fallback when no DHCP server

I have just tested the fallback option of dhcpcd following the link posted by DirkS above and it works flawlessly
Does changing it to 169.254.64.64/16 work for you?

If it does - could you paste your text it here to make sure I'm not just incapable of typing without errors!

Matthew
by mattmiller
Thu Jan 28, 2016 1:01 am
Forum: Troubleshooting
Topic: pi zero
Replies: 2
Views: 475

Re: pi zero

Just return it if you've only got one
If you've got more than one maybe play around with SD card connector as its got to be 80% chance its that
by mattmiller
Wed Jan 27, 2016 11:03 pm
Forum: Beginners
Topic: Wi-fi raspbian
Replies: 3
Views: 543

Re: Wi-fi raspbian

AFAIK No dual-band WiFi is supported yet :(
by mattmiller
Wed Jan 27, 2016 8:49 pm
Forum: Raspberry Pi OS
Topic: Static fallback when no DHCP server
Replies: 18
Views: 8528

Re: Static fallback when no DHCP server

What's the IP address of your laptop when you try to connect the pi to it? Its windows and it picks a random number in the 169.254.0.0/16 address space It all works nicely under Wheezy but the new fangled use of /etc/dhcpcd.conf is seemingly not as flexible as the old /etc/network/interfaces file :...
by mattmiller
Wed Jan 27, 2016 4:00 pm
Forum: Raspberry Pi OS
Topic: Static fallback when no DHCP server
Replies: 18
Views: 8528

Re: Static fallback when no DHCP server

i've google everywhere and tried everything to be fair this is the code I tried # define static profile profile static_eth0 static ip_address=169.254.64.64/16 # fallback to static profile on eth0 interface eth0 fallback static_eth0 as don#t know what (if any values to put in the domain name and gate...
by mattmiller
Wed Jan 27, 2016 10:23 am
Forum: Python
Topic: Running Threading in python
Replies: 4
Views: 1250

Re: Running Threading in python

Have a look at this and modify it for your needs class ultra(threading.Thread): def __init__(self, pinTrig, pinEcho): threading.Thread.__init__(self) self._stop = threading.Event() self.pinTrig = pinTrig self.pinEcho = pinEcho def stop(self): self._stop.set() def stopped(self): return self._stop.isS...
by mattmiller
Tue Jan 26, 2016 8:56 pm
Forum: Raspberry Pi OS
Topic: Static fallback when no DHCP server
Replies: 18
Views: 8528

Static fallback when no DHCP server

It would be very useful to have the eth0 interface fallback to a static fixed 169.254/16 address when it fails to get an address from a DHCP server. This would help a lot when plugging a Pi directly into a laptop when away from home and ssh or VNC into it from the laptop But I am unable to work out/...
by mattmiller
Mon Jan 25, 2016 3:28 pm
Forum: Advanced users
Topic: Characterizing GPIO input pins
Replies: 44
Views: 21670

Re: Characterizing GPIO input pins

Im getting a bit confused this code def my_callback(Button): global event GPIO.output(Trigger, GPIO.HIGH) # signal that we're entering the ISR GPIO.remove_event_detect(Button) # turn the recognition off print "edge detected", event event += 1 GPIO.add_event_detect(Button, GPIO.FALLING, callback=my_c...
by mattmiller
Sun Jan 24, 2016 8:37 pm
Forum: Other projects
Topic: exact 3D-model of Pi2
Replies: 3
Views: 1206

Re: exact 3D-model of Pi2

There's many on Thingverse
http://www.thingiverse.com/thing:402498 as one example
Matthew
by mattmiller
Sun Jan 24, 2016 10:28 am
Forum: Advanced users
Topic: Characterizing GPIO input pins
Replies: 44
Views: 21670

Re: Characterizing GPIO input pins

def my_callback(Button):
GPIO.remove_event_detect(Button)
# do what you need to do
GPIO.add_event_detect(Button, GPIO.FALLING, callback=my_callback, bouncetime=5)
I'd never thought of doing that - such a simple idea :)
Matthew

Go to advanced search