Pages: [1]   Go Down
Author Topic: help to understanding Firmata EchoString example  (Read 1016 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 9
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello
i look into this example and i have some question, i know the firmata is not for the rookies but the example really small and easy...but not work to me.. yet smiley

- why start the example this variable? (byte analogPin;) this analogPin not used in this sketch

- can i use the arduino serial monitor to communicate to the firmata?
When i open the monitor the board immediatly send for me the following:
Code:
ùðy
if i try to send any string or char no response, no echo (of course the monintor speed changed to 57600)

- what is this STRING_DATA i look around here (http://arduino.cc/en/Reference/Firmata and firmata.org too) and there is no info, the only string is FIRMATA_STRING


thx



Logged

Offline Offline
Full Member
***
Karma: 1
Posts: 158
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Having the same problem.

I use Duemilanove with ATMega 328, ide 0023 and EchoString example sketch.
Right after switching i have on the serial (57600):
Code:
ùðy

Tried to change baud rate to 9600 both in serial monitor and sketch, but no changes:
Code:
Firmata.begin(9600);

Absolutely no ideas(
Logged

Offline Offline
Full Member
***
Karma: 1
Posts: 158
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

After viewing Firmata lib sources it's clear that it's ok. The board sends data back using Firmata protocol. It sends back START_SYSEX command byte which is 0xF0 (
Quote
đ
) and then versions information.

So, it is not human-readable and one should use Processing Firmata sketch on the host to parse responses according to Firmata protocol.
Best regards.
« Last Edit: November 22, 2011, 02:45:20 pm by 4ntoine » Logged

Seattle, WA USA
Online Online
Brattain Member
*****
Karma: 651
Posts: 50843
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
can i use the arduino serial monitor to communicate to the firmata?
If you knew what to type, and could enter binary data, yes. Of course, the serial monitor does not support sending binary data, so that part alone leaves the serial monitor out.
Logged

Pages: [1]   Go Up
Jump to: