Posts

Showing posts from January, 2021

DSO150 Playing with floats & speed

  My version of the DSO 150 firmware is using float internally to convert ADC to voltage. It could probably be faster using 32 bits fixed point, but float is good enough for now. Let''s see how it evolves, the basic test is converting 240 samples from ADC to voltage For each sample the formula is OUT=IN*multiplier - Offset STM32F103 overclocked to 128 Mhz "Old code" : 880 us "Newer code" afer optimization : 440 us Using fast float lib (qfp) : 380 us So twice as fast, not bad GD32F303 at 96 Mhz It is a cortex M4 core with FPU "Newer code" without FPU : 350 us "Newer code" with FPU : 83 us

STM32 Based component tester

 No recent news recently on the  STM32 based component tester So a quick summary : * Supports STM32F103/GD32F103 (borderline in term of flash size)/GD32F303 * Resistors * Capacitors down to ~ 10 pf * Diodes (with VThr < 3 v) * NPN & PNP transistors (hFE, Diode voltage) * N &  P Mosfets (Vgsthresh, RdsOn, Diode) The only ones i cannot figure out are coils.

Adding current limit to a cheap dc/dc

Image
 This is a hobby of mine. Let's see what's the goal : Adding current limiting to a portable power supply based on a cheap buck/boost DC/DC converter. Additionally , a voltmeter/amp meter module is used. DC/DC theory (simple) The DC/DC will convert electricity to magnetic field back and forth, controlling that through a PWM. It has a "Feedback" pin, and tries to adjust the PWM so that the FB pin has a constant value (1.25 v in my case). If the FB is below the target value, it will increase the PWM and conversely. In most case, the feedback is the output of a voltage divider, so that if you change the voltage divider through a variable resistor the voltage will change so that FB sticks at 1.25v (or whatever your DC/DC target value is) The Feedback value is easy to get, it's the minimum voltage the DC/DC will output. The important part here, is that the potentiometer has VOut on one side and the Feedback on the other pin. Current Limiting The voltmeter/ampmeter modul...