Making a Theremin with Arduino


When we are defining what is a music instrument, it is touching some key to make sound, or some other actions?
May be the theory or influence by Pierre Schaeffer, we have thousands of experimental music instrument to play with.

“Theremin is one of the earliest fully electronic musical instruments . It was invented by Russian Leon Theremin in 1919, and it is unique in that it was the first musical instrument designed to be played without being touched. It consists of two radio frequency oscillators and two metal loop antennas . The electric signals from the theremin are amplified and sent to a loudspeaker .”
“To play the theremin, the theremin player moves his or her hands around the two metal antennae , which control the instrument’s frequency (pitch) and amplitude ( volume ). The theremin is widely associated with “alien”, surreal, and eerie-sounding portamento , glissando , tremolo , and vibrato sounds, due to its use in film soundtracks such as Spellbound , The Lost Weekend , and The Day the Earth Stood Still . The theremin is also used in art music (especially avant-garde and 20th-century “new music”) and in popular music genres such as rock and pop.” – by Wikipedia (http://en.wikipedia.org/wiki/Theremin)

Parts for this project:

-Photocell
-Piezo Buzzer
-Resistor, 10K (optional , to make the sound smaller)

In this project, we are making the theremin without connecting the Arduino to the computer. That means it can play the melody/sound/noise by itself.

In order to make this, you are not playing the melody in computer by through Piezo Buzzer.

Piezoelectricity

Piezo “, derived from the Greek piezein , which means to squeeze or press

Piezoelectricity is the ability of crystals and certain ceramic materials to generate a voltage in response to applied mechanical stress .

The piezoelectric effect is reversible in that piezoelectric crystals, when subjected to an externally applied voltage, can change shape by a small amount.The effect finds useful applications such as the production and detection of sound, generation of high voltages, electronic frequency generation, microbalance , and ultra fine focusing of optical assemblies.

 

Piezo Buzzer

Two wires: red and black. Black is ground and red is power. (usually)

 

Apply an oscillating voltage to make a noise.

The buzzer case supports the piezo elements and has resonant cavity for sound.

Simple making noise with buzzer:

But you can add a photocell to make a Theremin!!

DIY: Add photocell and make it become a Theremin.

int potPin = 0;   //photocell input
int speakerPin = 7;  //piezo buzzer output
int val = 0;  //photocell input value

void setup() {
 pinMode(speakerPin, OUTPUT); //initiate the pin
 beginSerial(9600);
 Serial.println("ready");
} 

void loop() {
 digitalWrite(speakerPin, LOW);
 val = analogRead(potPin);
 val = val*2;      //this is not exact value,
                  //try to DIY this calculation

 // play it for 50 cycles
 for( int i=0; i<500; i++ ) {
   digitalWrite(speakerPin, HIGH);
   delayMicroseconds(50);
   digitalWrite(speakPin, HIGH);
   delayMicroseconds(50);
 }
}

10 Comments »

  1. provided that 1983, typically ratio does have averaged 15.7 (15.7 kegs behind essential were wanted to purchase one from somewhere oz precious metal ), yet,yet somehow because of the deceiving merely because away from 1983 so that you can 2000, typically primitive essential fees were compromised owing north beach offers (after 1979 83 essential bubble). We may want to treat whom time frame (defined as time frame 1) one by one. when time frame 2, typically justify height was formerly in 12.85 while in time frame 3 in 10.85.The european union against the law having guide you when solder. in order that the eu consumes silver flatware so that you can materiallder but of course, these kinds of products ship anything needs to be soldered in big amounts to dish, wherever will still be legal. regardless of the decrease of having silver flatware when wedding ceremony, it’s use in superconducting power supplies, plasma tv and as a consequence electronic devices boosts as will having silver flatware to gain common wedding ceremony back button uv rays released in areas [analyze India/China],
    nike lady free 3.0 v4 http://ads.curling.ca/nikerunningshoes.asp?p=1595

  2. far stars definitely like lia Sophia! lia Sophia got throughout los angeles clothing Week 2011 as a result counseled me the stars and istas. at the hands of Audrey O’Day, betty Menounous, Rachel Leigh cooking, ann Sarandon, Keri Hilson and additionally kelly felix Rowl; And the list goes on and on. everybody want to be a part of of lia Sophia and all the latest and most well-known fashions,
    nike free 2.0 women http://ads.curling.ca/nikerunningshoes.asp?p=925

  3. will still be scratched and chipped, nevertheless, actuality that yesterday’s tiny products don’t always match current day’s dresses trends. never the less, As experience is now repaired by the prices, these are a pressing an ellement than just the application was, And the times are most often beyond during jewelry articles ‘s primary to suit especial designs of costumes and material. right this moment, something at all heads for the time it is good, shining as well as,while higher priced.
    womens nike air max torch http://ads.curling.ca/nikerunningshoes.asp?p=640

  4. That it is most effective neighborhood retailer cleanse that coating your own self, although will not bring it on the dried up cleansing agents possibly.

  5. Zu diesem Wochenkalender gibt es auch einen Ratgeber, bedroom ich schon easmal page meem vorgestellt habe. Es ist ein Sachbuch, Das dem Anwender zum Ver盲ndern seines Lebens animiert, Das dem Leser eine M枚glichkeit bietet, Schnell mit seinen kleinen Blockaden wieder auf die-off Beine zu kommen. ategori shedd und werde gl眉cklich eine Aufforderung, die sich jeder sagen sollte, Der sich on the inside eer Sackgasse befdet und irgendwie se lebenslustiges Dase blockiert.
    nike free 3.0 size 14 http://www.il-pomodoro.ch/images/cheapairmax.asp?p=1506

  6. Foulk Road, Fowler Street, Franklin Street, Gable Street, Garden Avenue, E Gilbert Drive, Gilbert Street, Gilbertville Road, Glencoe Avenue, Glenny Avenue, .

  7. Lester says:

    I went there only because (Congress ledear and Pune MP) Suresh Kalmadi insisted that I come. I went there only when I was told that Sushil Kumar Shinde had been honoured in one of the earlier meets of the organisation. How can anyone even think of me being a ledear of any one community? If various associations like the Vaishya Samaj or some Muslim body invite me, I do go there, she told The Indian Express.Asked if she saw Muthalik there, Dikshit said as a ledear she meets hundreds of people everyday . Am I expected to know everyone whom I meet? I didn’t know about the man you are talking about. But if he’s the same man behind the vandalism (in Mangalore), he needs to condemned in the strongest possible terms. In Pune, there is talk that Kalmadi and the Congress tried to steal the thunder from the saffron parties by reaching out to the four-lakh Brahmin voter base there via the two-day gathering. Kalmadi was not available for comment.Ghaisas Guruji, who runs an institution to impart Vedic education in Pune, said: While we were organising a local meet in Dharwad (in Karnataka), we were told Muthalik should be invited to the Pune meet because he had been doing good work among the Brahmins. We didn’t known about his background at all. We were taken aback when we learnt the truth about him from television. (With ENS reports from Pune, Bangalore)

  8. I will be putting this dazzling insight to good use in no time.

  9. WOW just what I was looking for. Came here
    by searching for facebook

  10. I view something really interesting about your web blog so I saved
    to fav.

RSS feed for comments on this post. / TrackBack URI

Leave a Reply

Oo

秋天如衰败的经济,不得已穿短裤吹风

虎泥

秋天酒后的虎泥

Futuristic 1972 Rutt-Etra Video Synth

pr code掉radiohead的新mv,我更关注原型设计
当然最值得读还是code。

lily

Lily is an open source, browser-based, visual programming environment written in JavaScript. Lily enables users to build programs graphically by connecting functional modules to fetch and direct the flow of data, play sound or video, add animation or interactivity, and display results. Lily programs can be shared with other Lily users, installed as Firefox add-ons or run as standalone apps using XULrunner.

lily的出现象征着net.art某些思路的变革,它将网站模式扩展,基于网络但又不限于网络。
想到的模式,利用lily完成firefox的add-ons,将add-ons作为控制器,貌似processing也能完成类似过程,但是基于java的processing在web的表现能力还是较逊色。

玻璃

清晨被2踢脚炸破玻璃,散落在床上,醒来不知所措。 买胶带纸控制情绪和楼下放炮的老板交谈。
flora says: (下午12:55:19)本卦是“雷天大壮”。本卦指现在(F)flora says: (下午12:55:45)说明现在坚守正道,很吉利(F)flora says: (下午12:55:54)变卦是雷火丰(F)flora says: (下午12:56:14)说不用忧虑,就像中午的太阳(F)flora says: (下午12:56:17)爻辞说(F)flora says: (下午12:56:49)光明虽然遭到云的蒙蔽,以前的事情会有猜疑(F)flora says: (下午12:57:08)但是只要自己诚恳政治(F)flora says: (下午12:57:14)最后就能获得吉祥的(F)flora says: (下午12:57:44)六二,丰其蔀,日见斗,往得疑疾;有孚发若,吉。算出来是本卦, 本卦其中有爻会变,就产生了变卦, 变卦代表的就是将来(F)flora says: (下午12:59:50)主要看这个变爻的爻辞(F)flora says: (下午12:59:54)卦也有卦辞(F)flora says: (下午01:08:52)本卦是火风鼎(F)flora says: (下午01:09:03)指现在,象征变革(F)flora says: (下午01:09:16)但是是吉利的。是革故鼎新的(F)flora says: (下午01:09:24)但是君子应该稳重。(F)flora says: (下午01:09:34)爻辞说,初六,鼎颠趾,利出否;得妾以其子无咎。(F)flora says: (下午01:09:58)说,鼎虽然翻了(F)flora says: (下午01:10:20)但是把里面沉积的不好的东西也倒出去了(F)flora says: (下午01:12:03)不好的事情,其实也有好的结果(F)flora says: (下午01:12:33)变卦是大有,说的是收获。(F)flora says: (下午01:12:49)爻辞说。初九,无交害,匪咎;艰则无咎。flora says: (下午01:13:05)说,此时不互相来往,也不会伤害彼此。(F)flora says: (下午01:13:14)也不会有什么是非(F)flora says: (下午01:14:22)而且要不忘眼前的艰难,才会顺利度过 。

MiniBioMuse

利用身体作为媒介的演出,想到jimu最近的作品,技术上还是用接触式麦克风,如果照片没看过错的话。


(c) dajun, the photograph

用肌肉电的来控制是另一种选择,历史悠久。


BioMuseを用いた演奏風景(Atau Tanaka)
(c) Peter Kers, the photograph

新・筋電センサ
MiniBioMuse-I
MiniBioMuse-II
MiniBioMuse-III

processing.org

processing不温不火地发展,lib的完善,使得使用更简单,两本书(emule上有)

MIT.Press.Processing.A.Programming.Handbook.for.Visual.Designers.and.Artists.Sep.2007.pdf
Processing Creative Coding and Computational Art 2007.pdf

Handbook讲解的比较浅显,08年应该会出中文版,解决版权的问题有专人来做
Processing Creative Coding and Computational Art非常值得一读,也要求读者编程水平较高以及对图象学有一定研究。

还有就是del.icio.us/aaajiao/processing
收集code是学习的过程。

0day in listening

早年的0day in listening on xu现在我打算在这里继续,才在taobao上购得HiVi 2.1电脑音响一套,这才发现生活有多美好。

0day in listening:
joy division – heart & soul(disc 1)
joy division – heart & soul(disc 2)
joy division – heart & soul(disc 3)
the clash – london calling
Bill_Evans_You Must Believe In Spring-1977
达明一派-为人民服务 1996

Fuck you facebook

leila1bis0nu.jpg

用facebook必须反应机灵,上次打盹挂在facebook,才换上情色头像,当我再次回过神时,已经被删号,发信求证,结论是使用情色头像所致,回信还强调已经发信提醒过(恐吓),罢了,并不相信facebook的用户粘贴性有这么高。附上色情照。

Yang2 Xiaowu

我明白简单的是什么,也开始学会用真的善去面对事情和人。
我明白yang2说的工具的意思了。
解脱。