Notice: Undefined index: cf_maxage in /home/robochamp/public_html/wp-content/advanced-cache.php on line 51

Notice: Undefined index: cf_browser_maxage in /home/robochamp/public_html/wp-content/advanced-cache.php on line 51

Notice: Undefined index: cf_maxage in /home/robochamp/public_html/wp-content/advanced-cache.php on line 54

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the buddyboss-pro domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/robochamp/public_html/wp-includes/functions.php on line 6121
lessons Archives - International Robotics Championship https://robochamp.org/tag/lessons/ Have fun, competing with robots! Thu, 17 Dec 2020 11:36:31 +0000 en-US hourly 1 https://wordpress.org/?v=6.8.5 https://robochamp.org/wp-content/uploads/2020/09/cropped-IRC_favicon-32x32.png lessons Archives - International Robotics Championship https://robochamp.org/tag/lessons/ 32 32 How to Install Third Party Blocks (like RGB block) In EV3 Mindstorms https://robochamp.org/2020/12/17/how-to-install-third-party-blocks-like-rgb-block-in-ev3-mindstorms/ https://robochamp.org/2020/12/17/how-to-install-third-party-blocks-like-rgb-block-in-ev3-mindstorms/#respond Thu, 17 Dec 2020 11:27:49 +0000 https://robochamp.org/?p=1195 To install third party blocks (like RGB block developed by others) inside EV3 Mindstorms, you need to follow some steps. Take a look at what you need to do.

The post How to Install Third Party Blocks (like RGB block) In EV3 Mindstorms appeared first on International Robotics Championship.

]]>
  • You need to have your third party block in your computer.
    1. If you want to install the classic Mindcub3r block, download ColorSensorRGBzip-v1.00.zip to your computer.
    2. If you want to install the enhanced RGB block from ODFL, download this block on your computer.
  • Extract the file from this archive (if it is a .zip file. Otherwise, skip this step).
    On a computer running Windows, find the file in Windows Explorer, click with the right mouse button and select Extract all…
  • Start the LEGO MINDSTORMS EV3 software and create a new, empty project.
  • Select the Tools menu and then Block Import.
    1. In the Block Import and Export dialog, select Browse.
    1. Find the file, which has .ev3b extension on your computer and Open it.
    1. Select the .ev3b file from Select Blocks to Import and then select Import.
    1. To complete the installation, close the dialogs and exit from LEGO MINDSTORMS EV3 software.

    Source:

    How to build MindCub3r for LEGO MINDSTORMS EV3: http://mindcuber.com/mindcub3r/mindcub3r.html

    The post How to Install Third Party Blocks (like RGB block) In EV3 Mindstorms appeared first on International Robotics Championship.

    ]]>
    https://robochamp.org/2020/12/17/how-to-install-third-party-blocks-like-rgb-block-in-ev3-mindstorms/feed/ 0
    How to Use Sensors In RGB Mode https://robochamp.org/2020/12/17/how-to-use-sensors-in-rgb-mode/ https://robochamp.org/2020/12/17/how-to-use-sensors-in-rgb-mode/#respond Thu, 17 Dec 2020 11:17:21 +0000 https://robochamp.org/?p=1188 David Gilday, who made mindcuber, created the EV3 Color RGB mode in the early days, which greatly improved the EV3 Color Sensor.

    The post How to Use Sensors In RGB Mode appeared first on International Robotics Championship.

    ]]>
    Do you know that there are some blocks that will help enhance your light sensors?

    The original EV3 color sensor supports reflected light, ambient light and color mode, but this does not meet our needs. David Gilday, who made mindcuber, created the EV3 Color RGB mode in the early days, which greatly improved the EV3 Color Sensor.

    Original Digital Flipped Lab (OFDL) have added other functions, including the RGB comparison mode and the raw value mode.

    You can download the block from here: https://github.com/a10036gt/EV3-ColorRGBEnhanced-Block/releases/

    RGB Block in EV3 Mindstorms

    How it works

    The block has 3 different modes which will help you use sensors in enhanced way:

    Measure – RGB color

    This mode returns the Red, Green and Blue components of the RGB color.

    RGB Mode

    Compare – RGB color

    This mode is a variant of RGB mode, which allows you to change the input value to achieve the judgment effect, as shown above: 20 is Error Amount, R, G, B are 170, 160, 120, respectively.

    The object reads Red to 150-190, Green at 140-180, and Blue at 100-140. When the three are established, the Boolean value is finally output.

    The interval is determined by Error Amount, which is what you input. The RGB value +-Error is the judgment condition.

    Compare RGB color mode

    HSVL Mode

    This mode allow you reading the HSVL value of EV3 Color sensor (convert from RGB).

    HSVL mode

    Citation:

    ODFL Original Digital Flipped Lab

    https://ofdl.tw/en/ev3-hacking/ev3-color-sensor-adv-block/Ver 1.6:
    .Add HSVL Mode.
    .Remove Raw value mode (merge to EV3-AdvEV3Col-Block)

    Download

    Download Link (GitHub):
    Author:OFDL HSUT2H Robotics
    Ver:1.6

    The post How to Use Sensors In RGB Mode appeared first on International Robotics Championship.

    ]]>
    https://robochamp.org/2020/12/17/how-to-use-sensors-in-rgb-mode/feed/ 0
    How to Solve Complex Tasks https://robochamp.org/2020/12/17/how-to-solve-complex-tasks/ https://robochamp.org/2020/12/17/how-to-solve-complex-tasks/#respond Thu, 17 Dec 2020 10:50:29 +0000 https://robochamp.org/?p=1179 You may come across with some missions which will feel very difficult and hard to start working on them. For these kind of situations you need to be happy because there is a very simple way to get closer to a solution and it is called "goal breakdown structure".

    The post How to Solve Complex Tasks appeared first on International Robotics Championship.

    ]]>
    You may come across with some missions which will feel very difficult and hard to start working on them. For these kind of situations you need to be happy because there is a very simple way to get closer to a solution and it is called “goal breakdown structure”.

    What is the Goal Breakdown Structure?

    If you search on the internet, you will find various definitions, some complicated, some simple to understand. In case of robotics missions as you are given in our competition, you can translate it into breaking the big task into multiple, simpler tasks, which are or are not related between each other.

    This kind of practical thinking is something that us, humans, do all the time. For example, when we go to school, we need to do some simple tasks in the process:

    • get dressed:
      • check weather first;
      • get proper clothing;
    • fill our schoolbag with whatever we need and equip it;
    • make sure we close our house door;
    • take the bus:
      • find a seat on the bus;
      • check we have everything we need to proceed;
    • get to class:
      • make sure you know to which class you are heading;
      • put your stuff in the locker;
      • keep only the necessary stuff for the class.

    As you can see, there are little goals you need to achieve and have certain subgoals which will finish the main goal. But every each one of them is simple, easy to understand and has little instructions in the process.

    Now that you understood this, let’s go back to robotics 🙂 . We will use the mission from stage 3 as an example.

    How to breakdown a robotics mission

    Understand needed principles

    First of all, you need to look at the whole mission and identify what principles apply for it. Let’s have a look at it.

    Screenshot from the mission of stage 3

    You can see certain elements which are obvious: we have black lines on white background, white lines on black background and maybe some orange lines on black background. Then, there are some blocks which needs to be pushed and some rotating devices on the other side of the table.

    So, the principles involved are:

    • classic line follower (following black line);
    • inverted line follower (following white line);
    • color line follower (following orange line);
    • push regulated objects (you can push the orange blocks and also the rotating devices).

    These are also the simple tasks the robot has to perform.

    As you can see, these are basic functions, which need some skills of programming and designing the robot, but it is not something new or unique. I am sure you have done this a couple of times before 🙂 .

    Ok, you understood this part. What now? Well, we need to design the robot which can carry out these simple tasks.

    Designing the robot

    Robot design is very important as many of the simple tasks will be solved by the construction itself. Think how you will push the object so that the robot should just move forward, without the need of having additional claw or mechanisms. The simpler the design, the more effective!

    Then, you need to think what programming algorithms you know and how that influences the design. For example, you know how to implement the classic line follower with only one sensor? Good for you! Now where do you put that one sensor so that the robot can move quick and correct?

    You need to ask yourself all these questions before starting the design. Maybe you will not get it right at first, because after testing you will see you will need some more stuff. That’s alright, it will surely happen. But, if you are giving it some thoughts before the first iteration, maybe you will not need to make so many of them afterwards.

    After you feel the design is ready, you need to create some basic functions so that you will simplify how you will right the code. In most cases, the functions are custom blocks.

    Creating basic custom blocks / functions for the robot

    This will certainly help you simplify your code. Let’s say you need to create a line follower block. You should create one which will have some parameters, like speed or turn correction. Why? Because in some cases you will want to move faster, in others you will want to move more precise.

    For the given example, you can see that if you implement a classic line follower algorithm, which stops whenever intersects a black line, the robot will travel from the start all the way up to the table. Simple, right?

    So, the main program will just have one block for line follower instead of 10 blocks for just one path to be followed. It will be much more quicker to go through the code when you will want to make adjustments and will save you lots of time.

    Also, if there is a problem in the line follower algorithm, you will need to correct it in just one place instead of many others.

    Conclusion

    This is just a basic method to solve complex missions for every competition, not just this one. Of course, you should not exaggerate and think of every action as a goal, but little by little you should start to gain progress.

    Remember this little thing: whatever you need to solve was created by a human, so there is a solution to it. And most probably, he created the mission in the same way you want to solve it: step by step 🙂 .

    The post How to Solve Complex Tasks appeared first on International Robotics Championship.

    ]]>
    https://robochamp.org/2020/12/17/how-to-solve-complex-tasks/feed/ 0
    Calculating Velocity of Lego EV3 Large Motor in a Projectile Motion https://robochamp.org/2020/11/21/calculating-velocity-of-lego-ev3-large-motor-in-a-projectile-motion/ https://robochamp.org/2020/11/21/calculating-velocity-of-lego-ev3-large-motor-in-a-projectile-motion/#respond Sat, 21 Nov 2020 12:36:13 +0000 https://robochamp.org/?p=814 Combining knowledge from projectile and getting the velocity of the rotating body such as EV3 large motor can lessen your trial and error with your robot.

    The post Calculating Velocity of Lego EV3 Large Motor in a Projectile Motion appeared first on International Robotics Championship.

    ]]>

    The EV3 Large Servo Motor is a powerful motor that uses tacho feedback for precise control to within one degree of accuracy.

    By using the built-in rotation sensor, the intelligent motor can be made to align with other motors on the robot so that it can drive in a straight line at the same speed. It can also be used to give an accurate reading for experiments.

    The motor case design also makes it easy to assemble gear trains.

    Representation of Lego EV3 Large Motor

    Specifications:

    • Tacho feedback to one degree of accuracy;
    • 160-170 rpm;
    • Running torque of 20 N/cm (approximately 30 oz/in.);
    • Stall torque of 40 N/cm (approximately 60 oz/in.);
    • Auto-ID is built into the EV3 Software.

    Combining knowledge from projectile and getting the velocity of the rotating body such as EV3 large motor can lessen your trial and error with your robot.

    Using the formula of V = 2rN or DN .

    • V – velocity of the body rotating m/s
    • r – radius of rotation
    • D – diameter of rotation
    • N – no. of rotation/revolution per minute

    Sample

    A 50g Blue ball will be thrown in a plain field with an angle of 45 degrees. Using the large motor with a 170rpm (max) how far will it go if the throwing arm has a length of 100mm.

    Using the formula above in getting the initial velocity that will be applied to the Ball

    V = 2 (3.14)*(0.1m)(170rev/min)

    V = 106.8 m/min

    V= 1.78 m/s

    Using this V as the initial velocity of the object in projectile motion, we can get the maximum distance it can reach using the formula

    R = V2 x sin2(Ø) / g

    R = (1.78m/s)2 x sin2(45)/9.81m/s2

    R = 0.507m

    Note that If we decrease the value of rotation of the large motor, we also decrease the peripheral velocity of the object and shorten the distance it will travel.

    The post Calculating Velocity of Lego EV3 Large Motor in a Projectile Motion appeared first on International Robotics Championship.

    ]]>
    https://robochamp.org/2020/11/21/calculating-velocity-of-lego-ev3-large-motor-in-a-projectile-motion/feed/ 0
    What is A Catapult and How Does It Work? https://robochamp.org/2020/11/21/what-is-a-catapult-and-how-does-it-work/ https://robochamp.org/2020/11/21/what-is-a-catapult-and-how-does-it-work/#comments Sat, 21 Nov 2020 12:28:47 +0000 https://robochamp.org/?p=800 A catapult is a ballistic device used to launch a projectile a great distance without the aid of gunpowder or other propellants.

    The post What is A Catapult and How Does It Work? appeared first on International Robotics Championship.

    ]]>
    The Catapult and its components

    A catapult is a ballistic device used to launch a projectile a great distance without the aid of gunpowder or other propellants.

    A catapult uses the sudden release of stored potential energy to propel its payload.

    Image 1: parts of a catapult

    Parts of a Catapult

    • Bucket – a container use to hold the payload prior to release;
    • Payload – the object that will be discharge in projectile motion;
    • Arm – holds the Bucket that has a pivot connection at the base;
    • Base and Frame – Supports the Catapult’s weight and action;
    • Rope – stores potential energy by stretching or winding up while it is attached directly or indirectly to the arm;
    • Restraining Rope – it serves as the trigger of the catapult once release;
    • Counterweight – used in other type of catapult. Stores potential energy by setting it in a higher elevation and drop it once the restraining rope is released.

    Energies involved in the catapult’s mechanism

    There are three primary energy storage mechanism used in a catapult.

    • Tension – is built by stretching the rope up to the maximum limit. When it is stretched, the potential energy stores in the rope, parallel to the direction of how it is stretched.
    • Torsion -is built in the pivot point of the arm. the more you twist the rope, the greater energy you stored tangent to the center of rotation.
    • Gravity – counterweight is one type of storing the potential energy by pulling a heavy object against the gravitational force.

    Once the Payload is released in the Catapult, it will create a projectile motion towards the direction it is positioned.

    Effect of Velocity in a Projectile Motion

    Velocity is the distance travelled of an object over time. In a projectile motion, it affects the distance travelled of an object. The higher the velocity, the farther it can reach at the same angle.

    To show you the effect, in image 2, we have a cannonball weighing 20kg that is shot at an angle of 45 degrees.

    Image 2: 20kg Cannonball with an initial velocity of 20m/s at 45 degrees reached a distance of 40.8m
    Image 3: 20kg Cannonball with an initial velocity of 10m/s at 45 degrees reached a distance of 10.2m

    Effect of Angle in a Projectile Motion

    Angle affects how far and how high the object will go in a projectile motion.

    Using the simplified formula: R = (Vo2sin2Ø)/g

    • R – Range
    • Vo – Initial Velocity of the Object
    • Ø – Angle of discharge in a projectile motion
    • G – Gravitational force

    We can compute for the maximum distance traveled.

    Here are the samples images with same object and initial velocity but differs in the angle.

    Image 4: 20kg Cannonball with an initial velocity of 20m/s at 0 degree
    Image 5: 20kg Cannonball with an initial velocity of 20m/s at 15 degrees
    Image 6: 20kg Cannonball with an initial velocity of 20m/s at 30 degrees
    Image 7: 20kg Cannonball with an initial velocity of 20m/s at 45 degrees
    Image 8: 20kg Cannonball with an initial velocity of 20m/s at 60 degrees
    Image 9: 20kg Cannonball with an initial velocity of 20m/s at 75 degrees
    Image 10: 20kg Cannonball with an initial velocity of 20m/s at 90 degrees

    Do you see the changes in distance and height travelled by the cannonball at different angles?


    At 45 Degrees, the vertical and horizontal forces are equal giving the cannonball the farthest distance it can reach at a given velocity and gravitational force.


    While at 90 degrees, the cannonball can attain the maximum elevation it can reach at a same velocity and gravitational force

    Effect of Gravity in a Projectile Motion

    Every planet has its own gravitational pull. Here on earth, our gravitational pull is 9.807m/s2, while on the moon it is 1.62m/s2. This force is pulling the object towards the center of the planet. In a projectile motion, it affects the time an object will hit the ground, the distance it will travel, and the maximum height it can achieve.

    In image No. 9, it shows changing the value of gravity in a 20kg cannonball that fires at 20m/s velocity at 45-degree angle.

    Image 11: 20kg Cannonball with an initial velocity of 20m/s at 45 degrees with 9.81m/s2 gravitational pull/force can reach 40.8m distance.
    Image 12: 20kg Cannonball with an initial velocity of 20m/s at 45 degrees with 5m/s2 gravitational pull/force can reach 80.1m distance

    The lower the gravitational pull, the farther the object can travel at a given instance.

    You may also check https://phet.colorado.edu/sims/html/projectile-motion/latest/projectile-motion_en.html for you to explore more about projectile motion by varying the gravitational force and including Air resistance of the object.

    The post What is A Catapult and How Does It Work? appeared first on International Robotics Championship.

    ]]>
    https://robochamp.org/2020/11/21/what-is-a-catapult-and-how-does-it-work/feed/ 2