![]() What sort of Blue did you use? There are lots of different ones! It is perfectly possible for a blue to have significant elements of red and green in it. ![]() I'm fully aware of the impact on measurements, that lighting, sensor angle and distance and such things can have, so I believe I've done the tests in a proper way. ![]() Has anyone else experienced similar "inconsistencies"? That seems way too big a difference to be able to use sensors interchangeably. One sensor consistently read an R value of 230-240, whereas the other read values around 310. simply switching them back and forth, while the test program was running. I tried sensing the same red surface with 2 different sensors. is the sensor generally bad at sensing the blue part of a color? Or might I have missed something ?Īnother thing. However, sensing a blue surface, all 3 values are more or less the same lower value. The same goes for sensing a pure green surface. using the sensor in RGB mode yields an R value, which is significantly higher than the G and B values. a pure red surface yields expected values. There's a couple of observations, that puzzle me, and I hope someone can help explain. I'm new to StackOverflow, so please forgive me if I posted this incorrectly.I've been doing a few basic tests of the EV3 Color sensor. If anyone out there could help, we'd really appreciate it. I know we're missing something about variables here but can't figure out what it is. That's where this started, but we could tell the variable wasn't working by the way the program reacted, so we went to this to debug. We're trying to create our own line following program (I know we can find other ways on YouTube, but we really want to figure it out our way if possible). We've also put the two programs together to run them in case the variables aren't global (though they should be with the EV3) and we get the same result. Program: Collect Light and Dark VariablesĪnd the second program should display the value of the "White" variable: The first program should collect the variables: It returns 0 no matter how dark or light the surface. When we do it, we can't get the variable to take the reading. ![]() We're trying to collect a reflected light intensity reading from the color sensor on our EV3 and pass it to a variable. My son and I have a question that we can't figure out the solution to. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |