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 (...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
arduino × 8105microcontroller × 656
led × 451
sensor × 391
power-supply × 357
transistors × 356
mosfet × 349
relay × 317
voltage × 282
pwm × 265
serial × 263
motor × 239
atmega × 235
power × 225
raspberry-pi × 220
avr × 217
i2c × 196
dc-motor × 194
switches × 173
stepper-motor × 165
batteries × 163
usb × 163
adc × 161
esp8266 × 160
operational-amplifier × 140