Categories
affiliations classes and presentations consulting curriculum vitae insights instructional technology libraries open source professional activities professional experience references research interests teaching teaching experience technology workshops

John LeMasney on Hands-On Arduino

English: Photograph of an Arduino Duemilanove ...
English: Photograph of an Arduino Duemilanove (2009b Revision) PortuguĂŞs: Fotografia de um Arduino Duemilanove (RevisĂŁo 2009b) (Photo credit: Wikipedia)

The next Princeton PC Users Group meeting is August 26, 2014 at 7:00 pm at the Lawrence Branch of the Mercer County Library, New Jersey.

John LeMasney on “Hands-On Arduino”

Arduino is an electronics prototyping platform that allows you to scratch your own itch. It exemplifies the making movement, in which we are moving away from off-the-shelf solutions, and moving towards regaining a sense of how things work. Come learn how to gain a new control of the technology that we use everyday. 
Bio:
John LeMasney is a technologist, designer, and artist working in New Jersey.
( lemasney@gmail.com | 609-553-9498 | lemasney.com )
Categories
consulting curriculum vitae insights instructional technology libraries open source portfolio professional activities professional experience research interests teaching technology

Arduino Based Five Ten Egg Timer

I love the five-ten egg. It’s a hard-boiled egg that leaves the yolk just a bit soft and the outside done. Simply boil water, drop your egg, and watch your time. At 5 minutes, ten seconds, pull and ice bath the egg to stop cooking. Peel, enjoy.

I have been relearning my Arduino chops, and one of the ways that I’ve done this is by recreating the Arduino starter kit projects, including one for a digital hourglass.

I decided to repurpose the digital hourglass to light an LED each minute through five minutes, then blink the last LED for ten seconds. Here is the circuit:

Arduino Five Ten Egg Timer - John LeMasney
Arduino Five Ten Egg Timer – John LeMasney

Here is the code:

/*
Arduino Starter Kit example
Project 8 – Digital Hourglass, modified to a Five-Ten egg timer.

This sketch is written to accompany Project 8 in the
Arduino Starter Kit

Parts required:
10 kilohm resistor
six 220 ohm resistors
six LEDs
tilt switch

Created 13 September 2012
by Scott Fitzgerald

Modified 13 August 2014
by John LeMasney

Arduino Starter Kit Multi-Language

This example code is part of the public domain
*/

// named constant for the switch pin
const int switchPin = 8;

unsigned long previousTime = 0; // store the last time an LED was updated
int switchState = 0; // the current switch state
int prevSwitchState = 0; // the previous switch state
int led = 2; // a variable to refer to the LEDs

// 60000 = 1 minutes in milliseconds
long interval = 60000; // interval at which to light the next LED

void setup() {
// set all of the LED pins as outputs
for(int x = 2;x<8;x++){
pinMode(x, OUTPUT);
}
// set the tilt switch pin as input
pinMode(switchPin, INPUT);
}

void loop(){
// store the time since the Arduino started running in a variable
unsigned long currentTime = millis();

// compare the current time to the previous time an LED turned on
// if it is greater than your interval, run the if statement
if(currentTime – previousTime > interval) {
// save the current time as the last time you changed an LED
previousTime = currentTime;
// Turn the LED on
digitalWrite(led, HIGH);
// increment the led variable
// in 1 minute the next LED will light up
led++;

if(led == 6){
// the 5 minutes is up, light up fifth LED, then blink last LED for ten seconds, then leave solid.
digitalWrite(6,HIGH);
for(int b = 1;b<6;b++){
digitalWrite(7,HIGH);
delay(1000);
digitalWrite(7,LOW);
delay(1000);
}
digitalWrite(7,HIGH);
}
}

// read the switch value
switchState = digitalRead(switchPin);

// if the switch has changed
if(switchState != prevSwitchState){
// turn all the LEDs low
for(int x = 2;x<8;x++){
digitalWrite(x, LOW);
}

// reset the LED variable to the first one
led = 2;

//reset the timer
previousTime = currentTime;
}
// set the previous switch state to the current state
prevSwitchState = switchState;
}

Categories
brand consulting curriculum vitae Illustration insights photography portfolio professional activities professional experience research interests technology

All you can eat sushi retro diner sign – John LeMasney

all you can eat sushi retro diner sign - John LeMasney
all you can eat sushi retro diner sign – John LeMasney

I love when retro ideas are mashed up with contemporary trends, and so I decided to make this retro style diner sign about ten-dollar all-you-can-eat sushi. The original that I worked from was a sign for five-cent bottomless coffee, and this was the contemporary equivalent that came to mind.

Categories
brand consulting curriculum vitae Illustration open source photography portfolio

68 of 365: Simple sketch of a coffee cup.

Coffee cup by John LeMasney via lemasney.com
Coffee cup by John LeMasney via lemasney.com

This is a simple sketch of a coffee cup in Inkscape.

Categories
affiliations consulting curriculum vitae Illustration open source photography portfolio professional activities professional experience teaching technology

67 of 365: Dance by Antoinette Marchfelder & John LeMasney

67 of 365 Dance by Antoinette Marchfelder & John LeMasney via lemasney.com
67 of 365 Dance by Antoinette Marchfelder & John LeMasney via lemasney.com

This is a collaboration between Antoinette and I. Antoinette has a lovely drafting ability, and makes the most beautiful, colorful, jungle-inspired work. We’ve worked together in Inkscape, to help her expand her digital working style. In this case. I asked her if she had ever used a Wacom tablet, and she said that she had one, a small one. I brought out my lovely 24 inch Wacom, handed her the stylus, and she made this inspiring dancing figure you see above. I added the text below her illustration. We used an image of a lit match as the palette, and applied a range of tones from the very bright parts of the flame, to the darker smoky background. Fun work, and thanks Antoinette!

Categories
brand consulting curriculum vitae design principles Illustration insights portfolio professional experience

66 of 365 The truth knocks on the door by John LeMasney via lemasney.com

66 of 365 The truth knocks on the door by John LeMasney via lemasney.com
66 of 365 The truth knocks on the door by John LeMasney via lemasney.com

The truth knocks on the door and you say, “Go away, I’m looking for the truth,” and so it goes away. Puzzling.” (Robert Persig) by John LeMasney via lemasney.com