Maker.io main logo

Ohio State Logo made by the XRP

2024-08-12 | By Shruti Garg

The XRP robot is a learning kit that includes everything to construct and program the robot. The highlight of this kit is the versatility of the robot, allowing hands-on experience and important problem-solving skills. This robot allows one to build coding skills from a beginner's level to an advanced level. The coding website includes Blockly and MicroPython, which makes this a great learning tool for any user. Through trial and error, the robot was programmed with MicroPython to draw the Ohio State logo.

The XRP robot is more than just a learning kit; it's an immersive journey into the world of robotics and coding. With everything you need included in the kit, from hardware components to comprehensive programming tools, users can dive right into constructing and programming their own robot.

What sets the XRP robot apart is its versatility, providing users with hands-on experience that cultivates crucial problem-solving skills. Whether you have no coding skills or are an expert, this kit caters to all skill levels, providing a progressive learning curve from basic to advanced concepts.

The coding website offers both, a Blockly and MicroPython programming platform, accommodating different learning styles, and allowing users to transition from visual programming to text-based coding. This makes XRP an ideal learning tool for everyone.

One project achieved with the XRP is the ability to draw various designs, such as the Ohio State logo. Through trial and error, the robot was programmed through MicroPython, which demonstrates one of the many capabilities of the robot. Below is the code with a description to get an in-depth understanding of how the program works.

The first part of the code sets up functions for the robot to complete the desired motion.

Ohio State Logo made by the XRP

The three functions involved in this program are, drive_forward, rotate, and lift_servo, once these functions are called, the robot will know to drive forward at the speed and distance you enter. The rotate function allows the robot to turn the degrees you want it to once called in the main method. The lift_servo method will allow the robot’s servo to lift the marker up at the angle you want it to when called in the main method.

These are some basic starting functions required for the robot to drive or turn. Based on the sensors you have included you may need to include other functions.

Ohio State Logo made by the XRP

This part of the code is the main code with an infinite loop, the first section here is the part that draws the outer part of the OSU logo. The XRP light will blink 3 times and then the user will press the button before the XRP starts driving. The first number in drive_forward() is how far in centimeters the robot will drive and the second number is the speed. The number in rotate() is the number of degrees the robot will turn, and the number in lift_servo() is the degree the servo will go to, which will lift the marker up slightly.

Ohio State Logo made by the XRP

The second section of the main code is the inner part of the OSU logo, which is similar to the first section. The first 4 lines of code are moving the robot to the right part of the inner OSU logo to ensure the O inside is as centered as possible.

This is a simple and efficient program that creates the OSU logo. Through other variations or sensors, users may create pieces of art they desire.

OSU Logo Code File

制造商零件编号 KIT-22296
XRP ROBOTICS PLATFORM KIT BETA (
SparkFun Electronics
¥968.46
Details
Add all DigiKey Parts to Cart
TechForum

Have questions or comments? Continue the conversation on TechForum, DigiKey's online community and technical resource.

Visit TechForum