• 3 Posts
  • 30 Comments
Joined 3 years ago
cake
Cake day: June 11th, 2023

help-circle




  • Assuming that the ribbon cable is standard - you could consider adding TWO IDC connectors, side by side. Then slice the cable through between them. Then add a standard extension cable to link the two. Indeed if one of the two is male, the other female - the extension can be removed if the thing is relocated to where the extension isn’t needed - or a longer one is needed.

    I confess to having done this sort of mod several times, myself. It’s also quite an easy way of sticking a protocol analyser/sniffer between the two and/or modifying the data that is sent on its way. Or adding an additional sensor (even of a different type) and converting its output to something suitable.




  • How I would do it is to use two digital IO pins on the processor to generate the reference square wave. Put the sensor plus a series precision resistor between them and just pull one IO pin high as the other is pulled low and then swap them. That presumes that IO pins can both source and sink IO current. Then take the junction between the two to an Analogue in pin. You get two measurements each cycle. Use a lookup table of values and interpolate between them. If you wanted more precision - add more series resistors of different values covering the range of humidity that you want to sense, going to different IO pins. So you can choose the IO pin pair that brings the centre point between sensor and resistor closest to the mid-voltage point. It’s effectively a balanced half bridge arrangement - using the precision of the resistors to determine overall measurement precision. OK it ties up several IO pins - but microcontrollers are so cheap, I’d probably just dedicate one to this sensor and that’s all that it would do.




  • Depends on your programming abilities. You can set up a “1-Wire” bus and put the lot on that. You could have one microcontroller as master and the rest as slaves - your external USB connection would go to the master and it could, in theory at least, then pass on program upgrades to the others. Clearly they would all have to be programmed individually, originally. But, quite frankly, the investment in time and effort on setting all that up? If you had dozens, hundreds - then yes. But you only have a small hand full. I’d just bring out their USB connections and program them individually, via those. I think each one has a unique identifier, stored in ROM - so they could all run the same software and include that identifier in messages on the bus.




  • Usual situation - if I needed to interface to 5 cameras I wouldn’t start with ones that needed: “The DVP physical interface consists of a single, 100-conductor, 110-ohm cable organized. as 45 differential signal pairs. These signal pairs consist of the following: • 36 RGB data pairs. • 2 clock pairs.” So, you would be interfacing to 5 x 45 differential pairs. I’d be looking for camera modules with serial output…

    Or, as you suggest, give each camera something that can convert that lot into a single serial data stream. Or even process it down to a QR code and just send that. Or even do what-ever it is that you want to do with that code, once received.


  • What worked for me, that may not do so for anyone else - is to take an existing circuit (usually a reference one provided by a manufacturer) and build that. Get that working (sometimes, it hasn’t worked- the manufacturer’s technical support department has often been very helpful, especially when their reference design has a design fault or has been misprinted - after doing that, they used to send me unmarked, pre-production chips/etc to play with and provide feedback).

    Then modified that design, to test my understanding. Tried different board layouts, guard rings, etc and documented the effect. When it didn’t work as expected - took that back to their tech support to see if we could work out why.

    So, for me, taking something that works and keep modifying it, just a little.



  • Just a word of caution - education is a process of diminishing deception. Books provide a simplified version of real World electronics. Universities and colleges put a lot of effort into designing lab practicals that will actually work and give the predictable results that students expect.

    So the normal learning process when it comes to op amps - is to read and understand the theory. Then complete those crafted lab practical exercises - having been introduced to the added complication of systemic and random errors. Then do your own thing, when all the remaining Real Life complications hit you like a brick.

    So, if you can find a course in analogue electronics, even a distance learning one, you might find the steps are smaller and more easy to assimilate.



  • You want hysteresis and an energy gap - which means putting energy into the system. You could use a latching relay to minimise insertion loss, however the loss in a conducting MOSFET can be pretty minimal.

    SLAs self-discharge, of course.

    If the load versus time is predictable, you could use a latching relay and delay voltage checking until the time window for potential cut-off. Or make it entirely period based and not test at all.

    It may be that you never need to sense voltage, if your time period between recharging is small enough.

    Many operate on that basis - the time interval between recharging may be out of their control (in our case, once, we only had mains electricity between 2am and 4 am each day…) and they provide themselves with enough battery capacity to last that time interval, with a reserve. So no low voltage cut off necessary. So no testing necessary.