I am new in " arduino world " and I need help to write an Arduino Code. So please, who can help me?
What have you tried to learn so far?- have you worked through these tutorials?
I need help to write an Arduino Code.
What does the program need to do ?
The people here can help, but you haven't said what you need help with. Nobody can help you until you tell us what you need help with.
I am the one who is new in " Arduino world " lol
You are not the only one.
I want an arduino code for this project,
Fire up the IDE and start typing. This is NOT the homework hotline.
The project like this, 3 ir sensor senders and receivers were put to count people who are in the room if the number of them is more than 4 for example the DC motor must turn off 3
Senders and 3 receivers for more accurate let's say that the first sensor is (A) the second (B) and the third (C)if A works fist then B then C we can assume that the person is entering the room but if C then B then A then he is existing, and if the number of people in the room in more than 4 the DC motor which is connected with a transistor must turn off
mohannad0kh:
" 3 infrared ( senders and receiver) was put to count people "
You never can count people that way.
If the "line of sight" from sender to receiver is interrupted two times, this can be caused by
1st case - two people came in, interrupted line of sight two times
2nd case - same person first comes in, then goes out, iterrupting line of sight two times.
In first case, number of persons increases by two
In second case, number of persons stays the same as before.
I cannot think of any code counting people using infrarad senders and receivers.
You see the problem?
Cross posted from here.
So, you have IR sensors. As a starting point have you managed to read just one of them with the Arduino and printing the result on the Serial monitor ?
The project like this, 3 ir sensor senders and receivers were put to count people who are in the room if the number of them is more than 4 for example the DC motor must turn off 3
Senders and 3 receivers for more accurate let's say that the first sensor is (A) the second (B) and the third (C)if A works fist then B then C we can assume that the person is entering the room but if C then B then A then he is existing, and if the number of people in the room in more than 4 the DC motor which is connected with a transistor must turn off
UKHeliBob:
So, you have IR sensors. As a starting point have you managed to read just one of them with the Arduino and printing the result on the Serial monitor ?
No I don't want to use a monitor, just with the arduino, if the number is more than 4 then the DC motor must turn off
Ok. I get that's what you want in your final project. But that doesn't mean you can't use the serial monitor for testing and learning. Don't try to write the whole finished project from the beginning. Write some simple codes and learn to do the different parts.
Delta_G:
Ok. I get that's what you want in your final project. But that doesn't mean you can't use the serial monitor for testing and learning. Don't try to write the whole finished project from the beginning. Write some simple codes and learn to do the different parts.
I know but I need a help because I don't learn "Arduino c" language, so I need the code
Ok. Write some code. If this is over your head then back up and work through some examples and tutorials.
There is a section of the forum called "Gigs and Collaborations" where you can find someone to just write the code for you if that's what you want. But be advised that they will expect to be paid for that service.
@mohannad0kh, do not cross-post. Threads merged.