kookyflap
Posts: 41
Joined: Wed Feb 25, 2015 5:59 am

rpi usb power

Tue Mar 03, 2015 6:51 am

I want to power a laser using the raspberry pi, but the power output of the USB port is only 100mA, is there a way to increase this number or am i better off using the gpio?
p.s. I read there is a way to increase the amps by connecting the output of the polyfuse to the usb power, is this safe?

User avatar
rpdom
Posts: 17172
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: rpi usb power

Tue Mar 03, 2015 6:57 am

Which model Pi do you have?

The original Model B had 140mA polyfuses on each USB port to limit the current. The later B, Model A and the A+ don't have those fuses, but the total current is still limited by the main polyfuse.

On the B+ and Pi2, the default current is limited to 600mA combined total for the four USB ports. That can be increased to 1200mA by putting max_usb_current=1 in /boot/config.txt.

kookyflap
Posts: 41
Joined: Wed Feb 25, 2015 5:59 am

Re: rpi usb power

Tue Mar 03, 2015 7:00 am

i have the a+.

User avatar
rpdom
Posts: 17172
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: rpi usb power

Tue Mar 03, 2015 7:04 am

You should be able to take 500mA from the USB port on an A+. AFAIK there isn't a limiter on an A+, other than the main polyfuse.

kookyflap
Posts: 41
Joined: Wed Feb 25, 2015 5:59 am

Re: rpi usb power

Tue Mar 03, 2015 7:06 am

so does that mean that every usb port would only have 150Ma? Or would it mean that it would just be divided every time you plug something in?
P.S. i am using a 4 slot not powered usb hub for my a+.

kookyflap
Posts: 41
Joined: Wed Feb 25, 2015 5:59 am

Re: rpi usb power

Tue Mar 03, 2015 7:07 am

my bad, i posted the last comment before i read your answer.

kookyflap
Posts: 41
Joined: Wed Feb 25, 2015 5:59 am

Re: rpi usb power

Tue Mar 03, 2015 7:10 am

on an unrelated note, You seem to know a lot about the rpi, could you answer this question? sorry if it is blatantly obvious, or ignorant.
I have recently acquired a pi 2 and wanted to make it thinner.
Is there any way to remove the Ethernet and USB ports, and replace the usb ports with single ones, so it is not a bulky? also leaving out the ethernet port.
Thanks
Last edited by kookyflap on Tue Mar 03, 2015 7:13 am, edited 1 time in total.

fruitoftheloom
Posts: 23337
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: rpi usb power

Tue Mar 03, 2015 7:12 am

kookyflap wrote:so does that mean that every usb port would only have 150Ma? Or would it mean that it would just be divided every time you plug something in?
P.S. i am using a 4 slot not powered usb hub for my a+.
You will need a quality Mains Powered USB Hub to power the peripherals.
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

User avatar
rpdom
Posts: 17172
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: rpi usb power

Tue Mar 03, 2015 7:24 am

kookyflap wrote:I have recently acquired a pi 2 and wanted to make it thinner.
Is there any way to remove the Ethernet and USB ports, and replace the usb ports with single ones, so it is not a bulky? also leaving out the ethernet port.
Yes, you could very carefully desolder the connectors and solder in single-height ones instead. That will give you two connectors instead of four. People have said that it is easier to desolder them if you carefully cut away the casings first. I'm reasonable proficent with a soldering iron, but I wouldn't even consider attempting that on any of my Raspis.

This would, of course, invalidate the warranty.

kookyflap
Posts: 41
Joined: Wed Feb 25, 2015 5:59 am

Re: rpi usb power

Tue Mar 03, 2015 7:33 am

what about the ethernet port

User avatar
rpdom
Posts: 17172
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: rpi usb power

Tue Mar 03, 2015 7:35 am

That can be removed in exactly the same way, if you don't need it.

kookyflap
Posts: 41
Joined: Wed Feb 25, 2015 5:59 am

Re: rpi usb power

Tue Mar 03, 2015 7:40 am

can i power my things even if its only a laser(on a momentary switch)
a flashlight(same story)
a wifi dongle and a bluetoothfor a keyboard.
btw it is powered by 4 aa batteries and a 5 volt solar panel

kookyflap
Posts: 41
Joined: Wed Feb 25, 2015 5:59 am

Re: rpi usb power

Tue Mar 03, 2015 7:41 am

do i have to join the plugs or replace it with something?

kookyflap
Posts: 41
Joined: Wed Feb 25, 2015 5:59 am

Re: rpi usb power

Tue Mar 03, 2015 8:00 am

Sorry for my horrid typing, I was doing this whilst trying to prevent my parents from finding out that I am in fact not doing my religion homework.

User avatar
davidcoton
Posts: 5026
Joined: Mon Sep 01, 2014 2:37 pm
Location: Cambridge, UK
Contact: Website

Re: rpi usb power

Tue Mar 03, 2015 9:40 am

