We asked one of the students from TechBrick Robotics (http://techbrick.com) to learn Quorum and write equivalent programs in EV3 and Quorum. Lila completed 4 years for FIRST LEGO League and now has moved up to FIRST Tech Challenge. We gave her a series of assignments. They are listed below.
Menu Stacker and Switch Code NEW!
This codes gets around the 20 second compile delay because you can pre-compile the code. It will execute immediately upon button press. There are two versions:
- Button Switch: Assign up to five programs to the buttons on the face of the EV3 brick. Exit by pressing the exit button. Run the programs by pressing any of the five buttons.
- Program Stacker: This code allows you stack an unlimited number of programs into a scrolling menu on the EV3 brick. Us the up/down keys to select and the center button to execute.
Downloading the code:
ButtonControl.zip
View the button control source code in a text file.
View the demo on YouTube: https://youtu.be/nVqBVAqad4A
MenuDemo.zip
View the menu source code in a text file.
View the menu code readme file.
View the demo on YouTube: https://youtu.be/DqN2XvVcLcI
Lila's complete basic code for EV3 and Quorum can be downloaded here:
Lila's Advanced Code Samples for Quorum can be downloaded here. ZIP file contain the full code set:
colorname.zip: Read the value of a color
View the Color Name Source Code in a Text File
View the demo on YouTube: https://youtu.be/eQOvDHO-oDk
countblackbars.zip: Count bars and stop on a specific bar
View the Count Bars Source Code in a Text File
View the demo on YouTube: https://youtu.be/53UVuziPljQ
reflectionlevel.zip: Learn to read the relection leve (density) of a color
View the Reflection Level Source Code in a Text File
View the demo on YouTube: https://youtu.be/6FG8Pwi-7CM
stoponcolor.zip: Stop on a specific color
View the Stop On Color Source Code in a Text File
View the demo on YouTube: https://youtu.be/lGNKy0Hdm2A
linefollowing.zip: Follow a black line.
View the Line Folowing Source Code in a Text File
View the demo on YouTube: https://youtu.be/NqhSt9U88_E
These are being provided 'as is' as examples. We cannot answer questions about the code. See the Quorum website for Q&A sources at https://quorumlanguage.com.
This video demonstrates the results of her work.
These programs demonstrate that all the functionality of the Mindstorms software is available in an accessible format for blind and visually impaired students. (Play full screen to see the code samples.)
Sample Equivalency
Drive Turn Program in EV3
Drive Turn Program in Quorum
Empower Mats Reseach Tasks
Task One: Write and Document 5 EV3 Sample Programs
Task Two: Write and Document The Same Functions in Quorum
Write, test and document with screen captures, code, and photos of the robot, these basic EV3 tasks. THe consultant my modify or add to this list.
- Drive forward and stop three times
- Six inches and stop
- Then an additional 12 inches and stop
- Then an addition 24 inches and stop
- Be sure to use and document braking code for a clean stop and contrast non-braking and braking effects.
- Drive Forward and Turn
- Drive 12 inches and stop
- Turn 90 degrees clockwise
- Drive 6 inches and stop
- Turn 45 degrees counterclockwise
- Drive 12 inches and stop
- Turn 180 degrees
- Drive 6 inches and stop
- Turn 360 degrees
- Smooth Turns
- Drive 24 inches with a smooth turn in varying radii
- Tight circle
- Medium circle
- Large circle
- The using the medium circle to a right 180 degree turn then reverse to crate an S pattern.
- Sensors
- Drive forward and stop when touch sensor is actuated
- Drive forward and reverse when touch sensor is actuated
- Drive forward and stop and turn 180 degrees when touch sensor is actuated
- Drive forward and stop when light sensor is actuated
- Drive forward and reverse when light sensor is actuated
- Drive forward and stop and turn 180 degrees when light sensor is actuated
- Drive forward and reverse when ultrasonic sensor is actuated
- Attachments
- Create one attachment motor that lifts an object
- Drive forward to the object.
- Stop and lift it.
- May be combined with Sensors
Documentation
- For each task capture enough screens to explain the task.
- Save code in an orderly naming scheme.
- Video the robot doing the tasks. Please use horizontal video.