My entry to the scratch built contest.

I have most of the parts I think.

2 - 10 watt leds.
2 - heatsinks
2 - reflectors and lenses for the leds
2 - 10 watt drivers than can be hacked to accept pwm
1 - psoc 4 dev board
1 - 12 volt 4.5 ah gel cell.
1 - 12 volt > 5volt switching regulator
1 - 10K –100K POT for dimming controll
1 - switch of some type. not sure what kind of switch I want. possibly another switch for modes as well.
some pvc pipe to fit the led heatsinks along with pvc pipe caps x2,
some screws and metal strapping. and possibly paint.

have switch, pvc pipe and endcaps… one led installed into endcap… working on second one… pictures were taken, will upload them and post them soon.

images

Psoc4 devboard.

12volt to 5volt adjustable voltage regulator

the two drivers, one modified for pwm input

front of driver board it uses a pt4115 driver chip, pin 8 is the pwm input, pin 4-7 is ground of the pwm input. so connect a wire from anyone of those to the ground of your pwm signal :slight_smile:

schematic of the driver board some values are guesses.

rear of driver board

the 2 10 watt leds, one cool white, one warm white. yes. I’m mixing tints… we shall see what happens :slight_smile:

the cool white led with reflector, lens and heatsink

the warm white led with reflector, lens and heatsink

this is the current version of the main.c firmware file…
short and sweet… cant test it till I get a few small parts :slight_smile:

Pot is a 50K ohm pot, got that attached to the psoc 4 board, it has a led on pin 1.6 so I’m going to use that pin to send pwm to the drivers that way I have a small indicator led that shows when the big leds should be glowing…

some tweaking of the code. and it does work now :slight_smile: so now I could work on modes and stuff… but first I’ll attach all the parts together and give it a smoketest :slight_smile:

I’ll do that tomorrow, and take photo, and maybe a short movie of the test :slight_smile:


okay cant post the code directly. forum software collapses spaces for some reason… dont know how to turn it off…
flashlight code

screenshot of the code in psoc creator

internal schematic of the psoc4 just 3 parts, a bootloader block, a pwm block, and a adc block. :slight_smile: thats it.

videos!

test in the dark

close up of my bodgy wiring job to get it to work without a case :slight_smile:

this is work in progress.

parts for the case

endcap with hole cut in it for lens

led installed

underside of the led

test assembly to see how it looks… handle and power switch installed also.

switch and handle close up

a bit more work done on it today before work :slight_smile:

ventilation holes cut in front endcap

rear endcap with hole cut for fan

rear endcap with fan mounted

side shot showing dimmer controll mounted as well…

its finished, not perfect, but its as finished as I can make it at the moment. had a car crash a week ago. and have run out of free time.

shots of finished flashlight

here find the beamshots and videos :slight_smile:

its not really a good thrower, its more of a flooder or for close up use…
it would be good for emergency use.

but hey I had most of the parts just lying around :slight_smile: so free light :slight_smile:

. I'm here with popcorn.

Interesting build. Looking forward to see what you come up with for a body for the parts you allready have.

I plan on uploading more pictures to the first post of parts as I get them :slight_smile:

Way too complicated for me. Looks interesting.

thanks sir :slight_smile:

well its prolly gonna be ugly white or gray or black pvc for now… maybe I’ll come up with a way to make a wood body for it… Infact its given me ideas, but shhh :slight_smile:

but for now, prolly ugly pvc

yup posted a bunch of pictures :slight_smile:
a bit more progress!

code is ready for testing. it does work with a small testing led… so onward!

That is awesome. I wish more big ass lights came with this. No BS light bars or color changing leds. Just a display. Simple. Good job :-)

I’m confused, I dont have a display in this build, not yet anyway… just a simple regular led that glows at the same time as the main led.

was pondering putting a small lcd or oled or 7-14 segment led display.

Ain’t nothing wrong with a PVC build. I know there are a few fans of it here. Me being one. Check out my holy hot spot Batman thread for proof.

Looks like this will be the most advance build FW wise, which is where the real future of lighting resides. Keep up the good work. :slight_smile:

thanks, just checked my pwm freq with a ’scope. and its around 4khz… is that good? I can prolly go up to maybe 10khz, possilbly :slight_smile:

Me too! Looking like this will be interesting. :smiley:

thanks for watching :slight_smile:

Sorry, I’m not a good judge of PWM. Traditional SRK’s don’t even bother me. I only avoid it when working under the hood or with other dangerous moving machinery. 4K sounds good to me though.