Show Posts
Pages: 1 ... 9 10 [11] 12
151  Forum 2005-2010 (read only) / Interfacing / Re: Mouse data output from Arduino on: February 08, 2007, 03:26:04 am
You will have to look up the PS/2 protocol. But maybe this is a nice start: I know that this is the other way around, but it might be usefull to learn the protocol.
152  Forum 2005-2010 (read only) / Interfacing / Re: SPI, geting started, troubleshoot and debug on: January 24, 2007, 03:06:41 am
Ah, so you're sending a whole byte (which is easier) with leading 0s and the last three setting up the transfer, then sending the data byte?
Yep, pretty easy, once you have figured it out.

Good information.  I'm still eyeballing this device as well as DOSonChip.  Your feedback helps me out.
If I can give you some advice: skip the dosonchip. I have it but I can't get it to work. I gave up and bought the VDIP1. With the VDIP1 you can you have two USB ports and you can attach whatever you want to it. One port can even be used as a USB host.
153  Forum 2005-2010 (read only) / Interfacing / Re: SPI, geting started, troubleshoot and debug on: January 23, 2007, 03:34:57 pm
I figured it out!  smiley-grin
I just looked at the data sheet and it appears this thing doesn't use neat 8-bit chunks.  If I read it correctly a read cycle consists of a 3 bit write followed immediately by a 9 bit read, and a write cycle is an 11 bit write followed by a single bit read.  I may be off by one bit, as I'm counting that inital high of SDO as one bit, and I read this really fast.
If you remember the datasheet, it starts with sending 3bits, actually 11, then 0. But what they don't show are the 0's before these bits. So, I tried starting with B11000000, but it should be B00000110. (without knowing the datasheet this looks like nonsens I guess)
So, I still have nothing worth mentioning at the moment. But I  am quite excited that I got something working.
154  Forum 2005-2010 (read only) / Interfacing / Re: SPI, geting started, troubleshoot and debug on: January 18, 2007, 03:47:10 pm
Also note the SPI gotcha of the clock phase and polarity (CPOL and CPHA) settings.  This gives you four different "modes" possible, and they may be different depending on the manufacturer's interpretation of the standard.  See the commented out lines of code to see some of the combinations.
I figured these settings out. But, because of the strange data I tried the other settings too. But this didn't help.
155  Forum 2005-2010 (read only) / Interfacing / SPI, geting started, troubleshoot and debug on: January 18, 2007, 11:10:40 am
I am trying to get a USB drive working with SPI. I have this thing:
I get some data but it is not really usefull. As if the ascii codes are shifted. With some trial and error I think I have got the settings for the SPCR register.
According to the datasheet: page 9, some bits should be send to start with reading. But as far as I understand it you use the SPDR register for reading and writing. So, I think I making a mistake by writing the bits to the SPDR register and immediately afterwards reading the SPDR register:
char spi_transfer(volatile char data)
  SPDR = data;
  while (!(SPSR & (1<<SPIF)))    
  return SPDR;                    
char read_register(char data)
  char in_byte;
  digitalWrite(SLAVESELECT, HIGH);
  in_byte = spi_transfer(data);
  digitalWrite(SLAVESELECT, LOW);
  return in_byte;

What I want to know is how to proceed. How do you get code for SPI working? Is there some strategy? I have an acceleration sensor working with SPI, but that's only with someone else's code. Since this device speaks SPI a little bit different I have some trouble to get it working.
156  Forum 2005-2010 (read only) / Workshops / Re: Arduino workshop in the Netherlands? on: December 16, 2007, 08:47:33 am
There is a workshop at mediamatic in januari next year.
157  Forum 2005-2010 (read only) / Exhibition / Re: 4 legs robot (12 servos) on: October 14, 2007, 02:01:00 pm
Very nice stuff. How did you connect 12 servo's to 1 arduino?
158  Forum 2005-2010 (read only) / Exhibition / Re: send me a message! on: April 09, 2008, 01:40:35 am
Wow, that is pretty cool! Nice work!
159  Forum 2005-2010 (read only) / Exhibition / Re: Switchboard on: January 14, 2007, 11:09:46 am
Long time ago I thought it would be great to have foot controlled trackball. So, something like a bowling ball with a three big buttons. That way you can mouse with one foot and have two hand always on the keyboard. I don't know if you can FPS with foot controlled trackball, in that case your only hand could be on the keyboard fultime.

At some point I got used to switching between mouse and keyboard and more or less forget about the idea. Today I use a spaceball, seperate numeric keyboard and wacom tablet. An extra mouse might be nice though. (BTW, I am an engineer and almost fultime working with CAD software, so very mouse and numeric oriented)
160  Forum 2005-2010 (read only) / Exhibition / Re: ArduBlimp on: March 13, 2008, 01:17:46 pm
Congratulations Jordi! You are on bbtv and makezine! Very cool.
161  Forum 2005-2010 (read only) / News / Re: Playground getting reorganized, comments pleas on: November 06, 2007, 03:53:40 pm
Nice job Tim! It seems everything is easier to find this way.
My to three choices, in no particular order:

162  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: LED matrix on: March 15, 2007, 02:54:58 am
i don't have a matrix but I read the datasheet and to my surprise the connections are not in numeric order. So it is not 0-7 from the first to last leg. Check the links in previous messags in this thread. Direct link to a datasheet:

If possible try to use more than one colour for the wires. It is so easy to make a mistake and you won't notice it. You can also try to switch on 1 row, use Massimo's code with something like this:
max7219_put(0x01, 0xff) Here 0x01 is row1. So, try row1 to row8 and see what led's switch on. Rewire row for row until it works.

I made a circular matrix with the driver, wiring the whole thing was a challenge but using different coloured wires certainly helped. Figuring out to which rows the wires were connected to was time consuming but worth the effort. I haven't put it in the playground yet because making a circular matrix is apparently easier than writing in the playground.  :o
163  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Using the Bluetooth module on the ArduinoBT on: January 10, 2008, 02:34:45 pm
Maybe you should increase the serial buffer size a bit. I know I mentioned it somewhere on the forum. It is in wiring_serial.c.
164  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Using the Bluetooth module on the ArduinoBT on: January 10, 2008, 10:13:11 am
it can be seen that there are some transmission errors somewhere in the data transfer. I wonder if the AVR can keep up with the serial data from the WT-11 when it is writing to the EEProm.

If I am right, I started using the eeprom to get all the info from the WT-11 returned. I'll load my program again to see how it works for me. And I'll try you program.

I copied the escape sequence from another program, I probably  made it different for a special, and now forgotten, reason.
165  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Using the Bluetooth module on the ArduinoBT on: January 09, 2008, 08:44:00 am
I would start with something really simple. Just let the arduino write something to the serial port and flash a led. Make a simple message and add millis() or a custom counter to it. Any device with BT and a serial terminal can display the message that is sent from the arduino.
Pages: 1 ... 9 10 [11] 12