kookyflap wrote:can i power my things even if its only a laser(on a momentary switch)
a flashlight(same story)
a wifi dongle and a bluetoothfor a keyboard.
btw it is powered by 4 aa batteries and a 5 volt solar panel
do i have to join the plugs or replace it with something?
I'm not quite sure what you mean. Powering the whole system, including the RPi? Or powering the peripherals?

In any case you must get the voltage right, and you cannot directly connect two power sources together. If you don't understand what you are doing, you probably need to get someone who does understand to help and check what you are doing. Not just on this forum. If you mis-connect the batteries to another power source you can cause major damage -- fire and possibly exploding batteries.

What sort of laser, and what is it doing? Laser power runs from very little to mega. Even low power laser light is dangerous to eyesight. I am concerned if you are doing such a project and hiding it from your parents.
Signature retired

kookyflap
Posts: 41
Joined: Wed Feb 25, 2015 5:59 am

Re: rpi usb power

Tue Mar 03, 2015 10:04 am

Sorry, I was taken out of context. What I meant about hiding it from my parents was the distraction of the forum, not the actual electrical work.
In regards to the batteries and solar panel, I have a current regulator and a blocking diode connected to the aa batteries which are in a input/output case. It should be safe... I hope?

kookyflap
Posts: 41
Joined: Wed Feb 25, 2015 5:59 am

Re: rpi usb power

Tue Mar 03, 2015 10:20 am

I'll give you a rundown on what I am working on. Maybe you can tell me if its a good idea.
I am basically attempting to assemble a sort of survival/convenience gauntlet/watch. It will have a solar battery with a GPS/gsm module so I can dual boot into phone, raspian, and maybe an emulator.
It will have a 50 mW laser, which when focused may ignite tinder( for survival purposes) and will have a 200 lumen flashlight(just the tip with the mirror and the LED connected to the pi)I would prefer it connected to the pi for space purposes because the pi can recharge, making it r renewable during sunshine.
I will shrink wrap all exposed wires and put them inbetween the leather gauntlet and a few layers if tape.

Let me know if you want to see a parts list and a diagram of my plan.
Any feedback or help would be very much appreciated.
Don't forget to let me know about the plans.
Thanks

kookyflap
Posts: 41
Joined: Wed Feb 25, 2015 5:59 am

Re: rpi usb power

Tue Mar 03, 2015 10:37 am

Again about the batteries, they are rechargable batteries in an input/output case which has a solar panel with the diode and regulator connected to the input which comes in the form of intertwined wires, the output comes in the form of a micro USB cable. It is powering the whole pi and only the pi. It is only connected to the pi and only the pi is it connected to...the batteries and the solae panel are the only power source. They are also powering the peripherals but only through the pi. The batteries are connected to the pi through the micro USB slot.
Hopefully that cleared up some confusion .
Please let me know if I can private message you with further questions and ideas.

User avatar
davidcoton
Posts: 5026
Joined: Mon Sep 01, 2014 2:37 pm
Location: Cambridge, UK
Contact: Website

Re: rpi usb power

Tue Mar 03, 2015 10:53 am

Sounds OK on the power side, but I suspect AA batteries will only give 1-2 hours use from a full charge. You would need to calculate the power consumption of each part and work it all out if you are aiming at a particular run time.

I like the gadget aspect, but personally I would not use a wearable laser, particularly not with any sort of pushswitch or computer control. There is far too much risk of accidentally blinding someone -- possibly yourself. A laser device capable of starting fire needs a keyswitch to lock it off, and a cover to prevent anyone looking into it if it comes on accidentally.

Oh, and just to state the absolutely obvious for anyone reading this, NEVER look into a laser beam to see if it's working, or to see if it's safe. It isn't. Even if you think you know that it is ....
Signature retired

kookyflap
Posts: 41
Joined: Wed Feb 25, 2015 5:59 am

Re: rpi usb power

Tue Mar 03, 2015 9:14 pm

Would you recommend a lock , even if the laser has an adjustable driver? So I can turn it down or even off. Would you recommend a regular switch with a cover, or is a momentary switch with a cover fine?
P.s. I will upload the plans later and hopefully hear your suggestions?

User avatar
davidcoton
Posts: 5026
Joined: Mon Sep 01, 2014 2:37 pm
Location: Cambridge, UK
Contact: Website

Re: rpi usb power

Tue Mar 03, 2015 10:28 pm

My personal preference would be a keyswitch AND a covered pushbutton. That allows for safety under single fault conditions. Remember you will be responsible if there is an accident, so do whatever you can to design problems out. If you can think of something to go wrong and cause a problem, then think of a solution to prevent any damage.

Since this is the RPi forum, the obvious next step is to replace the physical pushbutton with a button on a small touchscreen. The equivalent to the cover is then to put the button on a screen that is not normally selected. The physical keyswitch is still necessary to guard against program or Pi hardware faults.

