Protonerd / FX-SaberOS

System code for Arduino based Lightsaber replicas for DIYino family boards
Creative Commons Zero v1.0 Universal
92 stars 42 forks source link

charging port & battery #40

Closed Xamiuk closed 4 years ago

Xamiuk commented 6 years ago

Hi friends! i hope you doing well,

i have some questions for you if you can response to me please. for the power supply for my hilt i bought a power bank (mobile external power supply), it has a 18650 battery and a usb charger that charge the battery like this one: image image

my question is this power bank deliver a 5v power supply to arduino from the usb, that is ok to use in the arduino nano? or i need only the 3,7 v from the battery? and where i need to connect this charger on arduino nano?

thanks for your time and work. i hope i explain well.

Vulkan1 commented 6 years ago

I did exactly the same and Initially it didn’t work, the circuit board inside the charger needs a load, i Found I had to press the charger button every time for the arduino to turn on, and only then it worked at most for a minute. What I did was extracted the 18650, and added a protection circuit board to it so I could recharge it. I also made it that I could swap the batteries, so I would have a spare on me. If you need clarification I may be able to send some pictures.

jbkuma commented 6 years ago

You will be better off using just 3.7, this type of device typically can't deliver enough current and your LEDs, which require the most power, will run more efficiently from 3.7v. The boost converter wastes some energy, then you waste more energy to bring it back down. You can use a boost converter to send 5v to the arduino, but this is not strictly necessary.

Jason "Kuma" Brinkerhoff Mad Science Workshoppe, proprietor http://jbkuma.com/workshoppe

On Mon, Jan 8, 2018 at 10:34 AM, Vulkan1 notifications@github.com wrote:

I did exactly the same and Initially it didn’t work, the circuit board inside the charger needs a load, i Found I had to press the charger button every time for the arduino to turn on, and only then it worked at most for a minute. What I did was extracted the 18650, and added a protection circuit board to it so I could recharge it. I also made it that I could swap the batteries, so I would have a spare on me. If you need clarification I may be able to send some pictures.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Protonerd/FX-SaberOS/issues/40#issuecomment-355999804, or mute the thread https://github.com/notifications/unsubscribe-auth/ATdCMC3s1d6vsLUhqTrfsp40c3lT2_gLks5tIjWagaJpZM4RWgpM .

Xamiuk commented 6 years ago

Thanks for the quick answer! I found a charger module for arduino and I want to know if is the same that you refer in your comment: image

Could this module work as you comment? And vulkan can you show me how you connect your battery to the nano please?

Thank both of you for the responses

FatherCool commented 6 years ago

I used a high current 18650 for use in e cigs (lg hg2). That has inbuilt charge protection. I have it connected directly to my gnd and 5v pins and it works great. I originally had a 3.7v to 5v booster on the input pin with 3.7v going straight to the LEDs (mosfets) but in the end the booster wasnt necessary and the nano ran on 3.7v like the LEDs just fine.

Vulkan1 commented 6 years ago

I currently don’t have access to my pc but I will explain it. Much like you can plug in a AA battery to a toy, my 18650 isn’t soldered into the arduinos circuits, it can be unbluged to swap out or in case of an emergency. The 18650’s -&+ go to my PCB (protection circuit board). The PCB has a charger so that’s wired up to a female charger plug. The PCB also has a 5v output. That 5v is sent parallel to the arduino’s 5v and ground pins, and to the neopixels 5vin and ground. Are you part of the FB group if so I can add a pic there easier.

Vulkan1 commented 6 years ago

Also I’m still working on mine and so far it’s working but not fully tested

FatherCool commented 6 years ago

Yes mine isn't soldered in either. I made a plug in battery holder for it inside the saber. You need nothing more. Buy a 18650 with built in protection circuit and bin the other thing. I have a seperate battery charger than can charge lipos nimh or whatever. I just charge a few 18650s and I can swap out all day long.

I don't have a FB account but I understand what you are saying I don't need a picture thats fine.

Xamiuk commented 6 years ago

facebook group? where?

jbkuma commented 6 years ago

I have used those charger modules. You'll need to wire it up just as a charger, the outputs don't supply enough current to power the blade.

Jason "Kuma" Brinkerhoff Mad Science Workshoppe, proprietor http://jbkuma.com/workshoppe

