ROBOTC.net Blog  

ROBOTC News

Archive for the ‘EV3’ tag

ROBOTC for MINDSTORMS 4.53 Preview Available Now!

without comments

ROBOTC 4-53
 

ROBOTC for MINDSTORMS 4.53 preview is out and it sports a myriad of awesome new features that we’re very excited about! A full list of changes and improvements appear below, but here are the highlights:

 

Create Graphs from your Datalogs

Datalog Graph

Want to know what running your robot into a wall looks like to your accelerometer? Curious about how ambient light intensity varies throughout the day? Datalogging now supports (live) plotting of incoming data gathered on the robot brain. Science experiments involving sensor and motor data can be displayed. You can easily find out by gathering the data and having ROBOTC plot the data for you, as it comes in.

Datalog Graphical

Datalogging is no longer restricted to just Full ROBOTC, we’ve added easy to use blocks that allow you to access the same functionality in a simple manner.

Additionally, logged data can even be exported for further analysis in a spreadsheet application of your choice.

 

ROBOTC Graphical Variable Support

Variable Support

You can now use variables in ROBOTC Graphical, as well as perform various operations on them. You can add, subtract, divide, multiple, whatever your program requires. You can use variables in loops, motor blocks, you name it!

 

ROBOTC Graphical Break and Continue

Continue Break

We’ve added two new program flow blocks, break and continue. This was a much requested feature from our more advanced users of ROBOTC Graphical. You can now create more complex programs without creating work-arounds or having to switch to ROBOTC Full.

 

Beta Channel Access

Use Beta Builds

Want to have a front row seat when it comes to upcoming features in ROBOTC? Subscribe to the beta channel through ROBOTC’s preference menu and you will be notified when a preview build (such as this one), is released. Try out new and exciting features before we release them to the general public and provide us with feedback. Help make ROBOTC better!

 

Other changes and bug fixes

New features – MINDSTORMS

 

  • Battery monitoring on the EV3 through the nImmediateBatteryLevel and nAvgBatteryLevel intrinsic variables has been added

Changes and Improvements – General

 

  • The default colors in the Assembly window (F9) have new defaults for increased readability.
  • Function tooltips have been revised and corrected where applicable.
  • License error messages have been improved. A short explanation of the error codes is now provided.
  • #info has been added to the list of support #pragma statements, such as #error and #warn
  • The start and stop buttons on the datalogging control have been merged into a single button.
  • Deleting a file from the File Utility was not possible, this has been fixed.
  • We’ve made some visual changes to ROBOTC Graphical including new colours for enhanced readability.
  • Internal improvements to the datalogging system have been made that resolve possible data corruption and inability to disable polling for a specific data series.
  • Saving a New User Model in the Motors and Sensor Setup has been fixed.
  • Various float conversion related issues have been fixed.
  • NaN (Not a Number) detection has been fixed.
  • Sscanf with more than 7 arguments could crash the VM, this has been fixed.
  • Overloaded deprecated function no longer cause warnings.
  • A discrepancy between the compiler and VM regarding the maximum number of tasks has been fixed.
  • An issue with ROBOTC crashing due to a recursive macro has been addressed.
  • The RVW package manager now shows the correct informational icon.
  • Opening the RVW package manager no longer causes an exception under certain circumstances.
  • An issue with the debugStream window background refresh causing a hang when communications with the robot was lost, has been remedied.
  • The Program Debug window no longer crops the status line.
  • You can now use displayInverseString() in combination with a char *.
  • drawInvertRect and drawInvertEllipse were not deprecated correctly, this has been fixed.

Changes and Improvements – MINDSTORMS

 

  • The original LEGO firmware file operations have been removed, their functionality has been superseded by ROBOTC file operations.
  • EV3 specific datalogging functions have been marked as obsolete. Users should use the new datalogging functions.
  • Restrictions on the file downloading locations on the EV3 have been relaxed a little.
  • Opening the File Utility on the EV3 will create the rc and rc-data folders, if they don’t already exist.
  • Playing a sound file from inside ROBOTC’s on-brick program folder is easier. It will check if a file with that name exists in the rc folder, before checking the built-in sounds folder.
  • A memory leak in the EV3 connection handling has been fixed; disconnecting an EV3 while the debugger was running would eventually exhaust all program memory.
  • Running a motor with a specified encoder count of 0 on the EV3 would produce unpredictable results, this has been fixed.
  • An issue with reading data from the NXT Sonar sensor in the IDE has been fixed.

Download ROBOTC 4.53 preview here!

And let us know what you think of the new updates. Happy Programming!

Written by Xander Soldaat

March 29th, 2016 at 6:15 am

Cool Project: Tumblebug

with one comment

TumbleBugBlogDamien Kee, a VEX IQ and EV3 Super User, has created another cool project! This time he used one of his kids toys, the Tumble Bug Ball Drop, to test out how often the ball comes out of the left foot / right foot with a 50% probability. Damien says, “My boys got this toy for Christmas one year and I thought I’d put together a little device to check the probability of how it works. I used Ultrasonic Sensors with the EV3 and Colour Sensors (Proximity mode) with the IQ to keep track every time a ball went through the toy…. This would make a great experiment to run in class, not just with the Tumble Bug but all different types of kids toys.” We couldn’t agree more!

Damien used the VEX IQ and LEGO EV3 programmed in ROBOTC to run his tests. The programs figure out the percentage and display them on screen. Here is a full breakdown video of how the project was done …

 
 
 

 

Not only does this project allow for the practice of programming, but it gives the opportunity to assess variables when determining the results. Damien says: ”

What I love about doing these sort of extended investigations in class, is that rather than being a final conclusion, this now opens up a huge range of other questions and scenarios that you can test.

  • Why was there a difference?
  • Was the table level?
  • Do the different balls have an impact?
  • Does the placement speed in the mouth affect the results?”

Want to try it out yourself? Here are the code files Damien used:
EV3 RobotC –  EV3_tumblrbug.c
VEX IQ RobotC –  tumblrbug_VEX.c

To see the full hardware setup and find out the final results, check out his full blog here – Testing the Tumblebug (EV3 and VEX IQ)

 

Do you have a cool ROBOTC project you want to share with the world? If so, send us an email at socialmedia@robomatter.com and we’ll post it on our blog and social media pages!

Written by Cara Friez-LeWinter

March 2nd, 2016 at 6:00 am

Article: Robotic Competition Moves into Virtual World

without comments

AR-160119213The NWF Daily News in North West Florida published an article highlighting our Robot Virtual World competitions, focusing on our newest competition, the virtual Mini-Urban Challenge. The article talks about how our virtual competition is being used to help students test out their design before moving into the physical robotics competition. “Robomatter’s virtual world will test and exercise the Mini-Urban Challenge robots,” Steve Butler, the director of Doolittle Institute said. “The connection of our Mini-Urban ‘real world’ test environment to a bigger, simulated world will greatly enrich the experience of the participating students.”

 

Mini Urban Vs
 

To read the entire article, visit here – Robotic Competition Moves into Virtual World

To find out more about the Mini-Urban Challenge, visit their website here!

Written by Cara Friez-LeWinter

January 21st, 2016 at 10:24 am

ROBOTC for LEGO MINDSTORMS 4.52 Now Available!

without comments

ROBOTC 4-52

The ROBOTC Development Team is excited to announce the official release of ROBOTC 4.52! This update is for the LEGO MINDSTORMS (NXT and EV3) physical and virtual robotics systems and includes some great new features, improvements, and a load of bug fixes.

Click here to download 4.52!

Important Setup Information for ROBOTC 4.52:

LEGO NXT Users:

  • Simply update to the latest ROBOTC firmware from inside of ROBOTC.

LEGO EV3 Users:

  • All users will need to update the  LEGO EV3′s Kernel by connecting the EV3 and selecting “Robot Menu -> Download EV3 Linux Kernel” from inside of ROBOTC. The version number (1.07X) is the same to keep alignment with the EV3 Programming Software and LEGO’s releases.
  • After updating your EV3′s Linux Kernel, you’ll also need to update the ROBOTC firmware from inside of ROBOTC.

ROBOTC 4.50 —> 4.51 —> 4.52 Change Log:

