Tag Archives: processing

PC to Arduino to LED Control, Source Code

Due to popular demand, here is the source code for my blog entry, “PC to Arduino to LED Control.” First the Processing Source code: // ButtonProc // Make a button on the screen that can be clicked // and cause an LED to turn on and off in synch on  // the Arduino.  Used in conjunction with ButtonArd. //  import processing.serial.*; Serial myPort;  // Create object from Serial class int val; // … Continue reading

Posted in Uncategorized | Tagged , , , | 3 Comments

Dual Sensor Mode in Processing

Here is GRIS in Processing, revised to accommodate dual sensor mode communications between the computer and robot. The square on the left flashes data, while the square on the right flashes the clock signal. Each data bit lasts two frames. … Continue reading

Posted in Uncategorized | Tagged , , , , | Leave a comment

Dual Sensor Communications Protocol

Photoresistors are cheap, and the ATMega328 chip has spare analog pins, so why not use a dual sensor configuration for the GRISbot communications protocol? Here’s what the sensor cowling looks like with two photoresistors (aka LDRs) inside: Likewise the screen … Continue reading

Posted in Uncategorized | Tagged , , , , , | Leave a comment

GIRC Screen-Flash Communications

Worst demo ever, but these days I only have two hands. Here I needed three: one for holding the set-up, one for holding the camera, and one for clicking the mouse. Notice the status bar, also that there is a … Continue reading

Posted in Uncategorized | Tagged , , , , , | Leave a comment

GIRC Demo

On Saturday I made a brief presentation of GIRC at the monthly meeting of the Seattle Robotics Society. I demonstrated drawing the course and running it, as seen in the video above. Where to now? I want to program with … Continue reading

Posted in Uncategorized | Tagged , , , , , | Leave a comment

GIRC Robot Calibration Run

It’s Calibration Run Time here at GIRC Central. First we run GIRC and load in a path file of a square, fifty centimeters on a side, like so: We click Transfer and program the robot, then set it down on … Continue reading

Posted in Uncategorized | Tagged , , , , | Leave a comment

Arduino Phototransistor Signal Protocol

I’ve designed a signal protocol for the Arduino to convert phototransistor readings from the laptop screen into bytes of data. Here’s what I came up with today: In the illustration, the white boxes in the black strip are light pulses … Continue reading

Posted in Uncategorized | Tagged , , | 2 Comments