Blogroll
-
Recent Posts
Archives
- March 2023
- February 2023
- November 2022
- September 2022
- August 2022
- April 2021
- July 2018
- June 2018
- May 2018
- December 2017
- September 2017
- August 2017
- February 2017
- June 2016
- May 2015
- April 2015
- March 2015
- December 2014
- October 2014
- September 2014
- June 2014
- May 2014
- April 2014
- March 2014
- February 2014
- January 2014
- December 2013
- November 2013
- October 2013
- September 2013
- August 2013
- July 2013
- June 2013
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
Meta
Tag Archives: serial
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
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
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
A problem with Arduino arrays?
For days now I’ve been trying to troubleshoot why my computer and arduino won’t talk over the serial port. Finally, I took to commenting out all the arduino code and adding it back one line at a time. I assumed … Continue reading
PC to Arduino: Serial BOF and EOF control codes
(First of all, I’ve tried to train myself to refer to the data sent over the serial port as ‘command codes’ but I always find myself lapsing into calling them ‘control codes.’ So I give up for today.) Here’s what … Continue reading
PC to Arduino: Hello, are you still there?
I wrote these two sketches to confirm that yes, serial port communication still works between Processing and the Arduino under the new Arduino IDE. The sketch on the left is written in Processing and writes to the serial port. The … Continue reading
Posted in Uncategorized
Tagged arduino, processing, serial, serial communications, serial port
Leave a comment
Sending Serial Data from Processing to Arduino
I want to send data from my laptop to the Arduino-based robot. Processing is running on the laptop and Wiring on the Arduino. In Processing, the serial object is being called ‘myPort’ (it could have been called ‘Joe’ for that … Continue reading
Posted in Uncategorized
Tagged arduino, processing, serial, serial monitor, serial output, serial port
1 Comment
GIRC: Reviewing Output in the Processing Console
After I generate a path and convert the data into turn-and-move format, I want to send the data to the arduino-robot. For this I will use the USB/serial cable. But before I send any data, I want to make sure … Continue reading
Posted in Uncategorized
Tagged arduino, console, GIRC, processing, processing console, robot, robotics, serial, serial output, troubleshooting
Leave a comment
GIRC Turn Codes
Here we make a 76 degree right turn in GIRC, and this information has to be sent over the USB/Serial cable to the microcontroller aboard the robot. This communication is done with a control code pair. As shown, the first … Continue reading
Posted in Uncategorized
Tagged control codes, GIRC, processing, robotics, serial, serial port, turn
Leave a comment