Recent Posts

Pages: [1] 2 3 4 5 6 ... 10 Next
1
Projects, Designs, and Technical Stuff / Re: No interrupt from AS6501...
« Last post by Denge on Today at 02:26:06 pm »
Hi All,

Porting this code to the dsPIC33CK64MC105 MCU would take me ages I guess. On top of that I'm a novice in programming C.... So trying to port all this code would bring me further away than I'm now!
By now I checked and rechecked the hardware and found it should be ok, played with some different setups and added a 100 µs delay right after the power on reset and a 200 µs delay after the configuration write but still no interrupt going low! :-(
The config I use now is:
cfg0: 0x95, cfg1: #0x15, cfg2: #0x00, cfg3:4:5, 100000, cfg16, #0x04
The refclk is 10 MHz.
Conclusion: I'm lost

Greetings,

2
Hi Again, With the grub/Thumb screw on the stand to hold the ring from turning, This works well and does not mark the adaptor ring,
Thanks Dave 2E0DMB
3
Hi guys,
I am wondering if any of you could provide some inspiration. I have a small test system for the internal lab use. The system aquires ceratain digital data and prints them to the PC over a serial port.
I am going to implement a console/CLI. The interface shall be human readable but also needs to interact with python.

Typical commands would be:
Code: [Select]
reset
buffer_size xxxx // 0-1024
adc_filter  x //off, type-1, type-2
trigger
... and many more

As you can see, some commands come with parameters, some don't.

I see that there are two possible methods. Using variable arguments and parse the string (A) or asking for the parameter separately (B).

Code: [Select]
(A.1) CMD>buffer_size 1024 <enter>
(A.2) OK
(A.3) CMD>

(B.1) CMD>buffer_size <enter>
(B.2) PRM>1024 <enter>
(B.3) OK
(B.4) CMD>

PS: I do not care much about the memory footprint, portability, or speed. However, readability and ease of use are important for me. Somebody else, or I, should be able to understand and modify the code base in future :-) I generally need the KISS principle.

What are your favorite options? Share links, github or just your ideas.

I will start:
https://dojofive.com/blog/embedded-command-line-interfaces-and-why-you-need-them/

https://interrupt.memfault.com/blog/firmware-shell

Thanks in advance!
4
Yes that is a possibility, myne had to work from 12V to 50V, so that made it a little more complex.

Benno
5
PCB/EDA/CAD / Re: JLCPCB alters soldermask without any notice
« Last post by KL27x on Today at 02:20:34 pm »
After uselessly poking around the website, I finally found it using Google. Thanks.
https://jlcpcb.com/help/article/592-gerber-files-preparation

They don't even have an extension for what I idiosyncratically call my paste layer. I don't think I've ever ordered a stencil from JLC, come to think of it. It's just in my default gerber CAM job for the occasion I need it.
6
Beginners / Re: LC filtering for combined Vref/VDD of ADC
« Last post by T3sl4co1l on Today at 02:20:15 pm »
I think it's switching noise from a DC-DC converter mainly. No idea what frequency the switcher is running at. I should probably try and analyse it in more detail than I've done so far: that is, poke it briefly with the 'scope and go "ew, that's dirtier than I was expecting". ;D

Yeah, do that.  Then figure how much LC is needed, and if an LDO is still needed to cover the bottom end / save space.


Quote
I wouldn't know how to pick an LDO regulator with good PSRR, though. It seems difficult to make comparisons because the manufacturers all give specs according to different conditions. Some give it at 1kHz, some at 100kHz, etc. I'm not even sure what magnitude of PSRR is good. Is 50 dB good or poor? 70 dB? 90 dB?

Oh well they usually give it at DC.  So you get numbers in the table like 60, 80, 100dB that are meaningless.  But you pop over to the PSRR vs. freq plot (if they give it, and if not, keep shopping!) and see what it's like.  Note that it usually falls near zero at high frequencies (control loop GBW, i.e. feedback gain drops below 1 around that point -- it literally can't respond anymore), at which point bypass caps take over, there might be peaks or valleys, it goes back up at HF... this all depends on the fixture used (which they never tell you about), things like stray L in the layout, ESL of the caps, how many caps are used and in what combination (parallel (ceramic) caps have resonance between them), but in any case you can do the same, your LC filter will take over above cutoff (and preferably somewhat below, as needed).

But note that PSRR vs. F is usually done at some large-ish drop, maybe 1V or more.  If they give a series of curves with Vdrop as parameter, that's great.  Assume it gets worse as Vdrop goes down.

Doing statistics, will be sensitive to AC readings, and you'll want a stable reading to tell more from less.  If it's unstable to begin with, at least seeing the variance increase would be a thing, but you can't tell if it's in/out of phase with the system noise floor (which isn't noise at all but coherent: peaks in the frequency spectrum), and any time those correlate, you end up with (constructive/destructive) interference, and you could see the variance decrease instead, which would just be strange, but is perfectly reasonable when things line up just right.

Note that, so far, you've implied these signals are independent, or can be assumed as such.  You might know better.  If the other supplies are derived from the first, then that ripple carries through according to the transfer functions of everything between, and the statistics will be stable.  If they're separate switching circuits, likely not, but there could still be weird ratios and mixing tones that result in fluctuating readings.  Gathering statistics over a long enough period, reduces those fluctuations to only when beat frequencies are on the order of that collection period, making such error much rarer, and if the frequencies themselves aren't that stable in the first place (e.g. COT controllers, spread spectrum), the error can also be made small.

Tim
7
RF, Microwave, Ham Radio / Re: fake MPF102s from AliExpress
« Last post by radiolistener on Today at 02:20:03 pm »
I would speculate that they are still fakes, but probably of the better side of the spectrum. I'm almost tempted to get some (mosfets, I think, as they're the easiest to test for basic parameters) and see how far the fake inductry has progressed :).

I think yes, when there is "original" word, it is usually fake. You can also find not fake items on aliexpress, they can be marked as "genuine", but usually their price is about 30-50% higher than you can buy it from EU sellers. This is because the seller needs to pay additional import tax which is pretty high for electronics components in China.

Also you can find some genuine components which was stored with a bad environment condition and though cannot be used for production due to possible defects due to corrosion.

So, if there is a good price, that is almost 100% indication of fake or factory rejected items... :)
8
Quote
it will be something else later. It adds to the many other health problems related to factory farming as justification to phase it out and replace it with sustainable farming.
And then mother nature will find another novel way of trying to keep the population of the most destructive  species on the planet under control
9
General Technical Chat / piano switch
« Last post by vivi-d on Today at 02:16:04 pm »
Hi, I found this neat looking switch on digikey. I read the datasheet, but it is unclear whether this is a momentary switch or not.

How can I tell? Does anyone know?

It's part number CKN10346-ND on digikey.

https://www.digikey.com/en/products/detail/c-k/BPA01B/2641381
10
Oh no, even chickens bad now, the only solution to save humanity is to switch to industrially produced protein supplement brick meals! Totally not because it's very very profitable for us to turn any garbage protein, fat, and carb source into kibble for humans.
Pages: [1] 2 3 4 5 6 ... 10 Next