아두이노 > Arduino Waveform Generator

TODAY707 TOTAL673,248
사이트 이용안내
Login▼/회원가입
최신글보기 질문게시판 기술자료 동영상강좌

아두이노 센서 ATMEGA128 PWM LED 초음파 AVR 블루투스 LCD UART 모터 적외선


BASIC4MCU | 아두이노 | 아두이노 | Arduino Waveform Generator

페이지 정보

작성자 키트 작성일2017-09-13 13:39 조회1,119회 댓글0건

본문

Arduino Waveform Generator


Picture of Arduino Waveform Generator
IMG_4724
function generator_schem
Screen shot 2012-11-29 at 12



Waveform generators (also called function generators) are useful for testing and debugging circuits.  I often use them to test the frequency response of electronics components like op amp and sensors.  This waveform generator is powered by an Arduino.  It outputs four waveshapes: sine, triangle, pulse, and saw, each waveshape ranges in frequency from 1Hz-50kHz.  The frequency, pulse width, and overall amplitude (gain) of the waveforms is controlled by three potentiometers.  I've also included (optional) indicator LEDs that let you know which type of wave is currently being sent to the output.



Parts List:

(4x) Mini SPST 1.5-Amp Momentary Pushbutton Switch (2 packages) Radioshack #275-1556
(8x) 10K Ohm 1/4-Watt Carbon Film Resistor  (2 packages) Radioshack #271-1335
(9x) 20K Ohm 1/4-Watt Carbon Film Resistor (2 packages)
(1x) 50K-Ohm Linear-Taper Potentiometer Radioshack #271-1716
(1x) 10K-Omh Audio-Taper Potentiometer Radioshack #271-1721
(1x) 10K-Ohm Audio Control Potentiometer with SPST Switch Radioshack #271-215
(1x) 1/8" Stereo In-Line Audio Jack Radioshack #274-274
(1x) 10.01µf 50V Ceramic Disc Capacitor Radioshack #55047551
(1x) 4.7K Ohm 1/4-Watt Carbon Film Resistor Radioshack #271-1330
(1x) 8 Pin Socket Radioshack #276-1995
(1x) LM386 Low Voltage Audio Power Amplifier Radioshack #276-1731
(2x) 220µF 35V 20% Radial-lead Electrolytic Capacitor (or anything between 200 and 300 uF) Radioshack #272-1029
(1x) Arduino Uno REV 3 Radioshack #276-128
(1x) Arduino Proto Shield Radioshack #276-140
(4x) White Super-bright LED Indicator Radioshack #55050633
(4x) 740 ohm 1/4W 5% Carbon Film Resistor (1 package) Radioshack 271-1317
(1x) 300Ohm resistor


Additional Materials:

Heat Shrink Radioshack #278-1611
22 Gauge Wire Radioshack #278-1224
Solder Radioshack #64-013
Drill
Hot Glue
Glue
Black diffusor material (tissue paper, plastic, etc)

Step 1: Prepare Arduino Proto Shield

Picture of Prepare Arduino Proto Shield
IMG_1779 1
IMG_1781 copy
IMG_1783 copy
IMG_1782 1




The Arduino Proto Shields are a convenient way to attach circuits to an Arduino, but I like to trim them down a little bit first so they do not take up so much room in the project enclosure.   Start by trimming the pins down with a pair of wire cutters.  Next, cut off the six pin socket.  Finally, cut the sockets from the top of the board.

Step 2: Enclosure

Picture of Enclosure
Screen shot 2012-04-17 at 4
Screen shot 2012-04-17 at 4
Screen shot 2012-04-17 at 4
IMG_3095
IMG_3096





I decided to laser cut a custom enclosure for my project.  I designed the enclosure using AutoCAD, Autodesk 123D Make, and Corel Draw, and I've included corel draw and adobe illustrator 2D files as well as the STL, and DWG files from this process below.  If you do not have access to a laser cutter, you can use my 2D files a guide and drill the necessary holes in a project enclosure of some kind.  Figure 4 shows the holes that should be drilled on the front panel:

(3x) 7mm holes for gain, freq, and PWM pots
(3x) 7mm holes for four push buttons- sin, saw, tri, and pulse
(1x) 10mm hole for audio out
I cut out shapes of all four waveforms in the front of the enclosure so that I could backlight them with indicator LEDs, you may choose to just drill four 5mm holes for these LEDs in the front panel of the enclosure, place one LED under each momentary switch.
Also include a rectangular (11mm tall, 12mm wide) cutout somewhere on the side of the enclosure for the arduino's usb port.

