• Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

How to Generate a signal depending on the input

Ian Rogers

User Extraordinaire
Forum Supporter
Most Helpful Member
#2
Easiest way is with a micro that has a DAC.... How many resolutions do you need on the output?

If you are just producing a sine wave on input pulses its very easy, however! I sense there is more to this...
 
Thread starter #3
Ian, Thank you very much.
Do you know the ATMEGA328P - Arduino Uno microcontroller?
I want to use it.
it has ADC built in.
Resolutions is not very important to me. can you help me with the code?
Adir
 

dknguyen

Well-Known Member
Most Helpful Member
#4
Ian, Thank you very much.
Do you know the ATMEGA328P - Arduino Uno microcontroller?
I want to use it.
it has ADC built in.
Resolutions is not very important to me. can you help me with the code?
Adir
A DAC is not an ADC. It is the opposite of a DAC.
 

Ian Rogers

User Extraordinaire
Forum Supporter
Most Helpful Member
#6
Ian, Thank you very much.
Do you know the ATMEGA328P - Arduino Uno microcontroller?
I want to use it.
it has ADC built in.
Resolutions is not very important to me. can you help me with the code?
Adir
I know the Arduino system very well...
The Arduino has no DAC so you'll have to use PWM and a filter or use 5 pins as a crass DAC..

The system you describe seems to me to be a basic sequencing program... Put all the variables to make a sine and sequence using frequency input!
 

Ian Rogers

User Extraordinaire
Forum Supporter
Most Helpful Member
#10
So... Read a pin...( you must condition this input to 3v+ ) each time the pin is high set a voltage on the out put
if you put R2R ladder on three pins and just count 0 ~ 7 and then 7 ~ 0.. outputting this count on the ladder, your voltage will look like the documentation.

array [] = { 0,1,2,3,4,5,6,7,6,5,4,3,2,1}; // sine wave
output this array over the three pins each time your input pin goes high..

If you think I'm going to do it for you, you are wrong... You write some code, I'll check it and give you pointers..
 
Thread starter #14
I didn't understand what do you in this sentence
"You will have to shift it...But maybe the amplifier will allow the signal to be coupled.. There are simple clamping circuits to do this "

How can i do the negative part?
 

Ian Rogers

User Extraordinaire
Forum Supporter
Most Helpful Member
#15
You need to know what the voltage amplifier requires? A simple transistor can level shift.. You just need to generate the sequenced voltage.. I have no idea what voltage amplifier needs...
 

Latest threads

EE World Online Articles

Loading

 
Top