Show Posts
Pages: [1] 2 3 4
1  Forum 2005-2010 (read only) / Troubleshooting / Re: error burning bootloader: linux, usbtinyisp, 328 on: December 02, 2009, 09:52:24 pm
I had this same issue until I ran Arduino as a superuser. Try sudo ./arduino
2  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: An idea on: March 04, 2010, 04:12:09 pm
not necessarily... Chrome OS will support USB devices, and it's not really a bizarre concept to allow the browser to have access to the hardware's USB port: http://ideas.4brad.com/universal-web-usb-plugin-all-browsers. In a way (and this is really just my opinion...) Web apps have the potential to tear down a lot of compatibility issues (Win/Mac/Lin/Etc.), though they do introduce issues when there is limited or no connectivity. It's really just a thought... I'd use it  smiley-wink
3  Forum 2005-2010 (read only) / Bugs & Suggestions / An idea on: March 02, 2010, 11:05:12 am
I've been toying with Google's Chrome OS and a little bit with the mbed board and it struck me that Arduino should be considered as a possible web app. It's clearly possible, though I'm sure the concept of remote storage isn't everyone's cup of tea. I haven't run into any issues with the online only mbed compiler and figured arduino should be able to run and compile in a browser as well. just my 2c.
4  Forum 2005-2010 (read only) / Syntax & Programs / Re: Saving an array and getting it out on: March 05, 2007, 10:12:30 pm
hmmm. can you elaborate a bit? How do you want to trigger your array trasmission? timed? triggered? how long is your array? I can help you transmit an array out of arduino, but you'd be on your own reading it with the the other software.
5  Forum 2005-2010 (read only) / Syntax & Programs / serial headers... any clues? on: March 03, 2007, 06:14:11 pm
My project is moving right along with a PCB designed for the 595 shift register matrix display driver. However, I seem to have hit another wall and was hoping for some suggestions. I will be sending display data to a small network of arduino boards and want each display to be separately identifiable... as far as I understand, this would mean using a header at the start of the serial data to identify which display should be receiving what display data... I can not begin to sort out how to do this on the arduino end (host software just needs to send an additional header byte yes?). Does anyone have any suggestions or informational links?
6  Forum 2005-2010 (read only) / Syntax & Programs / Re: Sending arrays serially on: February 07, 2007, 06:19:58 pm
I am trying to solve this exact same problem in reverse... trying to send an entire array through serial to arduino.... If anyone has any insight on this it would be highly appreciated
7  Forum 2005-2010 (read only) / Syntax & Programs / Re: array help on: February 09, 2007, 03:15:46 pm
yeah... just sending an array of bytes one by one. It seems ok now for some reason though. not sure what the issue was, but today it seems to like me better  smiley-wink.
8  Forum 2005-2010 (read only) / Syntax & Programs / Re: array help on: February 08, 2007, 10:47:42 pm
I'm not sure this is the issue... within my serialListen() method, if(Serial.available()){ is first, so technically if serial is not available, it should just continue down the line. for example, I tried it from another angle

Code:
void serialListen()
{
  if(Serial.available()){
    dataArray[index] = Serial.read();
    index++;
  }
  if(index >= 8){
    index = 0;
  }
}

