Go to advanced search

by DPaul
Fri Feb 09, 2018 8:33 am
Forum: Beginners
Topic: mini usb leds
Replies: 17
Views: 2031

Re: mini usb leds

At long last they have arrived from China!
Seem to bee very OK.
I cut off one end and stripped the wires, to find the 4 colors i was expecting.

Image

Next stop, add some usb ports to the pie zero !

Paul
by DPaul
Fri Jan 12, 2018 10:40 am
Forum: Beginners
Topic: mini usb leds
Replies: 17
Views: 2031

Re: mini usb leds

Don't know were in the world you are but you can get them from china for 99P https://www.ebay.co.uk/itm/USB-2-0-A-Male-to-A-Female-Socket-Panel-Mount-Adapter-Extension-Port-Cable-CG/162273388290?hash=item25c83f6702:g:QQ4AAOSwRH5XKbUN I ended up buying these. I ordered 5 for the price of 1 i found l...
by DPaul
Tue Jan 09, 2018 11:18 am
Forum: Beginners
Topic: mini usb leds
Replies: 17
Views: 2031

Re: mini usb leds

Yes , i have seen the ones on the ebay UK site, but shipping is from Hong-Kong. They will take a month or more to get here. (here = where i can almost see Albion) Who has that kind of patience ? :? Dismantling has ben done on youtube of course : https://www.youtube.com/watch?v=4RfMiyjQ12s fun! Paul
by DPaul
Tue Jan 09, 2018 8:36 am
Forum: Beginners
Topic: mini usb leds
Replies: 17
Views: 2031

Re: mini usb leds

I have found an inordinate amount of usb sockets on the net. Some even are "power socket only". No data ! If you want one that is also "easy to install in a small case", it's rare. (Not if you want to pay lots of money (relatively)). It's actually a lot cheaper to buy a 5 slot usb hub. Because, if i...
by DPaul
Sun Jan 07, 2018 4:41 pm
Forum: Beginners
Topic: mini usb leds
Replies: 17
Views: 2031

Re: mini usb leds

Another 90 eurocent investment ! :shock:

Paul
by DPaul
Sun Jan 07, 2018 3:39 pm
Forum: Beginners
Topic: mini usb leds
Replies: 17
Views: 2031

Re: mini usb leds

Could a NPN BC548 transistor do ?
Got a bunch of them

thx,
paul
by DPaul
Sun Jan 07, 2018 8:23 am
Forum: Beginners
Topic: mini usb leds
Replies: 17
Views: 2031

Re: mini usb leds

OK, thanks.
Got my Pi zero W in yesterday, so i know what to do in the next few days :D

Paul
by DPaul
Sun Jan 07, 2018 7:47 am
Forum: Beginners
Topic: mini usb leds
Replies: 17
Views: 2031

Re: mini usb leds

Wow, thanks. Using all of my three-month experience with these matters, am i correct in guessing: a) This is a front view b) 99% of those usb sockets in the world have the same layout c) I leave the data pins alone d) if i choose to control on/off programmatically, i can do that like any other littl...
by DPaul
Sat Jan 06, 2018 11:03 am
Forum: Beginners
Topic: mini usb leds
Replies: 17
Views: 2031

Re: mini usb leds

Thx, good idea, i did not know those things could be purchased as sockets.
They seem to have 4 contacts. Now i just have to find a wiring scheme :)

Paul
by DPaul
Fri Jan 05, 2018 10:09 am
Forum: Beginners
Topic: mini usb leds
Replies: 17
Views: 2031

mini usb leds

Hi, Before i do anything stupid: I have a number of USB mini flex lights, the kind that you stick into your laptop for lighting the keyboard. Like so: https://www.amazon.com/Flexible-USB-Light-Keyboard-Portable/dp/B0191S9I4K For my project i plan to use a Pi zero W, where i am in short supply of USB...
by DPaul
Wed Jan 03, 2018 9:44 am
Forum: Beginners
Topic: pyBluez question
Replies: 0
Views: 435

pyBluez question

Hi, (I have asked same question over at the Python forum, but without succes) I'm using a RPi 3 and Python 3.5, to try and exchange data between the RPi and my laptop (win 10). I've installed pyBluez succesfully and downloaded a simple prog. (see below) When i run it i keep getting an error message ...
by DPaul
Sun Dec 31, 2017 10:56 am
Forum: Beginners
Topic: which pi would you recommend ?
Replies: 1
Views: 263

which pi would you recommend ?

Hi, My next project is the same as my current, only no wires, bluetooth ! What i have working now (for several years) could be described as a multiple-choice (~quiz) setup. A program runs on a laptop connected to a projector. A question is projected, possible answers eg. range 1/9. 3 commercial usb ...
by DPaul
Wed Dec 27, 2017 10:49 am
Forum: Beginners
Topic: can RPi/python tell which keyboard has pressed a key when I use multiple keyboards.
Replies: 6
Views: 712

Re: USB question

