Close

Beta

A project log for Yapolamp

An experimental torch/flashlight intended to be safer for eyes, completely inspired by and built upon the TritiLED project

simon-merrettSimon Merrett 12/21/2017 at 12:306 Comments

Internal Assembly

Here's what it looks like (ignore the jumper - that's where a fuse might go. It currently won't allow the ATtiny85 to be reprogrammed in circuit with the battery power connected and the jumper was faster than disconnecting the JST on the rear):

Endurance

I did some testing for battery duration. It's clearly less efficient in "On" mode than I expected but that's fine - I still got around 2hrs runtime constantly. The lower than expected duration could also be due to the charging of the battery, as the current firmware allows the "Always On" mode to run while charging, so there will be a base current which may affect the cut-off point of the TP4056 charge profile.

In "Always On" mode, I set it going and left it in my car. For 2 weeks. Here it is after 14 days in temperatures between -5C and 12C:

I don't know how long it would have gone - it still had power for "On" mode:

Shrinking the Inductor

 I managed to find a 2.2mH inductor that is drastically smaller than the other ones, with a reasonable resistance of  1.2 Ohms, the Bourns SRF3216 Series Type 3216 Wire-wound SMD Inductor with a Ferrite Core. They are also 20% of the cost of the larger one's I've been using. You can see it bodged onto the larger footprint here (by the JST plug):

I think this means the next revision of the board will have all components on one surface, giving more flexibility over the mounting with battery and TP4056 module.

Wireless Charging

Finally for this log, I want to admit I have finally realised that a "safe" and simple charging setup should have considered wireless charging a long time ago! I recently saw a product that implemented it well in a prototype and I looked into it more, I want to fit the coil in quite a small enclosure, so I went for this wireless charging module which is rated for 300mA (I have a module charging a 250 mAh battery, so this suits a 1C charge rate - BTW, you need to change the charge current resistor on the TP4056 module if you want to charge small LiPos at a safe 1C rate). 

It doesn't charge through aluminium (unsurprisingly but I had to just check). Ignore the power supply in the background - it just draws full current and heats the charging chips, so I turned it off:

Finally, here's the proof of concept GIF showing the ability to transfer the charging current (into the motor). Note the 100 mA standing current that the charging transmitter circuit uses even when the receiver coil isn't in working proximity. The other thing to mention is that the direction of the coils appears to be significant - the ~250mA peak in the GIF rises to over 400 mA (ie the max I set the power supply to, for safety) if you flip one coil over. 

Next Up

Integrate the coil, print a replacement for the aluminium end panel, machine the button hole and LED window slot in the enclosure and perhaps mould an epoxy window in the slot. Oh, and make a charging dock...

Discussions

Ted Yapo wrote 12/21/2017 at 21:04 point

Looking good!

I wonder if the brightness decrease you see with the PTC fuse in place would be solved with some extra capacitance across the supply (after the fuse)?  I could easily see the PTC limiting the peak current, which some capacitors could fix.  Maybe a few tens to a few hundred uF, depending on what currents you are actually using.

Also: what is that volt-amp-watt meter you are using?

  Are you sure? yes | no

Simon Merrett wrote 12/21/2017 at 22:17 point

Thanks @Ted Yapo! Can you just confirm what you mean by the capacitor position? One lead at Vbat and the other lead between the fuse and the MOSFET?

My cheapo power supply is a Ruideng 50V 5A buck converter, mounted in an Alu enclosure. I feed it with a quite nice PC ATX 12v supply (that does double duty powering my 3D printer). I'm not clever enough to notice the difference between this and a proper power supply but they're so cheap and I love the ability to protect my circuits from my bad design/implementation using the current limiting feature! 

Here's a link to one: https://m.banggood.com/DPS5005-50V-5A-Buck-Adjustable-DC-Constant-Voltage-Power-Supply-Module-Integrated-Voltmeter-Ammeter-p-1062473.html

  Are you sure? yes | no

Ted Yapo wrote 12/22/2017 at 02:06 point

https://i.imgur.com/FzwZcQB.png

This way the capacitor can provide current for brief pulses, but the PTC will limit the average current drawn from the cell in case of a stuck MOSFET.

I don't know why that image didn't show up in-line.

  Are you sure? yes | no

Ted Yapo wrote 12/22/2017 at 02:08 point

The way you have it in the other log, with the fuse in between the inductor and MOSFET will also kill your efficiency.

  Are you sure? yes | no

Simon Merrett wrote 12/22/2017 at 18:18 point

Ahh! Great, thank you once again @Ted Yapo

  Are you sure? yes | no

Ted Yapo wrote 12/22/2017 at 18:31 point

Sure.  For the always-on mode, maybe 10 uF would be OK.  With your higher power-modes, probably a lot more.  Hundreds or more uF.

  Are you sure? yes | no