Hello, thanks for the video! One question... I tried to build the same circuit and run the code but the only value the serial monitor is giving me is 1023 over and over again. Do you have an idea how to solve it?
Either the transistor is broken and you need to use a different sensor (if your readings do not change at all no matter the surface in front of the sensor), or you are plugging the sensor (yellow cable) to a digital pin of your Arduino, ensure that you are connecting it to a port with the ~ symbol next to it.
forum.arduino.cc/t/how-to-calculate-the-value-of-resistor-to-protect-led-and-arduino-pin/119048/5 This forum can help you understand better, but if you are not doing something complicated with Arduino, you can always use 220 or 330 Ohms resistors.
Thank you for this Video. I made the same circuit and the same code but im having the same value, like many 5 or many 6 in the serial Port. and i tried with different Sensors but nothing happens, im always getting the same value even i put the light on the Sensor it doesnt change anything. Do you know maybe what could be the problem? Thank you :D
Can you explain. When sensor reading grayscale gradietn color. Such as Black. Going into gray. And going into white. and vice versa. Look How it does
@@arendelle_ok it should work as a linear scale...
0-3 = Black
3-10= Dark gray
...
>20 = white
Helpful!
Hello, thanks for the video! One question...
I tried to build the same circuit and run the code but the only value the serial monitor is giving me is 1023 over and over again.
Do you have an idea how to solve it?
Either the transistor is broken and you need to use a different sensor (if your readings do not change at all no matter the surface in front of the sensor), or you are plugging the sensor (yellow cable) to a digital pin of your Arduino, ensure that you are connecting it to a port with the ~ symbol next to it.
hi...can you tell me how you calculate the resistences...please....o in what book can i find?
forum.arduino.cc/t/how-to-calculate-the-value-of-resistor-to-protect-led-and-arduino-pin/119048/5
This forum can help you understand better, but if you are not doing something complicated with Arduino, you can always use 220 or 330 Ohms resistors.
Does this sensor work Outdoors under Sunlight?
Not pretty well
I think your cny70 sensor is fake
In which area should we conduct the experiment?
@@shettyadithcreations1799 any flat non-transparent surface should do it
Thank you for this Video.
I made the same circuit and the same code but im having the same value, like many 5 or many 6 in the serial Port. and i tried with different Sensors but nothing happens, im always getting the same value even i put the light on the Sensor it doesnt change anything.
Do you know maybe what could be the problem?
Thank you :D
Seems like the code and the circuit are not matching.
Make sure that the sensor is connected to the same port that you declared in the code.
How did you do the track?
Duct tape on a piece of white corrugated plastic board.
Hi, i hope you can help me how can i make the code to turn a green led when the detection its white and turn a red led when the detection its black?
Kevin Navarro th-cam.com/video/pw_R6xYrjpo/w-d-xo.html
Same logic
could you please send me this code
NADYA SLIMANY it’s a 7 lines code, copy it as you see it in the video.