Show Posts
Pages: 1 [2] 3
16  Forum 2005-2010 (read only) / Development / Re: Arduino Nano on: May 27, 2008, 12:49:00 am
I'd prefer to see something like these http://dev.emcelettronica.com/microcontrollers-usb-stick-tool for an arduino mini

A memory stick thing that u can plug into your computer and a small arduino board that plugs into that for programming. Would be a really nice, very portable development platform.
17  Forum 2005-2010 (read only) / Development / Re: making pcbs on: February 16, 2008, 09:17:13 pm
futurlec has a pcb order service that is pretty reasonable if u just wanna get one board etched.

If you want to build this for fun and learning and stuff, then all good...but if you want a half decent cheap oscilloscope then check out the chinese USB ones on ebay, they are about $200 AUD delivered  (so less for $US) and are very powerful for the price.  I got the 100MSa/s DSO-2090 and am very happy with it. By the time you etch a board and buy all the components,  buy a box, fit everything, labels, troubleshoot and add up your time and effort, you'll have a low speed, low resolution 1 channel scope for only a bit less than buying a cheapy USB scope that runs rings around it performance wise.

I'm not saying don't build one, just think about why your building it and what your aiming to use it for. The speed that the low speed AVR scope works at isn't even useful for audio or tv signals.

Anyway thats my 2 cents worth   smiley-wink
18  Forum 2005-2010 (read only) / Development / Re: Any scripts to generate arduino shield in eagl on: January 16, 2008, 11:28:22 pm
I finally made a script based on the dimensions in ladyadas shield and also used her jumper pads. Its actually pretty easy to do and has made me realize how powerful eagle is. The shield schematic has the four jumpers for all the pins. You then connect your stuff to the pins, generate a board and then run the script which creates the correct board outline and positions for all the jumpers. Makes it very fast to generate a custom board. I can upload it to the community, however it isn't production proven yet. smiley
19  Forum 2005-2010 (read only) / Development / Any scripts to generate arduino shield in eagle? on: January 14, 2008, 10:26:31 pm
Just wondering if anyone has any scripts to generate the board outline and pins in eagle. I want to make a shield but want precise outline for the board and also the pins.
20  Forum 2005-2010 (read only) / Development / Re: 64 LED SPI board on: September 27, 2007, 04:40:23 am
What size are they roughly and when will they be available?
21  Forum 2005-2010 (read only) / Interfacing / Re: PLC or DAta Logger on: February 26, 2008, 04:25:09 am
PLC is a Programmable Logic Controller, used in industry to control motors and stuff, for example a production line with motors to drive belts, various arms and levers moving etc.

