Latest Updates: flex sensor RSS

  • Flex sensor meets Wave Shield 1.0

    Ellen 14:15 on May 15, 2011 | 1 Permalink | Reply
    Tags: , , flex sensor, wave shield

    I soldered together a Wave Shield 1.0 to be fit on the Arudino. There is a version 1.1 so if you follow the solering instructions make sure you look at the right one. Version 1.1 differs in components and placement of them. The Wave Shield can play Wave files stored on the SD card. The SD card needs to be in FAT16 format. The Wave files must be saved in mono, 22KHz, 16-bit. Audacity is a very nifty and free audio software for Mac, Linux and Windows to convert and record sounds in mono.

    There are several libraries build to support the shield. The example below is using the older AF_Wave library while there is a newer library called WaveHC.

    The following code prints out the sensor value in Serial Monitor and plays a sound if the value of the flex sensor is less than 600:

    void loop() {
       flexSensor = analogRead(0);
       Serial.println(flexSensor);
       if(flexSensor < 600) {
          playSound("ERROR.WAV");
       }  
       delay(1000);
    }

    You can view the enitre Arudino source code here

  • Getting values from a flex sensor

    Ellen 14:08 on May 5, 2011 | 0 Permalink | Reply
    Tags: , , flex sensor

    flex_sensorFirst step in my project:

c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
esc
cancel