unfa,
@unfa@mastodon.social avatar

Any electronics hackers?

I got this cheap portable video light, and it comes with some preset light animations.

This has a USB-C port, maybe it exposes something more than power?

Maybe it'd be possible to get access to this thing's underlying software and reprogram it? ;)

https://www.ulanzi.de/en/products/ulanzi-vl120-rgb-led-video-light

#hacking #hardware #electronic #electronics #video #light

unfa,
@unfa@mastodon.social avatar

I opened it and removed the LED panel. Wondering if there's anything here that let getting into the programming of this... Maybe on the backside.

unfa,
@unfa@mastodon.social avatar

PCB backside.

ubik,
@ubik@fedi.turbofish.cc avatar

@unfa does the little chip at the center of the picture have any writing on it?

unfa,
@unfa@mastodon.social avatar
unfa,
@unfa@mastodon.social avatar

@ubik The square, smallest one?

ubik,
@ubik@fedi.turbofish.cc avatar

@unfa Yes, that looks like a good candidate to being the MCU.

unfa,
@unfa@mastodon.social avatar
ubik,
@ubik@fedi.turbofish.cc avatar
ubik,
@ubik@fedi.turbofish.cc avatar

@unfa the datasheet is in chinese, but there's a mention of SWD, so it should be possible to program it with a debugger probe.

ubik,
@ubik@fedi.turbofish.cc avatar

@unfa it would be a matter of checking if the SWCLK and SWDIO pins are connected to any pads and it should be possible to get a flash memory dump.

ubik,
@ubik@fedi.turbofish.cc avatar

@unfa (it does seem to be the case, from your picture)

unfa,
@unfa@mastodon.social avatar

@ubik Yeah, these pins seem to be unused. Maybe I could attach a probe or something :D I don't have much hardware to do this kind of stuff though. And this is so insanely tiny I have no chance of soldering anything in there even if I had steady hands.

unfa,
@unfa@mastodon.social avatar

@ubik 🤩

unfa,
@unfa@mastodon.social avatar

@ubik SWD == Software Data ?

niclas,
@niclas@angrytoday.com avatar

@unfa

SWD = Serial Wire Debug, a debug interface easier to use than JTAG.

@ubik

unfa,
@unfa@mastodon.social avatar

@niclas @ubik oh, that's great!

unfa,
@unfa@mastodon.social avatar

@niclas @ubik I think this light could do so much more if it was possible to program your own effects. The ones there mostly stuff I won't use, but stuff I would use is not :P

unfa,
@unfa@mastodon.social avatar

@niclas @ubik
Does this look promising?

niclas,
@niclas@angrytoday.com avatar

@unfa

Those traces should lead to a header or to pads, that they use to program it. If you can locate those, then one can probably re-program it with a standard ST-Link programmer (original or clone).

It would help a lot to get hold of a programmer's manual and figure out if the peripherals are STM32 compatible (good chance, many others are, and wouldn't surprise me if this is STM32F030-like)

Then simply use STM32CubeMX/CubeIDE to program it.

@ubik

ubik,
@ubik@fedi.turbofish.cc avatar

@niclas @unfa I would suggest the same thing, but using a Raspberry Pi Debug Probe and probe-rs/Rust. Whatever you're the most comfortable with. If you're lucky you might be even able to run Micropython on it!

https://www.raspberrypi.com/documentation/microcontrollers/debug-probe.html

unfa,
@unfa@mastodon.social avatar

@ubik @niclas Hmm. I do own a Raspberry Pi 4, and I have a breadboard with patch cables and power unit. I got that to make MIDI-controlled LED lighting for my #BespokeSynth music jams, but RPi now works as a #HomeAssistant server.
I could put it on hold and use it to connect to this thing though!

ubik,
@ubik@fedi.turbofish.cc avatar

@unfa Also, what are the USB vendor and product IDs? Have you done lsusb -v on it to see which interfaces it exposes?

unfa,
@unfa@mastodon.social avatar

@ubik I haven't tried that actually. I just assumed it wouldn't say anything :D

unfa,
@unfa@mastodon.social avatar

I wonder if the 5-pin throughole is a place where some dev connection could be made?
It might be just to reach the other side of the PCB, (wher the scren is) but the arrangement is suspicious and the sceen needs wy more pins thant that anyway. The LEDs are conneected from the front, so no need to move the big amps through these holes.

chris,

@unfa 👍 would also be my best guess. But you also need to find out what the controller chip is, find a datasheet or other documentation for it to find the pinout and then, trace/continuity check where relevant pins go, thereby maybe confirm the 5 holes/pins.
Also "cheap thing" is probably not what gets a lot of interest/resonance from experts.

unfa,
@unfa@mastodon.social avatar

@chris Thanks! @ubik thinks he knows what chip it is and it seems like SWD and SWclock pins are connected to some traces. That or this is a different chip alltogether :D

tivasyk, (edited )
@tivasyk@mastodon.social avatar

@unfa wait, you already have an usb port there with at least 7 pins wired out; why not connect it to your pc (linux?), see what lsusb gives you as device ID and search internets for what you can do that way with that chip?

unfa,
@unfa@mastodon.social avatar

@tivasyk The USB port seems to be only wired for power. dmesg sais absolutely nothing when I connect it.

tivasyk,
@tivasyk@mastodon.social avatar

@unfa bad luck :-( then, the search continues, i guess.

unfa,
@unfa@mastodon.social avatar

@tivasyk Yeah, imagine having this light, only it shows up as mass storage and you could edit a text file describing the animation effects...
I would be shoicked if filmmakes wouldn't be all over something like that.
Is there no cheap hackable portable RGBW light like this?

tivasyk,
@tivasyk@mastodon.social avatar

@unfa man, i'm so with you on this. no, i don't care about portable lights, but i desperately want to learn practical #electronics (got a bachelor's in electronics from those soviet times, useless as i had never touched a live mcu during studies!) and thus try to play with every #arduino howto or tutorial i can find & understand… but there's a huge gap between simple lessons (lady ada) and any «real life» application :-/

still, i don't let hope abandon me :-D

drkoma,

@unfa you would have to open it and search for 4 UART pins. Maybe you get lucky

unfa,
@unfa@mastodon.social avatar

@drkoma With a bit of prying I managed to cleanly pop the front diffuser.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • hacking
  • DreamBathrooms
  • ngwrru68w68
  • modclub
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • mdbf
  • GTA5RPClips
  • JUstTest
  • ethstaker
  • normalnudes
  • tester
  • osvaldo12
  • everett
  • cubers
  • tacticalgear
  • anitta
  • provamag3
  • Leos
  • cisconetworking
  • megavids
  • lostlight
  • All magazines