“Build a drawing robot using two servo motors operated by any audio player.”
By Sean Michael Ragan and Mikal Hart at makezine.com
“Build a drawing robot using two servo motors operated by any audio player.”
By Sean Michael Ragan and Mikal Hart at makezine.com
By Henning Umland
http://www.celnav.de/hv/hvindex.htm
“If, for example, the capacitance of C were 1000 μF, a charge of 1 mAs would result in a voltage of 1 V, independent of any current fluctuations (the capacitor voltage varies in proportion with the charge). I use two paper/oil capacitors with a total capacity of approx. 1500 μF. Thus, a capacitor voltage of 1 V is equivalent to a charge of 1.5 mAs. The time constant resulting from C and the internal resistance of the vacuum tube volt meter, VTVM (Ri = 11 MΩ), is 16500 seconds. Therefore, the capacitor voltage remains virtually constant for some time after the anode current stops flowing. Electrolytic capacitors are not suitable for such a circuit because of their relatively high and unpredictable leak current…”
From “Building a Simple X-Ray Machine”
Here’s a circuit that provides some gain to iPod line-out audio to drive the TXD pin of a Radiometrix NTX2. It uses an LM386N audio amplifier chip (available from Radio Shack). I just substituted capacitors until it worked. Its powered by +5v DC from an Arduino pin.
Roughly based on this circuit – http://www.instructables.com/image/FTZUHWBGD2J36P8
Next will be trying the TS922 op amp.
Transmit AM audio on 727 KHz. using a voltage divider and an Arduino.
By Markus Gritsch
Note: with the actual circuit the signal is closer to 760 KHz.
Samples incoming audio at 34 KHz. and rebroadcasts as RF using the Arduino clock.
This is a simplification of Markus’ original circuit. It eliminates the tuned output circuit. Probably at the expense of increased harmonic distortion.
The voltage divider is uses 2 47K Ohm resistors and a 1 uF electrolytic capacitor. It is the input half of the original circuit.
http://dangerousprototypes.com/forum/viewtopic.php?f=56&t=2892#p28410
(I substituted 2 100 K Ohm resistors in parallel for each of the 47 K’s.)
A voltage divider is useful as a general purpose coupler, for sampling analog signals using Arduino PWM input.
The Arduino sketch is Markus’ original – reprinted here:
(note) Local file is AM_audio_transmitter.
// Simple AM Radio Signal Generator :: Markus Gritsch // http://www.youtube.com/watch?v=y1EKyQrFJ−o // // /|\ +5V ANT // | \ | / // | −−−−−−−−−−−−−−−− \|/ // | | R1 | Arduino 16 MHz | C2 | // | | 47k | | || | about // audio C1 | | | TIMER_PIN >−−−−−||−−−−−+ 40Vpp // input || | | | || | // o−−−−−||−−−−−+−−−−−−−> INPUT_PIN | 1nF | // +|| | | | ) // 1uF | | R2 | ATmega328P | ) L1 // | | 47k −−−−−−−−−−−−−−−− fres = ) 47uH // fg < 7 Hz | | 734 kHz ) // | | // | | // −−− GND −−− GND // // fg = 1 / ( 2 * pi * ( R1 || R2 ) * C1 ) < 7 Hz // fres = 1 / ( 2 * pi * sqrt( L1 * C2 ) ) = 734 kHz #define INPUT_PIN 0 // ADC input pin #define TIMER_PIN 3 // PWM output pin, OC2B (PD3) #define DEBUG_PIN 2 // to measure the sampling frequency #define LED_PIN 13 // displays input overdrive #define SHIFT_BY 3 // 2 ... 7 input attenuator #define TIMER_TOP 20 // determines the carrier frequency #define A_MAX TIMER_TOP / 4 void setup() { pinMode( DEBUG_PIN, OUTPUT ); pinMode( TIMER_PIN, OUTPUT ); pinMode( LED_PIN, OUTPUT ); // set ADC prescaler to 16 to decrease conversion time (0b100) ADCSRA = ( ADCSRA | _BV( ADPS2 ) ) & ~( _BV( ADPS1 ) | _BV( ADPS0 ) ); // non−inverting; fast PWM with TOP; no prescaling TCCR2A = 0b10100011; // COM2A1 COM2A0 COM2B1 COM2B0 − − WGM21 WGM20 TCCR2B = 0b00001001; // FOC2A FOC2B − − WGM22 CS22 CS21 CS20 // 16E6 / ( OCR2A + 1 ) = 762 kHz @ TIMER_TOP = 20 OCR2A = TIMER_TOP; // = 727 kHz @ TIMER_TOP = 21 OCR2B = TIMER_TOP / 2; // maximum carrier amplitude at 50% duty cycle } void loop() { // about 34 kHz sampling frequency digitalWrite( DEBUG_PIN, HIGH ); int8_t value = (analogRead( INPUT_PIN ) >> SHIFT_BY ) - (1 << (9 - SHIFT_BY )); digitalWrite( DEBUG_PIN, LOW ); // clipping if( value < -A_MAX) { value = -A_MAX; digitalWrite( LED_PIN, HIGH ); } else if ( value > A_MAX ) { value = A_MAX; digitalWrite( LED_PIN, HIGH ); } else { digitalWrite( LED_PIN, LOW ); } OCR2B = A_MAX + value; }
Transmit FM audio on 434.65 Mhz. by substituting a Radiometrix NTX2 for a crystal oscillator in this circuit:
http://scitoys.com/scitoys/scitoys/radio/am_transmitter.html
Radiometrix: http://www.radiometrix.com/content/ntx2
NTX2 datasheet: http://www.radiometrix.com/files/additional/ntx2nrx2.pdf
On the NTX2, the connections are:
A voltage divider input coupler will also work. See this post for a simple circuit: https://reactivemusic.net/?p=12263
https://github.com/tkzic/max-projects
folder: arduino-basics
patches:
dim an LED from Max
From the Arduino playground
http://playground.arduino.cc//Code/MaxCommunicationExamples
Connect an LED to pin 9 and ground. The shorter lead goes to ground.
Load the Arduino example sketch: communications | dimmer
Read the value of a potentiometer
This patch is a bit more involved. Refer to the Max Communications Tutorial 2: Serial Communication. In fact, much of this code was lifted from the tutorial.
Load the Arduino example sketch: Analog | analogInOutSerial
Inexpensive programmable DSP chip
Catalog of free open source example programs:
http://www.spinsemi.com/programs.php
Today I built a laser pen solar panel audio transmitter thing – using these two sets of instructions – for the most part:
It works great, but I should have used a battery case instead of soldering the batteries together.
Built it into a Sparkfun box:
The next step is to experiment with filters – like an aquarium for example.
Step Up/Down Inverting Switching Regulator.
By Sparkfun
Convert any voltage to any other voltage. See comments for links to example circuits.
https://www.sparkfun.com/products/317