New Features and Improvements:

  • Added support for simple mathematical expressions in numerical text boxes in Graphical.
    Graphical_Math
  • Datalogging has been added for the EV3 platform.
  • Users can now log data from inside your program, with or without a timestamp.
    DataLogging4
  • Users can also configure motor, sensor and other values to be automatically polled at intervals as low as 10ms.
    DataLogging2
  • Users can view data in ROBOTC as it polled in and save to a .CSV file for additional analysis in a popular spreadsheet software.
    DataLogging3
  • Use standard keyboard shortcuts to Select All, Copy, Cut and Paste in the Debugstream Window.
  • Natural Language Library Files have been enhanced for improved readability.
  • “Port with no Motor” has been added as an option for graphical blocks that use multiple motors – this will allow you to unselect a specific motor.
  • Graphical Copy and Paste has been improved to work better with comment blocks.
  • A flag (-SUPPRESS ) has been added to allow suppression of command line activation errors.
  • When compiling multiple files at once, the IDE will remain more responsive to user interaction.
  • A setMotorBrakeMode block has been added to Graphical, allowing motors to be set to either “float” or “brake”. This will allow motors to be setup as “free running”. This command can be found in “Expert” and above menu levels.
  • Additional programming samples have been added
  • The list of loggable properties has been greatly trimmed down and sorted according to menu level. Static and irrelevant properties have been removed where appropriate.

General Fixes:

  • ‘Trial’ indicator displays correctly, regardless of license combinations.
  • Missing function added to the Function Library descriptions
  • Fixed and improved “hover over” tool tip help descriptions inside of the Function Library.
  • Resolved issue where the bottom of the Graphical Library view would not be cleared properly when scrolling
  • Char arrays with “\0” are properly initialized.
  • Selection of options inside of a Graphical Block can be reverted by using “undo”.
    • Fix potential RVW file read issue from crashing ROBOTC.
  • Several float-related issues resolved:
    • Compiler incorrectly optimizes constant expressions with ‘float’ operands.
    • Formatted printing does not work with negative floats
  • Using nSemaphore.nOwningTask comparison no longer generates a compiler warning
  • Two enum issues related to overflowed values have been fixed.
  • Functions returning pointers no longer generate errors when used in Boolean logic expressions.
  • Values from arrays of pointers assigned to another pointer, no longer cause errors.
  • setMotorBrakeMode commands take immediate effect, rather than after the first motor speed command.
  • Closing a source file could cause am unhandled exception under certain conditions, this has been resolved.
  • Compiling multiple Graphical programs at once no longer generates an error that there is no code to compile.
  • Fixed an issue where the Global Variable Base Address was incorrectly displayed.
  • RVW Package Manager will only self-elevate if multiple level packs are being installed.
  • Numerous small visual enhancements and fixes.
  • Clearing a datalog series now clears the listbox properly.
  • The Datalog debug pane can now be opened in Basic menu level.
  • Changing Datalog source could lead to incorrect properties being shown, this has been fixed.
  • The UploadDatalog intrinsic is no longer exposed to the user.
  • Clicking download in the auto check for updates dialog did not work properly, this has been fixed.

MINDSTORMS Fixes: 

  • Changing the volume programmatically on an EV3 could cause a screen freeze when using the on-brick volume program after the program had exited.
  • Fixed issue where Casper is not cleaned up properly when the application exits.
  • The FTC pragma has been replaced with TERIX in all appropriate sample programs.
  • The moveMotorTarget sample program for the EV3 has been updated.

Click here to download 4.52!

Happy Programming!

Written by Cara Friez-LeWinter

December 7th, 2015 at 6:30 am

Cool Project: EV3 Security Tank

without comments

Cool Project EV3 TankKyle M. (aka Builderdude35) created a very cool project called the EV3 Krimzon Guard Security Tank! The tank is programmed in ROBOTC too, which was the first time Kyle programmed with our software. Kyle says, “[The EV3 Tank] features proportional IR beacon tracking, and a deadly-accurate turret targeting system. If that’s not enough, it also has a massive spiked steamroller on the front!”

 

 

 

 

Watch the tank in action here:

 

 

 

