kotobuki / funnel

Automatically exported from code.google.com/p/funnel
Other
2 stars 2 forks source link

Arduino Processing analogIn example always reports values of 0.0 #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Upload firmware to the Arduino board (I tried a Diecimila and an ancient 
Arduino w/ an 
ATmega8)
2. Copy the funnel processing library into PROCESSING/libraries/funnel.
3. Edit the funnel server settings.yaml file changing the type: of the io: to 
Arduino
4. Run the funnel server.
5. Run the analogIn sketch.

What is the expected output? What do you see instead?

I saw 0.0 for each analog input value.  I thought it should change when I 
connected an input to 5 
volts.

What version of the product are you using? On what operating system?
Build: e.g. 003
OS: e.g. Mac OS X 10.5
Language: Processing

Please provide any additional information below.

The digitalOut example works fine with both boards, which makes me think I've 
got the server 
configured correctly.  I love the automatic serial port detection, btw.

Original issue reported on code.google.com by dmel...@gmail.com on 15 Nov 2007 at 10:55

GoogleCodeExporter commented 8 years ago
This issue should be fixed in r416

In Firmata, a host library should call setPinMode for not only digital pins but 
also
analog pins.

Original comment by kotob...@gmail.com on 5 Aug 2008 at 2:08