Lists

15 Middle Grade Novels about Robots & Coding

STEM and coding have been buzzwords for so long now, I don’t think they can be considered buzzwords anymore. Kids are learning how to code in early elementary school as the world moves further into a digital space. If anything, COVID taught us that a lot more can happen online than we originally thought and there are definitely job opportunities out there for people who know how to code, provide digital security, and more.

There are amazing resources out there – books, websites, programs, and more that will teach kids the basics of coding. But, rather I wanted to focus on stories that include robots and coding. Whether these books are historical fiction or science fiction, or more commonly, realistic fiction they all include characters that either do their own coding or interact with robots (who needed to be coded.) Check out the list below for 15 Middle Grade Novels about Robots & Coding.

And if you’ve got a budding coder at home, check out this program I offered at the library years ago – most you can easily do at home!

This post may contain affiliate links, which means I’ll receive a commission if you purchase through my links, at no extra cost to you. Please read the full disclosure for more information.

15 Middle Grade Novels about Robots & Coding

15 Middle Grade Novels about Robots & Coding

Click’d

by Tamara Ireland Stone

Amazon | Bookshop

Allie Navarro can’t wait to show her best friends the app she built at CodeGirls summer camp. CLICK’D pairs users based on common interests and sends them on a fun (and occasionally rule-breaking) scavenger hunt to find each other.

And it’s a hit. By the second day of school, everyone is talking about CLICK’D. Watching her app go viral is amazing. Leaderboards are filling up! Everyone’s making new friends. And with all the data Allie is collecting, she has an even better shot at beating her archenemy, Nathan, at the upcoming youth coding competition.

But when Allie discovers a glitch that threatens to expose everyone’s secrets, she has to figure out how to make things right, even if that means sharing the computer lab with Nathan. Can Allie fix her app, stop it from doing any more damage, and win back the friends it hurt–all before she steps on stage to present CLICK’D to the judges?

Emmy In the Key of Code

by Aimee Lucido

Amazon | Bookshop

In a new city, at a new school, twelve-year-old Emmy has never felt more out of tune.

Things start to look up when she takes her first coding class, unexpectedly connecting with the material—and Abigail, a new friend—through a shared language: music. But when Emmy gets bad news about their computer teacher, and finds out Abigail isn’t being entirely honest about their friendship, she feels like her new life is screeching to a halt.

Despite these obstacles, Emmy is determined to prove one thing: that, for the first time ever, she isn’t a wrong note, but a musician in the world’s most beautiful symphony.

Enginerds

by Jarrett Lerner

Amazon | Bookshop

Ken is an EngiNerd: one of a super-smart group of friends—all nerds—who have been close since kindergarten.

They may be brainiacs, but they’re just like everyone else: they fight with one another, watch too much TV, eat Chinese food, and hate walking their dogs. Well, maybe not just like everyone because Ken’s best friend Dan has been building robots. He then secretly sent one to each of the EngiNerds, never letting them know he’s the mastermind.

At first Ken is awed and delighted: what kid hasn’t dreamed of having a robot all their own? Someone who can be their friend, clean their room, walk the dog, answer homework questions…how amazing is that?

But be careful what you wish for: Dan’s robot, Greeeg, may look innocent, but his ravenous consumption of food—comestibles—turns him into a butt-blasting bot. And once the other robots ‘come alive’ it’s up to the motley crew of EngiNerds to not only save the day, but save the planet!

Girls Who Code: The Friendship Code

by Stacia Deutsch

Amazon | Bookshop

Loops, variables, input/output – Lucy can’t wait to get started with the new coding club at school. Finally, an after school activity that she’s really interested in. But Lucy’s excitement turns to disappointment when she’s put into a work group with girls she barely knows. All she wanted to do was make an app that she believes will help someone very special to her. 
 
Suddenly, Lucy begins to get cryptic coding messages and needs some help translating them. She soon discovers that coding – and friendship – takes time, dedication, and some laughs!

The Homework Machine

by Dan Gutman

Amazon | Bookshop

Meet the D Squad, a foursome of fifth graders at the Grand Canyon School made up of a geek, a class clown, a teacher’s pet, and a slacker. They are bound together by one very big secret: the homework machine. Because the machine, code-named Belch, is doing their homework for them, they start spending a lot of time together, attracting a lot of attention. And attention is exactly what you don’t want when you are keeping a secret.

Before long, things start to get out of control, and Belch becomes much more powerful than they ever imagined. Now the kids are in a race against their own creation, and the loser could end up in jail…or worse!

House of Robots

by James Patterson

Amazon | Bookshop

It was never easy for Sammy Hayes-Rodriguez to fit in, so he’s dreading the day when his genius mom insists he bring her newest invention to school: a walking, talking robot he calls E-for “Error”. Sammy’s no stranger to robots; his house is full of a colorful cast of them. But this one not only thinks it’s Sammy’s brother . . . it’s actually even nerdier than Sammy. Will E be Sammy’s one-way ticket to Loserville? Or will he prove to the world that it’s cool to be square? It’s a roller-coaster ride for Sammy to discover the amazing secret E holds that could change family forever . . . if all goes well on the trial run!

The Invention of Hugo Cabret

by Brian Selznick

Amazon | Bookshop

