Hello,
I’m looking for a way in PlugData to send an LFO to illuminate an LED on the Daisy without using the DAC output pins. Would using Snapshot be a viable solution for this? If so, could someone help me troubleshoot what I might be doing wrong? Or is something like this only possible using the DAC?
Thanks for taking a look!
If you are using [hv.lfo]
then you don’t need to use [snapshot~]
- since it already uses one internally.
What is led1
, is that the user_led
? I believe there is an issue with sending discrete values to that one.
Sending LFO (or any messages between 0 and 1) to cvout1
and cvout2
should work fine.
On the Field you can also send this to the led_key_*
and led_knob_*
components to have them light up.
Apologies for my lack of clarity- The [hv.lfo]
to cvout1
and cvout2
are working perfectly. My goal now is to add another LFO instance without using the DAC pins, as they’re already occupied.
It looks like led_key_*
and led_knob_*
work on the Field by routing specifically to an LED driver for that device, in addition to the existing DAC out pins. I assume these pins are allocated more power to optimize them for LED use.
I suspect there isn’t enough power on any other pins to drive the LED, which makes sense. But I was hoping to experiment with building a circuit to boost the signal before it reaches the LED. The issue is that PlugData doesn’t seem to like sending an LFO to a pin that isn’t a DAC.
I’m starting to realize why the MCP478 Quad DAC exists, and that I need to read up on Takumi’s tutorial about it…
You can output software PWM from any of the GPIO pins for changing LED brightness. So no need for using DAC for LEDs.
You should be able to do something like:
"led1": {
"component": "Led",
"pin": "D0"
},
and use [s led1 @hv_param] in your patch.
Pod uses RGB LEDs but you can still reference its json file and example patch. The RGB LED that Pod uses is essentially 3 individual LEDs with differing color (red, green, and blue).
2 Likes
Hi Takumi,
Should I be able to send the LFO directly to the [s led1 @hv_param]
as shown in my example, or am I overlooking something? With this setup and the updated JSON file, PlugData is not compiling as expected.
Thank you!
What is the compile error?
Hey guys
I made a stupid mistake in the latest JSON file. This works! Thank you for the help.
Below is the updated JSON file, in case anyone wants to check it out. It basically takes a gate signal and converts it to an LFO at the cv1
and cv2
output. Right now, the LED just flashes, but I’m hoping to have fun with a vactrol or something.
{
"name": "customseed",
"som": "seed",
"defines": {},
"audio": {
"channels": 4
},
"components": {
"led1": {
"component": "Led",
"pin": 0
},
"sw1": {
"component": "Switch",
"pin": 14
},
"gate1": {
"component": "GateIn",
"pin": 13
},
"cvout1": {
"component": "CVOuts"
},
"cvout2": {
"component": "CVOuts"
}
}
}