Post Created date
Rotary Encoders Occasionally reading in reverse
I'll question this line: encoderPortStates|=0b00001101; //we want to set bit 1.The effect of the line sets more bits than your commented intention.  
Saturday, 27 June 2020 - 11:29
RonWesley posts
awneil wrote: Didn't spot any links, though Neither did I - Perhaps they were invisible to muggles.  
Saturday, 27 June 2020 - 09:39
ADC78472 chip control by GPIO of Atmega128A
clawson wrote:A "backwards" array? How intriguing ! And reading off the end of it also - doubly intriguing.   In case that's too cryptic - here's the fix: if(idx==...
Thursday, 25 June 2020 - 10:23
Need help with schematic
Many freaks (me also) believe a schematic should be an uncluttered work of art. Whilst yours is by-no-means a Jackson Pollock it could do with tidying somewhat.   Mistakes...
Wednesday, 24 June 2020 - 11:24
Reading multiple ADC channels fail
You must set the ADMUX to the correct channel before taking a new ADC conversion. byte lecturaTeclado (void) { ADMUX = (1 << REFS0) | (6 << MUX0); int...
Wednesday, 24 June 2020 - 09:58
number transmit over uart and receive
Given how long it's taken Rajat to get to this stage in his project; I think introducing the concept of binary COMMS may be a bit pre-mature. It does introduce a level of...
Tuesday, 23 June 2020 - 11:04
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

Pages