I made my project enclosure out of wood, so I had to glue all the pieces (except the bottom) together with wood glue.  I will attach the bottom panel on later in this instructable.

enclosure.stl

Print with 3D Hubs!

Step 3: Solder Button Leads

Picture of Solder Button Leads
buttons2
buttons3







Solder a 10kOhm resistor to one lead of each of the four push buttons.  As shown in the second image, solder a green wire to the junction between the button and the resistor and a red wire to the other end of the resistor.  Solder a black wire the the second lead of the push button.  It's a good idea to cover these connections with a bit of heat shrink to prevent short circuits (fig 2).

Step 4: Install Audio Jack

Picture of Install Audio Jack
IMG_2024
IMG_3098
IMG_3099
IMG_3101







Unscrew the plastic casing from the audio jack.  Solder a red wire to the two stereo out pins and solder a black wire to the ground pin (fig 3).  I used hot glue to prevent short circuiting the jack and to give the soldering joints some extra support.  Finally, mount the audio jack in the enclosure with super glue.

Step 5: Install Buttons

Picture of Install Buttons
IMG_3537 copy
Snap the top of the button off and fit them into the wooden enclosure.  Secure with hot glue.  Once dried, snap the black button tops back on.

Step 6: R2R DAC on Arduino Shield: Part 1

Picture of R2R DAC on Arduino Shield
IMG_3538 copy
Solder eight 20kOhm resistors to the arduino protoshield.  One end of each resistor should connect to digital pins 0-7.

Step 7: R2R DAC on Arduino Shield: Part 1

Picture of R2R DAC on Arduino Shield
IMG_3542 copy
Solder 7 10kOhm resistors to the protoboard so that they bridge the leads of the 8 20kPhm resistors you have just soldered.

Step 8: R2R DAC on Arduino Shield: Part 3

Picture of R2R DAC on Arduino Shield
IMG_3545 copy
Solder a 20kOhm resistor to the protoshield so that one end is connected to the 10kOhm resistor attached to digital pin 0 and the other  end is connected to a jumper wire to ground.

Step 9: IC socket

Picture of IC socket
IMG_3547 copy
It's a good idea to use sockets for your ICs, this way you won't risk burning the IC with your soldering iron and you can  easily replace the IC if it breaks.  Solder an 8 pin socket to the protoboard as shown in the image.

Step 10: Low Pass Filter

Picture of Low Pass Filter

댓글 0

조회수 1,119

등록된 댓글이 없습니다.

아두이노HOME > 아두이노 > 전체 목록

아두이노 목록
제목 작성자 작성일 조회
62 아두이노 Adafruit Motor/Stepper/Servo Shield for Arduino kit - v1.2 이미지 키트 17-09-13 1168
61 아두이노 가스센서 이미지 키트 17-09-13 1120
60 아두이노 Arduino Waveform Generator 이미지 키트 17-09-13 901
59 아두이노 Arduino Waveform Generator 키트 17-09-13 889
현재글 아두이노 Arduino Waveform Generator 이미지 키트 17-09-13 1120
57 아두이노 Exclusive 2.5 GHz Frequency Counter 이미지 키트 17-09-13 2352
56 아두이노 AVR SIMULATOR IDE 이미지 키트 17-09-13 782
55 아두이노 Marlin 이미지 키트 17-09-13 843
54 아두이노 opencircuits.com - Oscilloscope 이미지 키트 17-09-13 875
53 아두이노 Zorkduino 키트 17-09-13 846
52 아두이노 Single Chip AVR BASIC Computer V0.1 키트 17-09-13 895
51 아두이노 Single Chip AVR BASIC Computer V0.3 키트 17-09-13 914
50 아두이노 Single Chip AVR BASIC Computer 키트 17-09-13 821
49 아두이노 Single Chip Computer: Easy to produce AVR BASIC Computer 이미지 키트 17-09-13 908
48 아두이노 Arduino Realtime Audio Processing 이미지 키트 17-09-13 829
게시물 검색

2019년 1월 2월 3월 4월 5월 6월 7월 8월 9월 10월 11월 12월
2018년 1월 2월 3월 4월 5월 6월 7월 8월 9월 10월 11월 12월
Privacy Policy
MCU BASIC ⓒ 2017
모바일버전으로보기