The tank includes an EV3 brick, two EV3 large motors, steam roller with spikes, a rotating dual-barrel turret, and three sensors! “There is a Mindsensors SumoEyes mounted on the chassis just above the steam roller (you will see the two red LED’s) that detects the targets in zones left, right or straight ahead. Just above that is a LEGO Infrared sensor that is used for beacon tracking. Lastly, there is a LEGO Ultrasonic sensor that rotates with the turret to confirm target acquisition.” Pretty awesome!

For a more detailed breakdown of the tank and code, visit his website here.

Do you have a cool ROBOTC project you want to share with the world? If so, send us an email at socialmedia@robomatter.com and we’ll post it on our blog and social media pages!

Written by Cara Friez-LeWinter

December 3rd, 2015 at 6:10 am

ROBOTC for LEGO MINDSTORMS 4.51 Preview Available Today!

without comments

ROBOTC 4-51

The ROBOTC Development Team is happy to announce a public preview of ROBOTC 4.51! This update is for the LEGO MINDSTORMS (NXT and EV3) physical and virtual robotics systems and includes some great new features, improvements, and a load of bug fixes.

Click here to download the .exe file for 4.51!

Important Setup Information for ROBOTC 4.51:

LEGO NXT Users:

  • Simply update to the latest ROBOTC firmware from inside of ROBOTC.

LEGO EV3 Users:

  • All users will need to update the  LEGO EV3′s Kernel by connecting the EV3 and selecting “Robot Menu -> Download EV3 Linux Kernel” from inside of ROBOTC. The version number (1.07X) is the same to keep alignment with the EV3 Programming Software and LEGO’s releases.
  • After updating your EV3′s Linux Kernel, you’ll also need to update the ROBOTC firmware from inside of ROBOTC.

ROBOTC 4.50 —> 4.51 Change Log:

New Features and Improvements:

  • Added support for simple mathematical expressions in numerical text boxes in Graphical.
    Graphical_Math
  • Datalogging has been added for the EV3 platform.
  • Users can now log data from inside your program, with or without a timestamp.

    DataLogging4

  • Users can also configure motor, sensor and other values to be automatically polled at intervals as low as 10ms.

    DataLogging2

  • Users can view data in ROBOTC as it polled in and save to a .CSV file for additional analysis in a popular spreadsheet software.

    DataLogging3

  • Use standard keyboard shortcuts to Select All, Copy, Cut and Paste in the Debugstream Window.
  • Natural Language Library Files have been enhanced for improved readability.
  • “Port with no Motor” has been added as an option for graphical blocks that use multiple motors – this will allow you to unselect a specific motor.
  • Graphical Copy and Paste has been improved to work better with comment blocks.
  • A flag (-SUPPRESS ) has been added to allow suppression of command line activation errors.
  • When compiling multiple files at once, the IDE will remain more responsive to user interaction.
  • A setMotorBrakeMode block has been added to Graphical, allowing motors to be set to either “float” or “brake”. This will allow motors to be setup as “free running”. This command can be found in “Expert” and above menu levels.
  • Additional programming samples have been added

General Fixes:

  • ‘Trial’ indicator displays correctly, regardless of license combinations.
  • Missing function added to the Function Library descriptions
  • Fixed and improved “hover over” tool tip help descriptions inside of the Function Library.
  • Resolved issue where the bottom of the Graphical Library view would not be cleared properly when scrolling
  • Char arrays with “\0” are properly initialized.
  • Selection of options inside of a Graphical Block can be reverted by using “undo”.
    • Fix potential RVW file read issue from crashing ROBOTC.
  • Several float-related issues resolved:
    • Compiler incorrectly optimizes constant expressions with ‘float’ operands.
    • Formatted printing does not work with negative floats
  • Using nSemaphore.nOwningTask comparison no longer generates a compiler warning
  • Two enum issues related to overflowed values have been fixed.
  • Functions returning pointers no longer generate errors when used in Boolean logic expressions.
  • Values from arrays of pointers assigned to another pointer, no longer cause errors.
  • setMotorBrakeMode commands take immediate effect, rather than after the first motor speed command.
  • Closing a source file could cause am unhandled exception under certain conditions, this has been resolved.
  • Compiling multiple Graphical programs at once no longer generates an error that there is no code to compile.
  • Fixed an issue where the Global Variable Base Address was incorrectly displayed.
  • RVW Package Manager will only self-elevate if multiple level packs are being installed.
  • Numerous small visual enhancements and fixes.

