Go to advanced search

by metachris
Tue Nov 19, 2013 3:36 pm
Forum: Troubleshooting
Topic: RPIO error
Replies: 10
Views: 1951

Re: RPIO error

Hello!

Thanks for posting. Can you try making the console window larger? Perhaps this could help.

Cheers,
Chris
by metachris
Sun Mar 17, 2013 4:28 pm
Forum: Raspbian
Topic: Adding RPIO to the Raspbian repository
Replies: 6
Views: 1106

Re: Adding RPIO to the Raspbian repository

I've just uploaded the key to the Ubuntu keyserver; should propagate shortly, and will connect it in the web of trust.
by metachris
Fri Mar 15, 2013 1:08 pm
Forum: Raspbian
Topic: Adding RPIO to the Raspbian repository
Replies: 6
Views: 1106

Re: Adding RPIO to the Raspbian repository

AutoStatic wrote:No, looks good to me. Only Standards-Version might be bumped (it's now at 3.8.4).
Good catch, thanks! I've updated RPIO to 0.10.1 with the current Standards-Version of 3.9.3.1 (comes from here:)

Code: Select all

$ apt-cache show debian-policy | grep Version
Version: 3.9.3.1
by metachris
Fri Mar 15, 2013 11:57 am
Forum: Automation, sensing and robotics
Topic: Generate 2 pwm signals
Replies: 33
Views: 10728

Re: Generate 2 pwm signals

@metachris : Is it a sort of software generated signals ? It seems to be a nice way to do it programmatically. I will do some researches on DMA even if I would prefer the analogue way. Because my goal when I ordered my RPi (which I will receive very soon !) was to improve myself in electronics :) A...
by metachris
Fri Mar 15, 2013 9:38 am
Forum: Raspbian
Topic: Adding RPIO to the Raspbian repository
Replies: 6
Views: 1106

Adding RPIO to the Raspbian repository

I'd like to start a discussion about adding RPIO to the Raspbian repository. RPIO is an advanced GPIO module with GPIO interrupts, TCP socket interrupts, PWM via DMA and more . A few days ago I've implemented Debian .deb package builds into the build-toolchain, and I'm curious about interest to add ...
by metachris
Fri Mar 15, 2013 9:22 am
Forum: Python
Topic: functions in Python
Replies: 8
Views: 1216

Re: functions in Python

I'd suggest to first start with a Python tutorial so that you can get a good understanding of the basics (functions, etc), and then move on to the real project. "Learn Python the Hard Way" is a free book for beginners -- this is the section about functions: http://learnpythonthehardway.org/book/ex19...
by metachris
Thu Mar 14, 2013 8:52 pm
Forum: Automation, sensing and robotics
Topic: Generate 2 pwm signals
Replies: 33
Views: 10728

Re: Generate 2 pwm signals

You can also do PWM via DMA with RPIO . The C source started with Richard Hirst's servod.c, and supports all 15 DMA channels, a pulse-width resolution of down to 1us, and multiple signals on as many GPIO's as you want. http://pythonhosted.org/RPIO/pwm_py.html http://www.raspberrypi.org/phpBB3/viewto...
by metachris
Thu Mar 14, 2013 6:24 pm
Forum: Python
Topic: RPIO: An extension of RPi.GPIO with interrupts, PWM and more
Replies: 84
Views: 18775

Re: RPIO: An extension of RPi.GPIO with interrupts, PWM and

Glad it's working for you! I don't see any debounce issues on my circuits when I use a proper pullup or -down resistor. If you are sure your wiring is correct (eg. like in this example ), and you've double checked that no cold soldier points exist, the conclusion would be that the buttons are indeed...
by metachris
Thu Mar 14, 2013 6:13 pm
Forum: Python
Topic: Pygame ideas
Replies: 1
Views: 530

Re: Pygame ideas

You could take it step by step like this, to get a really good understanding of the basics: Create a blank fullscreen window Draw a line following the mouse Draw an image on the screen Move/rotate the image when a keyboard button is pressed Play some sounds when keyboard buttons are pressed Add a si...
by metachris
Thu Mar 14, 2013 3:15 pm
Forum: Python
Topic: RPIO: An extension of RPi.GPIO with interrupts, PWM and more
Replies: 84
Views: 18775

