Go to advanced search

by darthvazor
Tue Apr 02, 2013 4:05 pm
Forum: Automation, sensing and robotics
Topic: Xbee and Raspberri Pi
Replies: 3
Views: 4938

Re: Xbee and Raspberri Pi

Thank you for reply. I want to know what FTDI chip you currently using for your xbee modules?

Is this one of FTDI chips? - http://www.adafruit.com/products/247

I will check pySerial library.
by darthvazor
Mon Apr 01, 2013 7:53 pm
Forum: Automation, sensing and robotics
Topic: Xbee and Raspberri Pi
Replies: 3
Views: 4938

Xbee and Raspberri Pi

I need help with setting up Xbee modules with Raspberry Pi. I don't want to sacrifice GPIOs for Xbee, so instead I am using USB to communicate with Xbee Pro module through USB Xbee Adapter. (Or I can just using regular Xbee module with Raspberry Pi?) Which python library do I need to use to communic...
by darthvazor
Fri Mar 29, 2013 6:45 am
Forum: Python
Topic: How to run several tasks as thread?
Replies: 1
Views: 637

Re: How to run several tasks as thread?

I think I got it now. Here is the code: #!/usr/bin/env python2.7 import RPi.GPIO as GPIO GPIO.setmode(GPIO.BOARD) from time import sleep import subprocess import sys GPIO.setwarnings(False) GPIO.setup(3, GPIO.IN, pull_up_down=GPIO.PUD_DOWN) # Aquaponics Water - High Switch GPIO.setup(15, GPIO.IN, pu...
by darthvazor
Thu Mar 28, 2013 3:19 pm
Forum: Python
Topic: How to run several tasks as thread?
Replies: 1
Views: 637

How to run several tasks as thread?

#!/usr/bin/env python2.7 import RPi.GPIO as GPIO GPIO.setmode(GPIO.BOARD) from time import sleep GPIO.setwarnings(False) GPIO.setup(3, GPIO.IN, pull_up_down=GPIO.PUD_DOWN) # Aquaponics Water - High Switch GPIO.setup(15, GPIO.IN, pull_up_down=GPIO.PUD_DOWN) # Tower Water Switch busy = 0 busy2 = 0 bu...
by darthvazor
Tue Mar 26, 2013 4:03 pm
Forum: Python
Topic: Update system time with python?
Replies: 1
Views: 600

Update system time with python?

My project will keep raspberry pi running 24/7 for year round. So reboot will be very rarely and I do aware that time keeping system losing accurate time over short period. Even worse, it will sway more with heavy CPU load so I want to write a script that will correct the time with ntpd once in a wh...
by darthvazor
Mon Mar 25, 2013 7:48 pm
Forum: Python
Topic: GPIO.setmode(GPIO.BCM) error
Replies: 18
Views: 10944

Re: GPIO.setmode(GPIO.BCM) error

It works! Thank you, Croston! :)
by darthvazor
Mon Mar 25, 2013 7:09 pm
Forum: Python
Topic: GPIO.setmode(GPIO.BCM) error
Replies: 18
Views: 10944

Re: GPIO.setmode(GPIO.BCM) error

@ Croston /usr/lib/python2.6/dist-packages/RPi.GPIO-0.5.1a.egg-info /usr/lib/python2.6/dist-packages/RPi.GPIO-0.5.1a.egg-info/top_level.txt /usr/lib/python2.6/dist-packages/RPi.GPIO-0.5.1a.egg-info/SOURCES.txt /usr/lib/python2.6/dist-packages/RPi.GPIO-0.5.1a.egg-info/dependency_links.txt /usr/lib/py...
by darthvazor
Sun Mar 24, 2013 8:25 am
Forum: Python
Topic: GPIO.setmode(GPIO.BCM) error
Replies: 18
Views: 10944

GPIO.setmode(GPIO.BCM) error

#!/usr/bin/env python2.7 # script by Alex Eames http://RasPi.tv # http://RasPi.tv/how-to-use-interrupts-with-python-on-the-raspberry-pi-and-rpi-gpio-part-3 import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) # GPIO 23 & 17 set up as inputs, pulled up to avoid false detection. # Both ports ar...
by darthvazor
Wed Mar 13, 2013 4:46 am
Forum: Python
Topic: WiringPython - WiringPi for Python
Replies: 205
Views: 67318

Re: WiringPython - WiringPi for Python

Thanks Gordon! I got it working.
by darthvazor
Tue Mar 12, 2013 8:47 pm
Forum: Python
Topic: WiringPython - WiringPi for Python
Replies: 205
Views: 67318

Re: WiringPython - WiringPi for Python

I installed wiringPi and wiringpython without any issues. Then I test the example: #!/usr/bin/python # -*- coding: utf-8 -*- import wiringpi import time wiringpi.wiringPiSetup() wiringpi.pinMode(17, 1) wiringpi.digitalWrite(17, 0) time.sleep(1) wiringpi.digitalWrite(17, 1) time.sleep(1) It cause ras...
by darthvazor
Sun Mar 10, 2013 7:25 am
Forum: Automation, sensing and robotics
Topic: Slice of Pi/o and ADC
Replies: 1
Views: 868

Re: Slice of Pi/o and ADC

Let me explain more clear with a picture. Here is the image of my drawing: http://danielpinnell.com/raspberry%20pi.jpg The image posted here is small but you can click the link to see the full size of it: http://danielpinnell.com/raspberry%20pi.jpg Anyone have attempted this or is working on somethi...
by darthvazor
Fri Mar 08, 2013 8:25 pm
Forum: Automation, sensing and robotics
Topic: Slice of Pi/o and ADC
Replies: 1
Views: 868

Slice of Pi/o and ADC

Does anyone have tried use both ADC chip and Slice of Pi/o (MCP23017 I/O Expander) at same time? ADC Chip: https://www.adafruit.com/products/856 Slice of Pi/o: http://shop.ciseco.co.uk/k002-slice-of-pi-o/ The reason I asked is because my project will use a lot of temperature sensors while control ma...

Go to advanced search