Let's Make Robots!


Code Post - Interfacing Arduino and Python

This is something I've done by hand at least ten times and always seem to lose it so I've decided to post it here. It is an easy way to debug and test stuff will developing software for the Arduino (or any Microcontroller really). There is a python code that sends string messages to the arduino over serial based on which arrow key on your keyboard is pressed. There is also an Arduino code that listens for these messages, then repeats the message back to the PC to make sure it went through.

You can glow LED in 512000 colours using keyboard keys
I created this software using Processing software. If the selector is set in red, then the software sends values from 0 to 79, depending upon how much brightness is … Read more

Virtual Keyboard (Reads ASCII data from COM port)

Here is a program that reads Serial data, ASCII, and turns that into keyboard strokes. Works with the Serial.print command in the Arduino IDE. (Not sure how it works for Picaxe!)


About halfway down.. kind of hard to see the download link.

Allows you to input keyboard commands into your picaxe
Using a
So one thing that I have been wanting to do is connect a keyboard (PS/2) to the Picaxe. This is the first step to a whole slew of applications. Control Robots with … Read more