@NickAlexeev DDS you mean? you only need a sample rate of 44 kHz for these frequencies. So should be simple enough by outputting a new sample via DMA and calculating the next same at the same time. Just linearly increment the phase each time, and the either calc a sine wave (if there is enough time) or look it up from a table and interpolate
@uhoh I found regular FR4 quite good (not in space but in terrestrial UHV), but there are a few caveats: reflow air bubbles in solder should be avoided, flux residue MUST be carefully removed. limit heat exposure, so the board shouldn't be in direct sunlight. But outgassing limits for sensitive space instruments might be stricter, so idk really
@Lundin I want to measure accurately the average duty cycle, but say the timer clock is 32 MHz and the signal is also in the MHz range. The one answer suggested the "gated mode" which sounds kinda appropriate but I didn't have time to test it
Fair. I only joined after the - let me call it - "politicization" happened, so I'm kinda agnostic about these platforms and SE simply was was "stuck" back then
@NickAlexeev Ehh I was thinking about codidact in the past, but decided against it thinking that I'd essentially only go there if I didn't get an answer on SE
This is approximately the most basic timer function I can think of coming from an FPGA, yet I'm too dumb to find anything about it for microcontroller timers..
Microphones picking up EMI is pretty inevitable. The rectification of the RF into audio band patterns happens in the semiconducting parts usually. So I would think about putting proper low pass filters before the amplifier
copper in general is one of the most instable metals when it gets to corrosion. almost no copper salt is insoluble in aqaeous solutions, it oxidizes readily, and in contrast to almost every less noble metal, its oxide isn't self passivating
I just found this "datasheet": https://cdn-reichelt.de/documents/datenblatt/D800/KATALOGDATENBLATT_CUL.pdf It's german but apparently they use a modified polyurethane coating, which is tinnable at 350°C.
Oh I just found this gem quote on the internets: > There is specialized magnet wire with enamel that is designed to burn away clean at soldering iron temperatures. Just tin it and you are good to go!
I feel uneasy around RS-485. If you need a long cable based comms links, it should have galvanic separation, so Ethernet or optical comms. As as fibres tend to break, Ethernet it is.
@NickAlexeev I suppose the distance max between the sensors and controller will be max a few meters, so say 10 m max. And per controller, there will be only a few sensors, less than 10 I guess. Or even a single one.
@Lundin basically the latency from when the sensor begins streaming a value until both of the following things have happened: a) the controller has read the value and can begin processing it b) the sensor can begin sending the next value
Though I guess, there is no issue in providing two separate power wires in the cable, if the fieldbus type does not impose a specific cable format that leaves no room for additional power wires
@Lundin If we want to exchange something like 10kS/s (or more) with a latency ideally below 100 us does that narrow the field of useful busses somewhat?
On a separate note I am reading up on field busses for a small project description for a sensor module. And I am wondering whether it's possible to make an informed choice of a field bus without regrets and without hating my life lol
@NickAlexeev thanks I think I see where this is going. Hardware exists, it's generally possible but requires some research some pushing and some convincing ;)
yeah I realize that bit banging is not the way on microcontrollers, which is why I want to understand how people typically approach this kind of communications on micros. again contrast that with FPGA where not bit banging any kind of communications is rather cringe
(background is FPGA where all the pins are DIO, because you can bitbang deterministically whatever interface you want. But I reckon this is not gonna work on microcontrollers as bitbanging would require the CPU.)
And in terms of streaming can streaming from/to such an SPI engine be handled in hardware too via some kind of DMA, or even streamed to another peripheral all without CPU?
Another generic microcontroller question if I may: many parts have dedicated "SPI" pins. How are these different from DIO pins? does it mean there is some kind of hardware serial engine to which I can write/read e.g. 32 bit values and which then goes on to serially send/scan this from the "SPI" pins?