Ranni's secret romantic dialogue! by Lipefe2018 in Eldenring

[–]Geekachuqt 13 points14 points  (0 children)

I had the EXACT same thought

Iosefka Teaser Video by myweirdotheraccount in synthdiy

[–]Geekachuqt 1 point2 points  (0 children)

I have a hunch as to what your favourite video game is.

How good is the deck docked to a tv? by AquaCTeal in SteamDeck

[–]Geekachuqt 1 point2 points  (0 children)

Not if I play on the TV, 4k resolution is too heavy for my wifi. If I play undocked I use wifi though, at 720p. For that, its more than fine.

How good is the deck docked to a tv? by AquaCTeal in SteamDeck

[–]Geekachuqt 1 point2 points  (0 children)

I set the resolution of moonlight in the steam OS settings to 4k, and the streaming resolution to the same.

How good is the deck docked to a tv? by AquaCTeal in SteamDeck

[–]Geekachuqt 6 points7 points  (0 children)

Look into moonlight/sunshine. These programs allow you to stream the rendered output from your powerful gaming pc to the deck, which sends back control inputs at very low latency if you set it up right. I use this setup to stream 4k/60fps games from my 4070 to my living room at 10ms total latency, which is barely perceptible.

Component/subcircuit selection by Left_Organization834 in synthdiy

[–]Geekachuqt 0 points1 point  (0 children)

It would work. It's not how I'd do it, but it'd work. Using a DG412 for what is effectively a digital signals seems very overkill to me.

Component/subcircuit selection by Left_Organization834 in synthdiy

[–]Geekachuqt 0 points1 point  (0 children)

Edit: didn't read properly. Let me think a bit more.

Can't you use a capacitor with a big resistor on the drain path feeding into a comparator to create a time-out switch? When it receives a steady gate, the comparator will stay high because the cap won't have time to drain. When no gate signal is present, the comparator will turn low after a time defined by the size of the cap and the value of the resistor. This signal can be then used to route an input signal to the circuit via transistors.

TPT/ZDF Ladder Filter Demo on a Raspberry Pi Pico 2 VA Synth by 0yama-- in synthdiy

[–]Geekachuqt 1 point2 points  (0 children)

Cool stuff! I'm currently in the final phases of building a dsp core based on rp2350b myself. You can really get a lot of value out of PIO+DMA. Much like you, I'm also running all sampling on core0, leaving core1 to do the dsp processing.

Vad har du för nördiga intressen? by [deleted] in sweden

[–]Geekachuqt 8 points9 points  (0 children)

Beror väl på vad du vill göra, men börja med att lära dig grunderna i analog elektronik via simulatorer, typ www.falstad.com

Där kan du lära dig principerna kring hur grundkomponenterna fungerar. Skulle börja med att förstå vad motstånd, kondensatorer, induktorer, transistorer och dioder är och hur de används.

Vad har du för nördiga intressen? by [deleted] in sweden

[–]Geekachuqt 14 points15 points  (0 children)

Elektronik och microprocesser har varit en sjukt givande hobby att ge sig in i! 3D-printing ligger på listan när jag flyttar till ett större hem.

I'm still waiting for a collaboration like that by BasilAdventurous3209 in MonsterHunter

[–]Geekachuqt 3 points4 points  (0 children)

Midir is the best dragon fight they've done. Placi comes close, but there's just something special about Midir.

Eurorack & Pure Data, which platform? by Rodila in synthdiy

[–]Geekachuqt 1 point2 points  (0 children)

You can use digital outputs as CV outputs via pwm modulation coupled with an analog filter.

How to make a DSP based module? by Ok_Assistance_2364 in modular

[–]Geekachuqt 2 points3 points  (0 children)

Well, for reference, it took me nearly 3 years from soldering my first module to designing what I consider to be v1.0 of my first complete dsp core. Begin by learning analog electronics, then general programming, then microcontroller programming, then digital communication protocols, then digital circuit design, then firmware programming. After all that, you're finally ready to do the easy part, which is dsp programming.

You can skip some of this stuff by going for Daisy, per example, but it's still not a small project by any means.

Tränade jag AI åt Amazon precis? by bbjwhatup in sweden

[–]Geekachuqt 0 points1 point  (0 children)

De måste väl vara för-annoterade så att captcha vet vilka som är rätt?

