Go to advanced search

by bgreat
Fri Jan 04, 2013 10:04 pm
Forum: Beginners
Topic: Running multiple task from terminal
Replies: 6
Views: 7185

Re: Running multiple task from terminal

I am uncertain as to what you are trying to accomplish. The echo commands will simply print the string following the echo command and not execute the argument. If you are wanting to run commands sequentially in a script, you would put this in the script: #!/bin/bash command1 command2 If, instead, yo...
by bgreat
Fri Jan 04, 2013 1:17 pm
Forum: Troubleshooting
Topic: Restoring 8GB MicroSD image to SD-Card fails
Replies: 6
Views: 2862

Re: Restoring 8GB MicroSD image to SD-Card fails

This thread http://www.raspberrypi.org/phpBB3/viewt ... 26&t=21853 has a discussion on using 'usbit' to image a card and write back out as a truncated image. If you have shrunk your last partition, this will accomplish what you are attempting.

Enjoy!
Bill
by bgreat
Fri Jan 04, 2013 4:40 am
Forum: Advanced users
Topic: Discover if headphones are plugged in?
Replies: 8
Views: 3735

Re: Discover if headphones are plugged in?

My Dell laptop recognizes when a plug is inserted in the mic input, but not the headphone output. It has a manager that pops up to select the input level as a line input or microphone input.

Enjoy!
Bill
by bgreat
Fri Jan 04, 2013 4:38 am
Forum: Troubleshooting
Topic: Pi automatically turns off/won't turn on with GPIO connected
Replies: 2
Views: 601

Re: Pi automatically turns off/won't turn on with GPIO conne

First question: What is the GPIO connected to?

The mostly likely culprit is that the power pins are connected incorrectly. 5v or 3.3v DC are shorted to ground.

Enjoy!
Bill
by bgreat
Thu Jan 03, 2013 9:43 pm
Forum: Troubleshooting
Topic: Restoring 8GB MicroSD image to SD-Card fails
Replies: 6
Views: 2862

Re: Restoring 8GB MicroSD image to SD-Card fails

This is normal for an SD card or any FLASH memory bulk storage device. The size specified -- i.e. 8GB -- is the nominal storage available. The memory capacity is only nominal because the process used for bulk FLASH memory does result in bad memory blocks. These are marked internal to the device as u...
by bgreat
Tue Jan 01, 2013 8:18 pm
Forum: Other projects
Topic: 16x2 no contrast help (solved)
Replies: 22
Views: 7162

Re: 16x2 no contrast help (solved)

Steve, Great to know it is working. Cold solder joints can be problematic. Good job tracking it down. I was going to suggest the resistor and LED route for testing, but was not certain if you would have the hardware. I tested an alternative using the contrast input pin as a test pin. Toggling a GPIO...
by bgreat
Tue Jan 01, 2013 2:50 am
Forum: Other projects
Topic: 16x2 no contrast help (solved)
Replies: 22
Views: 7162

Re: 16x2 no contrast help (solved)

Steve,

I'm out for New Year. I'll post a simple test you can do to confirm the GPIO is working correctly. Since hour wiring appears correct, you either have a bad interconnect or display.

Happy New Year!

Enjoy!
Bill
by bgreat
Mon Dec 31, 2012 11:54 am
Forum: Other projects
Topic: 16x2 no contrast help (solved)
Replies: 22
Views: 7162

Re: 16x2 no contrast help

Steve, The photos are a little small to accurately trace the wires, but the wiring appears to match the AdaFruit example. And the 21/27 issue has been tried in both modes. When you adjust the variable resistor, does the contrast change for the row of solid blocks on the first line? Just to confirm y...
by bgreat
Mon Dec 31, 2012 4:13 am
Forum: Other projects
Topic: 16x2 no contrast help (solved)
Replies: 22
Views: 7162

Re: 16x2 no contrast help

Steve, The "atexit" code should be at the top of the file to be fully effective. You want the handler to be set up before any other code. Also... I made an error on the Rev. 2 change. :oops: It is not necessary. The GPIO module is using the physical pin numbers of the header. So the "27" needs chang...
by bgreat
Sun Dec 30, 2012 6:17 pm
Forum: Other projects
Topic: 16x2 no contrast help (solved)
Replies: 22
Views: 7162

Re: 16x2 no contrast help

Steve,

If you do 'cat /proc/cpuinfo' what is shown for "Revision" ? Just to confirm the hardware version.

Enjoy!
Bill
by bgreat
Sun Dec 30, 2012 5:56 pm
Forum: Other projects
Topic: 16x2 no contrast help (solved)
Replies: 22
Views: 7162

Re: 16x2 no contrast help

Steve,

The GPIO library needs to be available, otherwise the code can not be run. Add the following import line:

Code: Select all

import RPi.GPIO as GPIO
That will correct the NameError you are receiving and then you should not have the in use warnings either.


Enjoy!
Bill
by bgreat
Sun Dec 30, 2012 6:08 am
Forum: Python
Topic: Problem with gpio in Python
Replies: 26
Views: 24296

Re: Problem with gpio in Python

First a question. What OS distribution are you running? If you are using Raspbian, you do not need to download or install the GPIO library. Of the commands you indicate you are typing, only the last line is a python command. The rest are Linux commands that would be issued from a shell prompt before...
by bgreat
Sat Dec 29, 2012 12:44 am
Forum: Advanced users
Topic: Can't forward port for SSH access
Replies: 11
Views: 6750

