Go to advanced search

by paulv
Thu May 12, 2016 8:50 am
Forum: Advanced users
Topic: (Is this) The correct ways to install the watchdog package?
Replies: 46
Views: 60227

Re: Is this the correct way to install the BCM watchdog?

[updated]
This section has been made irrelevant by updates.
by paulv
Mon May 09, 2016 7:43 pm
Forum: Automation, sensing and robotics
Topic: HOWTO: Add an analog input to the Pi
Replies: 5
Views: 20286

Re: HOWTO: Add an analog input to the Pi

Hi cw21, All you should have to do to use channel 1 instead of channel 0 is to change these calls in the code : channeldata_1 = read_mcp3002(0) into this: channeldata_1 = read_mcp3002(1) And connect your analog input to the channel1 input of the ADC. If you already did all that, the only other expla...
by paulv
Mon May 09, 2016 9:52 am
Forum: Advanced users
Topic: (Is this) The correct ways to install the watchdog package?
Replies: 46
Views: 60227

(Is this) The correct ways to install the watchdog package?

This post was concocted several years ago to show various ways to make sure applications or the kernel are protected from hang-up issues. Required when you run a server application, security camera or network related devices. For one of my applications, I needed a watchdog, so I turned to my own pos...
by paulv
Wed Apr 27, 2016 2:10 pm
Forum: Automation, sensing and robotics
Topic: Halt-Restart with 1 Button
Replies: 5
Views: 8372

Re: Halt-Restart with 1 Button

Rather than installing the daemon the now old-fashioned way through cron, here is the now modern version using systemd . Create a service file: sudo nano /etc/systemd/system/halt-and-reset.service Copy and past the following into the open editor: # halt-and-reset service file, start a daemon on star...
by paulv
Wed Apr 27, 2016 10:40 am
Forum: Automation, sensing and robotics
Topic: Pi supply with 1 Start-Stop Button (again)
Replies: 11
Views: 5832

Re: Pi supply with 1 Start-Stop Button (again)

I have designed yet another version of this supply based on the design above, but this time with a Li-ion based UPS. It's even more compact and still easy to build.

Have a look here :
viewtopic.php?f=37&t=145954&p=962385#p962385

Enjoy!
by paulv
Wed Apr 27, 2016 8:29 am
Forum: Automation, sensing and robotics
Topic: RPi Power Supply w. UPS, one button control
Replies: 10
Views: 10428

Re: RPi Power Supply w. UPS, one button control

Brian, The diode you have in the bottom of your diagram should be moved to the output of the battery booster. In essence the two supplies should each have diodes with the cathodes pointing towards the RPi. The Or-ing of the two diodes ensures that the higher voltage presented at the anodes will win ...
by paulv
Wed Apr 27, 2016 8:11 am
Forum: Device Tree
Topic: DTS blob behaviour at poweroff changed
Replies: 2
Views: 925

Re: DTS blob behaviour at poweroff changed

As a workaround to the issue with the dt-blob not changing state at the end of the Power Down cycle, I have simply OR'd the results of the two different device tree settings in software. So the /boot/config.txt file has the same GPIO pad number (dtoverlay=gpio-poweroff,gpiopin=24) as in the blob.dts...
by paulv
Wed Apr 27, 2016 7:39 am
Forum: Device Tree
Topic: DTS blob behaviour at poweroff changed
Replies: 2
Views: 925

Re: DTS blob behaviour at poweroff changed

What has also changed is that the dtoverlay poweroff signal now has a glitch at the end of the Power Down cycle. This was not there before and may cause problems to connected hardware.
IMG_3011.JPG
IMG_3011.JPG (49.22 KiB) Viewed 871 times
by paulv
Tue Apr 26, 2016 8:33 pm
Forum: Device Tree
Topic: DTS blob behaviour at poweroff changed
Replies: 2
Views: 925

DTS blob behaviour at poweroff changed

I'm still struggling with a situation that worked before and does no longer. I used a pad definition in the standard blob file to create a signal similar to the powerdown overlay. Here is that fragment : }; // pin // using GPIO-24 as the power-down signal pad [email protected] { function = "output"; terminati...
by paulv
Tue Apr 26, 2016 9:26 am
Forum: Automation, sensing and robotics
Topic: RPi Power Supply w. UPS, one button control
Replies: 10
Views: 10428

RPi Power Supply w. UPS, one button control

[Update Sep-17] A friend and I designed a UPS for the more power hungry Models. Have a look here : https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=192959 [Edited diagram and text] Following previous designs for my RPi, in particular the one-button-start-stop method, and several UPS based sup...
by paulv
Sun Apr 24, 2016 7:51 pm
Forum: Device Tree
Topic: gpio-poweroff and DTS no longer working at Halt [solved]
Replies: 0
Views: 1466

gpio-poweroff and DTS no longer working at Halt [solved]

It seems that the Halt/Poweroff/Reboot state has been redesigned considerably, compared to what we had for a long time. First of all, the visual aspect. The LED's no longer flash 10x to signal a safe removal of power. More seriously, the gpio-poweroff setting in /boot/config.txt and DTS settings in ...
by paulv
Wed Apr 13, 2016 8:27 am
Forum: Networking and servers
Topic: How-To: Setup a Wireless AP with a VPN - Jessie
Replies: 1
Views: 14129

Re: How-To: Setup a Wireless AP with a VPN - Jessie

Part 2 NOTE After testing the setup in "real-life" I noticed that the connection would break every hour or so. Finding the root cause took me several days and in the process I discovered a better and more complete way to run OpenVPN with systemd. I had to make several changes to this part of the pro...
by paulv
Wed Apr 13, 2016 8:07 am
Forum: Networking and servers
Topic: How-To: Setup a Wireless AP with a VPN - Jessie
Replies: 1
Views: 14129