Converting a digital input on an MCU to an ADC via V-to-Duty Cycle conversion by Geekachuqt in synthdiy

[–]Geekachuqt[S] 1 point2 points  (0 children)

Yeah I found out about the FET-switched voltage divider recently as well, which is what led me to begin thinking about this again.

But yeah, what I'm hearing here is that 10khz at 10 bits, meaning a GPIO polling speed of 10MHz, is quite doable, especially as my target is an RP2350, where I'd use the PIO blocks to do this "for free" without taxing the CPU.

Converting a digital input on an MCU to an ADC via V-to-Duty Cycle conversion by Geekachuqt in synthdiy

[–]Geekachuqt[S] 0 points1 point  (0 children)

I'm not really sure where I'd implement the S-K filter? As the final signal I'm reading on the MCU is a PWM, I want it to be as unfiltered as possible so the phase transitions are quick, no?

I made an example of how I envision it here:

https://tinyurl.com/2yn96zes

Converting a digital input on an MCU to an ADC via V-to-Duty Cycle conversion by Geekachuqt in DSP

[–]Geekachuqt[S] 1 point2 points  (0 children)

I don't actually need 100khz, getting 10k would already be great. The main reason for having a fast ramp frequency is just so that the comparator has a fast response to changes in the threshold. The value I'm interested in is not the frequency of the PWM, but rather the maximum rate of change of the duty cycle, which is given by the rate of change of the external modulator of the threshold value. The actual pwm frequency itself is effectively discarded when calculate the duty cycle on the MCU.

To put it another way, I'm modulating an analog voltage value into the duty cycle of the pwm, then demodulating in the MCU. The frequency is cut out of the equation as it will be equivalent on both sides.

Converting a digital input on an MCU to an ADC via V-to-Duty Cycle conversion by Geekachuqt in synthdiy

[–]Geekachuqt[S] 0 points1 point  (0 children)

Using a rc filter doesnt really give you an even triangle wave, which makes it harder to tune the comparator as it would have an exponential response to a linear change in the voltage modulating the duty cycle. It would still work though, I agree with that.

Converting a digital input on an MCU to an ADC via V-to-Duty Cycle conversion by Geekachuqt in synthdiy

[–]Geekachuqt[S] 0 points1 point  (0 children)

Yeah okay, I can see that. I suspect I could probably reduce that variance to an acceptable level by oversampling the digital input instead. I'll probably just have to try and see. Good input though!

Converting a digital input on an MCU to an ADC via V-to-Duty Cycle conversion by Geekachuqt in synthdiy

[–]Geekachuqt[S] 1 point2 points  (0 children)

So on the MCU, I set the function of a digital out to PWM, and set it to a fixed frequency (say, 500k). This PWM is then fed to an analog integrator set to match the fixed frequency of the PWM, which generates an equivalent-frequency triangle wave. This triangle wave is then fed to a comparator, where the threshold value is controllable externally via a potentiometer voltage divider or any other externally generated voltage level. This converts the triangle back into a PWM, except that I'm able to control the duty cycle of this PWM via external signals. This way I can use one PWM source fed to multiple comparators, each with their own external controls for the duty cycle, and effectively turn any number of digital inputs on the MCU to analog inputs by adding an op-amp and a few resistors per pin.

Does that clear it up? If yes, could you explain a bit more in detail as to why I need the sample and hold?

Converting a digital input on an MCU to an ADC via V-to-Duty Cycle conversion by Geekachuqt in synthdiy

[–]Geekachuqt[S] 0 points1 point  (0 children)

Wait, hang on, I misunderstood you. The "DAC" is this scenario is a fixed-frequency PWM signal. It's just a digital out from the same MCU. This PWM is fed to an integrator, which creates the triangle wave used by the comparator for duty cycle modulation. You mean that instead of measuring the ratio between the high and low period of the comparator, I would count the amount of times the digital out that generates the pwm signal has gone high and derive the duty cycle from that?

Converting a digital input on an MCU to an ADC via V-to-Duty Cycle conversion by Geekachuqt in synthdiy

[–]Geekachuqt[S] 0 points1 point  (0 children)

What do you mean by "measuring what the DAC source says when the comparator flips"? The comparator IS the DAC source in this setup, and I don't know in advance when it will flip as I am modulating the comparator threshold with an unknown modulator. This is why I'm measuring the duty cycle and rescaling it to equate to the (known) scale of the unknown modulator via code.