Show Posts
Pages: [1]
1  Forum 2005-2010 (read only) / Development / Re: Romeo-All in one Arduino on: August 04, 2009, 03:49:15 pm
Snazzy! The price isn't bad- converts to $44 USD.

re: the analog output listed in the specs:

* 8 channel analog input and output

Do you have a schematic anywhere? I ask because I'm assuming that the analog output comes by way of a DAC of some sort, and I'm curious what you used. Thanks!
2  Forum 2005-2010 (read only) / Interfacing / Re: 1 wire/RTC iButton on: July 31, 2009, 03:04:42 pm
To check your bit shiftage, I stuck this at the bottom of my sketch:

 Serial.print("\ntime:  ");
  rtc = ((uint32_t)data[1]); //LSB
  rtc |= ((uint32_t)data[2]) << 8;
  rtc |= ((uint32_t)data[3]) << 16;
  rtc |= ((uint32_t)data[4]) << 24;  //MSB
  Serial.print(rtc, DEC);

And it works great! Thanks for that bit- I'm used to thinking in Smalltalk or Ruby, not bits and bytes- the math I would've written to converted those four bytes into seconds would've been total mess. smiley-razz
3  Forum 2005-2010 (read only) / Interfacing / Re: 1 wire/RTC iButton on: July 31, 2009, 02:54:10 pm
Oddly enough, I found your post when searching for tips on how to get started with my DS1904. smiley After a really boneheaded reading of the datasheet, I figured out what I was doing wrong and everything clicked into place. Derived from the sample at the Playground.

From your code and output, everything is working just fine. The output you get with the ** TESTING ** area commented out is all kosher as well.

Excuse the demo code- wanted to make it clear for future readers (and future-me) smiley :

#include <OneWire.h>

// DS1904 Real Time Clock iButton I/O
OneWire ds(10);  // on pin 10

void setup(void) {

void loop(void) {
  byte i;
  byte present = 0;
  byte data[8];
  byte addr[8];

  if ( ! {
      Serial.print("No more addresses found.\n");
      delay(500);  // for readability

  Serial.print("ROM: ");
  for( i = 0; i < 8; i++) {
    Serial.print(addr[i], HEX);
    Serial.print(" ");

  if ( OneWire::crc8( addr, 7) != addr[7]) {
      Serial.print("CRC is not valid!\n");

  if ( addr[0] != 0x24) {
      Serial.print("\t\tDevice is not a DS1904 family device.\n");

  // write!
  Serial.println("writing to RTC...");
  present = ds.reset();;
  ds.write(0x99,1);   // write RTC
  present = ds.reset();
  delay(1500);     // unknown if wait needed

  // read!
  present = ds.reset();;
  ds.write(0x66,1);   // read RTC

  Serial.print("PR: ");
  Serial.print(present, HEX);
  for ( i = 0; i < 5; i++) {
    data[i] =;
  Serial.print(" CTRL BYTE:  ");
  Serial.print(data[0], BIN);
  Serial.print("\n\ttime:  ");
  for ( i = 1; i < 5; i++) {
    Serial.print(data[i], HEX);
    Serial.print(" ");


Uncomment the // write section if you want to set an initial time, or to start the RTC. Out of the box, my RTC had a control byte of 0x50 and all four time bytes were 0x55. To get use out of it, you need to turn on the oscillator- if you don't, it's essentially a 4-byte battery backed RAM store. smiley

Control Byte (see DS1904 Datasheet)
          OSC1 OSC2
          Us \ /
byte     /--\ ||xx      
0x50     0101 0000 = user bits are 0101; OSC1 and OSC2 are 0 => clock not running
0xA0     1010 0000 = user bits are 1010; OSC1 and OSC2 are 0 => clock not running
0xAC     1010 1100 = user bits are 1010; OSC1 and OSC2 are 1 => clock running

Example Output:
ROM: 24 C7 7B 33 0 0 0 DC PR: 1 CTRL BYTE:  10101100
      time:  A0 4 5 8

Hopefully that'll get you started! smiley

4  Forum 2005-2010 (read only) / Interfacing / Re: Arduino to a Dream Sound Synthesis chip? on: July 14, 2009, 11:02:28 am
No clue! I'm requesting some samples from Atmel- if you're willing to help take a look at it and you'd like me to send you one drop me a PM.
5  Forum 2005-2010 (read only) / Interfacing / Arduino to a Dream Sound Synthesis chip? on: July 13, 2009, 02:30:40 pm
Just curious if anyone has played with anything from Atmel's Dream Sound Synthesis family?

From Atmel's product page (

The ATSAM2195 is a complete, single-chip, low-cost MIDI sound system. It requires only input of standard MIDI signals by its serial or parallel input and provides stereo audio output. It includes state-of-the-art sound synthesis using a full GM sound set together with a range of compatible effects.

Datasheet for the ATSAM2195

To me, it looks like a great way to get some neat sound capabilities into an Arduino project. I'm going to order a few of the ATSAM2195s, but just thought I'd see if anyone else has used these yet...

6  Forum 2005-2010 (read only) / Interfacing / Re: windows mobile to arduino on: July 13, 2009, 06:14:23 pm
As others have already pointed out, your phone can't play the part of a USB host, which means that it can't talk to the Arduino in the same way that your computer can. However, there may be other options.

The easiest is to use Bluetooth- that should be doable, though adding Bluetooth to your Arduino will cost you.

You could also look into buying another Windows Mobile or Linux PDA. But even then, you might be out of luck, without the needed USB drivers for the FTDI chip.

You can also get Bluetooth to Serial adapters- you'd pair your phone with the adapter, and the adapter would talk to the Arduino over RS-232 (not USB).

Either way, you'll probably end up spending $100-150.

I wouldn't cross my fingers, but the docking connection of some WinMo devices support a serial connection which is made available by either hacking your own cable, or an adapter you can buy.

Good luck!
7  Forum 2005-2010 (read only) / Bar Sport / Re: Arduino to ARM... Where does one start? on: July 13, 2009, 02:14:41 pm
It isn't an ARM... but Atmel's AVR32 might be a good MCU to try. Seems to me that it'd be a good step in between the Arduino and more complicated boards.  With a little extra work, it might be the best of both worlds- plenty of power while still being pretty easy to just *do things*.

I've been thinking of buying an NGW100 for this reason. Basically, I'd love a board with the conveniences of Linux *and* of the Arduino.

Another option is the PIC32- about as easy to get into as PIC or AVR, but with lots of flash and a fast clock speed (80 MHz).
8  Forum 2005-2010 (read only) / Bar Sport / Re: Arduino to ARM... Where does one start? on: July 09, 2009, 11:37:51 am
I'm a little late to the party... but I think that the Cortino would make a great step from the Arduino into the world of ARM MCUs and CPUs. The software isn't quite at the level of the Arduino's in terms of ease of start up/entry, but it's a big improvement over the ARM scene in general.

I've been looking at various Linux-based ARM boards over at Technologics, like the TS-7400. But the board you got (at91rm9200-card-engine) has quite a few more IO pins to play with, which definitely appeals.

Where did you buy it? Anyone know of any distributors in/to the US?
Pages: [1]