Go to advanced search

by Douglas6
Wed Feb 26, 2014 4:30 pm
Forum: Troubleshooting
Topic: How to send text to the raspberry Pi via Bluetooth?
Replies: 6
Views: 7156

Re: How to send text to the raspberry Pi via Bluetooth?

I believe the reason why this could not be working is because both the app and the Pi are communicating in different ways as the Pi is communicating over the socket layer and I believe the app is not (as it is not asking for a port). That would be my guess too, but I know nothing about App Inventor...
by Douglas6
Wed Feb 26, 2014 4:06 pm
Forum: General discussion
Topic: Raspberry Pi Bluetooth 4 USB Dongle
Replies: 4
Views: 1527

Re: Raspberry Pi Bluetooth 4 USB Dongle

I have one that looks very similar to the first one (CSR 4.0) which seems to be working, mostly. But unless you need 4.0 for something special, I'd probably stick with a 2.0 dongle; generally cheaper and better supported.
by Douglas6
Wed Feb 26, 2014 2:54 pm
Forum: Beginners
Topic: Bluetooth Device Manager Connect as A2DP Device
Replies: 10
Views: 7943

Re: Bluetooth Device Manager Connect as A2DP Device

And the hci0 status and services look good. Could something have changed on the Android end? What else might have changed between the time it was working and now? When investigating with command line tools like bluez-test-input, it's best to exit from X, which has it's own bluetooth manager running ...
by Douglas6
Wed Feb 26, 2014 2:19 pm
Forum: Beginners
Topic: Raspberry Pi as automated UPnP renderer
Replies: 7
Views: 1879

Re: Raspberry Pi as automated UPnP renderer

Well, it might be a bit more complicated with UPnP. The usual UPnP renderer for the Pi, GMediaRender, is just that, a renderer. To control it, you need a control point, and I'm not aware of one for the Pi (someone please correct me.) Not yet anyway (It's on my list). On the other hand, it is easy wi...
by Douglas6
Tue Feb 25, 2014 10:07 pm
Forum: Troubleshooting
Topic: i2c not working on RPi A (V2)
Replies: 3
Views: 779

Re: i2c not working on RPi A (V2)

It looks to me like I2C is up and running fine on the Pi, I I would suspect your connections to the device.
What's an example of an I2C device you have connected, and just how did you wire it?
by Douglas6
Tue Feb 25, 2014 7:27 pm
Forum: Beginners
Topic: Bluetooth Device Manager Connect as A2DP Device
Replies: 10
Views: 7943

Re: Bluetooth Device Manager Connect as A2DP Device

What is the output from

Code: Select all

hciconfig -a
What is the output from

Code: Select all

sdptool browse local
?
by Douglas6
Mon Feb 24, 2014 5:45 am
Forum: General discussion
Topic: I am considering buying a pi
Replies: 12
Views: 1597

Re: I am considering buying a pi

hmhsbritannic12 wrote:Hi, I have been considering buying a pi for a few days now. I enjoy tinkering with computers and fixing things, and I have some experience with linux
Yes
by Douglas6
Mon Feb 24, 2014 4:39 am
Forum: Staffroom, classroom and projects
Topic: Teaching kids real math with computers
Replies: 11
Views: 7516

Re: Teaching kids real math with computers

Wow :) Thanks, Jim, I don't think there's a sentence there I disagree with, and I'm glad to hear it all, and hope others will listen. What struck me about this thread was the association of math(s) with computing, and computing with math(s), which I think is prevalent but misguided, and I think you ...
by Douglas6
Mon Feb 24, 2014 1:14 am
Forum: Staffroom, classroom and projects
Topic: Teaching kids real math with computers
Replies: 11
Views: 7516

Re: Teaching kids real math with computers

Clearly Jim Manley is MUCH more tuned in to this than myself, but from a theoretical standpoint, I don't see the applicability of computers to math(s) anymore than to philosophy, or I suppose literature. Excepting of course you can look up novels and philosophers much more easily with a computer, an...
by Douglas6
Sun Feb 23, 2014 8:13 pm
Forum: Gaming
Topic: Pinball USB Controller for Windows via RPi + Arcade Buttons
Replies: 27
Views: 12847

Re: Pinball USB Controller for Windows via RPi + Arcade Butt

Ok, I have a minute to look more closely at your code and results. It looks like you ARE sending both input records for press and release, but they're backwards. Take a look at your two 'NUDGE LEFT' events: NUDGE LEFT gpio 23: 0 [161, 1, [0, 0, 0, 0, 0, 0, 0, 0], 0, 0, 0, 0, 0, 0, 0] NUDGE LEFT gpio...
by Douglas6
Sun Feb 23, 2014 3:59 pm
Forum: Gaming
Topic: Pinball USB Controller for Windows via RPi + Arcade Buttons
Replies: 27
Views: 12847

Re: Pinball USB Controller for Windows via RPi + Arcade Butt

From your description I suspect a combination of two things: switch bounce and key repeat. Make sure you have some debounce timeout, start large and tune it down for performance. And assuming your buttons are wired to GND, the pull-ups should be on. Secondly key repeat. Each key stroke requires 2 in...
by Douglas6
Sun Feb 23, 2014 2:35 am
Forum: Python
Topic: GPIO help
Replies: 8
Views: 1810

Re: GPIO help

I have no experience with this, but you might want to look at the PyUserInput module
by Douglas6
Sat Feb 22, 2014 8:19 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Resistors Required?
Replies: 5
Views: 2666

