Electronic Switch

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
kirstom14
Posts: 40
Joined: Thu Nov 15, 2007 9:13 am
Contact:

Electronic Switch

Post by kirstom14 »

I want to select between 3 types of waveforms: a square wave, a triangular wave and a sine wave. Then the selection must be the output.
Can I use a PIC to do so, as when I tried it, I noticed a change in frequency but the output was always a square wave type.
I want to use it as a sort of electronic switch. Or it is a better idea to just use an analogue switch, like a multiplexor???

Thanks in advanvce
tomcat14

User avatar
goldwingers
Posts: 118
Joined: Wed Sep 06, 2006 1:22 pm
Location: London
Been thanked: 1 time
Contact:

Re: Electronic Switch

Post by goldwingers »

You will always get a square wave out of a digital chip, there are chips out there that will produce the waves your asking about.


Regards
Ian

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Electronic Switch

Post by Benj »

Hello

You could always use a PWM output with a capacitor between the PWM output and ground. This will act as a digital to analogue converter of sorts and allow you to output analogue signals.

User avatar
Steve
Matrix Staff
Posts: 3427
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times
Contact:

Re: Electronic Switch

Post by Steve »

Or use a D2A chip (or even a simple resistor-ladder arrangement).

Post Reply