On Mon, Jan 8, 2018 at 1:06 PM, Vulkan1 notifications@github.com wrote:

Also I’m still working on mine and so far it’s working but not fully tested

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Protonerd/FX-SaberOS/issues/40#issuecomment-356045774, or mute the thread https://github.com/notifications/unsubscribe-auth/ATdCMMcsQ9aJ5YbD_qRyLm3ZWx1k27dsks5tIlkcgaJpZM4RWgpM .

Xamiuk commented 6 years ago

@jbkuma you mean i need to isolate the charger and take a independent power supply from the battery? i mean charger just for charge the battery and battery to power supply ?

jbkuma commented 6 years ago

That charger has tabs to connect a load. Don't use them, wire the arduino as though there is no charge circuit. You can either use the charge circuit externally with a barrel plug and charge port, wire the charge circuit in with a charge port, or wire it in parallel to the battery and use a switch to kill power to the saber while charging. You should always have the saber, including the arduino, unpowered during charging to ensure the charger works properly.

Jason "Kuma" Brinkerhoff Mad Science Workshoppe, proprietor http://jbkuma.com/workshoppe

On Mon, Jan 8, 2018 at 1:48 PM, Xamiuk notifications@github.com wrote:

@jbkuma https://github.com/jbkuma you mean i need to isolate the charger and take a independent power supply from the battery? i mean charger just for charge the battery and battery to power supply ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Protonerd/FX-SaberOS/issues/40#issuecomment-356057604, or mute the thread https://github.com/notifications/unsubscribe-auth/ATdCMHpqW7hr3TbDPk0yNhPSZQyrT0quks5tImMCgaJpZM4RWgpM .

Xamiuk commented 6 years ago

@jbkuma thank you i will try i will tell you latter if i understand :)

Xamiuk commented 6 years ago

hey guys! the charger works like charm! i did that @jbkuma said me and connect the charger to the battery and put a switch kill. thanks a lot to all of you for the support... see you guys ;)

Snyperdead commented 6 years ago

Hello friends,

thats it's and excellent idea, i figured out, but i haved my Doubts and the pieces for that job are coming, Xamiuk you have an a diagram for the conections????

Xamiuk commented 6 years ago

@Snyperdead i will draw one for you later. :)

Snyperdead commented 6 years ago

Thanks Xamiuk

I think it's more easier, clear some doubts graphically

Xamiuk commented 6 years ago

Here's the scheme: img_2698 img_2700 img_2702 If you have any questions don't hesitate to ask I hope this help you :)

Himmiko commented 6 years ago

nice)

Snyperdead commented 6 years ago

Thanks Xamiuk

I will work on this as soon as I have the necessary parts ready.

Best Regards!

Himmiko commented 6 years ago

Hi) I have one small question. Do you have a problem with the sword when using a single battery and pixels? I do not correctly display the movements of the sword and sometimes it reboots. perhaps this is due to insufficient voltage. What do you think?

Himmiko commented 6 years ago

battery 18650 (10a, 4.2V), pixels 144 / m. I use 120 pixels

jbkuma commented 6 years ago

If it is a real 10a battery it should be ok. high capacity is better. With low capacity the voltage can drop too low.

I have been using only 18650 3500mah 10a protected batteries for almost 2 years with pixel blades, no problem.

Jason "Kuma" Brinkerhoff Mad Science Workshoppe, proprietor http://jbkuma.com/workshoppe

On Mon, Jan 29, 2018 at 3:34 PM, Олег Толстик notifications@github.com wrote:

battery 18650 (10a, 4.2V), pixels 144 / m. I use 120 pixels

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Protonerd/FX-SaberOS/issues/40#issuecomment-361377388, or mute the thread https://github.com/notifications/unsubscribe-auth/ATdCMGQSb0J71psHxQQsvJFgdMxM2a77ks5tPitSgaJpZM4RWgpM .

Xamiuk commented 6 years ago

@Himmiko you need to connect the pixels directly to te battery, that is the way that i solve that issue, my pixels going crazy after a couple of minutes on... but last night i changed the + to the battery and it is solved now... if i am wrong somebody tell me please. :)

jbkuma commented 6 years ago

The positive should attach directly to the battery. The negative should be attached to a transistor which is connected to the battery, or directly to the battery.

