Hot answers tagged

5 votes
Accepted

Arduino Uno prescaler, not measuring what I expected

Since you set TCCR1A = 0 and TCCR1B = 0000 1011 you are using clear-timer-on-compare mode (...
user avatar
  • 2,996
5 votes

Arduino Uno prescaler, not measuring what I expected

It looks to me like your code is dividing again by 2, by inverting PORTD_2 at each interrupt. That would explain why the frequency is half what you expected. If instead you set and reset PORTD_2 at ...
user avatar
  • 8,118
5 votes
Accepted

How to make water flow sensor work to measure flowed water and not flow rate

If you look at the flow rate vs output frequency, it's fairly linear. If you don't mind a few % error and just assume that it is linear that makes this very easy. Simply count the pulses coming out of ...
user avatar
  • 4,903
3 votes

2-stroke engine interferes with Arduino project

Are you sure it is the microcontroller that is crashing and not just the I2C comms to the LCD getting corrupted with noise? I can't see any pull-up resistors on your I2C bus in your schematic, so this ...
user avatar
  • 3,672
2 votes

How to make water flow sensor work to measure flowed water and not flow rate

You can expand the conversion table into lookup memory for more accuracy on interpolation as it has some nonlinearity. LPH / 3600 x 1000 = mL/s (milli-Litres per sec. Vs pulse per second) to get ...
user avatar
2 votes
Accepted

Suitable sensor for very faint vibrations in metal

Piezoelectric wafer sensors work well for this, but using them effectively requires more knowledge than a hobbyist typically has, in terms of the circuit design needed. You can't simply connect them ...
user avatar
  • 245
1 vote

MOSFET being driven by an Arduino won't turn on without a 1M pulldown resistor

Your gate threshold voltage Vgs for that FET is 2..4 V. Your Uno processor may run from a 5 V supply, but is probably outputting a bit less. You don't want to be too close to the threshold, or you may ...
user avatar
1 vote

Making a simple (but useful) oscilloscope using an Arduino Uno

First: method n°1, namely a "non inverting amplifier" is only capable of amplifying a signal, not attenuating it. Method n°2 draws current from whatever you're measuring, so depending on how ...
user avatar
  • 1,336
1 vote

How to make water flow sensor work to measure flowed water and not flow rate

Looks like if you keep the flow rate between 600l/hr and 120l/hr you can use 2.05ml/pulse and get a fill within -1.8%/+0.9%. You can graph the flow rate during the fill and get an idea of how ...
user avatar
1 vote

How to make water flow sensor work to measure flowed water and not flow rate

Take the flow rate to frequency table and convert it into to fluid per pulse table, then every time a pulse comes count that as a bit more fluid delivered. look at the time ellaspsed since the last ...
user avatar
  • 26.9k

Only top scored, non community-wiki answers of a minimum length are eligible