Go to advanced search

by joe2act
Thu Nov 22, 2012 9:43 pm
Forum: Automation, sensing and robotics
Topic: Home alarm system retrofit.
Replies: 36
Views: 19984

Re: Home alarm system retrofit.

Python on the RPi is plenty fast enough for this application. I chose to poll the GPIO pins in this application to keep a dead simple pure-Python implementation. (Isn't this a platform for education?) I agree with you. Python on the RPi is fast enough for this alarm application. It's good for educa...
by joe2act
Wed Nov 21, 2012 9:30 pm
Forum: Automation, sensing and robotics
Topic: Home alarm system retrofit.
Replies: 36
Views: 19984

Re: Home alarm system retrofit.

Polling GPIO with Python is fine if the signals you need to read do not change too quickly. If you poll using C, you will see several orders of magnitude increase in speed. (or far less CPU used if you throttle the polling.) For a home alarm system, Python should be OK. Glad to see you have suggest...
by joe2act
Wed Nov 21, 2012 8:57 pm
Forum: Automation, sensing and robotics
Topic: Home alarm system retrofit.
Replies: 36
Views: 19984

Re: Home alarm system retrofit.

Well no LOLCODE, but here is an event logger in a few lines of Python. Using Postgres, I store the sensor configuration to one table and log all the alarm sensor events to another. I will think on how to handle alarm event notification and enabling-disabling the system. Suggestions are welcome. -L ...
by joe2act
Sat Oct 06, 2012 3:52 am
Forum: Linux Kernel
Topic: cannot found linux-header for 3.2.27
Replies: 23
Views: 75092

Re: cannot found linux-header for 3.2.27

Hello, I'm following these instructions and from the get go I'm having trouble. Anyone else having trouble with: wget https://github.com/raspberrypi/linux/tarball/rpi-3.2.27 I'm getting an "ERROR 500: Internal Server Error". Thanks. Just try download RasPi kernel source code again. I can download i...
by joe2act
Sat Oct 06, 2012 3:47 am
Forum: Linux Kernel
Topic: cannot found linux-header for 3.2.27
Replies: 23
Views: 75092

Re: cannot found linux-header for 3.2.27

So, as the standard debian kernel packaging system isn't used (the kernel and module are all in the raspberrypi-bootloader package), and the headers aren't distributed, you will need to download the source tree from the github at https://github.com/raspberrypi/linux/. You won't have to recompile it...
by joe2act
Fri Oct 05, 2012 3:54 am
Forum: Automation, sensing and robotics
Topic: Home alarm system retrofit.
Replies: 36
Views: 19984

Re: Home alarm system retrofit.

I was thinking about developing my app post by post here in this thread. What language would you like to see? I know Python is especially popular with the RPi, but I'm feeling rather Perlish... -L I do not have a particular favourite language requirement. Both Perl and Python are good programming l...
by joe2act
Fri Oct 05, 2012 1:33 am
Forum: Automation, sensing and robotics
Topic: Home alarm system retrofit.
Replies: 36
Views: 19984

Re: Home alarm system retrofit.

I am also using one of my RasPis for an alarm/automation system. It monitors the door switches and motion detectors via GPIO input and uses X10 to control lighting. Eventually I will add temperature inputs to monitor indoors, outdoors, hot tub, and my beer fridge (I'm a homebrewer) I have had such ...
by joe2act
Fri Oct 05, 2012 1:15 am
Forum: Automation, sensing and robotics
Topic: Home alarm system retrofit.
Replies: 36
Views: 19984

Re: Home alarm system retrofit.

Well geeze Ted, If you're going to go steal all my (both my) fans I guess I better post something. Here is the email test script I poached and mangled from http://www.drewconway.com: #!/usr/bin/env python import smtplib .... I've been pondering this little project ever since I moved into my house i...
by joe2act
Thu Oct 04, 2012 3:09 pm
Forum: Automation, sensing and robotics
Topic: Home alarm system retrofit.
Replies: 36
Views: 19984

Re: Home alarm system retrofit.

Hi,

Interesting idea for me. The email alarm notification is very useful. Looking forward for your next report.
by joe2act
Wed Sep 19, 2012 5:29 am
Forum: Troubleshooting
Topic: Stuck In Sleep Mode
Replies: 5
Views: 1977

Re: Stuck In Sleep Mode

rrm74001 wrote:Same as you 2012-08-16-wheezy-raspbian.
My RasPi never sleep. I use SSH to connect RasPi.

Code: Select all

$ uptime
 13:22:09 up 10:05,  1 user,  load average: 0.03, 0.05, 0.11
by joe2act
Wed Sep 19, 2012 3:35 am
Forum: Troubleshooting
Topic: Stuck In Sleep Mode
Replies: 5
Views: 1977

Re: Stuck In Sleep Mode

After about 10 minutes of inactivity, it appears that Rasbian goes into some kind of power save mode. However, moving the mouse of pressing keys on the keyboard does not bring the board alive again. I am able to SSH into it, so the system itself it alive. Is there a way I can disable this power sav...
by joe2act
Tue Sep 18, 2012 1:14 am
Forum: Linux Kernel
Topic: Default kernel config required
Replies: 7
Views: 11092

Re: Default kernel config required

Does 2012-08-16-wheezy-raspbian kernel's .config available ? Just boot it up and: zcat /proc/config.gz Thanks. That is cool. $ zcat /proc/config.gz > current-rpi-defconfig $ cat current-rpi-defconfig # # Automatically generated file; DO NOT EDIT. # Linux/arm 3.2.27 Kernel Configuration # CONFIG_ARM...
by joe2act
Tue Sep 18, 2012 12:05 am
Forum: Linux Kernel
Topic: Default kernel config required
Replies: 7
Views: 11092

Re: Default kernel config required

Licaon_Kter wrote:arch/arm/configs/bcmrpi_defconfig is
but, this is the minimal set, you need to enable many other options as needed
Does 2012-08-16-wheezy-raspbian kernel's .config available ?
by joe2act
Mon Sep 17, 2012 11:46 pm
Forum: Linux Kernel
Topic: cannot found linux-header for 3.2.27
Replies: 23
Views: 75092

cannot found linux-header for 3.2.27

Hi, I tried to compile simple device driver (hello.c) in RasPi. I already installed tool and some linux-headers in Raspbian. The current version is 3.2.27. But, I cannot find the 3.2.27's linux-header. How can I compile device driver with the right version of linux-header in Raspbian? By the way, I ...
by joe2act
Sat Aug 18, 2012 12:47 am
Forum: General discussion
Topic: No swap space?
Replies: 46
Views: 51060

Re: No swap space?

To resize: sudo nano /etc/dphys-swapfile sudo dphys-swapfile setup sudo dphys-swapfile swapon Thank you for answering my resize question. Can you clarify that Raspbian Wheezy's swap file is not stored in memory and it is stored at SD card? If answer is yes, swap file can not increase SD card's life...
by joe2act
Fri Aug 17, 2012 10:41 pm
Forum: General discussion
Topic: No swap space?
Replies: 46
Views: 51060

Re: No swap space?

The reasons for not including a swap partition don't seem logical, as there is a swap file on the SD card, which has the same role. I prefer to use a swap partition instead of a swap file - with the partition it does seem faster in practice (and it theory it should, IMHO). I also have the logs in R...
by joe2act
Fri Aug 17, 2012 10:33 pm
Forum: General discussion
Topic: No swap space?
Replies: 46
Views: 51060

Re: No swap space?

Can users resize file swap file size? for example, free -h shows swap file szie is 99MB. Can user resize swap file size to smaller 50MB? [email protected] ~ $ free -h total used free shared buffers cached Mem: 183M 71M 112M 0B 10M 44M -/+ buffers/cache: 16M 167M Swap: 99M 0B 99M
by joe2act
Fri Aug 17, 2012 10:10 pm
Forum: General discussion
Topic: Edit files on SD card
Replies: 22
Views: 26817

Re: Edit files on SD card

Is it possible to modify files on a Pi SD card by putting the card in a reader and connecting it to a Linux PC or Mac? I would like to remove the crontab. I think I made an error in something started by cron. The Pi boots but then immediately shuts down. Thanks, Peter Yes, you can edit file on SD c...
by joe2act
Fri Aug 17, 2012 9:37 pm
Forum: General discussion
Topic: No swap space?
Replies: 46
Views: 51060

Re: No swap space?

The reasons for not including a swap partition don't seem logical, as there is a swap file on the SD card, which has the same role. I prefer to use a swap partition instead of a swap file - with the partition it does seem faster in practice (and it theory it should, IMHO). I also have the logs in R...
by joe2act
Thu Aug 16, 2012 9:25 pm
Forum: Automation, sensing and robotics
Topic: Video: robots, motors, printers and more
Replies: 34
Views: 5192

Re: Video: robots, motors, printers and more

Hi, HomoFaciens,

The Mars robot rover video is very humorous. The printer project is good. How long time you build that printer?
by joe2act
Thu Aug 16, 2012 8:49 pm
Forum: Troubleshooting
Topic: USB Speaker can not adjust sound volume
Replies: 0
Views: 769

USB Speaker can not adjust sound volume

Hi, In the latest Raspbian(kernel 3.1.9+#272), Logitech USB Speaker can play mp3 music using mplayer. But, mplayer can not adjust sound volume. I found that mplayer's 0% and 100% sound volume have same level loud sound. The following is dmesg log. How to fix this sound volume problem? In original Ra...
by joe2act
Thu Aug 16, 2012 5:41 pm
Forum: Troubleshooting
Topic: Unstable USB speaker
Replies: 5
Views: 1225

Re: Unstable USB speaker

This unstable USB speaker problem is solved after Raspbian is updated (Linux raspberrypi 3.1.9+ #272). It was a software problem in the first Raspbian Wheezy(kernel 3.1.9+ #168). It is not a power problem. See log: dmesg log: [24434.575755] usb 1-1.2: new full speed USB device number 5 using dwc_otg...
by joe2act
Thu Aug 16, 2012 2:35 am
Forum: Troubleshooting
Topic: Unstable USB speaker
Replies: 5
Views: 1225

Re: Unstable USB speaker

itimpi wrote:If the USB speaker is plugged directly into the Pi then it will almost certainly be getting insufficient power. The speaker needs to either be independently powered or connected via a powered hub.
Thank you.
by joe2act
Thu Aug 16, 2012 2:34 am
Forum: Troubleshooting
Topic: Unstable USB speaker
Replies: 5
Views: 1225

Re: Unstable USB speaker

It's not really recommended to power from a computer's USB port as generally you're only receiving 500ma of current. (in theory anyway) However, the real problem, probably, is that the voltage is either too low once it reaches the USB ports or the speaker needs more than ~140ma of current to functi...
by joe2act
Thu Aug 16, 2012 1:42 am
Forum: Advanced users
Topic: Powered hub question
Replies: 4
Views: 1387

Re: Powered hub question

How much power your USB HDD consumes? How many volt, mA and Watts if you know? If HDD power consumption is less than the power which each port of USB hub can provided, the answer is yes (at least, in theory). You still need test it in practical. Otherwise, a reliable USB HDD needs its own reliable p...

Go to advanced search