Data logger captures data and stores it for use later on. Say if you want to monitor the temperature in 4 different rooms for 2 weeks at 1 minute intervals, you set up your data logger with temp sensors, set it going and then read back the data after 2 weeks. Then you can check and analyze the data etc. Some loggers have alarms and other stuff as well.  
22  Forum 2005-2010 (read only) / Workshops / Re: BOOK: Arduino programming reference on: July 19, 2007, 09:24:38 pm
The book looks really good. Congratulations. I know how much work you must have put into it. It would be great if a lot of the arduino knowledge could be collected and written up in this fashion.  If the book was quite complete it could be made available as a download and people could get it printed and bound at a printers. It could also be offered as a bound and printed book which people could buy (for and example of this see the Blender open source software www.blender.org, they've released a number of books)

Cheers
23  Forum 2005-2010 (read only) / Exhibition / Re: SD card read/write with Arduino on: March 31, 2008, 05:00:01 am
You have plenty of space if you don't use the fat library and just the raw sd card commands. Its just like having a 1G eeprom that is easy to use  smiley. Probably the best thing to do would be to wait until the atmega328p chip is available and works in the arduino and then you would have more than enough for the fat library and any code you want.
24  Forum 2005-2010 (read only) / Exhibition / Re: SD card read/write with Arduino on: March 30, 2008, 06:02:00 am
Here is the code for a very basic data logger which shows how to use the library. When the library starts it reads the card info and prints it out. It takes samples from analog in 1 and writes them to the sd card when you send an 's' over serial.  You can read back the sd card by sending an 'r'. Sending 'q' stops sampling.

I haven't done much testing about read and write speeds or buffer size, in this example I'm only storing 2 bytes in a temporary buffer and then writing them to the card.  

Code:
#include <sd-reader_config.h>
#include <sd_raw.h>
#include <sd_raw_config.h>





int print_disk_info();
int sample();
int readDisk();

byte incomingByte;
void printWelcome();
long int address;
byte tempBytes[2];


void setup()
{
  
  Serial.begin(9600);
  delay(1000);

  printWelcome();
  if(!sd_raw_init())
  {
     Serial.println("MMC/SD initialization failed");      
  }
  print_disk_info();
}



void loop()
{
    int i;    
    
    if(Serial.available()>0)
    {
         incomingByte=Serial.read();
    
       switch(incomingByte)
       {
           case 114:
                     readDisk();
                     break;
           case 115:
                     sample();
                     break;
           default:
                     break;
       }
    }    
}

int sample()
{
    int i,j;
    int temp;
    byte low;
    byte high;
    byte inByte;
    
    Serial.println();
    Serial.println();
    Serial.println("Sampling..");
    for(i=0;i<500;i=i+2)
    {
        if(Serial.available()>0)
        {
            inByte=Serial.read();
            if(inByte==113) return 0;
        }
        temp=analogRead(0);
        Serial.print(temp,DEC);
        Serial.print(" ");
        
        //Convert int to 2 bytes
        low=temp&0xFF;
        high=temp>>8;
       // Serial.print(temp,DEC);
        //Serial.print(low,DEC);
        //Serial.print(high,DEC);
    
        tempBytes[0]=low;
        tempBytes[1]=high;
        
        if(!sd_raw_write(i,tempBytes,2))
        {
          Serial.print("Write error");
        }
        //sd_raw_sync();
        delay(5000);
        
  Serial.println();
      
    }
    
    return 1;
}


int readDisk()
{
    byte low;
    byte high;
    byte info[2];
    int i;
    int  result;
    Serial.println();
    for(i=0;i<50;i=i+2)
    {
        sd_raw_read(i,info,2);
  
        //Serial.print(info[0],DEC);
        //Serial.print(" ");
        //Serial.print(info[1],DEC);
        low=info[0];
        high=info[1];
        result=high<<8;
        //result<<8;
        Serial.print(" ");
        Serial.print(result+low,DEC);
        Serial.print(" ");
    }
  
}

void printWelcome()
{
    Serial.println("------------------------");
    Serial.println("Data sampling system");
    Serial.println("send r to read disk");
    Serial.println("send s to start sampling");
    Serial.println("send q to stop sampling");
    Serial.println("Ready.....");
    Serial.println("-------------------------");
}


int print_disk_info()
{
 

    struct sd_raw_info disk_info;
    if(!sd_raw_get_info(&disk_info))
    {
        return 0;
    }

    
    Serial.println();
    Serial.print("rev:    ");
    Serial.print(disk_info.revision,HEX);
    Serial.println();
    Serial.print("serial: 0x");
    Serial.print(disk_info.serial,HEX);
    Serial.println();
    Serial.print("date:   ");
    Serial.print(disk_info.manufacturing_month,DEC);
    Serial.println();
    Serial.print(disk_info.manufacturing_year,DEC);
    Serial.println();
    Serial.print("size:   ");
    Serial.print(disk_info.capacity,DEC);
    Serial.println();
    Serial.print("copy:   ");
    Serial.print(disk_info.flag_copy,DEC);
    Serial.println();
    Serial.print("wr.pr.: ");
    Serial.print(disk_info.flag_write_protect_temp,DEC);
    Serial.print('/');
    Serial.print(disk_info.flag_write_protect,DEC);
    Serial.println();
    Serial.print("format: ");
    Serial.print(disk_info.format,DEC);
    Serial.println();
    Serial.print("free:   ");
  
    return 1;
}




25  Forum 2005-2010 (read only) / Exhibition / SD card read/write with Arduino on: March 30, 2008, 05:57:29 am
I started a topic in the development section a while ago about getting an excellent sd/mmc card library (http://www.roland-riegel.de/sd-reader/index.html) working in Arduino. After lots of tinkering, and some help from another user (strohhalm who found some fixes in the german forum for the roland-reigel library) it seems to work ok. FAT reading and writing will have to wait until some larger memory arduinos are available as it uses almost all of the memory, leaving no space for further code.

The schematic uses some resistors in a voltage divider to drop down the arduino 5v logic to the sd cards 3v3 logic. So all outgoing signals from the arduino are dropped to 3v3. Incoming signals to the arduino are fine because 3v3 is above logic 1 for arduino. The 3v3 voltage supply from the decimelia was used to supply power to the sd card.
 
The schematic (all top resistors are 1.8k, all bottom resistors are 3.3k):



The circuit built on a prototype board. I desoldered an sdcard socket from a broken memory card reader and then soldered pins onto the bottom. There is a thermistor connected to analog1 with some resistors for testing purposes. (The other stuff is a real time clock and its parts)



I've cutout all the unnecessary files from the roland reigel library and applied the fixes to leave just raw sd card reading and writing. This lets you write and read byte values from an sd card. It's very simple to use. I haven't tried to convert it to a cpp library. Copy the files into the library directory in the arduino build environment. (e.g. for me it is arduino-0011/hardware/libraries/SDcard ). Once you do that and restart the build environment you should be able to select SDcard as an added library and it will add the necessary includes.

The library can be downloaded here: http://www.mediafire.com/?2belzmmnzml
26  Forum 2005-2010 (read only) / Exhibition / Re: Arduino Pong on: August 23, 2007, 04:31:09 pm
Try putting
Code:
cli();
in the setup routine. That should disable the interrupts.  
27  Forum 2005-2010 (read only) / Exhibition / Re: Using an LED as a touch/light switch on: November 20, 2007, 01:19:19 am
I saw this over at the monome forums, looks like it is possible to use only LED's as a touch switch interface. You can check it on youtube here

28  Forum 2005-2010 (read only) / Exhibition / Re: Using an LED as a touch/light switch on: November 07, 2007, 03:34:06 am
I knew it!!  ;D I'm already looking on ebay  smiley-wink
29  Forum 2005-2010 (read only) / Exhibition / Re: Using an LED as a touch/light switch on: November 06, 2007, 02:49:34 pm
Yeah these keypad thingys are pretty expensive but I guess thats what u have to pay for custom music interfaces. U can get a korg padkontrol for $190 USD and that is a professional product so $240 for a kit that u build yourself seems expensive. I think the sparkfun ones are so expensive cause of the size of the pcb (10cmx10cm). It's actually cheaper to buy the keypad kit from monome if you want to make a 8x8 grid. If you've got the programmer then thats one less thing u have to buy  smiley

Yeah if i could find an 8x8 toy thingys, all i want is the keypad, leds and switches and i'd have to hack it apart and use my own interface chips. I'm gonna keep looking in the $2 shops, surely there is something out there!  smiley
30  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Open Source Data Logger Project Using the Ardu on: February 27, 2008, 06:40:35 am
In this thread http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1199737337/15#15

one of the arduino members is storing GPS data to an SD card using arduino. It might be helpful to ask him about his project and how its going.
Pages: 1 [2] 3