So… what’s wrong?

A well due update on the project.
Since I am too busy with FYP recently i have not had much time to concentrate on my final assignment.
So far done:

  • Violin with embedded wiimote, LEDs, amplifier and microphone.
  • Arduino with connection to LED and wiimote

So far failed:

  • Communication between wiimote and arduino
  • software

how to fix the failures:

  • communication:

I changed my method of connection and decided to use a more “analog” aproach. Instead of using the twi provided by the IC2 protocol of the wiimote, I will simply use commands to turn the LEDs of the wiimote on and off. This way i will send code to the arduino using a home-made protocol that goes as follow.

It will be a cyclic protocol based on 300ms delays between data transfers, a “begin” tag for syncronisation and a “data” tag on each 3bit packets defining if we are in the middle of a sequence or not.

Since i have 8 leds to turn on and off I will define the data as follows:

111  -  begin
011  -  turn on LED 1 and 2
011  -  turn on LED 3 and 4
011  -  turn on LED 5 and 6
011  -  turn on LED 7 and 8

the first bit set to high will be only for the begin packet
the first bit set to low will be for all other packets
the second and third bits will be used for data. high turning on… low turning off.
trying this afternoon.

  • software

well… gotta get started some day… i guess…
will be done by the presentation date.


Posted on : Apr 22 2009
Posted under SM2258 - Creative Electronics Workshop, Uncategorized |