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

Arduino reads screen flashes with phototransistor

This is the first test of the communication system as described in the previous entry. The flashes are one millisecond, followed by a one second delay. The serial monitor informs me that the microcontroller is able to count them. Here’s … Continue reading

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

GIRC test drive on blocks

GIRC (Graphical Interface for Robotic Control) is a ‘sketch’ written in Processing that enables user to draw a path file, save and reload, and transfer control codes to an Arduino-brained robot. The magnitudes of the turns and distances haven’t been … Continue reading

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

Disorganized workspace, organized mind (I hope)

Today I verified that the Arduino sketch still runs the servos, and then I did some organizing and planning. The note card on the left shows the listing for GIRC control codes (so far). On the right, I wrote out … Continue reading

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