Interact With Hardware


The  Processing examples use ArtBus to interact with images, sound, and the Internet. Hookup diagrams for digital and analog input, and digital output show how to make the basic hardware connections.

Get some Processing examples here

 

You will need these. It's good to open the diagrams in separate browser tabs:

Analog and Digital Input Diagrams

Digital Output Diagrams

 


What you should change in the examples:

It should all just plug-n-play, but keep a couple of things in mind.

  • the input/output pins number from right to left. Channel 1 is marked on the user diagram. The i/o channels you use are your choice.
  • In the code samples, you'll see how to speak to an ArtBus board:  port.write("!Aa1;");

The letter A is the address. You need to change this to the letter you got when your board printed its address. If it said  "Hi from G..."  cahnge the line of example code to read: port.write("!Ga1;");

Here are the basic commands for the analog board  and the digital board.