Re: Resistors Required?

I find the easiest way is to put a button between a GPIO and GND, no (external) resistor required (but see below). Make double sure it's a GPIO pin and not a power pin. Then setup the GPIO as INPUT, with it's internal 'pull-up' resistor, and remember in your code that '1' is 'off' (unpressed) and '0...
by Douglas6
Sat Feb 22, 2014 6:56 pm
Forum: Gaming
Topic: Pinball USB Controller for Windows via RPi + Arcade Buttons
Replies: 27
Views: 12847

Re: Pinball USB Controller for Windows via RPi + Arcade Butt

Ok, here's the latest state of my Bluetooth HID code. This is very much a work in progress, but I'm posting the code in the hopes that others may find it useful and hopefully improve on it. Some set-up is required (I'm assuming the required software has been installed). For clarity, I've disabled al...
by Douglas6
Sat Feb 22, 2014 5:01 pm
Forum: Other projects
Topic: Pi in a Pocket
Replies: 1
Views: 2309

Re: Pi in a Pocket

Very elegant build and a nice write-up, thanks!
by Douglas6
Fri Feb 21, 2014 10:47 pm
Forum: Gaming
Topic: Pinball USB Controller for Windows via RPi + Arcade Buttons
Replies: 27
Views: 12847

Re: Pinball USB Controller for Windows via RPi + Arcade Butt

Yup, I had the Pi typing "Hello World" all over WordPad last night. The procedure is not so automated as I would like (setting the adapter class, adding the service record, setting discoverable and pairing must currently be done from the command-line, but you could add some python sys.os() calls or ...
by Douglas6
Fri Feb 21, 2014 5:07 pm
Forum: Java
Topic: STICKY: Free Java on RaspberryPi training course from Oracle
Replies: 14
Views: 42524

Re: Free Java on RaspberryPi training course from Oracle

Looks like fun, I'm enrolled. Thanks for the heads up.
by Douglas6
Fri Feb 21, 2014 5:58 am
Forum: Gaming
Topic: Pinball USB Controller for Windows via RPi + Arcade Buttons
Replies: 27
Views: 12847

Re: Pinball USB Controller for Windows via RPi + Arcade Butt

Turns out Win7 doesn't like my Pi's CSR 4.0 BTLE adapter. I replaced it with a generic 2.0 dongle and things are working fine now. I cleaned up the code a bit, let me know if you want me to post it.
by Douglas6
Thu Feb 20, 2014 9:05 pm
Forum: Staffroom, classroom and projects
Topic: Call to Teachers in the USA
Replies: 2
Views: 2817

Call to Teachers in the USA

I've been a regular donor on DonorsChoose.org for a couple of years. This is a fine organization that facilitates crowd-funding for individual school projects in the United States. I continually see projects such as "My classroom needs an iPad/Kindle Fire!" which I routinely ignore, but I have yet t...
by Douglas6
Thu Feb 20, 2014 7:50 pm
Forum: Beginners
Topic: SD Card Class
Replies: 2
Views: 393

Re: SD Card Class

But no worse (except for the price.) Since you already have it, that card should work fine with the Pi, but not all SD cards are equal, even apart from class and size. Give it a try, should work.
by Douglas6
Thu Feb 20, 2014 8:58 am
Forum: Beginners
Topic: Most 1A power adaptors are rubbish
Replies: 10
Views: 2157

Re: Most 1A power adaptors are rubbish

I've been very happy with the supplies from Adafruit. 1 amp, and 5.25 volts, which overcomes most cable problems. 6 bucks US; not too much for peace of mind. The blue indicator LED is bright enough to attract UFOs, but that's par for the course. You could land an airplane in my apartment at night.
by Douglas6
Thu Feb 20, 2014 7:15 am
Forum: Gaming
Topic: Pinball USB Controller for Windows via RPi + Arcade Buttons
Replies: 27
Views: 12847

Re: Pinball USB Controller for Windows via RPi + Arcade Butt

Some small success here. I've got it working connected to Ubuntu (running in a VMBox on the laptop). Still no joy with Win7.
by Douglas6
Wed Feb 19, 2014 2:38 pm
Forum: Gaming
Topic: Pinball USB Controller for Windows via RPi + Arcade Buttons
Replies: 27
Views: 12847

Re: Pinball USB Controller for Windows via RPi + Arcade Butt

You're ahead of me. I can't get Win7 to pair without getting the yellow '!' and a 'device was not properly installed' error.

Are you sending the full 9 byte input record?
by Douglas6
Tue Feb 18, 2014 3:02 am
Forum: Gaming
Topic: Pinball USB Controller for Windows via RPi + Arcade Buttons
Replies: 27
Views: 12847

Re: Pinball USB Controller for Windows via RPi + Arcade Butt

You could have done this with a minimusAVR and KADE firmware in about 10 seconds. But if you just wanted to exercise your brain then... mission accomplished. Checks the sign on the door - "Raspberry Pi", OK, I thought I may have been in the wrong place. Another 'buy more hardware' solution may have...
by Douglas6
Mon Feb 17, 2014 8:53 pm
Forum: Python
Topic: (Problem solved) Printout results differ from examples
Replies: 9
Views: 1266

Re: Printout results differ from examples

That's a can of worms. I don't believe the differences are big for learning purposes. About half the replies will say "Yes, meet the future, get used to 3", and the other half will say "Stick with what works, let someone else bleed on the edge for awhile". The problem is that some 'standard' modules...

Go to advanced search