Post Created date
random float generator
Brian Fairchild wrote: If you have a float width of, say, 32 bits, and generate a random bit stream But that's hardly a truly random number because there are more discrete...
Tuesday, 23 June 2020 - 10:28
Advice on input IR signal threshold value
Xiao wrote:The reason is that IR signal is interfered by the environment light, I think. No - this is the basic physics behind what you're observing. https://en.wikipedia.org/wiki...
Tuesday, 23 June 2020 - 09:55
random float generator
You are re-initialising generator and distribution on each function call. Make them static. float random_weight_pp (void) { static auto generator = std::mt19937_64{ std::...
Monday, 22 June 2020 - 21:27
I/O states pre-POR
You're probably over-thinking this. In that grey area of Vcc before the chip reset threshold, the FETS driving the AVR pin won't have much, if any gate drive so will look high...
Monday, 22 June 2020 - 20:09
Serial Programming Algorithm Flash memory Problem
  Note also that the OP didn't actually write any programming code, just a small blinky program. He was a very special type of freak who wanted to program his AVR serially...
Monday, 22 June 2020 - 15:12
Intergral Windup method in PID control
Don't forget that when the process variable is exactly at the setpoint the proportional term must become zero because the error becomes zero, however we do need some small...
Monday, 22 June 2020 - 14:36
Intergral Windup method in PID control
So during heating from cold. The proportional term could become very high so you should clamp at 100% The integral term rises high so it's clamped at 100%   Perhaps try to...
Monday, 22 June 2020 - 10:57
Can someone help me understand assembly instructions for setting DIRSET?
I think your avr-objdump is broken. According to Atmel-0856L-AVR-Instruction-Set-Manual; STS is always a 32-bit instruction, whatever kind of AVR.  
Monday, 22 June 2020 - 09:39
Measuring incorrect voltage by multi meter. What could be reason
Vindhyachal Takniki wrote:but emisstivity [sic] of object also varies, how to keep that into accoount [sic]? You have to allow the user to change it via some menu option....
Sunday, 21 June 2020 - 10:42
Digital output vs Vcc
You didn't tell us, but as the post is tagged Arduino; let's assume ATmega328P.   Apart from having to extrapolate from 3V to 2.7V; what does this graph on datasheet Pg608...
Sunday, 21 June 2020 - 09:32
Power Changeover Switch - Ingenious Circuit Needed
It's overkill but you could use separate switching regulators, each with their own logic level enable signal. You could then use the code in #2 to drive those enables.  
Saturday, 20 June 2020 - 14:54
Flash LED
jbuss wrote:The precious [sic] project before that was the same but just lit an led if the switch was on. So together with the code in #2 you've already got the code you need to...
Saturday, 20 June 2020 - 09:48

Pages