MINDSTORMS Fixes: 

  • Changing the volume programmatically on an EV3 could cause a screen freeze when using the on-brick volume program after the program had exited.
  • Fixed issue where Casper is not cleaned up properly when the application exits.

Click here to download the .exe file for 4.51!

Happy Programming!

Written by Cara Friez-LeWinter

November 19th, 2015 at 5:49 pm

Online LEGO Professional Development Courses Start this February!

without comments

Teacher Training 2

Carnegie Mellon’s Robotics Academy has announced their latest online LEGO ROBOTC training schedule! The class starts in February and you can enjoy the convenience of taking Robotics Academy courses without leaving your own computer workstation!

Register for their ROBOTC EV3 class today!

Benefits of Robotics Academy Online Training Courses:

  • Convenient online training gives you access from home or your school via the Internet.
  • Online access to supplemental lessons from other Robotics Academy materials.
  • Technical support for all hardware and software used in the class.
  • At the end of the course, take the certification test to become a Robotics Academy Certified Instructor.
  • Certificate of Completion upon course completion to apply for Continuing Education hours.
  • 24/7 access to class forums and message boards (monitored daily)


Robotics Academy Certified ROBOTC Online Training for LEGO NXT and EV3

LEGOROBOTC

This course focuses on learning how to program NXT and EV3-based robots using ROBOTC, and how to use robotics as an organizer to teach STEM (Science, Engineering, Technology, and Mathematics) concepts.

Feb 25th – Mar 31st, 2016
Thursdays for 6 weeks
6 – 8pm EST (3 – 5pm PST)
 
 

Register for their ROBOTC EV3 class today!

 

Written by Cara Friez-LeWinter

November 18th, 2015 at 6:00 am

Announcing the Mini Urban Challenge for Robot Virtual Worlds!

with one comment

Mini Urban Challenge

We are very excited to announce a brand new Robot Virtual Worlds Competition, Mini Urban Challenge! Our new virtual simulation is based off the national competition sponsored by The Doolittle Institute, the Air Force Research Laboratory, and Special Operations Command.

 


 

The purpose of this competition is to design and program a robotic vehicle that can autonomously navigate a mini-urban city, using a virtual LEGO® MINDSTORMS® EV3 robot. The robot must enter the mini-urban city from a home base, travel through the city to assigned parking lots, park in any parking space in each assigned parking lot, and then exit the city by returning to the home base and parking in the home base. The robot should use the optimal path (shortest distance) through the mini-urban city to visit the parking lots. While in the city, the robot should obey traffic rules by stopping at stop signs and following standard right-of-way rules when other vehicles are encountered. You can find the official rule here.

Our new Robot Virtual World features three modes for the Mini Urban Challenge:

1. Practice Mode allows students to develop and test their code for the challenge, without worrying about scoring, penalties, or the clock.

2. Competition Mode is the standard version of the challenge field, complete with timing and scoring to reflect the real world competition.

2015-10-23_15-07-45

3. City Mode is an exciting, themed version of the challenge field, which also includes timing and scoring that reflect the real world competition.

2015-10-23_15-09-32

Download and install the Mini Urban Challenge for Robot Virtual Worlds here! To submit your scores and compete with others, you will need a free account from the Computer Science Student Network!

Competing for the Future: Developing a Life-Long Interest in STEM, Part II

without comments

Competing

Well designed competitions engage students in a range of activities, address academically challenging concepts, and teach important 21st century skills. But, these benefits don’t have to be limited to organized competitions. You can also get all of the benefits of a competition, right in your classroom!

Last week, Part I of our Competing for the Future blog talked about using virtual competitions, like our VEX Nothing But Net and VEX IQ Bank Shot Robot Virtual World Competitions, as a way for your team to compete virtually. This week, we explore how you can use virtual competitions in your classroom to provide a unique and challenging learning experience for all students!

RVW's VEX Nothing But Net

RVW’s VEX Nothing But Net


Step 1: Choose your competition type (simulation or fantasy)

The first step is to choose the type of competition you’d like to use in your classroom. Do you want to use a simulated competition, like the ones that they use in FIRST or the RECF competitions, do you want your competition to take place in a fantasy environment (underwater, outer space, on an island), or do you want to create your own competition?

