acheter viagra en pharmacie comprare viagra in internet cialis en ligne viagra maroc prix venta cialis cialis prix en pharmacie prix viagra suisse comprar levitra cialis lyon viagra comprar sin receta medicament impuissance cialis resultados viagras sin recetas pilule viagra pour femme sildenafil nombres comerciales acheter kamagra gel viagra prix kamagra en pharmacie cialis en pharmacie sans ordonnance super viagra viagra generique pas cher acheter cialis france cialis prix pharmacie viagra en andorra vente viagra generique commande cialis generique viagra acheter en ligne foro tadalafil vente cialis en belgique viagra andorra comprar levitra contra reembolso pharmacie cialis tadalafil comprimidos remboursement viagra cialis pharmacie prix precio viagra 25 mg levitra au maroc comprar sildenafil generico levitra ordonnance levitra prezzi venta sildenafil viagra france ordonnance forum viagra pour femme viagra femminile naturale forum achat viagra sildenafil farmacias ahumada acheter cialis moins cher viagras pour femme viagra prix belgique cialis sans ordonnance cialis espagne viagra pour femme cialis 20mg prix cialis espana prix viagra belgique sildenafil 50 mg venta libre cialis commande cialis indicaciones viagra medicinale cialis instrucciones sildenafil vendo remboursement cialis vendo viagra original viagra paris viagra france viagra prix maroc prix levitra pharmacie achat viagra pour femme tadalafil en mexico achat viagra luxembourg acheter tadalafil sildenafil donne achat vardenafil diferencia cialis viagra kamagra thailande viagra marche pas viagra es con receta cialis 20 mg originale pilule viagra viagra super achat cialis 5mg viagra generique belgique vente viagra cialis levitra donde comprar viagra pharmacie france viagra belgique cialis medicament andorre viagra acheter cialis pas cher viagra a vendre montreal levitra femme viagra original online viagra roma achat de viagra cialis 5 precio cialis paris cialis generico contrareembolso acheter cialis 5mg comprar sildenafil sin receta viagra receta medica tarif cialis 20mg prix cialis andorre farmaco viagra tadalafil generico españa vendo cialis milano tarif cialis cialis tunisie cialis generique suisse viagra prix en pharmacie cialis meilleur prix cialis non generique viagra rapide commande viagra viagra pfizer prix viagra sur le net precios viagra cialis vente en ligne veritable viagra sildenafil venta sin receta pilule cialis viagra riddim sildenafil tabletas cialis achat france levitra remboursement viagra generique en ligne cialis achat internet cialis au meilleur prix viagra commande acheter cialis pharmacie viagra precios cialis precios acheter viagra pfizer viagra meilleur prix viagra generique canada cialis vente medicament viagra achat levitra sildenafil costo acheter cialis sans ordonnance sildenafil nombre comercial kamagra pharmacie levitra ricetta medica achat viagra montreal achat cialis precios cialis cialis per donne acheter sildenafil acheter viagra 20mg cialis erbe acheter cialis en suisse forum cialis sur internet cialis generique france sildenafil en bolivia sildenafil masticable sildenafil precio viagra necesita receta medica vendo cialis roma sildenafil 50 mg venta cialis retina viagra sin receta viagra bon prix cialis montreal le viagra cialis berlin acheter viagra suisse andorra viagra vente viagra belgique cialis pas cher prix cialis france cialis femme sildenafil marcas acquistare viagra sicuro cialis de 5 mg viagra maroc viagra precio ecuador cialis o simili veritable cialis precio viagra 100 mg sildenafil efectos en mujeres viagra pfizer achat acheter viagra en espagne acheter viagra en france cialis 5 prix prix viagra france medicamento cialis viagra alternativo kamagra sans ordonnance cialis marca viagra 25 mg prix du viagra viagra tunisien cialis generique avis commander viagra generique vardenafil generico sildenafil pour femme kamagra generique marcas sildenafil forum viagra en ligne prix cialis pharmacie cialis pharmacie andorre vrai cialis moins cher cialis comprare tadalafil prix viagra a vendre quebec acheter viagra andorre comprare cialis viagra reseller tadalafil pas cher precio de cialis cialis 20mg vente cialis en france cialis 20mg pas cher sostituto viagra sildenafil 50 mg precios tadalafil precio medicamento sildenafil 50 mg viagra ou acheter remede impuissance trouver du levitra cialis sur internet cialis a vendre cialis pour femme viagra generique sur le net farmacias viagra sin receta levitra pas cher vente viagra en france acheter viagra femme generique du cialis leivtra moins cher viagra le vrai viagra sottobanco levitra moins cher vente cialis belgique cialis mujer prix cialis maroc sildenafil 100 mg tarif viagra acheter kamagra 100mg viagra belgique sans ordonnance cialis genericos cialis ca marche acheter viagra sur internet cialis original livraison rapide achat viagra cialis comprar cialis generico contrareembolso viagra farmacia andorra sildenafil comprimidos viagra sin receta españa sildenafil mexico offerte viagra cialis originale viagra avec ordonnance cialis belgique vente kamagra viagra le prix acheter viagra generique viagra naturale femminile acheter cialis internet cialis moins cher en pharmacie vendita viagra originale vardenafil generique cialis veritable achat viagra forum farmaco cialis 20 mg viagra pasteque vente levitra viagra temoignage viagra generique pharmacie viagra prix de vente viagra milano acheter cialis en belgique levitra indien cialis venta libre comprar levitra en españa acheter cialis 5 milligrams vendo sildenafil procurer du viagra viagra livraison 24h tadalafil genericos avis cialis generique levitra viagra cialis differenze cialis en suisse vente cialis france cialis prise quotidienne acheter kamagra oral jelly prix viagra en pharmacie levitra contrassegno levitra senza ricetta acheter du cialis viagra moins cher medicament cialis 20mg andorre cialis levitra sur le net commande viagra france viagra vente libre sildenafil pfizer comprare cialis in italia acheter cialis paris kamagra achat viagra sous ordonnance cialis en vente libre viagra prix officiel levitra medicament acheter cialis en ligne viagra andorre prix viagra levitra effet secondaire sildenafil peru acheter cialis en espagne commande levitra viagra livraison express comprare viagra originale viagra generique forum sildenafil receta sildenafil en la mujer precio cialis 5 mg forum cialis generique comprare cialis originale viagra a vendre cialis 5 mg prix levitra originale achat cialis france acheter cialis forum tadalafil mexico tadalafil dosis compro viagra online levitra generique viagra compresse levitra prezzo levitra en suisse cialis forum al femminile cialis precio prezzi levitra acheter viagra pas chere commander cialis en france achat cialis 20mg achat viagra internet kamagra en ligne cialis generique canada levitra prix pharmacie viagra en vente libre achat viagra femme cialis prix generique sildenafil precio viagra receta order viagra viagra inde farmaco levitra cialis 10mg viagra pasti viagra generique achat

Archive for the ‘Processing’ Category

Getting Started with Pachube & Arduino

Thursday, June 25th, 2009

Another post on Pachube and how easy it is to get setup and going. This post will cover the basic steps on how to get some sensors online!  I will be using my project of two light sensors as an example.  The status of my light sensors are viewable at http://www.pachube.com/feeds/2145

Pachube + Arduino from Morgellon on Vimeo.

STEP ONE: GET A PACHUBE ACCOUNT!

Head over to the Pachube website and see various sensors from all over the world and view their status.  Be sure to view the ABOUT page, this describes INPUTs and OUTPUTs, along with ways to interface with Pachube and your sensors.  The QUICKSTART page has the details to get started and how to use your API.  Pachube is still in beta, so you’ll need to get an invite code… but no worries, Pachube has an email address on the QUICKSTART page.  Just send them and email asking for an invite and what you would like to do.  If they let me in… they will let anyone in! ;)

STEP TWO: PREPARE ARDUINO!

The Arduino can be interfaced with Pachube two ways: 1. With an Ethernet shield OR 2. Via USB connected to a PC running Processing… which is the way used in this tutorial… as I feel it is an easy and inexpensive way.  You can learn more about each way at the Pachube Arduino page.

To prep the Arduino, you need to connect the sensors you will be using and verify that they are working correctly! Once the sensors are good, then upload the “Standard Firmata” to the Arduino.  Now the Arduino is prepped for Pachube!  Leave the Arduino connected to the PC.

STEP THREE: PREPARE PROCESSING!

To have Processing communicate easily with Pachube, you will need to add a few libraries.  They are the Pachuino, Arduino and EEML libraries, they are available and there is more info at the PACHUINO page.  Download, unzip and move them to the libraries folder, in your sketchbook folder.  Now Processing is ready!

STEP FOUR: PREPARE INPUT FEED!