this allows me to send groups of 8 bytes at a time to my array and update the array without the while loop. however it seems to fall out of sync (can't really think of a better way to describe it) and the sprite drawn on the matrix can come out of center vertically... so though I can now update the display (play small animations etc) I still havn't been able to sort this out.
9  Forum 2005-2010 (read only) / Syntax & Programs / Re: array help on: February 08, 2007, 08:24:43 pm
so this is working for the most part for me, but I cant seem to find a good spot to reset the arrays index.

Code:
byte dataPin = 0; // 74HC595 pin 14
byte latchPin = 1; // 74HC595 pin 12
byte clockPin = 2; // 74HC595 pin 11

byte data; // storage for the current data byte
byte dataArray[8]; // define the data array

byte row; // storrage for the current row byte
byte rowArray[8]; // define the row array

byte index = 0;

void setup()
{
  pinMode(dataPin, OUTPUT); //pinmode setup
  pinMode(latchPin, OUTPUT);
  pinMode(clockPin, OUTPUT);

  // row registers... DO NOT CHANGE THESE!
  rowArray[0] = B01111111;
  rowArray[1] = B10111111;
  rowArray[2] = B11011111;
  rowArray[3] = B11101111;
  rowArray[4] = B11110111;
  rowArray[5] = B11111011;
  rowArray[6] = B11111101;
  rowArray[7] = B11111110;

  Serial.begin(9600);
}

void loop()
{
  serialListen();
  drawSprite();
}

void drawSprite()
{
  for(int j = 0; j < 8; j++){ // load the byte...
    data = dataArray[j]; // from the data array...
    row = rowArray[j]; // and the row array
    digitalWrite(latchPin, LOW); // ground the latch pin
    shiftOut(dataPin, clockPin, MSBFIRST, data); // shift out the data
    shiftOut(dataPin, clockPin, MSBFIRST, row); // shift out the row byte
    digitalWrite(latchPin, HIGH); // it's finished so bring the latch pin high
  }
}

void serialListen()
{
  while (index < 8)
  {
    if (Serial.available())
    {
      dataArray[index++] = Serial.read();
    }
  }
}

my code draws to a LED matrix driven by 595s. when I insert an if statement in the code to check the index and reset it at it's peak either the display does nothing at all, or the display draws at the speed of the incoming serial data. I'm looking to load an array via serial and periodically update that same array with new bytes... this did get me a bit farther, but I'm really stuck this time.
10  Forum 2005-2010 (read only) / Syntax & Programs / Re: array help on: February 08, 2007, 02:51:23 pm
ah... this does work quite well... one question though... I'll need to reset "i" when I want to update the array yes?
11  Forum 2005-2010 (read only) / Syntax & Programs / Re: array help on: February 07, 2007, 01:41:02 pm
Quote
Did you check this, it should get you started:
http://www.arduino.cc/en/Reference/Array

thank you, but it's not that I don't understand arrays. I am already using them and accessing them in my program. What I'm stuck on is the serial bit. If I send 8 bytes to arduino, how can the software tell what byte is first. If I can sort that out, I'm set, because then I can just update the array.
12  Forum 2005-2010 (read only) / Syntax & Programs / array help on: February 06, 2007, 11:53:40 pm
I'm trying to figure out how to update an array via serial. It seems  easy enough to update parts of an array predefined in my program, but I want to be able to load all of my data into my array via a serial connection to save on the program size. for instance, mine is an array of 8 separate bytes. I need to be able to read 8 new bytes from the serial connection and load them into the appropriate place in the array, I just can't seem to figure out where to start... can anyone point me in the right direction?
13  Forum 2005-2010 (read only) / Development / SDuFAT issues on: July 10, 2009, 12:03:11 am
I wasn't really sure if this was the right place to post this or not, but couldn't find this issue by searching. I'd like to work with the SDuFAT lib, but when I try to add it to my sketch and compile I get:

hardware//libraries/SDuFAT/microfat.h:8: error: 'byte' does not name a type

hardware//libraries/SDuFAT/microfat.h:9: error: 'byte' does not name a type

hardware//libraries/SDuFAT/microfat.h:10: error: 'byte' does not name a type

hardware//libraries/SDuFAT/microfat.h:11: error: 'byte' does not name a type

hardware//libraries/SDuFAT/microfat.h:19: error: 'byte' does not name a type

hardware//libraries/SDuFAT/microfat.h:22: error: 'byte' does not name a type

hardware//libraries/SDuFAT/microfat.h:24: error: 'byte' does not name a type

hardware//libraries/SDuFAT/microfat.h:27: error: 'byte' does not name a type

hardware//libraries/SDuFAT/microfat.h:34: error: 'byte' does not name a type

hardware//libraries/SDuFAT/microfat.h:35: error: 'byte' does not name a type

etc... and on and on... I've been working for hours now, but can't sort it out. I need some rest and plan on coming back with some fresh eyes, but at the moment, I feel like I'm about to pull my hair out.

any help would be greatly appreciated.

I'm running arduino 0016
14  Forum 2005-2010 (read only) / Development / Re: make your Arduino 0007 sketch smaller! on: February 20, 2007, 09:46:13 pm
Feedback from another mac user.... works like a charm... my sketch now complies to 3056 bytes instead of 4160 bytes. Awesome for squeezing all the space possible out of this little wonder.

Great Patch!
15  Forum 2005-2010 (read only) / Development / Re: make your Arduino 0007 sketch smaller! on: February 18, 2007, 10:27:11 pm
same here... no pde.jar to be found  smiley-sad

the contents of my app are:

antlr.jar
Arduino.jar
mrj.jar
oro.jar
registry.jar
RXTXcomm.jar
Pages: [1] 2 3 4