Are you using LEGO or VEX?

LEGO and VEX are the two most widely used robotics competition platforms and there are great reasons to use both. The Robot Virtual Worlds team has a large selection of LEGO and VEX competitions for you to choose from:

RVW's LEGO Urban Challenge

RVW’s LEGO Urban Challenge

You can download each of these games from the Robot Virtual Worlds Download Center.

Palm Island Game

Palm Island Game

Another option is to use one of the Robot Virtual Worlds fantasy worlds. These worlds are more playful and have specific goals built into them. You can choose from:

  • Palm Island – Designed to teach and reinforce introductory and intermediate programming concepts involving sensor based robot movements.
  • Operation Reset – Programmers are assigned to recharge all of the Communication Towers in the colony of Alpha Base H99, a robotic crystal mining colony near the galactic center of the Milky Way.
  • Ruins of Atlantis – Designed to teach and reinforce introductory programming concepts such as path planning and encoder based movements.
Level Builder

Level Builder

Or, you can create your own competition using the Robot Virtual Worlds Level Builder and Model Importer. With an easy-to-use, drag-and-drop interface, the Level Builder makes it as easy to create a virtual challenge as it is to create a physical challenge out of classroom materials. The Level Builder provides a 12’x12′ square field on which to design your competition. It also provides several objects – from cans and boxes to line tracking tiles – that you can use to design challenging, unique, and fun competitions!

Model Importer

Model Importer

The Robot Virtual Worlds Level Builder also comes with a Model Importer that allows you to create and import your own 3D models! With the model importer, you can also modify objects to make them an unmovable object, a perilous obstacle, or a necessary checkpoint.

Step 2: Determine the rules of your competition

Regardless of whether you create your own competition or use an existing Robot Virtual World, the rules and structure of your competition will allow you to customize the experience for your class, or even for individual students. (This can also be something you discuss with your students and determine together.)

Here are a few things to consider:

  • When will the competition start?
  • Is this an individual competition, or can students work in teams?
  • What type of documentation do you want students to turn in?
    • Does the code need to be commented?
    • Do the programmers need to show pseudocode?
    • Do the programmers need to explain their use of variables and functions?
  • When does the competition end?
  • What does it take to win the competition?

Step 3: Get Ready

Once the rules are set, there are just a few more things to take care of before the competition starts:

  1. Start by installing Robot Virtual Worlds on all students’ machines. Visit our Download Center to get the latest version.
  2. If you’re using one of our Robot Virtual Worlds, such as Palm Island, Ruins of Atlantis, or Operation Reset, make sure you’ve installed that on the students’ machines as well. Visit our Download Center for the latest version of each Robot Virtual World.
  3. Make sure all students understand the competition rules
  4. Get ready to rumble and have fun! 

Need a Few Ideas for Using a Competition in Your Classroom?

With the ability to use an existing Robot Virtual World or create your own challenges, the options for in-class competitions are endless. Here are a few competition ideas if you need a little help deciding what to do:

  • Create a competition using the Palm Island Robot Virtual World by assigning points to the completion of certain tasks.
  • Create a competition that requires students to use a loop and the light/color sensor in a line tracking competition where students need to program their robots to follow a line as fast as possible. Here’s a Teachers POV blog post about the benefits of using this type of competition in your classroom, whether it’s with physical or virtual robots.
  • Robo-Slalom! Use the use the Robot Virtual Worlds Level Builder and Model Importer to create a slalom course that students must complete by programming a robot that can move along the outside of each flag. The robot’s path must prevent it from touching any flag, and allow it to cross the finish line as fast as possible.
  • You can also use a game like VEX IQ Beltway to create an in-class competition.
  • Here’s a Teacher POV blog post about how one teacher created a competition that challenged students to apply the basics of ROBOTC programming while also asking them to come up with unique strategies to try to score as many points as possible in a 2 minute game.

Written by LeeAnn Baronett

October 22nd, 2015 at 6:00 am

New Robot Virtual World Level Packs Updates!

without comments

RVWThe Robot Virtual Worlds team has put out some updates to a few Level Packs to improve your experience. Download the latest versions today!

Written by Cara Friez-LeWinter

October 12th, 2015 at 8:13 am