Show Posts
Pages: [1]
1  Using Arduino / Interfacing w/ Software on the Computer / Re: Firmat doesn't work on IDE0022 and Duemilanove on: December 03, 2013, 09:21:12 pm
Thanks PaulS,

I have tested all the Firmata examples with my board on Arduino 1.0.5 on Duemilanove 168P and official firmata_test.exe from Firmata.org. Here is the test result.

Lab:

AllInputsFirmata
    Filename identified, too many bytes
AnalogFirmata
    Filename identified, too many bytes
EchoString         
    Filename identified, Only echo filename (Rx42)
I2CFirmata
    Filename identified, Only echo filename (Rx36)
OldStandardFirmata
    No filename identified, No response (Rx0)
ServoFirmata
    Filename identified, Only echo filename (Rx40)
SimpleAnalogFirmata
    Filename identified, too many bytes
SimpleDigitalFirmata
    Filename identified, too many bytes
StandardFirmata
    Filename no identified, Tx3 Rx0

Basically only StandardFirmata doesn't work, the OldStandardFirmata may out of date. However since demo client software only works with StandardFirmata.ino. So I have to check other options for host software like Python ones.
2  Using Arduino / Interfacing w/ Software on the Computer / Re: Firmat doesn't work on IDE0022 and Duemilanove on: December 03, 2013, 01:47:26 am
By using printf() in different positions of Firmata libraries, it behavior differently.

I doubt if 168P is not enough for running Firmata? It should run in 328P?
3  Using Arduino / Interfacing w/ Software on the Computer / Re: Firmat doesn't work on IDE0022 and Duemilanove on: November 28, 2013, 11:32:51 pm
UPDATE

I have to change the StandardFirmata example by myself to check out what's wrong with the libraries.

In setup() of StandardFirmata.pde, I add some printf() like following:

Code:
void setup()
{
  Serial.begin(57600); // breakpoint 1
  Serial.println("setup_1, 57600bps");
  Firmata.setFirmwareVersion(FIRMATA_MAJOR_VERSION, FIRMATA_MINOR_VERSION);

  Firmata.attach(ANALOG_MESSAGE, analogWriteCallback);
  Firmata.attach(DIGITAL_MESSAGE, digitalWriteCallback);
  Firmata.attach(REPORT_ANALOG, reportAnalogCallback);
  Firmata.attach(REPORT_DIGITAL, reportDigitalCallback);
  Firmata.attach(SET_PIN_MODE, setPinModeCallback);
  Firmata.attach(START_SYSEX, sysexCallback);
  Firmata.attach(SYSTEM_RESET, systemResetCallback);
 

 
Firmata.begin(57600);  // breakpoint 2
  Serial.println("setup_2, 57600bps");
  systemResetCallback();  // reset to default config
}

Then I change the Firmata.cpp source file as following:
Code:
void FirmataClass::begin(long speed)
{
  Serial.begin(speed);
  Serial.println("begin__,57600");
  FirmataSerial = Serial; 
 
  blinkVersion();
  printVersion();
  printFirmwareVersion();
}

Guess what happens?
Arduino only prints out single "setup_1, 57600bps" once. Is there any restrictions for Serial port?
4  Using Arduino / Interfacing w/ Software on the Computer / Re: Firmat doesn't work on IDE0022 and Duemilanove on: November 27, 2013, 12:33:23 am
Because I thought 0022 is quite mature.

Actually I have tested it with Arduino 0022 as well as v1.0.5/v1.5.1.  Still I can not get any response from Arduino (StandardFirmata.ino). Since I don't have much experiences on debug Arduino debugging.

So I would like to ask if anyone has met same issue? Or just me alone? I suppose StandardFirmata should be tested by a lot of people.
5  Using Arduino / Interfacing w/ Software on the Computer / Firmat doesn't work on IDE0022 and Duemilanove on: November 25, 2013, 07:42:51 pm
I have done many labs on my Arduino Duemilanove. Now I want to evaluate Firmata. I use the following configuation.

Arduino IDE 0022 (quite old)
Arduino 2009
StandardFirmata2.2 from Arduino 0022 examples.
Serial :COM16 57600bps

Built and upload to board.

