Recent Posts

Pages: Prev 1 ... 5 6 7 8 9 [10]
91
What kind of cables?  Power or signal?  Were they advertised to conform to a particular industry spec or just a specific size?
I wrote in this section of the forum, because it has the word "power" in it.  ;)

But i also found in one delivery where i ordered a few 0.35mm2 cables, one cable to beeing substantially less.

Seemingly, many people just trust what there is advertised. But you cant trust anything nowadays...

92
Repair / Re: Mig welder wire feeder controller board not working
« Last post by coppercone2 on Today at 06:17:14 pm »
wow I don't like that attachment. I thought the weld wire would have to be clean from oil. I guess its not like TIG were they have you religiously clean it. I suppose that feeder might be oiled too lol.

93
Repair / Re: Laser Level Charger PCB ID
« Last post by globoy on Today at 06:15:11 pm »
No wonder the replacement packs are expensive.  That's a complex battery controller PCB.  It's custom, so you aren't going to find an off-the-shelf replacement.  It uses an off-the-shelf TI BQ24296M charge controller https://www.ti.com/product/BQ24296M, a low-end STM32 ARM micro-controller https://www.st.com/en/microcontrollers-microprocessors/stm32f030f4.html, and some other circuitry, at least some of which appears to be a small buck or boost converter.  Looks like the STM32 controls the LED. 

I'd first take a close look for things like a bad/loose solder joint, bad wiring harness connection or corrosion somewhere that might be causing enough of a short to cause a failure.  Then things you might start with to debug this PCB are:

1. Check VDD on the STM32 (pins 5 for analog power in, 16 for digitial power in).  I guess you should see 2.8V, 3.0V or 3.3V.  Ground is on pin 15.  Failure to see good power would probably implicate one of the parts above the micro.

2. Poke around the BT24296 chip.  While charging pin 4 (STAT) should go low (the designers helpfully pulled it high even though they don't appear to use it using the 3rd resistor above the cap on the lower right of the board).  Pin 3 (PG) should go low if the chip likes the battery voltage (2nd resistor above the cap).

3. Use your scope to probe the SW out signals (BQ24296 pins 19, 20) going to the inductor  at the bottom left to see if it's trying to provide power to the system - or you could measure across the two caps above the inductor (according to the spec sheet this should be 3.5-4.35V).

4. If the charger seems alive and the micro is getting power you could probe the I2C bus between the charger and micro (the 4th and 5th 10k resistors above the cap on the lower right).  This might show code is running on the micro.

If it's the BQ chip then that's an easy replacement.  If it's the micro then you're probably SOL.  It could also be one of the parts above the micro but I didn't really try to figure that circuitry out.  Other parts you could also probably replace although you'd have to do that dance where you figure out what part some small chip is based on the cryptic markings on top...

Would be curious what voltages the battery pack puts out and what communications it supports to the level.  Sure is a complex pack to just house a 3.7V battery (your two cells are wired in parallel).
94
Depending on your (apparently secret) requirements, another approach for stabilizing amplitude is to use a “quadrature oscillator”, with a sample-hold triggered by the zero-crossing of the “cosine” output to sample the peak magnitude of the “sine” output.
This was used by Krohn-Hite in some of their older generators (I believe).
More recent units, including the 4402 ultra-low distortion generator, used a fancy peak-to-peak detector.
95
Quote
. any tips on angle-wrap-respecting code to determine if a supplied angle is inbetween (on the short side) another two supplied angles

If possible I would avoid this.  Specifically the "on the short side."  Instead, define this in terms of " counterclockwise from the first angle, before reaching the second." This gives a unique representation, allows you to define an arbitrary interval rather than restricting to things less than 180 degrees.  Then "x is within the interval [a, b)" becomes:

(x - a) mod 360 < (x - b) mod 360.

If you still need the behavior you asked for then handle that as an input transformation: if (( b - a) mod 360) > 180) then swap(a, b)

As usual, watch out for the edge cases, I have chosen a convention that includes the first point but not the second.  You might choose differently.
96
Security / Re: Microsoft repackages apps with a telemetry .NET wrapper
« Last post by bd139 on Today at 05:59:23 pm »
"Actually you can..."
There might be a simpler way, Windows locked away inside a VM, with some very strict firewalling of any potential telemetry which was trying to escape the VM performed by a trustworthy Linux host OS. That would be a solution for anyone needing to run a program on Windows which wasn;t Wine compatible (unfortunately not that great a fraction of Windows exe programs are Wine compatible, I'm lucky with the few legacy Windows programs I use).

That is literally what I'm doing. I have an EC2 instance in AWS running windows server. There is a SG configured so it can only service RDP. Software is pushed to it over remote folders.
97
Metrology / Re: ADR1399 reference
« Last post by Andreas on Today at 05:57:24 pm »
Hmm,

so you have around 1 ppm/K temperature drift.
I think that your DMM contributes most of the T.C.

Did you try to thermally isolate the ADR1399?
Did you do the TC-Compensation of the LM334 from datasheet or did you adjust the 2 resistors to minimum T.C.
(according to my experiences with LM334 for a LM399 project the resistor values from datasheet are not perfectly).

with best regards

Andreas
98
hmm... COM3, sounds like something from the ancient past. I think I had my 2400 baud modem on COM2 and mouse on COM1 in mid-90's.

USB serial interface is very popular these days, it also use COMx name on Windows.

Jokes aside, I'll try some time later. Of course I'm using Linux. Will see if it works with mono.

it should works with mono with no issue. Just add "mono" before command and provide proper name of serial port.
99
Microcontrollers / Re: Divide clock by 3 on a ATF16V8B
« Last post by Wiljan on Today at 05:55:06 pm »
No, it's impossible.
VHDL code use triggers with positive and negative clock edges. ATF16V8B have only positive clocked triggers.
You can create simple divider by 3 on it, but you've got not symmetrical output (with duty cycle 1//3 or 2/3 - on your choice)
And for ATF you need a special programmer (hardware), do you need any?

I don't know if this is possible on the ATF16V8B but this code will divide by 3 symmetrically only on the posedge of the clk

It's a cheat where you make a counter count to 3 and mux the output between 0, clk and 1 so I get the symmetrically from the clk input

Code: [Select]
module clk_div_3(
input wire clk,
output reg out);
 
reg [1:0] cnt = 0;
 
always@(posedge clk)
begin
begin
cnt <= cnt + 1;
    if (cnt == 2) cnt<= 0;
end
end


always@(clk)
begin
case(cnt)
2'b00 : out = 0;
2'b01 : out = clk;
2'b10 : out = 1;
endcase
end

endmodule
100
Beginners / Re: LC filtering for combined Vref/VDD of ADC
« Last post by T3sl4co1l on Today at 05:54:36 pm »
Quote
Bonus: LDO at least gives [the chance for a] more accurate supply/ref, potentially reducing calibration error.

My posts suggests the use of a shunt reference instead of an LDO which is a better option if power loss is not an issue. It doesn't suffer from reduced PSSR when operating close to Vin like the LDO.

Are you sure about that? :)

Tim
Pages: Prev 1 ... 5 6 7 8 9 [10]