this is the current version of the main.c firmware file…
short and sweet… cant test it till I get a few small parts
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 so now I could work on modes and stuff… but first I’ll attach all the parts together and give it a smoketest
I’ll do that tomorrow, and take photo, and maybe a short movie of the test
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. thats it.
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
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.
well I don tthink someone (me) will use this under the hood or under a car well I could but its kinda overkill for that use
anyway. maybe tonight or tomorrow I’ll get everything wired together and post some short videos of it actually doing something before I get some pvc parts to try and package it up