Skip to content
Random code for Arduino, Raspberry Pi, OpenWrt, RF, Bluetooth, Audio, Motor Controllers, etc.
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
autodiscover
bluetooth Some old bits of code I found Apr 14, 2018
botbrains Various fixes Apr 18, 2018
command_queue/queue_test Update Queue.h Sep 20, 2016
emi_sensor
images Image update for mr pingpong Dec 31, 2017
irsensor
joystickbot Adding simple robot driven with connected joystick. Aug 5, 2016
joysticktest/joysticktest Some old bits of code I found Apr 14, 2018
microphone/microphone Some more bits of code floating around Apr 14, 2018
monitor Some more bits of code floating around Apr 14, 2018
mr_happy
mr_pingpong
nala Some more bits of code floating around Apr 14, 2018
omega2 Added node-serialport@3.0.0 compiled for Omega2 Feb 9, 2017
radio Adding radio examples with RF 315 Mhz module Aug 5, 2016
rfbot Adding modifications to Yun RF bot Oct 31, 2016
servo/servotest Servo and IR tests Sep 5, 2016
spi_test/spi_test
xavier_blink/4blink_candles Add Xavier candles Jan 7, 2018
yun Adding modifications to Yun RF bot Oct 31, 2016
.gitignore Refactor Dec 30, 2016
README.md Some old bits of code I found Apr 14, 2018

README.md

robotics

I make stuff. Sometimes it works and I put the code here.

I mostly use JavaScript (NodeJS) and C++ (Arduino), bit of bash for Linux scripting.

There is random code for Microcontrollers, Sensors, Raspberry Pi, OpenWrt, RF, Bluetooth, Audio, Motor Controllers and Artificial Learning. Whatever I can get my hands on and figure out how it works.

Audio Bot

images/nala.jpg

This one was my first attempt at using NodeJS to communicate between Analog inputs and Linux CPU using the Arduino Yun's Bridge library. This wouldnt have happened without help from the very talented James Fox who got the spectrum analyzer chip sorted with his oscillometer and some spare capacitors he pulled out of an old PC.

Simplebot v1 (Node bot)

images/simplebot.jpg

Fabrication is not my strong point.

This one was built using instructions from much admired tinkerer Andrew Fisher. He had a couple of great youtube videos that were very helpful too.

Bluetooth communication

This was useful as it helped me understand that Bluetooth makes it really easy to abstract communication, once you get it going it works as if you had a USB cable connected.

Pity its so hard to setup in the first place, and that the connection is usually pretty flakey. I ended up using cheapie RF transmitter/receiver pairs instead, which also improve the battery life.

Simplebot v2 (RF Bot)

images/robbie.jpg

I rebuilt the simplebot, and rewrote the Arduino code to add an RF receiver for the joystick controller below.

I still feel guilty I pinched Andrew's joystick module from Nodebots AU but I will return someday soon (promise). Its all for a good cause.

Joystick RF Controller (v1)

images/joystick.v1.jpg

This is the joystick controller to move the simplebot above.

Joystick RF Controller (v2)

images/joystick.v2.jpg

I added two buttons (green and red for positive and negative feedback), so that I can train the AI for my next project.

Gluco-bot (aka R2-D2)

images/glucobot.jpg

Still work in progress.

He's called Gluco-bot because thats a re-purposed package of glucosamine tablets.

I was a bit too ambitious trying to cut down on size - it doesnt fit in the case basically, I'm thinking AAA batteries instead of AA might do it.

Pattern Recognition Trainer

images/trainer.jpg

A pretty basic setup that allows me to capture environmental sensor data and feed it into a pattern-recognition engine I'm building.

I want the next guy I build to do stuff on his own. Aiming for amoeba-level intelligence.

Scooterbot

images/scooterbot.jpg

After giving up on Gluco-bot, I transferred the parts out to a new enclosure I bought.

This one was made of cardboard so it was easier to cut out the holes for the servo-motors and zip-tie them in place. I also added some cool-cat glasses and held them up with bluetack and a pair of magnets.

Mr Ping-Pong

images/mr_pingpong.jpg

I had an idea to build a nodebot with some sensors and plug them into a neural network project I was working on.

I found a discarded cardboard teabox with a nice pattern on it and I cut out some holes for the wheels, then added the rest of the guts including some photo-sensors and a HCSR04 ultransonic range finder.

The robot was 'alive' in the sense that all data was being sent to a neural network that processed it and fed commands to the motors, reinforcing all recent actions that increased the exposure to light and distance from obstacles.

In other words, a 'light-seeking' and 'obstacle-avoiding' robot. The code can be found here.

You can’t perform that action at this time.