Show Posts
Pages: [1]
1  Using Arduino / Networking, Protocols, and Devices / Re: software serial with MAX202 on: November 18, 2012, 01:08:38 pm
Thank you.
2  Using Arduino / Networking, Protocols, and Devices / software serial with MAX202 on: November 16, 2012, 04:57:11 pm
Trying to set up a software serial using MAX202 processor on this adapter: http://www.robotshop.com/productinfo.aspx?pc=RB-Dfr-165&lang=en-US

I'm following the directions in this tutorial: http://arduino.cc/en/Tutorial/ArduinoSoftwareRS232

So far no luck! I have tried a few different digital IO pins including pins 0 (RX) and 1 (TX). They all send nonsense to the port using the software serial program from the tutorial.

HOWEVER, using the Serial.write and Serial.read() functions works fine when I connect the adapter pins RXD --> digital IO pin 0; TXD --> digital IO pin 1.

So is there a bug in the tutorial code? Why doesn't it work on the digital IO pins?
3  Community / Products and Services / Re: USB Host Shield 2.0 on: October 28, 2012, 11:21:48 am
Aha! of course the version from ubuntu repos is horribly outdated. I have upgraded to Arduino IDE 1.0.1 and verification is successful.

FYI I am using this USB host shield http://www.robotshop.com/ca/productinfo.aspx?pc=RB-Dfr-104&lang=en-US

I suceeded to query a usb device using [install dir]/sketchbook/libraries/USB_Host_Shield/examples/USB_desc/USB_desc.pde
and query a USB hub and attached devices using [install dir]/sketchbook/libraries/USB_Host_Shield/examples/hub_demo/hub_demo.pde

The typical workflow is: verify sketch --> upload sketch --> open serial monitor --> attach USB device --> (it sends device data)

Probably this is obvious, but it wasn't when I was starting out.

Thanks so much for your great contribution!
4  Community / Products and Services / Re: USB Host Shield 2.0 on: October 25, 2012, 11:27:50 pm
Right, I'm using USB Host Shield with Arduino Uno. I'm very new with Arduino - please forgive me in advance for silly questions.

The shield is connected and red power LED is ON.
1) When I plug in a USB device, e.g. IPOD or USB memory stick nothing happens. I connected a 9 V external power supply - still nothing happens when USB devices are connected.

2) I installed the USB Host Shield 2.0 library and tried to compile example USB_desc.pde. I get error compiling with the following,
Code:
In file included from /data/tinkering/Arduino/sketchbook/libraries/USB_Host_Shield/SPP.cpp:18:0:
/data/tinkering/Arduino/sketchbook/libraries/USB_Host_Shield/SPP.h:109:22: error: '__FlashStringHelper' does not name a type
/data/tinkering/Arduino/sketchbook/libraries/USB_Host_Shield/SPP.h:109:42: error: ISO C++ forbids declaration of 'parameter' with no type
/data/tinkering/Arduino/sketchbook/libraries/USB_Host_Shield/SPP.h:115:24: error: '__FlashStringHelper' does not name a type
/data/tinkering/Arduino/sketchbook/libraries/USB_Host_Shield/SPP.h:115:44: error: ISO C++ forbids declaration of 'parameter' with no type
/data/tinkering/Arduino/sketchbook/libraries/USB_Host_Shield/SPP.cpp:725:23: error: '__FlashStringHelper' does not name a type
/data/tinkering/Arduino/sketchbook/libraries/USB_Host_Shield/SPP.cpp:725:44: error: ISO C++ forbids declaration of 'ifsh' with no type
/data/tinkering/Arduino/sketchbook/libraries/USB_Host_Shield/SPP.cpp:762:25: error: '__FlashStringHelper' does not name a type
/data/tinkering/Arduino/sketchbook/libraries/USB_Host_Shield/SPP.cpp:762:46: error: ISO C++ forbids declaration of 'ifsh' with no type

I am attaching my ~/.arduino/preferences.txt    What else can I do?
Pages: [1]