How-To: Setup a Wireless AP with a VPN - Jessie

This is a two-part post. The actual goal is to circumvent geo-blocking by movie providers like Netflix or commercial TV broadcasters like RTL and the BBC in Europe, and to cast movies from a Tablet to a TV, wherever you are. This how-to and tutorial uses Jessie-lite, the systemd concept and OpenVPN....
by paulv
Sat Apr 09, 2016 8:32 am
Forum: Beginners
Topic: headless with DHCP- how to figure out the IP address ?
Replies: 17
Views: 8573

Re: headless with DHCP- how to figure out the IP address ?

Great trick! I get more then 1 IP address (using wlan), so I use this just after the hostname -I to get only the eth0 IP address. | mawk '{ print ($1)}' | sed ... I suggest to use "dot." Instead of just "dot". The period after dot adds a pause so the text is more easy to follow. You can also add a f...
by paulv
Fri Apr 08, 2016 8:21 pm
Forum: Raspbian
Topic: Static IP address templates for dhcpcd.conf
Replies: 32
Views: 69311

Re: Static IP address templates for dhcpcd.conf

Great stuff and very timely for my wireless Access Point project. Thanks rurwin! I want to be able to use this AP in several locations, without knowing beforehand what the router setup is. [update] I really like the possibilies this offers, now that it has been explained to me in more detail. Howeve...
by paulv
Fri Apr 08, 2016 7:58 pm
Forum: Troubleshooting
Topic: GPIO callbacks occurring twice
Replies: 6
Views: 2381

Re: GPIO callbacks occurring twice

Getting multiple hits is a known issue, and still not fixed yet. Just adding a button seems simple, but really isn't. If you want to know more have a look at this post. https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=133740 At the very end, there is another link to example Python scripts tha...
by paulv
Fri Apr 08, 2016 7:43 pm
Forum: Advanced users
Topic: Detecting power down sequence end
Replies: 15
Views: 3352

Re: Detecting power down sequence end

A complete solution can be found here : viewtopic.php?f=91&t=129357
Enjoy!
by paulv
Fri Apr 08, 2016 9:24 am
Forum: Networking and servers
Topic: How-To: Add a VPN to a Wireless Access Point
Replies: 6
Views: 12919

Re: How-To: Add a VPN to a Wireless Access Point

OpenVPN Proof of Concept Part II In the meantime, I have installed an OpenVPN server on my router. A while ago, I purchased the Asus RT-AC68U router, reportedly one of the best wireless routers on the market. It also natively supports OpenVPN in various configurations. Setting up an OpenVPN server ...
by paulv
Mon Apr 04, 2016 10:56 am
Forum: Networking and servers
Topic: Internet Access Problem (Repeater/Access Point)SOLVED
Replies: 1
Views: 511

Re: Internet Access Problem (Repeater/Access Point)SOLVED

I managed to find the problem myself. In my wireless Access Point, I assigned the static IP interface address of the wlan0 interface to an address that worked when it acted as an AP, but failed when a Repeater was connected. In my noobidity, I assigned 192.168.200.2 as the static interface address f...
by paulv
Sun Apr 03, 2016 7:19 pm
Forum: Networking and servers
Topic: Internet Access Problem (Repeater/Access Point)SOLVED
Replies: 1
Views: 511

Internet Access Problem (Repeater/Access Point)SOLVED

I have a problem with internet accessibility in a rather unusual configuration. I have put together a Pi as a wireless Access Point (AP-1) that is a front-end to my router. This works as planned. The link on how I did that is here : https://www.raspberrypi.org/forums/viewtopic.php?f=35&t=138934&p=92...
by paulv
Tue Mar 29, 2016 10:01 am
Forum: Networking and servers
Topic: How-To: Simple Wireless Repeater - Jessie
Replies: 7
Views: 19090

How-To: Simple Wireless Repeater - Jessie

[Updated] For my Netflix Geo-unblock project, I needed a way to test my VPN connection without getting up from my chair and travel to another SOHO location. Normally, you can only test the correct setup of a VPN link when you go to the public internet, outside of your SOHO local network, and let the...
by paulv
Sun Mar 20, 2016 6:46 pm
Forum: Networking and servers
Topic: OpenVPN Install? w/ Private Internet Access
Replies: 18
Views: 17537

Re: OpenVPN Install? w/ Private Internet Access

Look here for a very detailed install that is working on a wireless accesspoint all configured on Jessie.

viewtopic.php?f=36&t=139790

Good luck!
by paulv
Sun Mar 20, 2016 2:31 pm
Forum: Media centres
Topic: How-To: Un-geoblock Netflix and cast movies to a TV
Replies: 12
Views: 23734

Re: How-To: Un-geoblock Netflix and cast movies to a TV

Oops, I'll fix that!
Thank you for the tip and the compliment!
paulv
by paulv
Sun Mar 20, 2016 2:20 pm
Forum: Automation, sensing and robotics
Topic: Halt-Restart with 1 Button
Replies: 5
Views: 8372

Halt-Restart with 1 Button

If you're looking for a real one button start/stop with power shutoff, you need to go here instead. https://www.raspberrypi.org/forums/viewtopic.php?f=91&t=129357 There have been several attempts published here and on the web to provide a simple method to halt the Pi with a button to get it ready fo...
by paulv
Sat Mar 19, 2016 7:33 pm
Forum: Networking and servers
Topic: How-to: wireless access point-Jessie
Replies: 0
Views: 333

How-to: wireless access point-Jessie

There are several how-to posts about creating a wireless access point with a Pi. Unfortunately, several of them are outdated by now due to newer releases. I still see several posts of users struggling, especially with the network setup and routing. The network setup changed a lot over the last 6? mo...

Go to advanced search