On Jan 30, 2018 8:13 AM, "Xamiuk" notifications@github.com wrote:

@Himmiko https://github.com/himmiko you need to connect the pixels directly to te battery, that is the way that i solve that issue, my pixels going crazy after a couple of minutes on... but last night i changed the + to the battery and it is solved now... if i am wrong somebody tell me please. :)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Protonerd/FX-SaberOS/issues/40#issuecomment-361589241, or mute the thread https://github.com/notifications/unsubscribe-auth/ATdCMAc_ADCswWnqdUwkTPhctosIpTmdks5tPxVlgaJpZM4RWgpM .

Protonerd commented 6 years ago

:) The DIYino Stardust V2 has an in-built USB charger already. If you want a reliable integrated solution, go for one. If you keep adding modules to your home brew solution, sooner rather than later you will run out of room in your hilt.

MattLeshman commented 6 years ago

How much cost DIYino Stardust V2 and how can a buy it and receibe it to Argentina?

Himmiko commented 6 years ago

Yes, the battery is original. Pixels work fine. problem in the accelerometer and the player. they fail.

StrangeD0s commented 5 years ago

If it is a real 10a battery it should be ok. high capacity is better. With low capacity the voltage can drop too low. I have been using only 18650 3500mah 10a protected batteries for almost 2 years with pixel blades, no problem. Jason "Kuma" Brinkerhoff Mad Science Workshoppe, proprietor http://jbkuma.com/workshoppe On Mon, Jan 29, 2018 at 3:34 PM, Олег Толстик @.***> wrote: battery 18650 (10a, 4.2V), pixels 144 / m. I use 120 pixels — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#40 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/ATdCMGQSb0J71psHxQQsvJFgdMxM2a77ks5tPitSgaJpZM4RWgpM .

I am a bit confused when it comes to 18650 batteries. How do I know if it is a 10A battery? I have googled it and looked up some datasheets but I'm still unsure. I have a couple of Sanyo UR18650A batteries salvaged from a notebook and I wanted to use two in parallel for higher capacity. I guess I will just try and find out how long they can power a pixel blade.

jbkuma commented 5 years ago

You probably want a protected cell, and if you are using a parallel pair you will definitely want to add a protection/balancing circuit. In addition to the battery being able to output 10A, the circuit would also need to. Known vendors include TCSS and Orbtronic in the US. Rather than a parallel pair, you can also use a 26650 which would generally be rated at 15A with protection.

A reliable vendor will give various ratings concerning the battery's capacity, discharge rates, charging rates, etc. I would stick to cells based on Sanyo, Panasonic, Sony, and Samsung.

Jason "Kuma" Brinkerhoff Mad Science Workshoppe, proprietor http://jbkuma.com/workshoppe

On Wed, Feb 6, 2019 at 6:50 AM StrangeD0s notifications@github.com wrote:

If it is a real 10a battery it should be ok. high capacity is better. With low capacity the voltage can drop too low. I have been using only 18650 3500mah 10a protected batteries for almost 2 years with pixel blades, no problem. Jason "Kuma" Brinkerhoff

*Mad Science Workshoppe, proprietor http://jbkuma.com/workshoppe http://jbkuma.com/workshoppe … <#m491765974460747319> On Mon, Jan 29, 2018 at 3:34 PM, Олег Толстик *@*.> wrote: battery 18650 (10a, 4.2V), pixels 144 / m. I use 120 pixels — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#40 (comment) https://github.com/Protonerd/FX-SaberOS/issues/40#issuecomment-361377388>, or mute the thread https://github.com/notifications/unsubscribe-auth/ATdCMGQSb0J71psHxQQsvJFgdMxM2a77ks5tPitSgaJpZM4RWgpM .

I am a bit confused when it comes to 18650 batteries. How do I know if it is a 10A battery? I have googled it and looked up some datasheets but I'm still unsure. I have a couple of Sanyo UR18650A batteries salvaged from a notebook and I wanted to use two in parallel for higher capacity. I guess I will just try and find out how long they can power a pixel blade.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Protonerd/FX-SaberOS/issues/40#issuecomment-460996253, or mute the thread https://github.com/notifications/unsubscribe-auth/ATdCMFX9aeVr_ZKM5-_p4YqUjMA-BSTvks5vKsGcgaJpZM4RWgpM .