2

The IO doesn't require the clock to keep its current state. It only requires it to change state. There is no real external signal provided by the chip to indicate if its in sleep mode or not. However you could monitor the current consumption of the chip and when it drops below a certain threshold you can assume that it is in sleep mode.


2

For measuring oxygen saturation (SpO2) with a pulse sensor, you need to use the fact, that hemoglobin, that carries oxygen, will reflect in different light wave lengths, as hemoglobin, which doesn't carry oxygen. But that also means, that you need to use light in at least 2 different wavelengths. Common are one red (about 660nm)(though green may also work) ...


1

You define i,y,i as global variables so there is no need to hand them over to different functions. They can be accessed and changed in all parts of your program. define instead of int y; change to long y; and change void inOut(int &i){ to void inOut(){ and remove return i;// Its a global var change the line unsigned long y = ((...


1

If there are no other constraints, send them as a text with delimiters and a terminating character. e.g. something like "123;45;678\n" On the arduino, either manually check for those delimiters and convert the digits to a number on the fly, or use strtok and atoi after reading the whole line.


1

I asked this question to be moved to Stackoverflow as it is not Arduino related. However to answer your question, you assign the booleans before you start the program, so they are never re-evaluated and always keep their initial value, based on when x = 0. What you should do is, reevaluate them within the loop: int x = 0; boolean state1; boolean state2; ...


1

You need either a memory extension for your UNO - projects like Arducam did this way back 2016 and then used an OV2640 module. If you want to develop something yourself these are the steps (hurdles) to take: Get a datasheet of the camera Design a circuit including plug for Camera and a memory module (min 512Kb) Attach it to the UNO Write a library/...


1

You have probably installed the box servo backwards so that when it tries to open it actually closes and vice versa.


1

At first, I had similar behavior with the servo motor in this project. The servo buzzed and either did not move or made very slight erratic movements. The problem in my case was that I had wrongly placed the wire that is supposed to connect the potentiometer to pin A0. Here's how my board looked after I corrected the problem:


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