Go to advanced search

by drumminhands
Fri Jun 05, 2015 7:09 pm
Forum: Python
Topic: Lost in threading and button interrupts
Replies: 3
Views: 946

Re: Lost in threading and button interrupts

Thanks for the feedback. I've done that plenty of times with a microcontroller, but I didn't know what was the best approach with the RPI. I ended up getting something working for press to do one thing, hold and release to do another thing. Here is my test code: #!/usr/bin/env python2.7 import time ...
by drumminhands
Fri Jun 05, 2015 2:46 am
Forum: Python
Topic: Lost in threading and button interrupts
Replies: 3
Views: 946

Lost in threading and button interrupts

So, I'm getting lost on threading and interrupts. Here is some pseudo code to help explain import threading import time from time import sleep import os import pygame import RPi.GPIO as GPIO GPIO.setmode(GPIO.BOARD) GPIO.setup(22, GPIO.IN, pull_up_down=GPIO.PUD_UP) def countdown(): #I have this work...
by drumminhands
Fri May 22, 2015 11:36 pm
Forum: Python
Topic: Python and Flickr API Authentication
Replies: 6
Views: 2933

Re: Python and Flickr API Authentication

In case anyone wants the final code, go here: https://github.com/drumminhands/drumminhands_piFlickr
by drumminhands
Fri May 22, 2015 5:41 pm
Forum: Python
Topic: Python and Flickr API Authentication
Replies: 6
Views: 2933

Re: Python and Flickr API Authentication

elParaguayo you nailed it. The error had nothing to do with the input of the authentication code. It had everything to do with the perms value not being unicode. That one character 'u' fixed it.

Thank you, thank you, thank you.
by drumminhands
Fri May 22, 2015 12:32 am
Forum: Python
Topic: How to install Python 2.7.9?
Replies: 16
Views: 12768

Re: How to install Python 2.7.9?

I think I have a reason. I'm getting an Unicode error while trying to authenticate a Flickr api. My thread about it is here:

viewtopic.php?f=32&t=111103

Could I potentially mess up the pi if I do upgrade?
by drumminhands
Thu May 21, 2015 2:15 am
Forum: Python
Topic: Python and Flickr API Authentication
Replies: 6
Views: 2933

Re: Python and Flickr API Authentication

Thank you. I'll ignore the python warning about versions. And if I add import webbrowser then I can launch the browser and authorize. Yeah. But now I have a new problem. When I try to type in the key, I get an error that the entry is not unicide text. But if I run a check, it is indeed unicode. I'm ...
by drumminhands
Wed May 20, 2015 10:48 pm
Forum: Python
Topic: Python and Flickr API Authentication
Replies: 6
Views: 2933

Python and Flickr API Authentication

I'm struggling to post a .jpg to my Flickr account via Python on the Raspberry Pi. I have installed flickrapi (http://stuvel.eu/media/flickrapi-docs/documentation/). I have api_key and api_secret from Flickr. If I run this code, on my Mac, I get a browser to launch and I can authenticate. Then I can...
by drumminhands
Tue Jun 17, 2014 1:51 pm
Forum: Python
Topic: Help with queue to upload to tumblr
Replies: 3
Views: 1677

Re: Help with queue to upload to tumblr

FYI, the whole project is finished. See the results and code here: http://www.drumminhands.com/2014/06/15/ ... oto-booth/
by drumminhands
Tue Jun 17, 2014 1:50 pm
Forum: Python
Topic: help on pygame displaying jpgs
Replies: 4
Views: 1783

Re: help on pygame displaying jpgs

Also, FYI, the whole project is working. See the results and code here: http://www.drumminhands.com/2014/06/15/ ... oto-booth/
by drumminhands
Mon Jun 16, 2014 5:22 pm
Forum: Graphics, sound and multimedia
Topic: DIY Photo Booth Instructions
Replies: 0
Views: 1261

DIY Photo Booth Instructions

Hey all, I recently built a DIY photo booth that automatically posts animated gifs to Tumblr. Of the course heart of it uses a Raspberry Pi. If you are interested in building your own, see my instructions here: http://www.drumminhands.com/2014/06/15/raspberry-pi-photo-booth/ I'd be curious if others...
by drumminhands
Thu May 22, 2014 4:58 pm
Forum: Python
Topic: help on pygame displaying jpgs
Replies: 4
Views: 1783

Re: help on pygame displaying jpgs

Thanks for pointing me in the right direction. The code below works great. #!/usr/bin/env python import time import pygame from signal import alarm, signal, SIGALRM, SIGKILL now = "20140522125224" w = 800 #width of screen h = 480 #height of screen def display_pics(jpg_group): # this section is an un...
by drumminhands
Wed May 21, 2014 2:41 am
Forum: Python
Topic: help on pygame displaying jpgs
Replies: 4
Views: 1783

help on pygame displaying jpgs

I need some help with pygame. I have the following code to display a loop of jpgs. #!/usr/bin/env python import pygame import time pygame.init() w = 500 h = 375 size=(w,h) screen = pygame.display.set_mode(size,pygame.FULLSCREEN) c = pygame.time.Clock() # create a clock object for timing now = "20140...
by drumminhands
Sun May 04, 2014 2:32 am
Forum: Python
Topic: Help with queue to upload to tumblr
Replies: 3
Views: 1677