I used terminal program from www.firmata.org (http://www.pjrc.com/teensy/firmata_test/firmata_test.exe) to test the program. After selecting COM to COM16, I got nothing return. Then I use many third party programs to test it.

Nothing works!

Then I download a serial test pde to Arduino to test serial port. It works.

Finally I use a terminal program to send 0xF0 0x79 0xF7 to query firmware version.  Nothing returns.  

Is there any issue in Firmata library? Is there any plug and play demo available for Arduino Duemilanove?

6  Using Arduino / Interfacing w/ Software on the Computer / Re: Arduino + Android on: November 25, 2013, 07:35:36 pm
There is no standard solution for Arduino + Android.

Android Debug Bridge, MCU+USB Host, covers all Android Phone, but 4.2+ requires RSA authentication.
Android Open Accessory, MCU+USB Host, covers all Android 4.0 Phone
Android USB host API, covers all MCU + CDC/ACM bridge, but only popular in tablet, since most of low end Android phones have not OTG hardware.
Android Bluetooth, depends on profiles and BL4/BLE support
Android WiFi, MCU requires WiFi module and TCP/IP stack.
NFC, not all Android phones have NFC and MCU....

So far, I have three boards, one LPC812+CP2102/Arduino 2009, can talks to Android via USB CDC. The other is GAP, based upon FRDM-KL25Z128, has on-board USB host to talk with Android over ADB.
7  Using Arduino / Networking, Protocols, and Devices / Firmata doesn't work on Arduino Duelimenove on: November 25, 2013, 05:03:42 am
I have done many labs on my Arduino Duelimenove. Now I want to evaluate Firmata. I use the following configuation.

Arduino IDE 0022 (quite old)
Arduino 2009
StandardFirmata2.2 from Arduino 0022 examples.

COM16 57600bps

Built and upload to board.

I use terminal program from www.firmata.org (http://www.pjrc.com/teensy/firmata_test/firmata_test.exe) to test the program. After selecting COM to COM16, nothing happens. Then I use many third party program to test it.

Nothing work!
Then I download a serial test pde to Arduino. It works.
Finally I use terminal to send 0xF0 0x79 0xF7 to query firmware version. Nothing returns.

Is there any issue in Firmata library?
8  Using Arduino / Storage / A newbie looking for help on SDCard on Arduino Duemilanove 2009 on: March 07, 2011, 10:31:42 pm
Hi, guys. I just start to design on Arduino since it is so fast to integrate off-the-shelf components for prototypes. I have tested many projects, until I hit SD examples.

I load the SD example of Arduino 0022, and access two cards: a) KingMax 1G miniSD with SDCard adapter, which prompts "card initialized...", b) Sandisk 128MB, prompts "card initializing....." However, neither prompts have further messages for file open actions. These demo code are written for Ethernet shield,

I used another code (http://www.arduino.cc/playground/Code/SDCARD) which access SD card via raw read/write operation on sectors. And these demo code used native SPI port for SD card access. As a result, the Sandisk 128MB card was randomly erased and written.  I have to format that card, but it demonstrates that the hardware should be all right, otherwise its sector can not be written. Am I right?

I wonder is there any restriction for Arduino 0022 SD libraries? such as memory size (need 328 instead?) Additionally, how can I debug the code without a JTAG debugger used in a traditionally microcontroller firmware development?

Hardware:
Arduino Duemilanove 2009 w/ ATMEGA168
A popular SD-Card module, as described in attached PDF, alternatively, the module can be described as:

Connector:
1) GND
2) 3V3
3) +5V
4) CS
5) MOSI
6) SCK
7) MISO
smiley-cool GND

SD Card socket:
PIN9 (DAT2): shortcut to PIN8
PIN1 (CD/DAT3): CS
PIN2 (CMD): 3V3 pull up by R4
PIN3 (Vss): Ground
PIN_CD: NC **** PIN_CD and PIN3 (Vss) might get swapped.
PIN4 (Vdd): 3V3
PIN5 (CLK): 3V3 pull up by R3
PIN6 (Vss): Grouding
PIN7 (DAT0): 3V3 pull up by R2
PIN8 (DAT1): 3V3 pull up by R1
PIN_WP: NC

I connected the module to Arduino as:
+5V to +5V of Arduino
GND to GND of Arduino
CS to PIN10, PIN8 or PIN4, depends on libraries used in project
MOSI to PIN11
SCK to PIN13
MISO to PIN12

Pages: [1]