Arduino: Sensing black and white with a CNY70

  Рет қаралды 9,998

Nestor Benavides

Nestor Benavides

Күн бұрын

Пікірлер: 20
@arendelle_ok
@arendelle_ok 5 ай бұрын
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
@Ne10940301
@Ne10940301 5 ай бұрын
@@arendelle_ok it should work as a linear scale... 0-3 = Black 3-10= Dark gray ... >20 = white
@shubhamagarwal2548
@shubhamagarwal2548 4 жыл бұрын
Helpful!
@crusher1337
@crusher1337 11 ай бұрын
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?
@Ne10940301
@Ne10940301 11 ай бұрын
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.
@rolandorobertorivas6464
@rolandorobertorivas6464 Жыл бұрын
hi...can you tell me how you calculate the resistences...please....o in what book can i find?
@Ne10940301
@Ne10940301 11 ай бұрын
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.
@rampr4225
@rampr4225 4 жыл бұрын
Does this sensor work Outdoors under Sunlight?
@Ne10940301
@Ne10940301 4 жыл бұрын
Not pretty well
@shettyadithcreations1799
@shettyadithcreations1799 Жыл бұрын
In which area should we conduct the experiment?
@Ne10940301
@Ne10940301 5 ай бұрын
@@shettyadithcreations1799 any flat non-transparent surface should do it
@shettyadithcreations1799
@shettyadithcreations1799 Жыл бұрын
How did you do the track?
@Ne10940301
@Ne10940301 11 ай бұрын
Duct tape on a piece of white corrugated plastic board.
@mehdilaroussi1280
@mehdilaroussi1280 4 жыл бұрын
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
@Ne10940301
@Ne10940301 4 жыл бұрын
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.
@kenago2493
@kenago2493 5 жыл бұрын
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?
@Ne10940301
@Ne10940301 4 жыл бұрын
Kevin Navarro kzbin.info/www/bejne/pqjCg2mujtedptE Same logic
@technochamps4218
@technochamps4218 5 ай бұрын
I think your cny70 sensor is fake
@nadyaslimany9444
@nadyaslimany9444 4 жыл бұрын
could you please send me this code
@Ne10940301
@Ne10940301 4 жыл бұрын
NADYA SLIMANY it’s a 7 lines code, copy it as you see it in the video.
Arduino: Motors control (L298N Driver)
11:36
Nestor Benavides
Рет қаралды 1 М.
Machine Learning on Arduino Uno was a Good Idea
12:30
Nikodem Bartnik
Рет қаралды 326 М.
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
Detección de objetos sensor CNY70
8:01
Proyectos JC
Рет қаралды 19 М.
My Kickstarter failed, so I open sourced it
12:20
StuckAtPrototype
Рет қаралды 727 М.
DIY Fast PID MAZE SOLVER Tutorial with code
15:51
robojunkies
Рет қаралды 19 М.
Building a Massive LEGO Tank
17:56
Brick Technology
Рет қаралды 420 М.
✅ Infrared Optical Sensor (How It Works) CNY 70 Robot black line
2:51
El profe García
Рет қаралды 717 М.
Open Source Motion Capture for Autonomous Drones
10:34
Joshua Bird
Рет қаралды 657 М.
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН