Hi all,
I need a circuit that can create a sine wave generator. The function that I need to get is v(t) = 0.5 sine(t) +1. Where: V = Voltage and t=seconds. I need a circuit that can create other sine wave forms similar to this one.
I was wandering if Picaxe can do it easily without using opamps, resistors, capacitors and all that stuff.
I wrote some code:
_______________________________________________________
main:
establecer_0_grados: let w0= 0
preguntar_rango: if w0= 180 then establecer_360_grados
let b2 = sin w0
let w2 = 5*b2
let w3 = 500+w2
pause 50
let w0=w0+ 1
sertxd(#w3,13,10)
goto preguntar_rango
establecer_360_grados: let w0= 361
rango_de_181_a_360_grados:if w0= 540 then establecer_0_grados
let b2 = sin w0
let w2 = 5*b2
let w3 = 500-w2
pause 50
let w0=w0+ 1
sertxd(#w3,13,10)
goto rango_de_181_a_360_grados
____________________________
It worked and I could visualize it quit well using Stamp Plot. Nevertheless, I want to get that voltage signal from one of the Picaxe’s output.
Thanks in advance.
I need a circuit that can create a sine wave generator. The function that I need to get is v(t) = 0.5 sine(t) +1. Where: V = Voltage and t=seconds. I need a circuit that can create other sine wave forms similar to this one.
I was wandering if Picaxe can do it easily without using opamps, resistors, capacitors and all that stuff.
I wrote some code:
_______________________________________________________
main:
establecer_0_grados: let w0= 0
preguntar_rango: if w0= 180 then establecer_360_grados
let b2 = sin w0
let w2 = 5*b2
let w3 = 500+w2
pause 50
let w0=w0+ 1
sertxd(#w3,13,10)
goto preguntar_rango
establecer_360_grados: let w0= 361
rango_de_181_a_360_grados:if w0= 540 then establecer_0_grados
let b2 = sin w0
let w2 = 5*b2
let w3 = 500-w2
pause 50
let w0=w0+ 1
sertxd(#w3,13,10)
goto rango_de_181_a_360_grados
____________________________
It worked and I could visualize it quit well using Stamp Plot. Nevertheless, I want to get that voltage signal from one of the Picaxe’s output.
Thanks in advance.