584,830 active members*
5,831 visitors online*
Register for free
Login
IndustryArena Forum > OpenSource CNC Design Center > Open Source Controller Boards > open source Atmel/arduino PID motor control
Page 9 of 13 7891011
Results 161 to 180 of 250
  1. #161
    Join Date
    Mar 2009
    Posts
    533
    Phase angle control of the triac is what we want. The micro turns the triac on somewhere in the 8.33333ms portion of each half cycle determined by the desired speed.

    The zero crossing circuit we are reffering to, is a separate circuit only used to tell the micro where in time the AC reaches zero volts. It does not control the triac directly and thus does not turn on the triac at the zero voltage points. Two separate functions, but unfortunately use the same "zero crossing" phrase.

    Once the micro knows where the zero voltage points are in time it can then select a delay time, before firing the triac, based on the desired motor RPM.
    So, we are using a "zero crossing" detect circuit for synchronizing the firmware to the AC line voltage.

  2. #162
    Join Date
    Aug 2006
    Posts
    157
    Finally got time to try to mill a board. Did not turn out like I wanted. I am going to try the laser printer method. Anyone have luck getting the schematic operational?

  3. #163
    Join Date
    Mar 2009
    Posts
    533
    I don't have all the straga schematic parts. I do have enough parts to experiment with a basic circuit topology that is similar and have an Arduino Uno board, but it wouldn't be exactly as the straga schematic.

  4. #164
    Join Date
    Jun 2011
    Posts
    0
    Quote Originally Posted by timmyb199 View Post
    Finally got time to try to mill a board. Did not turn out like I wanted. I am going to try the laser printer method. Anyone have luck getting the schematic operational?
    I don't have a hall sensor yet, i tried to use a PC fans hall sensor but the RPM count was not very reactive, but i powered the circuit based on straga's schematic with an AC motor. It appears to function but there is no control without the sensor.The motor starts up as if in soft start when the manual mode switch is pressed.

    I couldnt get hold of a PC817 (well i did have an old one but it appeared not to work) so i opted for a Agilent HCPL817

    Hows everyone else getting on ?

  5. #165
    Join Date
    Mar 2009
    Posts
    533
    Quote Originally Posted by koogar View Post
    ... Hows everyone else getting on ?
    I built the power section (opto-triac driver, power triac & transformerless ZC) on a piece of perf board hand wired and fastened in an electrical outlet box. Used two 1/8" jacks for interfacing. I'm experimenting with a OPB707, a reflective Object Sensor. It works best when real close, like .05".
    Next, will need to connect to Arduino and work through the firmware in stages to learn as I go. This may take a few days before I get to it.

  6. #166
    Join Date
    Dec 2010
    Posts
    0
    did I see someone from the UK was looking for Hall sensors
    Farnell do this one
    £0.21 each

  7. #167
    Join Date
    Jul 2010
    Posts
    8
    hello. i am used Proteos for simulation schematic and PCB too. I thing need some change in code for more stable work on diferent motor.

    Used H11AA1 for zero detect it goog idea.
    And LCD conector in one plate it too goog.

    Need change pcb and sofware.

  8. #168
    Join Date
    Jun 2011
    Posts
    0
    Would be great if the new PCB and Code used a Reflective Sensor rather than a hall sensor it worries me that the weight of the magnet with cause vibrations and balancing issues.

    RPR-220 are plentifull

  9. #169
    Join Date
    Feb 2010
    Posts
    71
    hello people
    first of all, you guys can use any type of sensor. im using optointerupter from printer.
    it works nice.
    but no mather what type of sensor you use,you will need to find a way to deal with EMI nise.
    cable for sensor need to be short ass possible and if you can use coaxial cable. shield for ground and middle for signal. +5v can be standalone wire, ofc. keep the sensor wire ass far ass possible from ac mains wires.
    that was problems i struggle with, so i am just wanna warn you guys.
    and yes frimware could need some improvements.

  10. #170
    Join Date
    Feb 2010
    Posts
    71
    Attachment 187692
    Attachment 187694Attachment 187696
    here is mine controller assembled in aluminum box.
    top left main switch, then on of switch for motor start. then potentiometer and fuse.
    below is 220 power connector and motor connector.
    lcd is not connected to power so its not working on pictures

  11. #171
    Join Date
    Mar 2009
    Posts
    533
    How did you deal with EMI?

  12. #172
    Join Date
    Feb 2010
    Posts
    71
    hello ppl.


    i made some changes to code and original pcb .

    replace BR41 with stonger one that can deal with 400V or more
    and replace R41 and R42 with 33kohms 5W resistor.
    and for zero cross just conect mains ac without transormer.

    in attachem is rewriten code for spindle so you can try this.
    it working flawless on realy low speed with good amount of tourqe.
    Attached Files Attached Files

  13. #173
    Join Date
    Apr 2013
    Posts
    3
    I've read through the thread a couple of times now.

    mrendu43, any chance you'll be posting the updated schematic and layout?

  14. #174
    Join Date
    Feb 2010
    Posts
    71
    the schematic dont need update. schematic is fine, just change that few components i mentioned in my last post, this way you can use ac mains for zero crosing,because transormer generate about 15-20% phase shift, because of histereziss inside core.
    i will post video soon of my controller, and how its work.
    one little thing. inside my code thare is lcd.print (rpm/2)
    just remove " /2" because i have gear reduction 1:2 on motor shaft to my tool so im printing half off actual speed on lcd.
    that it i can tell you. you should get it working without any problems.
    Quote Originally Posted by akhlut View Post
    I've read through the thread a couple of times now.

    mrendu43, any chance you'll be posting the updated schematic and layout?

  15. #175
    Join Date
    Apr 2013
    Posts
    3
    mrendu43,

    Thank you. I look forward to your video!

  16. #176
    Join Date
    Feb 2010
    Posts
    71
    hello

    here is my video of my controller
    arduino pid cnc spindle/ router controller - YouTube

  17. #177
    Join Date
    Apr 2013
    Posts
    3
    Looking good. Going to build one soon.

  18. #178
    Join Date
    Feb 2010
    Posts
    71
    im looking forwart to se your build
    i will do some more testing and retuning
    so wait for my next i hope last frimeware update
    Quote Originally Posted by akhlut View Post
    Looking good. Going to build one soon.

  19. #179
    Join Date
    Feb 2010
    Posts
    71
    hello here is my last fimeware update.
    that is all from me.
    Attached Files Attached Files

  20. #180
    Join Date
    Aug 2013
    Posts
    14
    Has anyone got a circuit board for this knocking around they want to sell me, Populated or unpopulated I don't mind.

    This project is really sweet, I want to use this as a driver for my Lathe motor.

Page 9 of 13 7891011

Similar Threads

  1. CNC Controller with Arduino - open source
    By Christian Knüll in forum Open Source Controller Boards
    Replies: 16
    Last Post: 12-22-2012, 10:46 AM
  2. Arduino PID Motor speed control for router
    By EL34 in forum CNC Machine Related Electronics
    Replies: 16
    Last Post: 12-02-2012, 11:34 PM
  3. Open Source Spindle Control
    By rcpilot82 in forum Open Source Controller Boards
    Replies: 7
    Last Post: 05-27-2011, 10:25 PM
  4. EMC2 (Open Source) Plasma Control w. THC
    By rugludallur in forum Waterjet General Topics
    Replies: 0
    Last Post: 07-19-2006, 09:25 PM
  5. Any open source or cheap driver for bipolar motor 6 Amp, 2.7V??
    By berryCR in forum Stepper Motors / Drives
    Replies: 1
    Last Post: 06-10-2006, 05:43 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •