Professional Documents
Culture Documents
Living
Outside
Play
Technology
Workshop
http://www.instructables.com/id/Scratching-with-Arduino/
Image Notes 1. Channel ID bits 2. stuff 3. stuff 4. Sensor data, LSBits 5. Sensor data, LSBits
http://www.instructables.com/id/Scratching-with-Arduino/
Image Notes 1. Multiplexed output. Goes to the Analog Input 4 of Arduino 2. Each output activates a single switch. They shall not be activated simultaneously
Image Notes 1. This is the Arduino Severino Board, a Single face DIY version of Arduino PRO 2. CD4066 - Quad Bidirectional Analog Switch 3. Resistors used to provide VCC/2 for testing
http://www.instructables.com/id/Scratching-with-Arduino/
Image Notes 1. Two Stereo Jacks have been used to save space and ease the routing of the board
Image Notes 1. Light Sensor 2. Resistance Sensor Inputs 3. Slider 4. Analog Multiplex 5. Button 6. Sound Sensor and conditioning 7. Unused analog switches
Image Notes 1. Electret Microphone 2. Light Sensor 3. Push Button 4. OPAMP 5. CD4066 Quad CMOS Bidirectional analog switch 6. Only 1 jumper (this image is from revised layout) 7. Slider Potentiometer 8. Jack for resistance channels A,B 9. Jack for resistance
Image Notes 1. No need to be populated. After all it is only a prototype 2. The local supplier stock ran out
http://www.instructables.com/id/Scratching-with-Arduino/
channels A,B
Image Notes 1. I have used another potentiometer since the stock of my supplier ran out 2. This jumper was removed in the version of the board available for download 3. Used an electrolytic here 0,33uf instead of a polyester cap, but no problem. 4. Photo Transistor (Light Sensor) 5. Electret Microphone
Image Notes 1. Assembled Board attached to an Arduino UNO Image Notes 1. After etching there was a short circuit here. The track were too close from the pads.
http://www.instructables.com/id/Scratching-with-Arduino/
The next step is to perform the test on light and sound sensors, and first we are going to do this without involving the analog multiplexer. Then take out the 4066 and short circuit the pins 3 and 4 from the socket (remember to power off the Arduino before remove the IC). Yet using the 'AnalogInOutSerial' change the value of analogInPin to A4. const int analogInPin = A4 ; // Analog input pin that the potentiometer is attached to Now, point a flashlight to the sensor and check the values changing on serial terminal. The exact amount of change depends upon the sensitivity of the photo-transistor used. Now remove the short circuit from pins 3 and 4 and make a short between pins 8 and 9. Now speak close to the microphone and check that values printed om serial terminal (no need to change the value of analogInPin, since light and sound share the same ADC channel, remember?) Now we are going to test the multiplex. Remove the short circuit between pins 8 and 9 and reinstall the 4066 (remember to power off the Arduino before inserting the IC). Use this sketch to test the multiplex. Point a flashlight to the light sensor and speak close to the microphone while watching the values on the serial terminal. You should see both values changing accordingly. The last tests are the Button. As a starting point use the Button example from Arduino and change and check that the LED of the Arduino Board (connected to pin 13) shall go off when the button is pressed and shall be lit when the button is released. Now, use this sketch to perform an overall test of the board. It reads all the sensors and print the values on the serial terminal. Notice that up to now we have been using the standard 9600 bauds speed from the example sketches, but for the overall tests the speed must be changed to 38400.
Image Notes 1. Remember to change the baud rate. Image Notes 1. Short Circuit between pins 3 and 4 2. CD4066 out of the socket (and out of focus, as well)
http://www.instructables.com/id/Scratching-with-Arduino/
Image Notes 1. At the bottom left there shall be a control named "Sensor" Right Click on it 2. Click on the Show Observer
Image Notes 1. Use the Device Manager to see which is the COM Port of Arduino Image Notes 1. Use the option "select Serial/USB Port" 2. Right click anywhere in this box
http://www.instructables.com/id/Scratching-with-Arduino/
Image Notes 1. Now Choose the serial port in which Arduino is connected
Image Notes 1. With everything OK, the sensor values are displayed on the box 2. Now the sensor data is displayed here
Image Notes 1. Scratch On!! 2. Now I can feel the real world!
Related Instructables
http://www.instructables.com/id/Scratching-with-Arduino/
Advertisements
http://www.instructables.com/id/Scratching-with-Arduino/