Re: Can't forward port for SSH access

My pleasure.

Enjoy!
by bgreat
Sat Dec 29, 2012 12:26 am
Forum: Advanced users
Topic: Can't forward port for SSH access
Replies: 11
Views: 6750

Re: Can't forward port for SSH access

You have my curiosity up. If it still doesn't work with the source IP updated, I'll browse the source code to make sure I understand.

Also, on the stock firmware, there is a toggle to enable virtual host support -- must be on... sure this has been done, but checking.

Bill
by bgreat
Sat Dec 29, 2012 12:23 am
Forum: Advanced users
Topic: Can't forward port for SSH access
Replies: 11
Views: 6750

Re: Can't forward port for SSH access

What do you have configured as source IP for the virtual server? This should not be your router address (internal or external) as it would limit the port forwarding to only accept connections from that address. Since you are not attempting to connect from the router, the connection should be blocked...
by bgreat
Sat Dec 29, 2012 12:03 am
Forum: Advanced users
Topic: Can't forward port for SSH access
Replies: 11
Views: 6750

Re: Can't forward port for SSH access

Definitely seems like a router port forwarding issue. I'm going to look up the manual for your router just to help me understand the configuration requirements for the router. One additional question. What is the local address of the router? Just confirming that it is on the same net as the Pi and a...
by bgreat
Fri Dec 28, 2012 10:44 pm
Forum: Advanced users
Topic: Can't forward port for SSH access
Replies: 11
Views: 6750

Re: Can't forward port for SSH access

Configure the router to forward port 3322 to port 3322 on the Raspberry Pi. Then update /etc/ssh/sshd_config Port stanza(s) with: # What ports, IPs and protocols we listen for Port 22 Port 3322 Followed by a restart of ssh: $ sudo /etc/init.d/ssh restart With the configuration update, this makes ssh...
by bgreat
Fri Dec 28, 2012 1:22 pm
Forum: Raspbian
Topic: second log in wont accept password
Replies: 9
Views: 1544

Re: second log in wont accept password

The password will not be visible as you type and no characters will echo to indicate you are typing the password. If the 'Enter' key works, the other characters should also be working. Are you using the official Raspbian "wheezy" download from Downloads ? This starts up with a configuration menu to ...
by bgreat
Fri Dec 28, 2012 1:09 pm
Forum: Python
Topic: Python + GTK . Problem running as root
Replies: 3
Views: 1753

Re: Python + GTK . Problem running as root

You can read a brief description of X Window security at:http://en.wikipedia.org/wiki/X_Window_authorization. You can also read about the xauth command by doing a 'man xauth' on your Raspberry Pi.

Enjoy!
Bill
by bgreat
Fri Dec 28, 2012 1:13 am
Forum: HATs and other add-ons
Topic: Has anyone used the motor driver with a 6v motor / PSU?
Replies: 4
Views: 1416

Re: Has anyone used the motor driver with a 6v motor / PSU?

You could try a 9v supply with your 6v motor. There is generally some leeway in the motor ratings. Just do not drive the motor to 100%. Limiting the motor drive to 65-75% should work without any damage to the motor.
by bgreat
Fri Dec 28, 2012 1:08 am
Forum: Python
Topic: Python + GTK . Problem running as root
Replies: 3
Views: 1753

Re: Python + GTK . Problem running as root

Hello!

Check out this thread with a similar issue and solution:
http://www.raspberrypi.org/phpBB3/viewt ... 32&t=26934

Copying the .Xauthority file from a terminal window should solve this for you.

Code: Select all

sudo cp ~pi/.Xauthority ~root/
Enjoy!
Bill
by bgreat
Thu Dec 27, 2012 5:09 pm
Forum: Python
Topic: Problem with gpio in Python
Replies: 26
Views: 24296

Re: Problem with gpio in Python

Looks like you have multiple entries for xauth (multiple connections active/registered). I only had one, so I went for the simple command. I'm glad it pointed you in the right direction. Here is a simple way to make all of the pi user connections available for root, bypassing the xauth command: sudo...
by bgreat
Thu Dec 27, 2012 1:17 pm
Forum: Python
Topic: Problem with gpio in Python
Replies: 26
Views: 24296

Re: Problem with gpio in Python

The problem you are having with "sudo idle" is related to using Ximg over an SSH tunnel via PuTTY. You can confirm this by opening a LXTerminal window and entering the command: [email protected] ~ $ sudo idle PuTTY X11 proxy: MIT-MAGIC-COOKIE-1 data did not matchTraceback (most recent call last): ... _...
by bgreat
Wed Dec 26, 2012 10:08 pm
Forum: Raspbian
Topic: Cannot start watchdog
Replies: 2
Views: 3506

Re: Cannot start watchdog

Make certain you have updated /etc/watchdog.conf and removed the comment character from the watchdog-device line: From: #watchdog-device = /dev/watchdog To: watchdog-device = /dev/watchdog Tried on my Raspberry Pi and works with no error. If you still have an error, take a look at /var/log/daemon.lo...
by bgreat
Wed Dec 26, 2012 6:36 pm
Forum: Other projects
Topic: [Q]hd44780 lcd screen
Replies: 53
Views: 47198

Re: [Q]hd44780 lcd screen

AdaFruit has a nice tutorial at: Drive a 16x2 LCD with the Raspberry Pi with easy to follow directions, photos, and code.

Enjoy!
Bill

Go to advanced search