Protonerd / FX-SaberOS

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

Power supply/inside charging #71

Closed spazone closed 4 years ago

spazone commented 6 years ago

Hello everybody! I’m building a homebrew-luxeon system. If powered by a single 18650 battery everything works fine, but LED power is too low (almost non visible). So I’m trying to use two 18650 connected in series. I’m using a WH-A2S80A battery protection circuit to charge the batteries in the hilt (without removing them). With this configuration I can’t make the system to work. If powered by the two batteries alone everything works fine, but when I connect them through the protector I get a 4.(something) v reading (output reading straight from the protector circuit: 7,6v ; output reading when connected to the system 4,5v) I can’t find what’s wrong, with this config led works way better, and I can charge batteries inside the hilt without removing them while also getting a killswitch. MOSFETS are irfz44n, im using VIN pin as input, DFPlayer mini, and mpu6050. I’m stuck and losing it lol, so any help would be awesome! Let me know if you need more details or pictures. Thanks in advance (sorry for my English as it’s not my mother tongue) Bye!

Himmiko commented 6 years ago

Привет! пришли фото схемы зарядки. У меня есть предположения.

spazone commented 6 years ago

Hi! I don’t know how to embed images, but here’s a link: http://www.icstation.com/images/uploads/9845_2.jpg

spazone commented 6 years ago

I’m thinking about using protected batteries, run them straight to the system, a “parallel” connection to the charging circuit, and a jack used as a killswitch to switch between them. You guys think this is ok?

jbkuma commented 6 years ago

One 18650 should be sufficient. If it is not something is wrong. The LEDs sound only need around 2-3.5v depending on the color. Resistors should be required to lower the voltage, not more batteries.

How have you wired this?

On Tue, Apr 3, 2018, 5:42 AM spazone notifications@github.com wrote:

I’m thinking about using protected batteries, run them straight to the system, a “parallel” connection to the charging circuit, and a jack used as a killswitch to switch between them. You guys think this is ok?

— 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/71#issuecomment-378191692, or mute the thread https://github.com/notifications/unsubscribe-auth/ATdCMK_hC2_bgdv9_ijZOzZdw-cMce1Cks5tk0QLgaJpZM4TCnYa .

spazone commented 6 years ago

I tested it on a breadboard and light output was extremely low (you could actually look straight at the led without going blind), I’m using an Arduino Nano clone, dfplayer mini and mpu6050. Image

jbkuma commented 6 years ago

The channels work essentially just like a Nano Biscotte or NEC board, the LEDs should be receiving nearly the full battery voltage through the MOSFETs. There is going to be some loss through your breadboard and jumpers. Your photo does not show the LED. It looks like you are only using two channels with only the ground coming from the breadboard, is the other side connected directly to the battery? What size resistors are you using? Is it wired in series or parallel? Have you tried changing the color profile?

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

On Tue, Apr 3, 2018 at 9:53 AM, spazone notifications@github.com wrote:

I tested it on a breadboard and light output was extremely low (you could actually look straight at the led without going blind), I’m using an Arduino Nano clone, dfplayer mini and mpu6050. [image: Image] https://camo.githubusercontent.com/f268730564a4fc7bb9ab0c43c73eda5e9a6ab98a/68747470733a2f2f692e696d6775722e636f6d2f4d4164527045702e6a7067

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

Himmiko commented 6 years ago

Моё предположение в том,что при подключении через защищенную плату вам просто не хватает силы тока. у меня была похожая проблема. я просто отказался от использования платы внутри рукояти. а вместо этого сделал внешний блок. батареи остаются внутри,но заряжаются через ключ

spazone commented 6 years ago

I was testing the different battery configurations. With one battery mpu6050 is in series by 3v3 pin, the rest is in parallel; with 2 batteries in series mpu6050 and dfplayer come from the nano and the led are in parallel. One of the leds is disconnected because I was measuring voltage supplied (a little bit over 2v with a single battery). Ground and + are both coming from the 2s battery charging circuit or straight from the single battery . I took that pic as a guide to remember some wirings. I tried several color profiles, and changed the brightness config from the software. I wasn’t using resistors after the led, as I was just testing the wirings. Resistors on the mosfets are 220 ohm (+- 5%).

spazone commented 6 years ago

Batteries are 18650 2600mA

jbkuma commented 6 years ago

Your LEDs need to have resistors following ohms law. V=IR, R= I/V where V is the battery voltage minus the forward voltage of the LED and I is the desired current.

If you are only getting 2v and the profile is using a fully bright channel for the LED, the problem isn't the battery, it's something else. You could be loosing too much power through the breadboard and your wiring, or your battery may need to be charged. Check the voltage of the battery with everything turned on. The resistors on the mosfet are only necessary to pull down the gate, they don't affect output voltage.

If you aren't using a matched pair of batteries (exact same charge level and capacity) in your 2s configuration you can end up with big problems.

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

On Tue, Apr 3, 2018 at 11:45 AM, spazone notifications@github.com wrote:

Batteries are 18650 2600mA

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

spazone commented 6 years ago

Battery is 3.76v , I’m going to try with the soldered system and only one battery to check for improvements. I’m using paired batteries with a charge/discharge protection circuit: Image I’m running out of ideas LoL. Do you think the mosfets I’m using are ok?