Re: Help with queue to upload to tumblr

Thanks. Your code kept quitting without sending an email for me. I could not figure out why. However, I found this post, which worked well.

http://stackoverflow.com/questions/1895 ... hon-script
by drumminhands
Sat May 03, 2014 12:18 am
Forum: Python
Topic: Help with queue to upload to tumblr
Replies: 3
Views: 1677

Help with queue to upload to tumblr

I'm working on a photo booth project that automatically uploads animated gifs to tumblr. I have most of the code working, but the actual upload part is taking too long, approximately 2 minutes. I followed instructions here: http://www.maketecheasier.com/access-tumblr-flickr-youtube-from-command-line...
by drumminhands
Thu Jul 18, 2013 6:20 pm
Forum: Gaming
Topic: Atari to USB Driver
Replies: 82
Views: 25256

Re: Atari to USB Driver

Sorry, this is way over my head. I ended up buying this part and it works just fine on the Pi: http://www.raphnet-tech.com/products/atari2usb/
by drumminhands
Mon Jul 15, 2013 9:41 pm
Forum: General discussion
Topic: Voltmeter Recommendations
Replies: 11
Views: 2564

Voltmeter Recommendations

I'm looking to purchase my first voltmeter. Any recommendations? I don't expect to buy the top of the line, but I don't want a piece of crud. Anything I should look for? Or particular models you like?
by drumminhands
Thu Jul 04, 2013 8:57 pm
Forum: Gaming
Topic: glint-nes Jan. 2013 release - download and demo video
Replies: 49
Views: 9003

Re: glint-nes Jan. 2013 release - download and demo video

Also, for those using the Mayflash Wii Classic Controller USB adapter ( http://tinyurl.com/WiiCCUSB ), adding these lines to the retroarch.cfg will give you proper button mappings, as well as set the home button on Player 1's controller to exit the emulator and return to glint-es. input_player1_joy...
by drumminhands
Sat Jun 29, 2013 4:38 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: thinking about interfacing camera modules with raspberry pi
Replies: 21
Views: 11020

Re: thinking about interfacing camera modules with raspberry

Like Pei, I too am very interested in this topic. Any news?
by drumminhands
Sat Jun 29, 2013 4:34 pm
Forum: Camera board
Topic: Frame synchronisation
Replies: 82
Views: 35059

Re: Frame synchronisation

renambot wrote: Here's a quick video captured with two PIs and two cameras for stereo 3D:
http://youtu.be/S61ktNCexwg

...

I'll try to post some photos of the setup later.
That's a lot of fun. Love to see the setup photos and if you are willing to share any code.
by drumminhands
Tue Mar 19, 2013 6:13 pm
Forum: Gaming
Topic: Atari to USB Driver
Replies: 82
Views: 25256

Re: Atari to USB Driver

Oh, I have to copy the kernel and the modules over to boot. I did not do that. I'm not sure which folders I should copy over to. I'll have to do some more digging to understand. Thanks for all the help so far. I really appreciate you giving the time to a noob.
by drumminhands
Tue Mar 19, 2013 4:16 pm
Forum: Gaming
Topic: Atari to USB Driver
Replies: 82
Views: 25256

Re: Atari to USB Driver

I think so, but this is definitely a new place for me. I've never rebuilt a kernel before. I tried this part: pi@raspberrypi ~/hid-atari-retrobit-master $ rmmod ./hid-atari-retrobit.ko Error: Module hid_atari_retrobit is not currently loaded But it did not take. I was making the kernel following the...
by drumminhands
Tue Mar 19, 2013 1:13 pm
Forum: Gaming
Topic: Atari to USB Driver
Replies: 82
Views: 25256

Re: Atari to USB Driver

sudo rmmod usbhid has the same problem. See my 3-17 code output. I had already tried it.
by drumminhands
Sun Mar 17, 2013 5:22 pm
Forum: Gaming
Topic: Atari to USB Driver
Replies: 82
Views: 25256

Re: Atari to USB Driver

obcd, thanks for the info. I have been testing using ssh and no usb ports logged in. First, I booted again this morning with nothing plugged into the usb at all and ssh in: pi@raspberrypi ~ $ lsusb Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. Bus 001 Device 001: ID 1d6b:0002 Linux Fo...
by drumminhands
Sat Mar 16, 2013 10:02 pm
Forum: Gaming
Topic: Atari to USB Driver
Replies: 82
Views: 25256

Re: Atari to USB Driver

saberman, I have seen that post too. I think that I want to explore this route first. I'd like to be able to use the hardware if possible. Maybe someone can help me out. I've made it a bit further. I rebuilding directly on the pi, which does take some time. I'm following this post on rebuilding the ...
by drumminhands
Sat Mar 09, 2013 6:30 pm
Forum: Gaming
Topic: Atari to USB Driver
Replies: 82
Views: 25256

Atari to USB Driver

I could use a little help. I'm new to both the Raspberry Pi and to Linux. I have the Pi running Stela with no problems. I purchased a USB device to allow me to plug in the original Atari controllers http://www.amazon.com/gp/product/B007ZS35CU/. I like this one because it uses one USB port for two co...

Go to advanced search