Go to advanced search

by penguintutor
Fri Jul 04, 2014 2:55 pm
Forum: Python
Topic: python noob need help
Replies: 23
Views: 3104

Re: python noob need help

Says runtimewarning: This channel is already in use, continuing away..... That's because you have already accessed the GPIO port and not cleaned up properly. You can remove that warning message by adding the following after the import statement GPIO.setwarnings(False) Or you could just ignore it.
by penguintutor
Fri Jul 04, 2014 11:35 am
Forum: Troubleshooting
Topic: WiFi ONLY works if Ethernet is plugged in
Replies: 57
Views: 37957

Re: WiFi ONLY works if Ethernet is plugged in

I expect that your default route is defined against the Ethernet port - in which case it is trying to channel all traffic through the ethernet port even if it's disconnected. Easiest may be to reconfigure these as DHCP (you could perhaps set a static ip address in your router if you wanted to be abl...
by penguintutor
Fri Jul 04, 2014 11:06 am
Forum: Off topic discussion
Topic: external camera with pi sd card
Replies: 5
Views: 2003

Re: external camera with pi sd card

It should be possible by changing the partition sizes. I'd suggest using a Linux computer to do the resizing (you can run the software on the Raspberry Pi, but you can't resize a partition that you are running off). You need to move the ext partition further up the SD card to give yourself contiguou...
by penguintutor
Fri Jul 04, 2014 10:50 am
Forum: Beginners
Topic: Raspb -Debian and Proxy setup
Replies: 4
Views: 1278

Re: Raspb -Debian and Proxy setup

Take a look at squid. It's available from the Raspbian repositories and can be fully configured from editing standard files. http://www.squid-cache.org/ There are lots of options in squid, but it has sensible defaults that work for a "typical" setup. It's what I used when creating my own family filt...
by penguintutor
Fri Jul 04, 2014 10:43 am
Forum: Beginners
Topic: How to hook a battery to the pi
Replies: 15
Views: 2762

Re: How to hook a battery to the pi

My first version of my robot vehicle didn't use any soldering, although it's better if you can solder.

Take a look at my guide - replacing the Raspberry Pi Cobbler with some male-to-female jump leads instead.

http://www.penguintutor.com/electronics/rubyrobot
by penguintutor
Fri Jul 04, 2014 10:28 am
Forum: Troubleshooting
Topic: Absolute max/min supply voltage?
Replies: 15
Views: 17499

Re: Absolute max/min supply voltage?

Guys, Has anyone else used rechargeable batteries and did you use 4 or 5 cells I have run with 4 x AA (Hi Capacity Hybrid batteries). Despite nominal voltage of 1.2v per battery you actually get slightly more on fresh batteries. This is enough to run the Pi and power small motors: See my battery po...
by penguintutor
Fri Jul 04, 2014 10:23 am
Forum: Python
Topic: python noob need help
Replies: 23
Views: 3104

Re: python noob need help

setupException: No access to /dev/mem. Try running as root!
You don't have sufficient permission to access the GPIO ports.

You need to run as the root (superuser).
To run IDLE as root then open a terminal and enter

Code: Select all

sudo idle
by penguintutor
Thu Jun 12, 2014 1:16 pm
Forum: Advanced users
Topic: NOOBS - auto start of Raspi-Config
Replies: 6
Views: 4495

Re: NOOBS - auto start of Raspi-Config

For Q1:

There are two places that need to be changed to disable raspi-config

Remove the script from profile.d if it exists

rm -f /etc/profile.d/raspi-config.sh

Remove the entry from /etc/inittab that ends with RPICFG_TO_ENABLE
by penguintutor
Thu Jun 12, 2014 11:44 am
Forum: Beginners
Topic: Pi clock
Replies: 2
Views: 2531

Re: Pi clock

Here's a few ideas to get you started. You could run a browser full screen with a Javascript clock (eg. http://clock.bralla.com/ ) Or you should be able to use xscreensaver with a clock screensaver xscreensaver is on the Raspberry Pi repositories, but not sure about the clock part Or create your own...
by penguintutor
Thu Jun 12, 2014 11:29 am
Forum: Teaching and learning resources
Topic: Worksheet for programming the Raspberry Pi GPIO port
Replies: 1
Views: 1776

Worksheet for programming the Raspberry Pi GPIO port

This is a worksheet I created for a school Raspberry Pi club.

Creates a simple circuit on a breadboard and programs it in a traffic light sequence using Python.

Worksheet: Programming the Raspberry Pi GPIO

Image
by penguintutor
Thu Jun 12, 2014 11:24 am
Forum: Teaching and learning resources
Topic: Question regarding RPI PCB design Layout
Replies: 1
Views: 3523

Re: Question regarding RPI PCB design Layout

You need to look at the circuit diagram schematics rather than the PCB layout. The PCB has multiple layers and trying to trace the links by hand is not practical. http://www.raspberrypi.org/documentation/hardware/raspberrypi/Raspberry-Pi-Rev-2.1-Model-AB-Schematics.pdf You need to look at page 3 top...
by penguintutor
Thu Apr 03, 2014 9:32 am
Forum: General discussion
Topic: New Website
Replies: 94
Views: 37845

Re: New Website

Also similar image sizes for some of the other images - eg. "raspberrypi-model-b.jpg" is 2MB - 4217 x 2811 px scaled to 350 x 233px
by penguintutor
Thu Apr 03, 2014 9:21 am
Forum: General discussion
Topic: New Website
Replies: 94
Views: 37845

Re: New Website

