Categories
classes and presentations consulting curriculum vitae insights open source professional activities professional experience teaching experience technology workshops

Arduino Starter Kit Project 09: Motorized Pinwheel

The Arduino starter kit

via Instagram
Here is the finished project 09 from the Arduino starter kit. For some reason the Fritzing image for Project 09 (The Motorized Pinwheel) from the Arduino Starter kit is not available online, so I recreated it (below). This project allows you to learn to use an Arduino to control a DC Motor with a momentary switch.
Project 09 - Motorized Pinwheel in Fritzing by lemasney
Project 09 – Motorized Pinwheel in Fritzing by lemasney

 

Categories
consulting curriculum vitae insights research interests

On quantification and truth

My Weekly ‘Therapy’ Session

Venn diagram of nutritional management (three gauges) by lemasney
Venn diagram of nutritional management (three gauges) by lemasney

I was having a conversation with a very good friend the other day. We were talking about the circle of topics that we always talk about, e.g. life, work, relationships, status, and emotion. I deeply enjoy the conversations and they happen almost weekly. It is my own surrogate for therapy, and we pay each other by giving that listening and suggestion to each other in response.

At any rate, it was his turn on the couch, so to speak, and he was telling me that he had no outlooks, no drive, very little to show for his effort, and little to look forward to. He said that he was waiting for things to happen, and did not care much when they did. This is atypical for my friend, usually a bastion of insight and support for when I feel this way.

The Invisible Hand Theory

In discussing possible solutions, we talked about the Invisible Hand theory, often applied in financial theory, in which some people believe that we are acted upon by an unseen influence, like fate, or God. At the opposite extreme, there is a free-will mentality, in which we put ourselves on paths that lead to a greater or lesser likelihood of intended outcomes. I am in the self-driven free-will camp.

For instance, let’s say that we are talking about an accident. It happens. Was it fate that caused the accident, in which we had no choice in the matter, and it was going to happen no matter what? Or was it you taking the risk of that accident by getting into the car or driving recklessly? All other possibilities and contingencies aside, you likely feel stronger about one, or the other.

Some might say that we are born into the understanding capability that we have. That we are more likely or less likely to have the ability to be smart about some particular topic, because of fate or destiny. This is often attributed to me in regards to technology. Some say I ‘just get it’ because it was meant to be that way. My point of view is that I understand technology because I have a passion for it, and want to learn about it, I want to have it in my hand, and I want very much to understand it. To this end, I surround myself with people, media, practices, and work that moves me towards that end. It is not an effort, per se, because I have a passion for it, but it is not by fate, in my opinion. I choose that particular path.

Nutrition, Emotion, and Schedule

51 of 365 on meeting management by John LeMasney via lemasney.com
51 of 365 on meeting management by John LeMasney via lemasney.com

We also talked about it in regards to nutrition. I lost over 100 pounds in about a year after being obese most of my life. This happened because I read books, got tools, and practiced, to that end. I did not know what I was eating, what I was burning, or how any of it worked. I spent time with people who thought nothing of eating footlong sandwiches and chips or fries for breakfast, lunch, and dinner. I did not put the right foods in my refrigerator, did not visit the right restaurants, and did not understand the hidden natures of food, such as how food’s size or type or connotation (e.g. ‘healthy’) is completely unrelated to satiation, calories. or flavor.

In regards to emotion, the same is true. Without meditation to understand the nature of your mood, or by spending time with negative or poisonous influences, you might be asking for a bad mood. You might not see patterns and relationships between food, visits, actions, tone, and mood, but they exist. Unless it’s just fate, but I do not believe that it is.

Finally, there is schedule. I, myself, live by my calendar. I use tools like IFTTT to place an event on my calendar automatically when I get or make a phone call, and record all of the details that I can in the fields of meetings, such as an address in the location field, so that later, I can review and understand the nature of the way that I spent my time, which may very well affect how I spend my time better.

Insights on Tools and Quantification

Towards the end of the conversation, I had a very good insight. For me personally, it is the tools that allow me to review and annotate the quantification of events related to food, schedule, safety, and communication. Like almost anything else I believe and understand the truth of something when I can sense (sight, hearing, taste…) it. I realized that it is because of my awareness of incoming calories in MyFitnessPal combined with output of calories in FitBit that I am able to easily maintain, increase, or decrease my weight. I realized that it is because of the manual and automated manipulation of my schedule that I can see very clearly what took place yesterday, tomorrow, last week, next week, last year or next year.

It is because of the automated download of on-demand media such as technology podcasts about topics I find important in my work that I am able to stay abreast of what is going on in those arenas. By making good choices in the grocery store, I am forced to some degree to make good choices about eating.

I figure that if I can find the right tool for the other concerns in my life, such as money or customer relations, I might be able to apply the same kinds of logic to those in order to make those ecosystems better as well. My emotion, for example, is now being recorded every three hours by MoodiModo, an emotion tracking app that asks me about 16 likert style questions (are you more or less…) about my moods like how angry, scared, or anxious I am. I can look at the charted responses in conjunction with my food diary, exercise charts, or calendar in order to see trends between, let’s say, food or meetings and my level of anger or joy and maybe begin to sense causal relationships.

His response? “But that takes willpower and commitment in order to do that, you have that.”

My response? “if you leave the right tools and choices in your path, working passively and automatically, you need neither. “

Categories
brand consulting curriculum vitae design principles Illustration libraries open source portfolio professional activities professional experience requests research interests teaching experience technology workshops

Tutorial: Wrapping text around an object using Inkscape


This video demonstrates how to use Inkscape to disguise a soup can’s label, and then to wrap text around it fairly believably. Here is the final image.

Wrapping text around an object in Inkscape by lemasney
Wrapping text around an object in Inkscape by lemasney
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.