Re: RPIO: An extension of RPi.GPIO with interrupts, PWM and

Re sedj7278: with RPIO 0.10.0, you can write the code like this: import RPIO from time import sleep def gpio_callback(gpio, val): """callback routing from gpio input4""" print "button pressed" RPIO.wait_for_interrupts(threaded=True) RPIO.add_interrupt_callback(4, gpio_callback, edge='rising', deboun...
by metachris
Thu Mar 14, 2013 3:11 pm
Forum: Python
Topic: RPIO: An extension of RPi.GPIO with interrupts, PWM and more
Replies: 84
Views: 18775

Re: RPIO: An extension of RPi.GPIO with interrupt management

I've just released RPIO v0.10.0 with the following updates: Auto-cleanup on exit (also shuts down RPIO.wait_for_interrupts(threaded=True)) Bugfix in cpuinfo.c: correctly trim over-voltage header rpio-curses: help shows raspberry sysinfo switched argument ordering of wait_for_interrupts to (wait_for_...
by metachris
Thu Mar 14, 2013 1:24 pm
Forum: General discussion
Topic: Witch Revision is this!?!?!
Replies: 5
Views: 1514

Re: Witch Revision is this!?!?!

The extra 1000000 on the revision code means that the warranty has been voided by forced overclocking and overvolting. http://www.raspberrypi.org/phpBB3/viewtopic.php?p=176865#p176865 I thought the warranty is not voided by overclocking. The '1000' header represents the over-volting, your revision ...
by metachris
Thu Mar 14, 2013 1:17 pm
Forum: Python
Topic: Unicode Decode
Replies: 6
Views: 4450

Re: Unicode Decode

It seems that you are using an utf-8 encoded string which Python tries to decode as ascii (and fails because it includes non-ascii characters). If that is the case you just need to manually set the decoder to utf-8. Here is an example: >>> a = '(\xef\xbd\xa1\xef\xbd\xa5\xcf\x89\xef\xbd\xa5\xef\xbd\x...
by metachris
Thu Mar 14, 2013 1:05 am
Forum: Python
Topic: RPIO: An extension of RPi.GPIO with interrupts, PWM and more
Replies: 84
Views: 18775

Re: RPIO: An extension of RPi.GPIO with interrupt management

Ah great you mention the daemon. If you kill it with a signal, the finally block isn't executed anyway. But it does not really matter, since the call to cleanup is optional (ie. no harm done when not calling it). The stop_waiting_for_interrupts() call is also unnecessary since it just stops the epol...
by metachris
Wed Mar 13, 2013 10:59 pm
Forum: Python
Topic: RPIO: An extension of RPi.GPIO with interrupts, PWM and more
Replies: 84
Views: 18775

Re: RPIO: An extension of RPi.GPIO with interrupt management

By the way, this is the code you posted before how I'd write it with the current RPIO 0.9.6: import RPIO from time import sleep def gpio_callback(gpio, val): """callback routing from gpio input4""" print "button pressed" RPIO.add_interrupt_callback(4, gpio_callback, edge='rising', debounce_timeout_m...
by metachris
Wed Mar 13, 2013 8:54 pm
Forum: Python
Topic: RPIO: An extension of RPi.GPIO with interrupts, PWM and more
Replies: 84
Views: 18775

Re: RPIO: An extension of RPi.GPIO with interrupt management

I've just added a few bugfixes, and released RPIO 0.9.6 ! This is what changed: Added ``debounce_timeout_ms`` argument to ``RPIO.add_interrupt_callback(..)`` Added ``threaded`` argument to ``RPIO.wait_for_interrupts(..)`` Interrupt callbacks now receive integer values ``0`` or ``1`` instead of strin...
by metachris
Wed Mar 13, 2013 8:07 pm
Forum: Python
Topic: RPIO: An extension of RPi.GPIO with interrupts, PWM and more
Replies: 84
Views: 18775

Re: RPIO: An extension of RPi.GPIO with interrupt management

I'm just running the latests tests right now; RPIO 0.9.5 will be out within the hour; i'll post here when its available. Your code looks good I think; you can replace the Thread with `RPIO.wait_for_interrupts(threaded=True)`, and you don't need to call setmode(BCM) since that's already done by defau...
by metachris
Tue Mar 12, 2013 11:47 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: RPIO.PWM: Precise PWM via DMA for servos and more (1µs res)
Replies: 15
Views: 28116

Re: RPIO.PWM: Precise PWM via DMA for servos and more (1µs r

Thanks for the suggestion about the angle method for Futaba servos. I was wondering whether this same angle method is used only by Futaba or a wider adopted standard. If it is only Futaba, I'll need to think of a way to make it clear to users (eg. servo.set_angle(angle=30, servo_type=SERVO_TYPE_FUTA...
by metachris
Tue Mar 12, 2013 2:00 am
Forum: Python
Topic: RPIO: An extension of RPi.GPIO with interrupts, PWM and more
Replies: 84
Views: 18775

Re: RPIO: An extension of RPi.GPIO with interrupt management

What I can do now is to add .deb packages to the RPIO build toolchain, to produce them with every release. See where it goes from there; I'm open to suggestions.
by metachris
Mon Mar 11, 2013 11:46 am
Forum: Python
Topic: RPIO: An extension of RPi.GPIO with interrupts, PWM and more
Replies: 84
Views: 18775

Re: RPIO: An extension of RPi.GPIO with interrupt management

Thank you for this excellent suggestion! I will implement that today and push it with a few other minor improvements tonight or tomorrow.
by metachris
Sun Mar 10, 2013 5:38 pm
Forum: Python
Topic: Crosspost, New: Pulse-width modulation with RPIO.PWM
Replies: 5
Views: 6909

Crosspost, New: Pulse-width modulation with RPIO.PWM

Sorry for crossposting, but I think this may be interesting for a lot of people not reading the Interfacing forum. I'm happy to announce that RPIO now includes PWM via DMA for very precise semi-hardware PWM. RPIO.PWM supports pulses with a maximum resolution of 1µs, all 15 available DMA channels and...
by metachris
Sun Mar 10, 2013 5:31 pm
Forum: Python
Topic: GPIO input not working in BCM mode?
Replies: 3
Views: 1380

Re: GPIO input not working in BCM mode?

http://elinux.org/RPi_Low-level_periphe ... .28GPIO.29 (note that the image shows Rev1 and the table below both revisions)
by metachris
Sat Mar 09, 2013 9:04 pm
Forum: Python
Topic: RPIO: An extension of RPi.GPIO with interrupts, PWM and more
Replies: 84
Views: 18775

Re: RPIO: An extension of RPi.GPIO with interrupt management

Code: Select all

$ sudo apt-get install python3-setuptools
$ easy_install3 -U RPIO
by metachris
Sat Mar 09, 2013 8:19 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: RPIO.PWM: Precise PWM via DMA for servos and more (1µs res)
Replies: 15
Views: 28116

Re: RPIO.PWM: Precise PWM via DMA for servos and more (1µs r

The datasheet (http://www.raspberrypi.org/wp-content/uploads/2012/02/BCM2835-ARM-Peripherals.pdf) states on page 39 that DMA Channel 15 however, is physically removed from the other DMA Channels and so has a different address base of 0x7EE05000. But there is no register map for it under point 4.2.1....
by metachris
Sat Mar 09, 2013 7:47 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: RPIO.PWM: Precise PWM via DMA for servos and more (1µs res)
Replies: 15
Views: 28116

RPIO.PWM: Precise PWM via DMA for servos and more (1µs res)

I'm happy to announce that RPIO now includes PWM via DMA for very precise semi-hardware PWM. RPIO.PWM supports pulses with a maximum resolution of 1µs, all 15 available DMA channels and any number of GPIO's. Since it uses the same on-board PWM module as the sound card it may interfere with sound. RP...

Go to advanced search