Using Tone functionality
- This topic has 7 replies, 2 voices, and was last updated 9 years, 4 months ago by saumik.
-
AuthorPosts
-
October 29, 2013 at 8:47 PM #932saumikParticipant
Hi,
I want to use the tone like functionality that is there in Arduino using Breakout. I tried using the oscillator example for this. But I am not getting the same output sound out of the buzzer as like a Tone function. What should I do ?
October 29, 2013 at 9:24 PM #934soundanalogousMemberThat’s because the oscillator is only useful at low frequencies. However, someone is working on adding Tone support to Firmata: https://github.com/firmata/arduino/pull/93. Once this is in place I’ll be able to add a tone object to Breakout.
October 30, 2013 at 8:22 AM #935saumikParticipantOk. Thanks for this info.
BTW, Is there any other existing Firmata implementation (with JS or other language) which has this tone functionality implemented ?
October 30, 2013 at 9:11 PM #936soundanalogousMemberNot that I’m aware of. I’ll try to add Tone to the configurable branch in Firmata sometime this weekend.
October 31, 2013 at 8:58 AM #937saumikParticipantThat would be great !
One more question. Can you give me some pointers to adding a new functionality (eg. the tone functionality) to the Breakout code ? Where do I need to make that change in the JS files ?
October 31, 2013 at 11:37 PM #938soundanalogousMemberI just push a tone branch: https://github.com/firmata/arduino/tree/tone. Have only tested this in Arduino 1.0.5 so far. Replace the Firmata directory in Arduino 1.0.5 with the contents of the tone branch. Then load File -> Examples -> Firmata -> ConfigurableFirmata to your board.
Here is Breakout code to test it with: http://breakoutjs.com/examples/test/tone_simple.html
November 1, 2013 at 6:45 AM #939saumikParticipantWhoa ! Thanks a ton man!!
Will test it out tonight and let you know.
You are awesome 🙂
November 7, 2013 at 3:48 PM #940saumikParticipantHey !
Sorry for the late reply. Got busy with some work.
The tone functionality works pretty well. Thanks for putting up the example. After seeing it, I found out it wasn’t too difficult to add this and other features.
Thanks again!
-
AuthorPosts
- The forum ‘Forum’ is closed to new topics and replies.
