Go to advanced search

by Happy2013
Sun Mar 31, 2013 12:51 pm
Forum: Python
Topic: updating Python to 3.3
Replies: 0
Views: 625

updating Python to 3.3

Hello,

I have various Python scripts thst have so far been written with Python 3.2. I want to make use of the ipaddress module released with Python 3.3. Is there a simple way to update Python on the Pi as I believe there are some changes to tk between the releases.

Thsnks
by Happy2013
Fri Mar 29, 2013 12:20 am
Forum: Troubleshooting
Topic: RPi raspi-config expand_rootfs
Replies: 4
Views: 6678

Re: RPi raspi-config expand_rootfs

I typing the above command into the terminal
by Happy2013
Fri Mar 29, 2013 12:18 am
Forum: Python
Topic: reading gpio out pin status
Replies: 20
Views: 100109

Re: reading gpio out pin status

GPIO.setup(pin, GPIO.IN) Set up pin as input channel state = GPIO.input(pin) store the state of the channel in an appropriately named variable. Which should return either True or False. You then perform action in an if statement on the reading. if (state is True): do this else: do this
by Happy2013
Fri Mar 29, 2013 12:10 am
Forum: Troubleshooting
Topic: RPi raspi-config expand_rootfs
Replies: 4
Views: 6678

RPi raspi-config expand_rootfs

Hello,

I have tried running the exapand_rootfs on my Pi, to create more space, however, I am getting the following error message 'There was ab error running do_expand_rootfs', does anybody have any ideas.
by Happy2013
Mon Mar 25, 2013 11:37 am
Forum: Python
Topic: Help FlashingLED using tkinter
Replies: 6
Views: 1478

Re: Help FlashingLED using tkinter

Status is a variable that can either be 'on' or 'off', if its on while in flash loop it will cause the light to blink otherwise, it will break the loop, once the time has elapsed the LED will just be continuously on. The code you've suggested using the "if is", will take the else condition as well f...
by Happy2013
Mon Mar 25, 2013 10:32 am
Forum: Python
Topic: Help FlashingLED using tkinter
Replies: 6
Views: 1478

Re: Help FlashingLED using tkinter

The code above demonstrates whats wrong with using root.after. If I was to add the following the line before switching the LED off, it was cause the GUI to freeze.

Code: Select all

root.after(500)
#Delay of 500ms
by Happy2013
Sun Mar 24, 2013 10:20 pm
Forum: Python
Topic: Help FlashingLED using tkinter
Replies: 6
Views: 1478

Help FlashingLED using tkinter

Hello, I am trying to make a light flash using a GUI with tkinter, the only problem is that when I used time.sleep(), it will freeze the GUI. I can use the root.after() call but this just schedules the task every 1 second and therefore doesn't blink the LED. Here is my function: def flashLED(root, e...
by Happy2013
Wed Feb 20, 2013 7:27 pm
Forum: Automation, sensing and robotics
Topic: Help with setting up PIR sensors
Replies: 37
Views: 7063

Re: Help with setting up PIR sensors

Ok ive give this another shot today, now when everythibg is linked up I get a false reading from my program continously for some reason even when im jumping around like an idiot trying to trigger the sensor. Ive fiddled around with pins to see if that was tge issue with no success, whats even strang...
by Happy2013
Mon Feb 18, 2013 11:26 pm
Forum: Python
Topic: Difference between GPIO.setmode(BCM) and GPIO.setmode(BOARD)
Replies: 1
Views: 22149

Difference between GPIO.setmode(BCM) and GPIO.setmode(BOARD)

Hello,

I am just wondering if someone can explain to me the differences between the two modes stated above, I've looked online and can't find anything online that explains the difference, if there is any at all. I am using the RPi Model B.

Thanks
by Happy2013
Sun Feb 17, 2013 9:39 pm
Forum: Automation, sensing and robotics
Topic: Help with setting up PIR sensors
Replies: 37
Views: 7063

Re: Help with setting up PIR sensors

So from your information above, I am guessing that the pin that doesn't have the black circle around is GND?

Thanks
by Happy2013
Sun Feb 17, 2013 12:42 am
Forum: Automation, sensing and robotics
Topic: Help with setting up PIR sensors
Replies: 37
Views: 7063

Re: Help with setting up PIR sensors

Thanks for the help, I appreciate it alot. Ill give this ago tomorrow, am I right in thinking on the vdd side I dont have to connect wire in any particular slot as I align it with the vdd pin.
by Happy2013
Sat Feb 16, 2013 8:59 pm
Forum: Automation, sensing and robotics
Topic: Help with setting up PIR sensors
Replies: 37
Views: 7063

Re: Help with setting up PIR sensors

