BrainBot Intro
The BrainBot is equipped with several sensors and LEDs. We’ll be covering everything in later lessons. This intro lesson is meant to to get the system/software ready for the next lessons.
Prerequisite
This assumes you’ve already assembled your BrainBot and are ready to set up the programming environment.
BrainBot Driver
Software drivers (libraries) are provided to start controlling BrainBot with minimal needed knowledge. Future robotic lessons cover details on controlling robots.
If you’re using Python, install the BrainBot library, pip install BrainBot. If using C#, add the BrainBot BrainPad.BrainBot NuGet library .
Start a new project and add the necessary statements to pull in the BrainBot libraries.
using static BrainPad.Controller;
using static BrainPad.BrainBot;
from BrainPad import *
from BrainBot import *
Controlling the robot is now done easily. More on that in the next lessons.
using static BrainPad.Controller;
using static BrainPad.BrainBot;
Move(50, 50);
from BrainPad import *
from BrainBot import *
Move(50,50)
What’s Next?
Now that everything is set up, we can move to the BrainBot API lesson.
BrainStorm
How safe are robots? What if we have made them smarter and they decided they no longer need us? Believe it or not, this is not a joke! We will soon be riding in cars with full self control. How would a car decide to stop in an emergency? Thankfully, Isaac Asimov has already thought of this and came up with the three laws of robotics:
- A robot may not injure a human being or, through inaction, allow a human being to come to harm;
- A robot must obey orders given it by human beings except where such orders would conflict with the First Law;
- A robot must protect its own existence as long as such protection does not conflict with the First or Second Laws.