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.




Roger von Oech’s Magnetic Toys

whack ballsCreative Whack makes several types of magnetic balls.  Each ball comes with a booklet to extend the use of the ball.

The booklets contain three sections.  The first section encourages playing with the ball and provides additional figures to create.

The second section is titled “Creativity” and does contain some good exercises in pattern exploration and encourages extended thinking. However, it is heavily wrapped in touchy-feely, mindfulness, use it as a metaphor type language.  I skipped it twice before deciding I had to read it to be fair.

The third section in the booklet covers the inspiration and math behind the shapes.  The math behind the different sets allows them to be combined for extended play.

My reaction to each of the sets (I have the x-ball, y-ball, and ball of whacks) was pretty much the same.  Initially, you have to discover the polarity of the pieces to see which ends attract and which repel.  The next stage is to start trying to puzzle out a pattern to make the ball.  At about half way, the pattern is clear, and the magnets are pretty much pulling pieces into the proper place.

These are cool toys, but I think it would have been a waste had I purchased them for my children when they were young.  They didn’t hold my interest long enough for me to complete more than a few of the patterns.  In a home, where it is competing with other toys, it wouldn’t be a winner.  However, in an environment with limited options for entertainment (at a grandparent’s, at a vacation home, tossed in a bag on a camping trip), they do allow for extended play.  They are also the kind of item I love to have available in my classroom.  It’s a perfect activity for a student who finishes a test early.  Due to the number of pieces, I wouldn’t leave it out.

The x-ball had a more interesting pattern, but I still was more drawn to the y-ball for play.  The Ball of Whacks was the best of the bunch and inspired more free play before I started looking at the booklet than the others.

Verdict:  They go to school for the students.  If they were less expensive, I’d go ahead and buy the rest of them.  They’re a little pricey for a sponge activity for school.

Available at Fat Brain Toys and Amazon.


SCRATCH programming

I purchased Coding Games in SCRATCH from Amazon.  SCRATCH is a visual programming language that is available for free from MIT.  I learned programming in the dinosaur days before mice and GUI, so this was brand new to me–and exciting!

While SCRATCH is meant for kids (from 8 to 80), I’ve found a lot to be excited about.

Using code blocks lets me focus on flow control and logical sequences rather that syntax.  The built-in library of sprites and backgrounds meant nearly instant cha-cha when I started the first activity.  That is so much more exciting than “Hello World.”

I have 2 chapters left in the book, and scanning ahead, it appears to do a pretty good job covering the features of SCRATCH.  Once you get the MIT SCRATCH site, you will find plenty of free activities that will cover the same knowledge that’s in the book, but I’m old enough to like holding a book when I’m learning something new.  This one is well written, with clear coding examples and lots of explanations as to why you are doing things.

I’ve already got some great ideas for turning some of the games in the book into instructional activities (and probably removing most of the fun).  I can see the maze game converted into a piecewise function activity.  There’s also a game in the book that launched a monkey at bananas.  It’s similar to the Angry Birds game.  My brain just saw PROJECTILE MOTION–PARABOLAS.  I enjoy quadratics, so I’m full of ideas for this one.

My coding from college is so outdated, I didn’t expect to see anything I knew.  It was exciting to find how much of it I either remembered or just slipped in naturally next to what I already know.  It’s triggering lots of long buried memories and knowledge.  Modifying the code in the monkey launch game to use a quadratic rather than simulated gravity reminded me that I see math differently when I code it than I do when processing by hand.  I like it.  I look at all the math from an entirely new perspective when I do–and understand the connections even better.

Next Learning Goals:
1.  Finish my SCRATCH book.
2.  Learn to embed a SCRATCH game into a web page.
3.  Work through the SCRATCH book that teaches all the mathy drawings.
4.  Figure out how to do an exponent in SCRATCH.  I’m not sure if it’s repeated multiplication or something simple like a carrot “^.”
5.  Check out SNAP.
6.  Decide how serious I am about a career change.  I could have a lot of fun making little, learning games (that I’ll never be able to use in my classroom) and stay where I am.  Or I can get serious about real coding and leaving education.  Which language do I choose?



Hello world!

I guess introductions are a good way to start.

I teach math, but that’s not what this is about.  I love the current push for STEAM–Science, Technology, Engineering, Arts, and Mathematics.  It brings out the kid in me, and I’m eager to explore and have fun.  I’m going to share my adventures.

The first thing I’m going to encourage as a good practice are tinker boxes.  Always be on the look out for things that might be interesting later and save then in your box.

My adventure for today was collecting metal from the dirt in the backyard with a magnet.  It became obvious rather quickly, that I need some stronger magnets for my collection.  I put everything my magnet picked up in a zip lock bag to play with later.