Final Roomba Code

181114KA

Hello!

The first goal in this project was to get the neurorobot_reboot to perform a simple autonomous “Roomba” function, ie. move around without bumping into anything. I accomplished this more or less successfully, so the code is pasted in below. One of the main issues is that I hard-coded in timings, so as the battery depletes, the code works less-well; currently (hehe), I’m looking into using motor encoders to solve this problem.

Here’s a video file of it working (will download): 181114KA_NeuralRobot_Progression

Edit 190122KA:  and here’s a document I just typed up that quickly runs over different parts of the code: A Quick Rundown of Roomba

Continue reading “Final Roomba Code”

Simple Ultrasonic Sensor Code

181019KA

Hello!

As a note, I’m using the HC-SR04 Ultrasonic sensors; they’ve got a VIN, GND, TRIG, and ECHO pins. Also, the sensors instantiated here definitely have incorrect pin values… I’ve changed them plenty of times since this code was written, and likely will continue to as this project evolves haha :). Here it is:

Continue reading “Simple Ultrasonic Sensor Code”

Simple Motor Code (useful for debugging)

181017KA

Hellooooo

This actually took a while to get to (had to rebuild and learn some coolio things) but here’s the tested simple-motor-code. It essentially sets motor speed based on what you type into the Serial Monitor… pretty sweet until I realized I wasn’t going to need that function lol.

Continue reading “Simple Motor Code (useful for debugging)”

Original NeuroRobot Code

Good day!

This is the original code that I inherited, and that I’ve been using as a reference as I write code for the neurorobot_reboot. In particular, I really wanted to simplify, simplify, simplify, and use shorter (clearer) variables along with comments so the code as a whole is easier to understand. I hadn’t really done much fancy stuff beyond methods before, though, so inheriting this has taught me some cool new techniques, like how to create classes in Arduino. 😀

So I’m just going to paste it in…

Continue reading “Original NeuroRobot Code”

The Reboot

Hello!

I inherited this project a few years after its owners left Mason. Originally, I had only a physical robot, but I later gained access to the previous owners’ final code, and some limited documentation.

Here’s a quick breakdown of the original robot (yes, it’s a PDF): Original Robot_Taken Apart

So this is the original design, and my CAD and subsequent designs are coming soon!