Again, a note for all readers. If you use a keyswitch for safety, don't leave the key in the switch when it is turned off. It should not be possible to remove the key when switched on (choose the keyswitch carefully).
Signature retired

kookyflap
Posts: 41
Joined: Wed Feb 25, 2015 5:59 am

Re: rpi usb power

Wed Mar 04, 2015 5:57 am

I could figure out a way to write a program on raspian which would switch the power to the usb on and off momentarily, I could have it password protected and in addition have a physical on/off switch with a cover. I will obviously have to try this on a half mw laser or less... until I get it right.
here is a parts list, don't be alarmed that there is a soldering iron there, I am just getting an upgrade.
please let me know if you have any suggestions.
I have also attached a very, very, very rough diagram of what the watch will roughly look like.
BTW the screen will be on a friction hinge to reveal the solar panel underneath

1. http://www.amazon.com/Digital-Media-Sou ... B001GGL7Z4

2. http://www.amazon.com/PNY-Elite-Perform ... b+micro+sd

3. http://www.amazon.com/TRENDnet-Wireless ... ref=sr_1_2?
ie=UTF8&qid=1424164415&sr=8-2&keywords=wifi+dual+band+usb

4. http://www.amazon.com/Gomadic-Portable- ... pi+battery

5. http://www.amazon.com/Raspberry-5MP-Cam ... +pi+camera

6. http://www.amazon.com/ribbon-cable-Rasp ... bbon+cable

7. http://www.amazon.com/Sabrent-4-Port-Ro ... ct+usb+hub

8. http://www.amazon.com/Raspberry-Pi-Mode ... ry+pi+a%2B

9. http://www.amazon.com/Rii-Wireless-Keyb ... pd_cp_pc_2

10. http://www.amazon.com/JBtek-Version-480 ... 8ZE12SXDXZ

11. http://www.amazon.com/Ultrafire%C2%AE-5 ... uctDetails

12. http://www.amazon.com/0-5A-Position-1P2 ... off+switch

13. http://www.amazon.com/SunFounder-DS3231 ... Time+Clock

14. http://www.amazon.com/Industrial-532nm- ... aser+diode

15. http://www.amazon.com/16x55mm-Focusable ... Glass+Lens

16. http://www.amazon.com/Anker-5-Pack-Prem ... usb+cables

17. http://www.amazon.com/20ga-Red-Black-Ho ... nd+-+wires

18. http://www.amazon.com/Duck-240867-Stren ... x+strength

19. http://www.amazon.com/Southco-SC-773-Ad ... tion+hinge

20. http://www.amazon.com/Small-Solar-Panel ... olar+panel

21. http://www.amazon.com/Volt-Schottky-Dio ... king+diode

22. http://www.amazon.com/Round-Momentary-M ... ary+switch

23. http://www.amazon.com/Weller-WLC100-40- ... ering+iron

24. http://www.amazon.com/SE-MZ101B-Helping ... ering+iron

25. http://www.amazon.com/Kester-Pocket-Pac ... merReviews

26. http://www.amazon.com/Surebonder-DT-280 ... t+glue+gun

27. http://www.amazon.com/Surebonder-Purpos ... lue+sticks

28. http://www.amazon.com/Velcro-Industrial ... gth+velcro

29. http://www.amazon.com/Assassins-Creed-G ... s=gauntlet

30. http://www.amazon.com/Joy-Fish-Heavy-Ny ... s=zip+ties

31. Optional http://www.amazon.com/Diymall-Sim900-De ... PRS+for+pi


1. Micro sd to sd $2.10
2. Micro Sd card $89.99
3. Wifi card $19.99
4. battery $19.49
5. camera $26.95
6. Gpio ribbon $6.95
7. Usb hub $5.99
8. pi $24.01
9. keyboard $17.99
10. screen $39.99
11. light $12.57
12. On off switch $5.23
13. Clock $8.99
14. laser $15.85
15. housing $10.99
16. Usb cable $12.99
17. cable $4.96
18. tape $9.99
19. hinge $7.01
20. solar panel 14.95
21. solar diode $8.29
22. momentary switch $6.55
23. iron $39.79
24. clip $6.47
25. solder $6.35
26. hot glue gun $11.54
27. hot glue $9.01
28. Velcro $21.59
29. wrist band $25.99
30. zip ties $4.19
$479

http://www.amazon.com/Kootek-Aluminum-H ... i+heatsink
Attachments
computer watch.png
computer watch.png (25.72 KiB) Viewed 2240 times

kookyflap
Posts: 41
Joined: Wed Feb 25, 2015 5:59 am

Re: rpi usb power

Thu Mar 05, 2015 5:46 am

I will post a picture of the actual watch as soon as I get all the parts.

kookyflap
Posts: 41
Joined: Wed Feb 25, 2015 5:59 am

Re: rpi usb power

Thu Mar 05, 2015 5:49 am

let me know if anyone has a suggestion regarding features or parts, before I buy the rest of the parts for the watch
.

Return to “Advanced users”