Arduino pins 2 wheel drive robot

Draft notes for Arduino pins for 2 wheel drive bot

Arduino Sensor Shield v5.0

  • Infrared sensor:  pin 10–doesn’t need PWM
  • Line sensor:  pins 1, 2, and 3  Doesn’t need PWM, 1= right, 2 = center, 3 = left
  • Motor Right:  pins 4 (IN1 from motor shield–L298N) and 5 (IN2 from motor shield)–ENA gets pin 6–ENA needs PWM
  • Motor Left:  pins 7 (IN3 from motor shield) and 8 (IN4 from motor shield)– ENB gets pin 9–ENB needs PWM
  • Servo for head:  pin 11–servos need PWM
  • Eyeballs (ultrasonic distance sensor–HC-SR04):  pins 12 (Trig) and 13 (Echo)–doesn’t need PWM  Use A4 and A5 (analog)?

L298N motor shield pins

PWM is on pins 3, 5, 6, 9, 10, 11–use for servos, ENA, ENB

Connect to Arduino with VMS and Ground not 5V

Ozobot Bit 2.0 (part 2)

I’ve been playing with my Ozobots this week.  I’m convinced these would be the best choice for classroom use, but they aren’t the most exciting option for home.  I still haven’t done anything that couldn’t be done with the red or blue starter kit.

The main Ozobot app has three play sections.  The first is a free draw section.  It has the advantages of creating lines that are the perfect width and codes that will always be read.  I had more fun dealing with the frustrations of drawing on paper, but that’s an individual thing.  The second contains predrawn maps to use as a starter point.  The third section is the challenge section.  This one also contains maps, but there are marked start and end points.  You are also given a finite list of commands to place on the map to ensure you make it from start to end.  The first few puzzles introduce basic moves and they become more challenging.  Hopefully this section will continue to expand with more difficult challenges.  There is also a section that allows you to calibrate, tune-up, and adjust the default settings for color and speed.  I had some trouble with the app.  The games and the tune-up features seemed to work, but I was unable to register my Ozobot through the app.

The Ozobot Groove app allows you to choreograph dance move for the Ozobot and synch it with music.  I did see that one of the on-line lessons used it to make polygons, but I’m not inspired to try it out yet.

I’ve focused primarily on computer generated maps and the introductory lesson on the Ozobot web site.  A little experimentation showed that inserting shapes in Word and setting the line width to 15pt produced maps the Ozobot could follow easily.  All the video clips are at 1.5 speed.

The next thing I tried was a computer printed map and using address labels to create codes and stick on the map.  The stickers didn’t impede the Ozobot from traveling over the map.  You can see that the codes are a little wider than the lines on the map and a little messy.  I’m also using new pens, so the colors are dark.  You can see the Ozobot ran right over the codes and barely blipped.  I think the sticker modification to the maps would work, but it would take some practice getting the dots right and lighter or faded markers would work better than new ones.

I decided to try putting blank codes on the map to be colored in to reduce the size irregularity of hand drawn codes.  It was a little challenging to do and my boxes are still a little too big, but I have ideas for next time.

Printed in Word. Line width 15 pt. Attempt at blank code boxes.
Printed in Word. Line width 15 pt. Attempt at blank code boxes.

My map wound up being bad for a number of reasons.  My code boxes were a little too big.  While the Ozobot had no problems with the lines, there wasn’t enough space between the lines to insert the codes and leave the needed gap.  It also was too complex to make it a reasonable challenge to put in codes to make it from start to end in a fairly direct path.  If I were going to give this to students as a challenge, I’d make a smaller and interesting map.

The Ozobot site has a huge collection of lessons and activities.  The basic training lessons do a really nice job of introducing the basic features of the Ozobot and provide background information on line-following robots and their uses in real life.  The lessons are well-done.  They include topics, educational standards, grade level, time and materials needed, and all the printed materials needed.

Ozobot Bit 2.0 (part 1)


The Ozobot is a tiny robot–almost as big as a golf ball.  While the Ozobot is tiny, the collection of education material designed for it is huge.  I’m going to start with initial impressions, list the types of activities (to be explored later), and give a wish list.

The two pack came with a white/clear and a black Ozobot, 2 USB charging cables (no batteries to buy), 2 mini carrying cases, 4 plastic helmets, an instruction pamphlet, and some cards.  All of that is contained in a clear box about the size of a recipe card box so that it stores nicely when not in use.

The included cards are small, starter tracks for the line-following feature of the Ozobot.  The Ozobot website has additional maps (make sure to choose landscape) for printing.  The included pamphlet contains the line-following codes, but they can also be printed from the website if needed.  More line maps can be printed from the education section of the website as well.

One simple activity is to start the Ozobots on identical maps.  The first to reach the finish wins.  The Ozobot can be controlled with the line codes to speed up or slow down, turn right or left, and other actions.  Line code stickers can be purchased, or address labels can be used to draw your own.  Winning just changed from random chance to giving the robot directions.

It takes a little practice to get the line width right when drawing on paper, but once you get a feel for it, you can fit a fairly complex maze on a sheet of paper.  Ozobot will change colors with the color of the line, and line codes are given with a series of colored marks.  Huge paper makes creating maps much more fun.

What Can I Do With It?

  • Line following:  draw mazes, download mazes
  • line codes:  modify how Ozobot travels the maze-both drawn and printed, learning to control the path develops thinking skills.
  • Ozobot app (iPad and Android)
    • line drawing on tablet
    • static and flash codes for controlling Ozobot
    • playground:  preexisting mazes that can be modified
    • challenges:  maze with a start and finish, use codes to get there
  • OzoGroove App
    • programmed dance with music
    • dance editor:  design a sequence of moves and adjust timing to go with music
    • move editor
    • dance editor
    • printable materials
    • instructional videos
    • web games
    • educational lessons and activities
    • classroom applications
    • workshops
    • 2 existing games
    • visual programming editor to control Ozobot (without lines)
      • examples
      • reference
      • challenges

These little robots have a lot to offer.  The small size and easy charging make them great for an academic environment.  They aren’t the most exciting of the robot options, but that’s a good thing for school.

I did some looking before I decided on the 2.0 version.  The starter kit costs slightly less and comes with more stuff.  The starter kit can be upgraded, for a cost, to run the programming software, but I’ve read unhappy reviews that users have to do extra steps to make it work after the upgrade.  This rules out the starter kit.  It would be nice to be able to purchase the starter kit extras to go with the 2.0.  The only way to get the extras is to buy the older robot.  I’ve also read that it doesn’t take much to weigh the little guys down when making costumes.  One user suggested only using a paper costume instead of sequins and feathers that her kids were enjoying.  It might be worth designing a template sheet.