Pins are correct im using pin 11 (#17) for LED and 15 (#22) for PIR input
by Happy2013
Sat Feb 16, 2013 8:31 pm
Forum: Automation, sensing and robotics
Topic: Help with setting up PIR sensors
Replies: 37
Views: 7063

Re: Help with setting up PIR sensors

Image

This how its wired up power bottom left, top left input and top right ground
by Happy2013
Sat Feb 16, 2013 8:20 pm
Forum: Automation, sensing and robotics
Topic: Help with setting up PIR sensors
Replies: 37
Views: 7063

Re: Help with setting up PIR sensors

Image

Sensor connection, top left is being used for power, bottom left is connected for input to pin 15 and the other one is used for ground
by Happy2013
Sat Feb 16, 2013 7:59 pm
Forum: Automation, sensing and robotics
Topic: Help with setting up PIR sensors
Replies: 37
Views: 7063

Re: Help with setting up PIR sensors

Ive just placed the resistor between them and same issue is occuring
by Happy2013
Sat Feb 16, 2013 7:37 pm
Forum: Automation, sensing and robotics
Topic: Help with setting up PIR sensors
Replies: 37
Views: 7063

Re: Help with setting up PIR sensors

I know but the way my wires are set up using male I dont have room, as the sensor takes up half of the board
by Happy2013
Sat Feb 16, 2013 7:24 pm
Forum: Automation, sensing and robotics
Topic: Help with setting up PIR sensors
Replies: 37
Views: 7063

Re: Help with setting up PIR sensors

Hello, Ive been giving this a shot today and for some reason reason my pir seems to be constsntly high as its always lighting the led even when im out of range. For test purposes im only using the one PIR and my system is set up as follows: 3.3v pin 1 to outter breadboard rail on. GND pin 6 to bread...
by Happy2013
Thu Feb 14, 2013 7:32 pm
Forum: Automation, sensing and robotics
Topic: Help with setting up PIR sensors
Replies: 37
Views: 7063

Re: Help with setting up PIR sensors

It looks like Eagle I believe
by Happy2013
Thu Feb 14, 2013 6:38 pm
Forum: Automation, sensing and robotics
Topic: Help with setting up PIR sensors
Replies: 37
Views: 7063

Re: Help with setting up PIR sensors

on the bottom of these, there are three pins two are identical and the other has a gold bottom. Am I write in thinking that this is the VDD and the other two don;t make a difference which way round they are! Data sheet link below

http://www.farnell.com/datasheets/73642.pdf
by Happy2013
Thu Feb 14, 2013 6:12 pm
Forum: Automation, sensing and robotics
Topic: Help with setting up PIR sensors
Replies: 37
Views: 7063

Re: Help with setting up PIR sensors

Thanks for this, will give this a shot over the weekend and let you know how it goes.

Thanks
by Happy2013
Thu Feb 14, 2013 12:50 am
Forum: Automation, sensing and robotics
Topic: Help with setting up PIR sensors
Replies: 37
Views: 7063

Re: Help with setting up PIR sensors

Thanks for the information, dont mean to be a pain, but any chance you could point me to a circuit diagram for this setup.
by Happy2013
Tue Feb 12, 2013 10:23 pm
Forum: Automation, sensing and robotics
Topic: Help with setting up PIR sensors
Replies: 37
Views: 7063

Re: Help with setting up PIR sensors

Do I not need any resistors connected on the PIR ciruit? I
by Happy2013
Mon Feb 11, 2013 3:43 pm
Forum: Automation, sensing and robotics
Topic: Help with setting up PIR sensors
Replies: 37
Views: 7063

Re: Help with setting up PIR sensors

Thanks for your reply, Do I not need anything else on the PIR sensor circuit to control the current etc...... Can I also connect two PIR to the one 3.3 PIN? The breadboard I have has a large number of slots in the middle and on either side +/- rail, does the LED only need to connect to one PIN as I ...
by Happy2013
Mon Feb 11, 2013 3:07 pm
Forum: Automation, sensing and robotics
Topic: Help with setting up PIR sensors
Replies: 37
Views: 7063

Re: Help with setting up PIR sensors

Yes you are correct as for the LED's they are supposed to light up when movement is detected
by Happy2013
Mon Feb 11, 2013 2:34 pm
Forum: Automation, sensing and robotics
Topic: Help with setting up PIR sensors
Replies: 37
Views: 7063

Help with setting up PIR sensors

Hello, I am wanting to set-up 2 PIR sensors and 2 LED's using the Pi's GPIO. These will be connected to an external solder-less breadboard using the Adafruits Cobbler. The idea I have for this is that one sensor is at the top of the board and the other is located at the opposite end both will also h...

Go to advanced search