Orphan, clock keeper, and thief, Hugo lives in the walls of a busy Paris train station, where his survival depends on secrets and anonymity. But when his world suddenly interlocks with an eccentric, bookish girl and a bitter old man who runs a toy booth in the station, Hugo’s undercover life, and his most precious secret, are put in jeopardy. A cryptic drawing, a treasured notebook, a stolen key, a mechanical man, and a hidden message from Hugo’s dead father form the backbone of this intricate, tender, and spellbinding mystery.

The Last Human

by Lee Bacon

Amazon | Bookshop

Humans went extinct thirty years ago. Now the world is ruled by machines. And twelve-year-old robot XR_935 is just fine with that. Without humans around, there is no war, no pollution, no crime. Every member of society has a purpose. Everything runs smoothly and efficiently. Until the day XR discovers something impossible: a human girl named Emma. Now, Emma, XR, and two other robots must embark on a dangerous voyage in search of a mysterious point on a map. But how will they survive in a place where rules are never broken and humans aren’t even supposed to exist? And what will they find at the end of their journey?

Narrated in the first person (first robot?) by XR, The Last Human blends humor and action with moments of poignancy to tell a story about friendship, technology, and challenging the status quo no matter the consequences. It’s not just about what it means to be a robot. It’s about what it means to be a human.

Little Robot

by Ben Hatke

Amazon | Bookshop

When a little girl finds an adorable robot in the woods, she presses a button and accidentally activates him for the first time. Now, she finally has a friend. But the big, bad robots are coming to collect the little guy for nefarious purposes, and it’s all up to a five-year-old armed only with a wrench and a fierce loyalty to her mechanical friend to save the day!

Maya and the Robot

by Eve L. Ewing, illustrated by Christine Almeda

Amazon | Bookshop

Maya’s nervous about fifth grade. She tries to keep calm by reminding herself she knows what to expect. But then she learns that this year won’t be anything like the last. For the first time since kindergarten, her best friends Jada and MJ are placed in a different class without her, and introverted Maya has trouble making new friends.

She tries to put on a brave face since they are in fifth grade now, but Maya is nervous! Just when too much seems to be changing, she finds a robot named Ralph in the back of Mr. Mac’s convenience store closet. Once she uses her science skills to get him up and running, a whole new world of connection opens up as Ralph becomes a member of her family and Maya begins to step into her power. In this touching novel, Eve L. Ewing melds together a story about community, adapting to change, and the magic of ingenuity that reminds young readers that they can always turn to their own curiosity when feeling lost.

My Life as a Coder

by Janet Tashjian, illustrated by Jake Tashjian

Amazon | Bookshop

Derek Fallon receives an exciting new gift–a laptop! But there’s a catch: it has no Wi-Fi so he can’t use it for gaming. If he wants to play computer games, he’ll have to learn how to code them himself. Another unforgettable adventure awaits in Book 9 of the My Life series, this time involving tech and coding!

A Rover’s Story

by Jasmine Warga

Amazon | Bookshop

Meet Resilience, a Mars rover determined to live up to his name.

Res was built to explore Mars. He was not built to have human emotions. But as he learns new things from the NASA scientists who assemble him, he begins to develop humanlike feelings. Maybe there’s a problem with his programming….

Human emotions or not, launch day comes, and Res blasts off to Mars, accompanied by a friendly drone helicopter named Fly. But Res quickly discovers that Mars is a dangerous place filled with dust storms and giant cliffs. As he navigates Mars’s difficult landscape, Res is tested in ways that go beyond space exploration.

As millions of people back on Earth follow his progress, will Res have the determination, courage, and resilience to succeed… and survive? 

Secret Coders

by Gene Luen Yang and Mike Holmes

Amazon | Bookshop

Welcome to Stately Academy, a school which is just crawling with mysteries to be solved! The founder of the school left many clues and puzzles to challenge his enterprising students. Using their wits and their growing prowess with coding, Hopper and her friend Eni are going to solve the mystery of Stately Academy no matter what it takes!

The Wild Robot

by Peter Brown

Amazon | Bookshop

Can a robot survive in the wilderness?

When robot Roz opens her eyes for the first time, she discovers that she is all alone on a remote, wild island. She has no idea how she got there or what her purpose is–but she knows she needs to survive. After battling a violent storm and escaping a vicious bear attack, she realizes that her only hope for survival is to adapt to her surroundings and learn from the island’s unwelcoming animal inhabitants.

As Roz slowly befriends the animals, the island starts to feel like home–until, one day, the robot’s mysterious past comes back to haunt her.

Yusuf Azeem Is Not a Hero

by Saadia Faruqi

Amazon | Bookshop

Yusuf Azeem has spent all his life in the small town of Frey, Texas—and nearly that long waiting for the chance to participate in the regional robotics competition, which he just knows he can win.

Only, this year is going to be more difficult than he thought. Because this year is the twentieth anniversary of the 9/11 terrorist attacks, an anniversary that has everyone in his Muslim community on edge.

With “Never Forget” banners everywhere and a hostile group of townspeople protesting the new mosque, Yusuf realizes that the country’s anger from two decades ago hasn’t gone away. Can he hold onto his joy—and his friendships—in the face of heartache and prejudice?

Add a few sprinkles

This site uses Akismet to reduce spam. Learn how your comment data is processed.