Hot answers tagged

2

About the fingerprint sensors from mobile phones: You might find the answers to this question useful. They explain in detail, why it is not really worth the effort to try interfacing such a fingerprint sensor with Arduino. How to use any module that has no library for arduino? You need to read the datasheet of the module. It should explain in detail, how ...


2

your updateDirection logic doesn't quite work the way you think it does. after a bit of code formatting and comments it looks like this: void updateDirection() { if (distanceInchR < minDistanceInch && distanceInchL < minDistanceInch) { if (movement != BACK) { backUp(); } else if (distanceInchR < ...


1

I don't know what is the “best”, and in fact I would be interested in knowing the answer. So far the best option I found seems to be a submersible level sensor (do a Web search for these words). These are pressure sensors that you put at or near the bottom of the tank. They give you a reading proportional to the height of water above the level of the sensor. ...


1

//is this right?? counter = digitalRead(buttonPin); No. Just remove that. It will change your counter to either 0 (low) or 1 (high). it doesn't seem to work: It's because all your comparisons are actually assignments: if (buttonState = HIGH) [...] if (counter = 3) [...] For comparisons, you need two equal signs like ==. Another issue: your LEDs will ...


1

Another way is to use a software emulation of the I2C interface so that any of the digital I/O pins may act as an I2C pin. One well-written library you can use for this is SoftWire by Steven Marple. It can be installed via the Arduino Library Manager or directly from its GitHub repository here. With this, you can select arbitrary pairs of pins to act as SDA ...


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