- Posts: 175
- Thank you received: 0
opensource THC for Plasma , Fiber laser and co2 laser
did u solve the voltage divider issue?pinderkhara wrote: parport
coz divider it self is a big time investment,,, better to buy one,., if u are interested in experimenting ( not cost) then i will give u updated skecth for liner convertion with low freq,, but ur divder is ready? and whats ur mcu ( u can use arduino or stm32 or esp32)
my current code is for esp32
but for now we need to check the the divider reading ( if u have it)
Please Log in to join the conversation.
futher multiplying divider ratio, I got the plasma voltage.
No fancy divider.
is there any problem with that.
what I am planning is to generate freq output (proportional to input voltage) on digital pin. as thcad board does.
Futher i can safely connect that pin to parport with optocoupler in between.
Does you Esp32 program does the same?
Please Log in to join the conversation.
@taloot any idea?pinder wrote: i was able to convert plasma voltage to 5v range with direct non isolated voltage divider, and was able to read the value using arduino micro.
futher multiplying divider ratio, I got the plasma voltage.
No fancy divider.
is there any problem with that.
what I am planning is to generate freq output (proportional to input voltage) on digital pin. as thcad board does.
Futher i can safely connect that pin to parport with optocoupler in between.
Does you Esp32 program does the same?
can you share wiring diagram with a chinese voltage divider and esp32 and parport.
Please Log in to join the conversation.
thats good , if u can read it without hanging ,,pinder wrote: i was able to convert plasma voltage to 5v range with direct non isolated voltage divider, and was able to read the value using arduino micro.
futher multiplying divider ratio, I got the plasma voltage.
No fancy divider.
is there any problem with that.
what I am planning is to generate freq output (proportional to input voltage) on digital pin. as thcad board does.
Futher i can safely connect that pin to parport with optocoupler in between.
Does you Esp32 program does the same?
yes the code i did do the same what u want
Please Log in to join the conversation.
for arduino u need different code coz the esp32 have special library for pwm which is ledc its based on hardware timer ,,
if u have esp32 modify the line here,
int pwm_val = (int)capatofreq(filteredval);
make it analog read
it will be 1024 on arduino 1024 =300v
0 = 0v
u can define min and max value and map it accross the pwm
on esp32 its 4096
for paraport 1khz to 3khz is ok
max i can achieve is 20khz
arduino nano performance is bad for pwm
stm32 fast but complext
esp32 easy for this task
Please Log in to join the conversation.
I am waiting for my esp32 to arrive.
If anytime you get a spare time, please write a seprate detailed tutorial for plasma with circuit diagram for parport and mesa board.
For a newbie like me sometimes it becomes difficult to understand a simple thing.
Thanks for your work with laser, I hope to work with that sometime.
This THC also makes linuxcnc independent from prorietory hardware.
cheers!
Please Log in to join the conversation.
Please Log in to join the conversation.
