Open Roberta

Bot Code (1) : Read binary number with robot

Background

We try to showcase the capabilities of the Lab and the robots with interesting programs.

This is a NEPO task, make sure to read the info.

Task

Write a NEPO program for the simulator that converts a binary number to decimal. Create a simple simulation background, with some boxes aligned in the center. Each box can be black (1) or white (0). Use the color sensor to read the boxes and store them in memory. Then, convert the binary number into its decimal representation and show it on the robot screen.

Online you can find many tutorial about binary to decimal conversion (for example, you can start from this one).

There will be some challenges (for example when you'll need to distinguish each box), be creative!

Deliverables

Upload your program (together with the custom background you created) and document your solution. Include also a screenshot/video of the running program.

Task tags

  • nepo
  • advanced
  • expert

Students who completed this task

RohanC, PolyCode, Aria, Blippy, kiminonawa, Dina7, RichardB, Elseif, Olivia

Task type

  • code Code
close

2019