Pages: [1]   Go Down
Author Topic: Re: problem with running botton code on processing  (Read 311 times)
0 Members and 1 Guest are viewing this topic.
Spokane, Washington
Offline Offline
God Member
*****
Karma: 0
Posts: 686
My name is Bob, and I'm an addict.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Well what exactly is happening?
Nothing?
Something?

We need to know what's going on to help you debug!

One thing I noticed though.. it says the button is attached to pin 7, but in your sketch it's set to pin 2. Which pin do you have the button connected to?

And do you have a pull-up or pull-down resistor on the button?


Also, did you upload the Standard Firmata example to your Arduino? (that's required for that processing sketch, as it's using Firmata)
« Last Edit: November 15, 2009, 03:08:33 am by thoed » Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 7
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you for replying.  I connected input to pin2, and I did have a pull down resistor, and I tried the code from arduino official website, that one worked pretty well, so I think I use  Firmata in a right way. But my code just does not work at all, it shows nothing on my board, the LED never turn on.  smiley-sad
« Last Edit: November 15, 2009, 01:20:08 pm by beiping » Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 553
Posts: 46300
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I connected input to pin2

Input from what?

You need to connect +5 to one leg of the switch. The other leg gets connected to pin2 and to one leg of a resistor. The other leg of the resistor gets connected to ground.
Logged

Spokane, Washington
Offline Offline
God Member
*****
Karma: 0
Posts: 686
My name is Bob, and I'm an addict.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The official website for the button tutorial is just that, only a button tutorial.

To get the button sketch in processing to work in arduino, you've got to goto Examples, Firmata, Standard Firmata, then upload that..

Then after you do that, run the processing sketch.
Logged

Pages: [1]   Go Up
Jump to: