Home \ Help \ Search \ Login RSS

Welcome, Guest. Please Login

This forum is now READ-ONLY! Please visit http://forum.wiring.co/ for the new forum.

Wiring ForumProgramming Questions & HelpLibrary writers › my Wiring Board needs to talk to Max

Page Index Toggle Pages: 1
my Wiring Board needs to talk to Max (Read 4653 times)
05/13/08 at 10:50:44

julienb   Offline
Junior Member
wiring AND arduino owner
France

Posts: 81
**
 
Hello,

I would like to know if anyone would have an idea, a thought, a project about creating a library for Wiring board in order to make it communicate easily with other software.

SimpleMessageSystem works fine.
Maxuino seems great too (midi-based I read..)

My main target is to create a data communication between the Wiring Board and Max/Msp.
I'm close to code my own little/minimal protocol.
Indeed, I'll use about 4 Max7221 (or 3, I don't know) and I'll need special adaptated functions for the board part.

But for the com part (i mean the interface between Wiring Board & max) could you advice me something? a lib? a code or theorical principle?
Indeed, I won't need very big frames of data. only update for LEDs.
I know monome included is own "little" protocol.
I'll need something like that.

Do you think MIDI could fit better?
In that case, will MIDI via USB/Serial connection be fast/reliable/sure ?

any ideas will be welcome!
 

IP Logged
 
Reply #1 - 06/02/08 at 22:20:36

N201LJ   Offline
YaBB Newbies
darwin is my copilot
USA

Posts: 13
*
 
Just so I understand - you're looking for a communication protocol between Wiring and MAX7221 devices to drive LED's?

It looks like from the MAX7221 data sheet that it uses SPI.   Just glancing at the protocol, you should probably use software SPI because the data gets sent in 16 bit packets.

Basically, you select the chip (CS* or LOAD, here) by driving it LOW, then you clock out 8 bits for the register address (see data sheet for the register addresses).  Then you clock out 8 more bits for the data that you want to write to that register.  Then raise CS*.

See this page for an example of software SPI.
 

alan duncan&&to email me, use: lastname dot firstname @ mac dot com
IP Logged
 
Reply #2 - 06/03/08 at 05:45:07

julienb   Offline
Junior Member
wiring AND arduino owner
France

Posts: 81
**
 
my english is very bad.. so sorry Undecided

the main question was: making a protocol between the Wiring board and Max/msp.
a lot already  exist.. but I would like to create one near from the monome protocol or something like that. a very simple one.
 

IP Logged
 
Page Index Toggle Pages: 1