Once you have a Pachube account and your API key, go ahead and set up a new feed for your sensors.  Since I have light sensors, I started a new INPUT FEED.  I chose to make my feed “manual” (as this is easier for me) which means Pachube gets updates only when I send them.  Instead of Pachube connecting directly to my PC to pull the info.

STEP FIVE: PREPARE CODE FOR PROCESSING!

Once you have the libraries in the folder, you are ready to start Processing and start coding.  Below is the code I used for my light sensor.  This was taken from the sample code and stripped to make it more simple. I added a LED on pin 11 to light up (to let me know when my Arduino was running) and a delay(1500).

Be sure to add you API Key, and the URL of your INPUT FEED!

import processing.serial.*;
import cc.arduino.*;
import eeml.*;
import pachuino.*;

Pachuino p;
Arduino arduino;
int ledPin = 11;

void setup(){
p = new Pachuino(this, Arduino.list()[0], 115200);
p.manualUpdate(”http://www.pachube.com/api/2145.xml”); // change URL — this is the feed you want to update
p.setKey(”—YOUR API KEY HERE—”);

// local sensors
p.addLocalSensor(”analog”, 0,”Light Sensor Inside”);
p.addLocalSensor(”analog”, 1,”Light Sensor Outside”);
}

void draw(){
//p.debug();
p.digitalWrite(ledPin, Arduino.HIGH);
delay(1500);
}

// you don’t need to change any of these

void onReceiveEEML(DataIn d){
p.updateRemoteSensors(d);
}

STEP SIX: LAUNCH CODE AND COLLECT DATA!

Make sure that:

  • Sensors are *working* and connected to Arduino
  • Arduino is running “Standard Firmata” and connected to computer
  • Processing is collecting sensor data from Arduino
  • Computer has Internet connection

Now run your program and begin collecting data and sharing it on the web!!  Check your feed to make sure you data is being transmitted.  Have fun and happy tinkering!

–Morgellon OUT!

Arduino + Pachube = Web Connected Sensors!

Wednesday, June 24th, 2009

Quick update before I zonk out…  Yesterday I setup an account for Pachube and spent all night getting familiar with how it works. Pachube describes itself as a service that enables you to connect, tag and share real time sensor data from objects, devices, buildings and environments around the world. The key aim is to facilitate interaction between remote environments, both physical and virtual.

It also works with Arduino and Processing… hrmmmmm…..

As a “test” project, I set up two light sensors in my room.  One is mounted on the wall, the other is taped to the window facing outside.  The idea is to compare inside light levels to outside light levels and adjust for energy consumption.  If the light level outside is equal or greater than inside, then perhaps I should open the blinds to let in more light… or maybe even go outside… *gasp*
The two light sensors are connected to an Arduino running the Standard Firmata.  The Arduino is connected to a PC running a Processing sketch that sends the sensor data to Pachube.  Nice and easy!  I’ll post more details, code and a basic tutorial later… after I’ve slept… that way it *might* make sense.
Until then, here are some pictures and graphs. (yay graphs!) The two graphs are generated by Pachube and are fairly easy to customize.  The higher the number, the less light is present.  So, hopefully the Inside Light Sensor will stay a nice high number as I sleep… while the Outside Light Sensor should lower over the course of the day.

The graphs will continue to update as they receive more data from the sensors.  It will be interesting to watch and compare the differences in the two graphs.  More to come soon!

–Morgellon OUT!!


Yarn & Code…?!

Wednesday, June 17th, 2009

That’s right, we are still alive!  I can’t stand the pain of not posting any longer, so I thought I would make the time to do a brief update.

Things have been quite action packed and distracting for me!  A recent move has not helped with the distraction factor either, lol. Between work, packing and unpacking, here are the other things I’ve been doing with my time:

Learning to Code. As I progress in my projects, my lack of coding abilities are really starting to be the limiting factor.  Among other things, I have been wanting to incorporate Processing into more projects.  In order to manifest my crazy ideas into reality, I decided to really focus on learning to “code”.   My favorite and possibly most valuable resource has been the Programming Methodology videos from Standford University.  The course is taught around Java, which is convenient for me as Processing is Java based.  Here is a link to the Programming Methodology course videos on youtube… they are also downloadable!  http://www.youtube.com/view_play_list?p=84A56BC7F4A1F852&search_query=programming+methodology

I’ll embed the first lecture to wet your whistle!

Crafting. Yes, that’s correct.  Crafting. I’ve been wanting to do some “wearable” projects… making use of the LilyPad, conductive thread and my madness, among other things.  So, I have been learning to use a sewing machine, along with hand stitching and other techniques.  Recently, I even had the opportunity to learn to make yarn from wool.  I also have acquired a large amount of wool and a Navajo spinning spindle, to spin the wool into yarn.  One of the things I would like to try is spinning my own “conductive yarn”.

If for some reason you were interested in learning more on this technique of spinning, here’s a nice link explaining the process: http://www.graftonfibers.com/navajospinning.htm

Don’t worry, things are starting to settle and slow down with me… so hopefully I soon have time to start applying my new found knowledge to some neat Arduino projects.

– Morgellon OUT!

Flourish Conference 09

Friday, April 24th, 2009

Finally gotten around to posting some pictures and video from the Flourish Conference, in Chicago IL.  Flourish was a blast, Droops and I had a wonderful time with all the great people that we met.


Massimo Banzi at Flourish ‘09 from Morgellon on Vimeo.


Processing Workshop at Flourish ‘09 (pt1) from Morgellon on Vimeo.


Processing Workshop at Flourish ‘09 (pt2) from Morgellon on Vimeo.

Basic Processing to Arduino Communications

Friday, February 20th, 2009

Finally sat down and figured out how to send some basic signals via serial from Processing to an Arduino.  For this example I was just looking for basic functionality, so I settled for a simple way to turn a LED on and off.  It’s also mostly sample code gathered from the Internet.

The Processing code creates a small black square on the screen.  When the mouse cursor is moved over the square, it changes color to yellow and sends a “H” over serial to the Arduino.  While the Arduino detects a “H” on serial it will light the LED.

Here’s a video of it in action and describing how to get started.

Basic Processing to Arduino Communications from Morgellon on Vimeo.

  • Download Processing

http://processing.org/download/index.html

  • Download Arduino to Processing Library

http://www.arduino.cc/playground/Interfacing/Processing

Now that you’ve gotten all the files installed and in their proper places, try out my test code I used in the video.

Arduino Code (Download here)

//  Read data from the serial port and turn ON or OFF a light depending on the value

char val;         //Data received from the serial port
int ledPin = 13;  //Set value ledPin to pin 13

void setup(){
pinMode(ledPin, OUTPUT);  //Sets pin as OUTPUT
Serial.begin(9600);    //Start serial communication at 9600bps
}

void loop(){
if (Serial.available()){  //If data is available to read,
val = Serial.read();    //read it and store it as val
}
if (val == ‘H’){              //If H is recieved
digitalWrite(ledPin, HIGH);  //turn ON light
} else {
digitalWrite(ledPin, LOW);  //If not leave light OFF
}
delay(25);
}

Processing Code(Download here)

//Check if the mouse is over a rectangle and write the status to the serial port

import processing.serial.*;
import cc.arduino.*;


Serial port;    //Create object from Serial class

void setup() {
size(200, 200);
noStroke();
frameRate(10);
//Open the port that the board is connected to and use the same speed (9600bps)
port = new Serial(this, Serial.list()[0], 9600);
}

void draw() {
background (255);
if (mouseOverRect() == true) {  //If mouse if over square
fill(242, 204, 47);                    //change color
port.write(’H');              //send H to serial port
} else {            //If mouse is NOT over square
fill(0);          //change color
port.write(’L');  //send L to serial port
}
rect(50, 50, 100, 100);  //Draws the square
}

boolean mouseOverRect() {    //Tests if mouse is over square
return ((mouseX >= 50) && (mouseX <= 150) && (mouseY >= 50) && (mouseY <= 150));
}

Processing Interview

Monday, January 19th, 2009

Looks like Ben Fry and Casey Reas the creators of Processing, were recently interviewed on FLOSS Weekly! This is a nice intro into the world of Processing! If you’re looking for ways to extend your *duino projects, communicate with a PC or just have some creative fun, Processing could be for you!

Be sure to head over to the FLOSS Weekly site and listen to this interview!

Processing color selector

Wednesday, October 15th, 2008

I am working on having processing read and act on data from the ardunino, this is a simple test and code should be up soon, i am working on a code repo for Morgellon and I to share projects.


Arduino / Processing Color Selector from droops on Vimeo.

This is for our talk at Phreaknic, the ardunio reads 3 linear pots and outputs serial data that looks like this:

X 56
Y 67
Z 10
X 59
Y 89
Z 10

Processing takes this, splits it up, and makes the pretty colors.

Processing is Crazy

Wednesday, October 8th, 2008


Metamorphosis from Glenn Marshall on Vimeo.

Color Selector

Tuesday, September 30th, 2008

The color selector is 3 linear pots that control the rgb values of a square in a window. The window also displays the rgb values. Kinda simple to make, I reused a lot of code from the etch-a-sketch sketch. I am working on my processing book, so my projects should get better.

The dot in the red pick, is me not being able to use a mouse properly, the lines on the text seem to be a problem with the font I picked.

/*
Color Selector

Takes 3 pots hooked up to analog 0,1,2 and uses them for the red green blue
values of a square.

Also displays the number for each color

*/

import processing.serial.*;

Serial myPort;
String inString;  // Input string from serial port:
String letter;
int number;
String numberS;
int redNum, greenNum, blueNum;

int x = 300; //somewhere around 200 or 300
int y = 300;

int lf = 10;

PFont font;

void setup() {
size(x, y);
//you may have to change the serial port
myPort = new Serial(this, Serial.list()[0], 9600);
myPort.bufferUntil(lf);

background(0);

font = loadFont("aakar-medium-20.vlw"); //make your own font

}

void draw() {

background(0);

textFont(font);

fill(255, 0, 0);
text(redNum, 10,30);

fill(0, 255, 0);
text(greenNum, 70,30);

fill(0, 0, 255);
text(blueNum, 130,30);

fill(redNum, greenNum, blueNum);
rect(0,50,x,y);

}

void serialEvent(Serial p) {
inString = (myPort.readString());

letter = inString.substring(0, 1);
numberS = inString.substring(2);
numberS = trim(numberS);
number = Integer.parseInt(numberS); //I could have combined a bit of this, but this code is for learning

if(letter.equals("R") == true) {
redNum = number;
}
if(letter.equals("G") == true) {
greenNum = number;
}
if(letter.equals("B") == true) {
blueNum = number;
}

}

/*Arduino Code

int bluePin = 2; //analog pin for right hand knob
int greenPin = 1;  //analog pin for left hand knob
int redPin = 0; //analog pin for center knob (width)

//Info for Serial Data
int id_1 = 'R';
int id_2 = 'G';
int id_3 = 'B';
int space = ' ';

void setup()
{
pinMode(redPin, INPUT);
pinMode(greenPin, INPUT);
pinMode(bluePin, INPUT);

Serial.begin(9600);
}

void loop()
{
int redNum = analogRead(redPin);
int greenNum = analogRead(greenPin);
int blueNum = analogRead(bluePin);

//the arduino will read from 0 to 1024 on teh analog pins, so we divide that by 4
redNum = redNum / 4;
greenNum = greenNum / 4;
blueNum = blueNum / 4;

printByte(id_1);
printByte(space);
printInteger(redNum);  printByte(10);

printByte(id_2);
printByte(space);
printInteger(greenNum);  printByte(10);

printByte(id_3);
printByte(space);
printInteger(blueNum);  printByte(10);

delay(10);

}

*/

Poorman’s Oscilloscope Improved

Monday, September 15th, 2008

Many of ya’ll have seen this really cool hack of an oscilloscope built with an Arduino and Processing.

http://accrochages.drone.ws/en/node/90

Example Screenshot

I have been playing with it a bit and have added some functionality to it. It now supports up to 3 inputs, 6 if i add a bit of code, has a second counter since the application (applet) started, and has lines across the screen for a bit of “what the heck value is this, zen”.

Here are a few screenshots of my additions to keep you interested, we will be talking more about this at Phreaknic hopefully. Code and such will be up soon, its a bit dirty and I want to add a few more things. Maybe Morgellon will bring his scope to Phreaknic and I can see what one actually does.


  • Cool Arduino Parts

  • You are currently browsing the archives for the Processing category.



  • Viagra ordre
  • Cialis en ligne
  • Levitra en ligne
  • Propecia acheter
  • Viagra acheter
  • Acheter cialis
  • Ordre levitra
  • Ordre propecia
  • En ligne viagra
  • Vente cialis
  • Levitra bon marche
  • Propecia en ligne
  • Viagra online
  • Buy cialis
  • Order Levitra
  • Buy propecia
  • Buy viagra
  • Cheap cialis
  • Cheap Levitra
  • propecia online
  • Viagra prescription
  • Cialis online
  • Buy Levitra
  • Order propecia