For your first program: I'd suggest that instead of changing the termination condition to a little less than the target, change the speed to still be a small positive number when it reaches the target. For example, if your target is x degrees and the current sensor reading is k degrees, make the speed be something like 30*(x-k+5)/x, to start at speed 35 and end at speed 5, no matter the value of x.
Hi Kevin, I did exactly as you did to move the Robot straight. Unfortunately, my robot does not move back to the intended straightline when I move it off the direction like you did. What I also did not understand is, the reason you are using gyro sensor reading to write into the variable staright angle but read the target angle to calculate the differnce. Please help.
Hey smitharayala, I've done the program as well and found out that it starts spinning out of control. The simple thing to do to the program is to change the math block to addition, instead of subtraction. That should fix it.
Any chance you can help me trouble shoot. my code that I copied from your tutorial is stuck in the loop. it just turns. I checked my ports cables restarted. Still just makes a turn Any thoughts on what to look for all the wires on the math block seem fine too
The student did the straight line but if they add something after the loop, nothing happened. They want to make the robot go straight with the gyro sensor like you showed on your video but they want to add an other senser the tactil one and an other motor.
Hello, my robot does not follow the loop instruction for exiting, I have it program to move just 3 rotations and the robot just keeps going. Do you now why?
I'm having an issue with the 90 deg turn... it doesn't quite make it to 90 degrees, then kind of pauses and waits and never quite makes it. So it doesn't move onto the next part of the program. Any ideas?
+Ihms Student Have the exit condition of the loop be a few degrees less than than your turn (in your case 87 degrees) This will guarantee it exits the loop.
Thank for your tutorials, after your tutorials, I built two three different my blocks - if I test the myblock individually it works as expected, but did get the same result all the time if I am trying use these myblocks to move the robot such straight - turn 90 R - straight - turn left 90 L also, I have another myblock with the input of speed and number of rotation all these combination of my blocks. Problem I have is if have 3-5 these types of myblocks, program just stop middle, not sure what wrong with the myblock. Can you help?
In the very last program you forgot to change variable to "straight" on reading. That can cause motor to circle around, unless the sensor pointed to calibrated direction.
Moving in a straight line. This only works once, when used a second time the program simply exits. I have not traced down just how the variables are not using the current heading on the second use even when reseting to Gyro to 0 before it runs.
Hey Kevin. I'm a 7 year old boy who is new to ev3.I would like if you could post a video about abundant light intensity.I have already watched many of your videos and like them but I could never find one with abundent light intensity