The performance issues are due to the image sizes of the blog previews carousel on the front page. For example - the "new-website" image is 1202px x 991 px - but only displayed as 308 x 250 so it could be approx 72KB rather than 622KB April fool image - 1432 x 1029 px - displayed as 308 x 250px Quak...
by penguintutor
Thu Mar 13, 2014 4:58 pm
Forum: Automation, sensing and robotics
Topic: Can someone build me a Pi Bot?
Replies: 13
Views: 3247

Re: Can someone build me a Pi Bot?

That is very similar to the Magician Chassis that I've been working on.

I've put a quick overview at: http://www.penguintutor.com/electronics/rubyrobot but I'm still working on the documentation.

Hopefully I should have something available in a few days time.
by penguintutor
Tue Mar 04, 2014 3:18 pm
Forum: Teaching and learning resources
Topic: Learning Scratch for primary school teachers
Replies: 0
Views: 796

Learning Scratch for primary school teachers

This is an introduction to Scratch that I ran with teachers from a local primary school. The presentation is intended as a practical hands-on session with live demonstration (so may be hard to follow without the explanation), but there is also a guide that goes through creating a quiz game in Scratc...
by penguintutor
Sun Jan 26, 2014 7:49 pm
Forum: Beginners
Topic: Issues with permissions on a flash drive
Replies: 12
Views: 2846

Re: Issues with permissions on a flash drive

Are you saying that I can keep the drive formatted as fat32 but mount it as ext3 so that the rights will work properly? No - you need to format the partition as ext3 to be able to mount it as such. Normally you should change the partition type to a linux partition (otherwise fdisk and other softwar...
by penguintutor
Wed Dec 04, 2013 4:32 pm
Forum: Scratch
Topic: Unable to load Scratch files from a Raspberry Pi onto a PC
Replies: 15
Views: 4841

Re: Unable to load Scratch files from a Raspberry Pi onto a

Great - thanks for looking into this so quickly.

Is this going to get pushed to the repositories so I can just do an apt-get update?
by penguintutor
Mon Dec 02, 2013 3:04 pm
Forum: Scratch
Topic: Unable to load Scratch files from a Raspberry Pi onto a PC
Replies: 15
Views: 4841

Unable to load Scratch files from a Raspberry Pi onto a PC

I have already filed this into the appropriate forum on the Scratch website, but have not had any response. Anyone on here been able to take files from Scratch on a Raspberry Pi and load them onto Scratch 1.4 on a PC. I have been using Scratch in school using a Raspberry Pi and Scratch 1.4. I am try...
by penguintutor
Tue Nov 26, 2013 12:06 pm
Forum: General discussion
Topic: Using PS3 controller as mouse ?
Replies: 2
Views: 1606

Re: Using PS3 controller as mouse ?

Possible, but difficult. There are a couple of links here. http://www.madsoft.org/2008/12/16/configuring-the-playstation-3-controller-on-linux/ This is a step by step guide, but it's not written for the Raspberry Pi so you may need to tweak it somewhat. https://github.com/chemisus/ps3board This seco...
by penguintutor
Tue Nov 26, 2013 11:32 am
Forum: Automation, sensing and robotics
Topic: Raspberry Pi Home Automation Ideas...
Replies: 30
Views: 37875

Re: Raspberry Pi Home Automation Ideas...

This is a very basic home automation project that I've put together. http://www.penguintutor.com/electronics/simple-homeautomation-raspberrypi It's very basic - simple on/off of lights and sockets, but has the advantage of using a commercial product without any need to get involved with mains wiring...
by penguintutor
Tue Nov 26, 2013 11:24 am
Forum: Raspberry Pi OS
Topic: fsck on boot - ctrl-D - how to disable ?
Replies: 11
Views: 16275

Re: fsck on boot - ctrl-D - how to disable ?

Edit your /etc/fstab and set any file systems you don't want checked to have a 0 in the 6th (last) field. See the following from the fstab man page: The sixth field (fs_passno). This field is used by the fsck(8) program to determine the order in which filesystem checks are done at reboot time. The r...
by penguintutor
Thu Nov 21, 2013 11:46 am
Forum: HATs and other add-ons
Topic: 2millions PI, how many Gertboard
Replies: 14
Views: 3633

Re: 2millions PI, how many Gertboard

Should be able to buy it now. Oh yes I can see it on the Farnell and CPC website, although it's still not listed on the Farnell Raspberry Pi micro-site (CPC and the standard Farnell site don't charge postage (there is a minimum order value for Farnell, but it's only a little more than the Gertduino...
by penguintutor
Wed Nov 20, 2013 3:36 pm
Forum: Automation, sensing and robotics
Topic: My project - i need suggestions & help
Replies: 10
Views: 2212

Re: My project - i need suggestions & help

I'm not aware of any boards specifically for servos, but take a look at: http://www.raspberrypi.org/archives/5269 This appears to be a simple H-Bridge motor driver board based around the SN754410, which is the same as I have with my project (but mine is currently on breadboard). I was looking at cre...
by penguintutor
Wed Nov 20, 2013 3:28 pm
Forum: HATs and other add-ons
Topic: 2millions PI, how many Gertboard
Replies: 14
Views: 3633

Re: 2millions PI, how many Gertboard

The GertDuino looks good.

Sounds like Shield for the Raspberry Pi with an Arduino on, that then allows you to use other Arduino sheilds on top.

In fact that sounds like it would be a perfect fit for a project I'm working on.

Looking forward to that being available to buy.
by penguintutor
Tue Nov 19, 2013 10:36 am
Forum: HATs and other add-ons
Topic: 2millions PI, how many Gertboard
Replies: 14
Views: 3633

Re: 2millions PI, how many Gertboard

I don't know how many Gertboards are in the wild, but I don't see many of them in actual use, and in fact I haven't actually done anything with mine since I bought it (although that's because I've been working on other things instead). I have thought of writing some tutorials using the Gertboard, bu...

Go to advanced search