After days of searching, i found that if you want to identify 3 identical usb devices (numerical keypads), you need to create a rules file, based upon the USB hierarchy and that should do the trick. So i created "11-numpad.rules" : looking like this: SUBSYSTEM=="tty", ATTRS{idVendor}=="04d9", ATTRS{...
by DPaul
Fri Dec 22, 2017 4:49 pm
Forum: Beginners
Topic: can RPi/python tell which keyboard has pressed a key when I use multiple keyboards.
Replies: 6
Views: 712

Re: USB question

Good show, this stuff works.

My USB ports on the pi have a number now: 004, 005, 006 and also 42
By inserting stuff into the slots, you can see who is who.

Using this in code: working on that, should be possible.

thx,
Paul
by DPaul
Thu Dec 21, 2017 2:45 pm
Forum: Beginners
Topic: can RPi/python tell which keyboard has pressed a key when I use multiple keyboards.
Replies: 6
Views: 712

Re: USB question

I was told to look into HID device identification ! :D If you want to know: There are plenty of examples why you want to connect multiple keypads to 1 PC /Pi /..... e.g. Imagine you are running a quiz show with three candidates. They each have a numeric keypad, and the answer is always a choice from...
by DPaul
Thu Dec 21, 2017 6:31 am
Forum: Beginners
Topic: can RPi/python tell which keyboard has pressed a key when I use multiple keyboards.
Replies: 6
Views: 712

can RPi/python tell which keyboard has pressed a key when I use multiple keyboards.

Hi, I have an RPi 3, which has 4 USB ports. Imagine, i connect 3 standard USB keyboards or numeric keypads simultaneously. Question: can RPi/python tell which keyboard has pressed a key? Do these USB ports have a distinguishing mark of some sort to see where the input originated? No, i cannot predic...
by DPaul
Wed Dec 20, 2017 10:52 am
Forum: Beginners
Topic: Better GPIO coding?
Replies: 5
Views: 592

Re: Better GPIO coding?

:? How do you propose to fix the callbacks? You said earlier they do not work together with while loops.... All the callbacks do is switch a led off def callback_pin16(channel): GPIO.output(15,GPIO.LOW) I did that because the while loop acts as a timer, and i wanted as few statements as possible ins...
by DPaul
Wed Dec 20, 2017 10:21 am
Forum: Beginners
Topic: Better GPIO coding?
Replies: 5
Views: 592

Re: Better GPIO coding?

Hi,

Yes i had probs with callbacks, but found workarounds. (i'll get rid of them, because they are not really necessary.)
Unfortunately i did not find any source to tell me that those should not be used together.
+1 thing learned.

Still makes no difference in the while coding...

thx,
Paul
by DPaul
Wed Dec 20, 2017 9:57 am
Forum: Beginners
Topic: Better GPIO coding?
Replies: 5
Views: 592

Better GPIO coding?

Hi have 4 buttons that produce events on different GPIO pins, like this: Setup: GPIO.setup(16, GPIO.IN, pull_up_down=GPIO.PUD_DOWN) GPIO.add_event_detect(16, GPIO.RISING, callback=callback_pin16, bouncetime=500) etc... Inside a while True: loop, i have 4 if statements that react to the button presse...
by DPaul
Wed Dec 20, 2017 9:32 am
Forum: Beginners
Topic: unexpected firing gpio pin
Replies: 2
Views: 467

Re: unexpected firing gpio pin

Ok, i did some more testing, and by changing PUD_UP into PUD_DOWN in the GPIO event detection, the problem was solved.
by DPaul
Mon Dec 18, 2017 9:18 am
Forum: Beginners
Topic: unexpected firing gpio pin
Replies: 2
Views: 467

unexpected firing gpio pin

Hi, I asked a similar question once before, and it turned out to be "bouncing". This was taken care of, and poses no more prob. I now observe the following phenomenon: - I have a number of push-buttons that set a countdown clock in motion with different times (eg. 60 s, 30s, ...) - Inside a while lo...
by DPaul
Wed Dec 13, 2017 7:45 am
Forum: Beginners
Topic: How to make device standalone...
Replies: 5
Views: 900

Re: How to make device standalone...

OK, thanks.
Will try those suggestions.

Paul
by DPaul
Wed Dec 13, 2017 7:44 am
Forum: Beginners
Topic: battery pack question
Replies: 7
Views: 781

Re: battery pack question

OK, thanks for all this advice.
Of course i work on mains power now.
I only need to find a power bank that will last for approx. 2 hours,(between recharges)
when field testing begins.

Paul
by DPaul
Tue Dec 12, 2017 8:13 am
Forum: Beginners
Topic: How to make device standalone...
Replies: 5
Views: 900

How to make device standalone...

Hi, I'm ready to field test my first project. So i need to cut all wires to keyb, screen and mouse, and compile the python program. In my imaginary world, i have the device somewhere in the field, i connect the battery pack, and the thing starts performing... just like that. I've been reading about ...
by DPaul
Tue Dec 12, 2017 8:02 am
Forum: Beginners
Topic: battery pack question
Replies: 7
Views: 781

Re: battery pack question

OK, i measured 4.92 volts after booting up. This was without the device connected but with the large eizo screen + keyb + mouse attached. Close but not enough ? In it's final form the device should run by itself, no screen, no mouse, no keyb attached. The device has a couple of buttons, led, buzzer ...

Go to advanced search