DIY PCB Ink Plotter using Arduino and GRBL CNC - Make PCB at home in few hours

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ก.ย. 2024
  • This homemade PCB Ink plotter is built using Arduino running GRBL CNC firmware, 28BYJ-48 stepper motors, 3D printed parts and other few other hardware. Video is played at 4x speed.
    The build is based on the design from Dirk Herrendoerfer ( • Direct ink to PCB CNC-... ) and the firmware is based on github.com/rui....
    Wiring Diagram: drive.google.c...

ความคิดเห็น • 798

  • @stevenA44
    @stevenA44 5 ปีที่แล้ว +31

    If you could possibly give a list of parts or make a video of how YOU made this one, it'd be much appreciated. This is one of the better ones I have seen.

    • @albarreto
      @albarreto ปีที่แล้ว +2

      No response?

    • @jovialcupid9687
      @jovialcupid9687 ปีที่แล้ว

      Just Google "Arduino plotter" or "Arduino drawing machine"

  • @mpmansell
    @mpmansell 7 ปีที่แล้ว +3

    Back in the way distant past, I used to work with flat bed plotters which work in much the same way as this. However, the problem with fine detail always was that, over time, the nib of the pen 'splayed' and became wider than it was originally which, when used like this, would lead to more occasions when traces joined undesirably. My thoughts here are to, instead, prepare the entire board with a resist and, instead of using a pen, using a sharp scribe point to scrape etch resist off to expose copper for later etching. Of course, the software would need to be altered to scrape trace outlines but for all but the finest detail (which would still need photo transfer) it should improve results.
    That said, absolutely awesome results in any case, and I'd be happy to have your machine on my desk now :)

    • @larrybud
      @larrybud 2 ปีที่แล้ว

      wonder what the cost of resist would be vs new pens? You wouldn't have to replace the pen for each board, probably get a few uses, and if the trace width isn't too narrow get away with it for a while.

  • @aamirshakir1799
    @aamirshakir1799 7 ปีที่แล้ว +3

    Really interesting project buddy, Even tho it has some complications like random error at 0:35 but this is something worth making. I will definitely enjoy a "How To" on it. Thumbs up for this device mate

  • @BernhardHofmann
    @BernhardHofmann 7 ปีที่แล้ว +13

    Impressive work. If I may make one suggestion it would be to keep the Z-axis cable clear of the plate. But it works out fine. In fact, it was a joy to watch; you should be proud of what you've achieved.

    • @shreyasghoghari2156
      @shreyasghoghari2156 6 ปีที่แล้ว

      Bernhard Hofmann I really lik4d ur channel sub me I will sub u

  • @MrElectrosock
    @MrElectrosock 7 ปีที่แล้ว +10

    It is incredible as it paints a pen, never fails.
    Greetings

  • @Arjoonmoal
    @Arjoonmoal 7 ปีที่แล้ว +275

    0:35 i hate it when this happens

    • @DownhillAllTheWay
      @DownhillAllTheWay 7 ปีที่แล้ว +34

      Yeah - and the lines that are drawn at 4:17 would almost ertainly make a single, wide track from two lines with no space between them - but these are things that can be corrected. I'm sure its maker is very proud of it.

    • @Arjoonmoal
      @Arjoonmoal 7 ปีที่แล้ว +11

      who would not be proud, i own a shitty car and still proud of it, no offence intended, but yeah that's no shit here, that's call self achievement. adjusting the level practically solves this minor issue

    • @code-grammardude5974
      @code-grammardude5974 7 ปีที่แล้ว

      😐

    • @JJayToKlamca
      @JJayToKlamca 7 ปีที่แล้ว

      My thoughts exactly

    • @nelsondarwinpaktech3954
      @nelsondarwinpaktech3954 7 ปีที่แล้ว

      I think it is due to pcb irregular shape,,,,,,bent one,,,,

  • @RBSVader
    @RBSVader 5 ปีที่แล้ว +3

    Brilliant. Way better than messing with iron, foil and laser printer.

  • @hjr2450
    @hjr2450 6 ปีที่แล้ว +4

    This is the most amazing thing I've seen all day!

  • @wsal758
    @wsal758 7 ปีที่แล้ว +1

    Very nice. Looks like I found another project to try.

  • @bar4kudou837
    @bar4kudou837 7 ปีที่แล้ว +1

    it's good if there is tutorial from beginning to the end, what parts needed, how to assemble those parts, how to connecting the wires, and how to run the software (the most people struggling with it) because not all people smart and can understand just by watching this video (me include of course). knowledge it's meant to be share

  • @peoplethesedaysberetarded
    @peoplethesedaysberetarded 7 ปีที่แล้ว +2

    Greetings. I'm new to PCB design/making, but it is my understanding that, especially for HF circuits, you really don't want right-angles in your traces. That's why there are 45-degree bends in commercial PCBs.
    You may want to adjust accordingly, unless you have an issue with mechanical fidelity and not being able to guarantee simultaneous X/Y coordinate movement (e.g. moving the pen at an angle).
    Aside from this minor issue--which is likely tied to the design itself--this is a great project!

    • @Gator141a
      @Gator141a 6 หลายเดือนก่อน

      You don't want parallel traces and the resulting inductive coupling

  • @Anvilshock
    @Anvilshock 6 ปีที่แล้ว

    Nice idea! Since this is holding the pen perfectly vertical, you could ram the felt tip almost all the way in to reduce the surface where it can dry out.

  • @jacobdavis000
    @jacobdavis000 5 ปีที่แล้ว +15

    I'm impressed and I like those leds too. I'm sure you can fix the spacing issues with some little editing. THANKS for not forcing us to listen to music! Machine sounds are better.

  • @Latvian3Dman
    @Latvian3Dman 7 ปีที่แล้ว +4

    Congrats with achievement of making such a device. Question, how good/bad is usage of a pen? Are there problems, errors related just to usage of a pen? Thank You!

  • @electronic7979
    @electronic7979 4 ปีที่แล้ว +1

    Excellent project

  • @kleptomeknotech2163
    @kleptomeknotech2163 6 ปีที่แล้ว +2

    I can watch this endlessly

  • @ElectronDust
    @ElectronDust 7 ปีที่แล้ว +6

    Wow. really nice work!

    • @ElectronDust
      @ElectronDust 7 ปีที่แล้ว

      Oh, it's a kit. Thanks for the link!

  • @peterjensen3162
    @peterjensen3162 4 ปีที่แล้ว +1

    How cool is this 😮 thanks for sharing your video.

  • @timmikhailouski8961
    @timmikhailouski8961 4 ปีที่แล้ว

    Thermal transfer allows to get better quality and have thinner lines without constructing complex devices ^-)

  • @scootersdenver
    @scootersdenver 6 ปีที่แล้ว

    Your project is simply excellent! Well done!

  • @Guerra_automacao
    @Guerra_automacao 4 ปีที่แล้ว +4

    sonho de consumo, vou tentar montar um,
    obrigado

  • @ivanraguz7285
    @ivanraguz7285 7 ปีที่แล้ว +4

    Congratulations, you made one very useful device, which is in the same time very cheap :)
    The idea of movement transfer between steppers and linear moving parts is great, I thought before, almost unreachable with good accuracy using this 28BYJ-48, because this stepper has almost 4° degress circular clearance. I would like to ask you, how did you solve this problem, is that solved in the GCODE generator or mechanicaly (with reducing circular clearance in reducer of motor)?

  • @kamikazekk-df4vz
    @kamikazekk-df4vz 5 ปีที่แล้ว

    Well done my friend, i like it because it's little but very precise as i can see.

  • @thegioiaion2646
    @thegioiaion2646 7 ปีที่แล้ว

    Awesome work. I would like to complete one my self, maybe near future.

    • @gbelbe
      @gbelbe 7 ปีที่แล้ว

      awesome!!

  • @RAndrewNeal
    @RAndrewNeal 6 ปีที่แล้ว

    If you want to see this at actual speed, play the video at .25% speed. Still awesome, but slower than presented. I will point out though, that's not a hidden fact, it's in the video description that it's being played at 4x speed.

  • @hamiltonneres1792
    @hamiltonneres1792 7 ปีที่แล้ว +8

    Excelente gostei muito, teria como compartilhar conosco o esquema deste projeto?

  • @rafael92euzebio53
    @rafael92euzebio53 5 ปีที่แล้ว

    O leitor a laser é o que mais me impressiona,ele filtra qualquer imagem ou padrão e faz uma comparação minuciosa com as já programadas,quando reconhecida aciona todas as saídas e faz com que haja uma alteração,seja ela por transferência de dígitos ou desbloqueio de algo sigiloso que está preso e até mesmo acionar algo a quilômetros de distância pela rede integrada que faz circular todas as imagens e sons pela frequência eletromagnética que são captados por qualquer dispositivo eletrônico que esteja dentro dessa cobertura.

    • @rafael92euzebio53
      @rafael92euzebio53 5 ปีที่แล้ว

      Dessa mesma maneira Deus conhece tudo que procede no coração e pensamentos do homem,Ele esquadrinha e tem total acesso a todas informações circuladas e armazenadas no cérebro,os olhos captam as imagens e os ouvidos os sons e são transmitidos por meio dos neurônios que fazem com que essas informações circule todo o corpo humano que está conectado ao sistema nervoso que capta e envia todas as reações do corpo ao cérebro que instantaneamente as coordena e as envia precisamente a cada canto do corpo avisando que há alguma alteração,todos os movimentos do corpo são acionados por impulsos elétricos vindo de uma informação captada pelo cérebro e enviada aos membros do corpo que responde o comando,o Coração é quem faz toda análise trazendo como resultado o senso se aquilo é benéfico ou prejudicial.
      Deus é o único Rei,Juiz,Senhor e Comandante de toda Criação,Ele conhece os caminhos de todos e com Justiça e Equidade dará a cada um de nós a recompensa pelas nossas obras.

  • @UnimaxTechnology
    @UnimaxTechnology 3 ปีที่แล้ว

    Thanks For Everything

  • @yoramstein
    @yoramstein 5 ปีที่แล้ว +33

    CAN YOU SHOW US THE pcb AFTER ETCHING?

  • @MasterMindmars
    @MasterMindmars 6 ปีที่แล้ว

    Beautiful. Printing only with a Staedler.

  • @SerhatR1
    @SerhatR1 ปีที่แล้ว +1

    Impressive 👍👏

  • @chuckwilcox6997
    @chuckwilcox6997 7 ปีที่แล้ว +3

    Amazing, nice creation. Nice clean design.

  • @woodtv4481
    @woodtv4481 4 ปีที่แล้ว

    I was inspired by this sir, that is why i also made my own version
    @

  • @Allenw154
    @Allenw154 6 ปีที่แล้ว

    That was really satisfying to watch,

  • @ignazioc
    @ignazioc 7 ปีที่แล้ว +10

    Hi, where can I find the project for the structure?

  • @megauti
    @megauti 7 ปีที่แล้ว

    Goooood! I have the same stepper motors, about 10 of them. It heats up so fast within 10 minutes, I never thought someone can make use of that motor. I wonder how long this machine can run without damaging the motors.

    • @hackeritalics
      @hackeritalics 7 ปีที่แล้ว

      Those steppers themselves are pretty small, but I would say they could run without getting hot no problem for this application. With the parts being made of platic and the servo being sooo light, I doubt it would cause too much drag..
      My advise would be this: If your steppers are getting too hot, make sure you are a)staying in power spec for the motor, B)not using microstepping in excess unless you need high precision and C) that your application takes half of the available torque of the motor. As your motors get larger half would likely be excessive, but on smaller motors like this, you really want double the torque needed for the application..

    • @megauti
      @megauti 7 ปีที่แล้ว

      Thanks. I will try with different power configurations and loads. It is great to know that someone had successfully utilize the part that I have troubled to use.

  • @lubomirhron3658
    @lubomirhron3658 7 ปีที่แล้ว +1

    Simle and easy. Good job!

  • @reynaldoledesmadeasis1128
    @reynaldoledesmadeasis1128 6 ปีที่แล้ว +1

    what pen is that

  • @Pickles-u7c
    @Pickles-u7c 7 ปีที่แล้ว

    The Most Satisfying Video In The World! I swear :D

  • @Ideatronic1
    @Ideatronic1 7 ปีที่แล้ว +12

    Wow I like so much

    • @maquinadotempoepocasinesqu8373
      @maquinadotempoepocasinesqu8373 6 ปีที่แล้ว

      Olá Ideatronic Só videos top ! Recomendado !
      Veja meu video da CNC arduino que montei th-cam.com/video/h5rqd7vuQBo/w-d-xo.html
      Estou usando um software muito bom, na verdade são 6 Programas. São divulgadores automáticos para Facebook,Instagram,twitter,email,youtube e whatsApp.
      Estou divulgando o meu canal através destas ferramentas, Caso vcs ainda não utiliza, segue o link para baixar : www.divulgarnoface.com/f/2531
      Quando puder passa lá inscreva-se, assista os vídeos e deixe seu like para fortalecer !
      TMJ ! Acesse: th-cam.com/video/3hQocxv2FXo/w-d-xo.html
      Desde já obrigado !
      Me mande seu link para que eu posa retribuir
      Abraço!
      03:26:45

  • @srikantachaitanya6561
    @srikantachaitanya6561 7 ปีที่แล้ว +1

    very beatiful..great work

  • @DarioBandeira
    @DarioBandeira 7 ปีที่แล้ว +4

    So smooth, very good!

  • @ruijacinto8225
    @ruijacinto8225 8 หลายเดือนก่อน

    Hi Dear Ravi congratulations, although Arduino helps there ate a lot of tings to put together and work. I'' will try to go further oy your idea. Take care

  • @erostime1
    @erostime1 7 ปีที่แล้ว

    muy interesante ... felicitaciones por ese bello proyectó.
    saludos desde Ecuador

  • @jspedroso
    @jspedroso 5 ปีที่แล้ว +3

    Do you have the layout of the pieces made in 3d printing?
    Where can I get it?

  • @FareedClarity
    @FareedClarity 4 ปีที่แล้ว

    Mantap nih bikin pcb langsung cetak

  • @javierunamuno6786
    @javierunamuno6786 7 ปีที่แล้ว

    Really nice, and simple, and fast !
    Well, maybe not so fast... but inspiring nonetheless

  • @FourSeasonsHD
    @FourSeasonsHD 5 ปีที่แล้ว

    This looks like a sophisticated method of making a PCB. Is there a product like this that could be bought?

  • @theg4tan
    @theg4tan 7 ปีที่แล้ว +13

    hello, very interesting
    i want to make this one, could you give detail part of hardware, please?
    thank you

    • @lite_go_9565
      @lite_go_9565 5 ปีที่แล้ว +1

      Are you made it?

    • @akanobody5622
      @akanobody5622 5 ปีที่แล้ว +1

      oh no sorry, this is just a show off video that link you to the original show off video,
      no plans, no instructions

    • @arduinorobotics9512
      @arduinorobotics9512 4 ปีที่แล้ว

      Plz follow me soon,I am thinking about this project

  • @90FF1
    @90FF1 6 ปีที่แล้ว +1

    Ravi. Thank you for posting this demonstration. What kind of pen is it that so reliably and so fine?

  • @davetv4705
    @davetv4705 7 ปีที่แล้ว

    Wow, this is a very good idea!

  • @BenMogendi-fp4mb
    @BenMogendi-fp4mb 7 หลายเดือนก่อน +1

    I wish to assemble my own.
    Please show me how.
    Where do I obtain parts?

  •  5 ปีที่แล้ว

    Very good

  • @tmpEngine
    @tmpEngine 7 ปีที่แล้ว +2

    u make it look so easy

    • @maze42d
      @maze42d 6 ปีที่แล้ว

      tmpEngine That's because it is.

  • @hendrilesmayadi7767
    @hendrilesmayadi7767 7 ปีที่แล้ว +1

    it was my dream to build something like that.
    That super awesome

    • @RaviVarmaPolakonda
      @RaviVarmaPolakonda  7 ปีที่แล้ว

      Go for it Hendri. Let me know if you need any help :)

    • @RohitVerma-bj3ml
      @RohitVerma-bj3ml 7 ปีที่แล้ว

      Ravi Varma Polakonda I've already designed that circuit and all such arrangement of machine. but you should tell me first by which software you use to make it these possibilities.. please help I don't have any idea how to run my machine

  • @sweeperu
    @sweeperu 6 ปีที่แล้ว +1

    first thought: "wow thats really cool"

  • @leizerleite4457
    @leizerleite4457 7 ปีที่แล้ว

    Very good, Congratulations!

  • @EngineeringSpareTime
    @EngineeringSpareTime 4 ปีที่แล้ว

    I built a Arduino based plotter for spheres like ping pong balls. You might like it :)

  • @Ashphy03
    @Ashphy03 7 ปีที่แล้ว +4

    subscribed, waiting for the tutorial :)

  •  7 ปีที่แล้ว +1

    Hi! Good Job! How is the brand of the pen used? How the plotter knows the trace width of pen ? Thanks! Thanks so much!

  • @makeitjustincom
    @makeitjustincom 7 ปีที่แล้ว +4

    I love it!!

  • @abroms.ash.9
    @abroms.ash.9 6 ปีที่แล้ว

    Very simple way. I like it

  • @monprebpan6555
    @monprebpan6555 7 ปีที่แล้ว

    Nice! very very. I love it .Thank you.

  • @sujoybha
    @sujoybha 7 ปีที่แล้ว +1

    are you selling this?

  • @DIY3DTECHcom
    @DIY3DTECHcom 7 ปีที่แล้ว +20

    Is there a link to the STL's? Thanks :-)

    • @longthanh8091
      @longthanh8091 4 ปีที่แล้ว

      @@victorjung3659 I do not see the stl file

    • @electrodeyt3491
      @electrodeyt3491 4 ปีที่แล้ว

      @@longthanh8091 its got a scad file

  • @PabloSchaab
    @PabloSchaab 7 ปีที่แล้ว +3

    Amazing!!!

  • @Ilovekatjalel
    @Ilovekatjalel 7 ปีที่แล้ว

    Brilliant !!!! Гениально !!!! Гениально просто !!!!

    • @Golovatskyi
      @Golovatskyi 3 ปีที่แล้ว

      что ж там гениального? вы видео досмотрели хоть? Там же дорожки слились воедино... Схема то не рабочая.

  • @earthlightsmusic2743
    @earthlightsmusic2743 5 ปีที่แล้ว

    Openbuilds could supply all the Cartesian mechanisms, and a MEGA/RAMPS board driving steppers would bring it all to life. What I'd like to know is: How did you generate the G Code, and, what pen can lay down ink that consistently?

  • @FungSit
    @FungSit 4 ปีที่แล้ว

    What's the driving mechanism ? Some kind of string ? belt ? Can't tell from the video. If it's string, how do you manage pushing and pulling in synchronization

  • @edmil1616
    @edmil1616 7 ปีที่แล้ว +3

    Muito legal! Incrível!

  • @pierpa_76pierpaolo
    @pierpa_76pierpaolo 6 ปีที่แล้ว

    Really interesting this mini cnc (with guides retrieved from the printer). One question: after bathing in Ferric Chloride ... the pcb hole handles them either directly from the cnc (through a dedicated software) by applying a mini spindle? I really care about it. Greetings.

  • @MyOwntuahur
    @MyOwntuahur 5 ปีที่แล้ว

    Awesome projects lovely

  • @RoeeBloch
    @RoeeBloch 7 ปีที่แล้ว

    Very nice but it seems you have 2 shorts in the PCB traces

  • @Firashelou
    @Firashelou 7 ปีที่แล้ว +1

    hello Ravi,
    amazing job ! i wonder what shield driver have you used and what program or how to learn how to program this ?

    • @hemashri
      @hemashri 2 ปีที่แล้ว

      same problem...

  • @90FF1
    @90FF1 7 ปีที่แล้ว +1

    Pretty spiffy machine there old man. Are you running a gbrl shield? If so, how are you activating the Z axis servo motor. Thanks for sharing your project.

    • @RaviVarmaPolakonda
      @RaviVarmaPolakonda  7 ปีที่แล้ว +3

      Not using grbl shield, the firmware is grbl (github.com/ruizivo/GRBL-28byj-48-Servo) though. See the schematic drive.google.com/file/d/0BwAgplGeEjGPTnB5UXJnMzRMemc/view for connection details.

    • @90FF1
      @90FF1 7 ปีที่แล้ว

      Thank you very much for the reply and the links.

  • @davemwangi05
    @davemwangi05 7 ปีที่แล้ว

    Wow! Are you an engineer or something? And which software do you use to draw the circuit diagram before sending to arduino?

    • @RaviVarmaPolakonda
      @RaviVarmaPolakonda  7 ปีที่แล้ว

      You can use FlatCam (flatcam.org/) to generate GCode from Gerber and Excellon files. The generated GCode can be sent to Arduino using GRBL Controller.

    • @powder-phun949
      @powder-phun949 7 ปีที่แล้ว

      I can't get that program to generate gcode for drawing, instead of removing copper. Could you help?

  • @navaneethkrishnan3827
    @navaneethkrishnan3827 7 ปีที่แล้ว +2

    how to use nylon for moving that platform??? plz give a closeup image....kindly

    • @RaviVarmaPolakonda
      @RaviVarmaPolakonda  7 ปีที่แล้ว +4

      Sure, will take and share the photos in next 2 days.

  • @alcrook6662
    @alcrook6662 4 ปีที่แล้ว

    cool rig! which is your favorite pen for this project?

  • @CONNIEMALAN
    @CONNIEMALAN 5 ปีที่แล้ว

    Awesome machine, do you have any shots of the completed pcb, what do you use to etch the board?

  • @saptobudiyono2303
    @saptobudiyono2303 2 ปีที่แล้ว +1

    klo buat tsb utk membuat percetakan PCB berapa yg di butuhkan

  • @diydddarji9260
    @diydddarji9260 7 ปีที่แล้ว

    Hello, I made it, but my unipolar stepper motor does not have enough torque to move slide.please help me.

  • @Vik_ru
    @Vik_ru 5 ปีที่แล้ว

    Чудеса, да и только!

  • @vittoriodellacamera4943
    @vittoriodellacamera4943 5 ปีที่แล้ว

    Mi interessa questo CNC veramente bello e utile per i pcb. Vittorio

  • @jorgenunez5553
    @jorgenunez5553 6 ปีที่แล้ว

    How did you achieve this level of precision with these? I get 5 degrees a step by doing half-stepping...

  • @МаркДанилов-ч8ж
    @МаркДанилов-ч8ж 5 ปีที่แล้ว +1

    Where to buy such a perfect permanent marker?

  • @edgaroliveira8313
    @edgaroliveira8313 7 ปีที่แล้ว

    Hello, congratulation to the project. Where do you bought the linear guides?

  • @amolpatil9504
    @amolpatil9504 7 ปีที่แล้ว

    Very nice and informative video, but i have 2 questions as follows,
    1) If i want to add Z axis with 28byj-48 stepper motor how should i do? Where can i connect that 3rd motor on Ardiuno UNO?
    2) Can i use spindle motor instead of marker pen to convert Plotter in to engraver? if yes then how? and which software i have to use for same?
    Waiting for your reply.

  • @hugomg1000
    @hugomg1000 7 ปีที่แล้ว

    Hi, good morning, thank you for showing us your video. My question is which software do you use to send the image and which software do you use to control the motors? I await your response and thank you again

    • @hemashri
      @hemashri 2 ปีที่แล้ว

      did you get a reply/..

  • @dankennedy4364
    @dankennedy4364 7 ปีที่แล้ว

    Impressive. How was the Etch?

  • @LucianoVeneziano
    @LucianoVeneziano ปีที่แล้ว

    Compliments!
    but could you show what software you used and how you came to plot?

  • @orley1994
    @orley1994 6 ปีที่แล้ว +4

    how did you generated the proper gcode for this application?
    what programs did you use?
    Great work, by the way!

    • @bhagatsingh9759
      @bhagatsingh9759 5 ปีที่แล้ว +2

      Copper CAM is a software for generating g-code.

  • @dherrendoerfer
    @dherrendoerfer 7 ปีที่แล้ว +17

    Neat !

  • @annastankiewicz7372
    @annastankiewicz7372 7 ปีที่แล้ว +1

    Servo for the code M - i can't find it anywhere. Any sugestion ?

  •  6 ปีที่แล้ว

    Nice project! A question: How did you make it work with the nylon strings? I've tried, but it didn't work (not enough friction).

  • @ajcobbs
    @ajcobbs 7 ปีที่แล้ว

    Awesome! My congrats!

  • @t3du
    @t3du 7 ปีที่แล้ว

    how get moving the X axis???? are you using a nylon??? I just can watch the pen holder attached to the pipe but no more can appreciate

  • @hrnekbezucha
    @hrnekbezucha 6 ปีที่แล้ว

    I love this so much

  • @abdullah.k7817
    @abdullah.k7817 7 ปีที่แล้ว

    well done really amazing

  • @kemalettinkaya9527
    @kemalettinkaya9527 6 หลายเดือนก่อน

    her elektronikciye lazım bu makineden

  • @pramuhbm786
    @pramuhbm786 7 ปีที่แล้ว

    #include
    #include
    #define LINE_BUFFER_LENGTH 512
    // Servo position for Up and Down
    const int penZUp = 80;
    const int penZDown = 40;
    // Servo on PWM pin 6
    const int penServoPin = 6;
    // Should be right for DVD steppers, but is not too important here
    const int stepsPerRevolution = 20;
    // create servo object to control a servo
    Servo penServo;
    // Initialize steppers for X- and Y-axis using this Arduino pins for the L293D H-bridge
    Stepper myStepperY(stepsPerRevolution, 2,3,4,5);
    Stepper myStepperX(stepsPerRevolution, 8,9,10,11);
    /* Structures, global variables */
    struct point {
    float x;
    float y;
    float z;
    };
    // Current position of plothead
    struct point actuatorPos;
    // Drawing settings, should be OK
    float StepInc = 1;
    int StepDelay = 0;
    int LineDelay = 50;
    int penDelay = 50;
    // Motor steps to go 1 millimeter.
    // Use test sketch to go 100 steps. Measure the length of line.
    // Calculate steps per mm. Enter here.
    float StepsPerMillimeterX = 6.0;
    float StepsPerMillimeterY = 6.0;
    // Drawing robot limits, in mm
    // OK to start with. Could go up to 50 mm if calibrated well.
    float Xmin = 0;
    float Xmax = 40;
    float Ymin = 0;
    float Ymax = 40;
    float Zmin = 0;
    float Zmax = 1;
    float Xpos = Xmin;
    float Ypos = Ymin;
    float Zpos = Zmax;
    // Set to true to get debug output.
    boolean verbose = false;
    // Needs to interpret
    // G1 for moving
    // G4 P300 (wait 150ms)
    // M300 S30 (pen down)
    // M300 S50 (pen up)
    // Discard anything with a (
    // Discard any other command!
    /**********************
    * void setup() - Initialisations
    ***********************/
    void setup() {
    // Setup
    Serial.begin( 9600 );
    penServo.attach(penServoPin);
    penServo.write(penZUp);
    delay(200);
    // Decrease if necessary
    myStepperX.setSpeed(250);
    myStepperY.setSpeed(250);
    // Set & move to initial default position
    // TBD
    // Notifications!!!
    Serial.println("Mini CNC Plotter alive and kicking!");
    Serial.print("X range is from ");
    Serial.print(Xmin);
    Serial.print(" to ");
    Serial.print(Xmax);
    Serial.println(" mm.");
    Serial.print("Y range is from ");
    Serial.print(Ymin);
    Serial.print(" to ");
    Serial.print(Ymax);
    Serial.println(" mm.");
    }
    /**********************
    * void loop() - Main loop
    ***********************/
    void loop()
    {
    delay(200);
    char line[ LINE_BUFFER_LENGTH ];
    char c;
    int lineIndex;
    bool lineIsComment, lineSemiColon;
    lineIndex = 0;
    lineSemiColon = false;
    lineIsComment = false;
    while (1) {
    // Serial reception - Mostly from Grbl, added semicolon support
    while ( Serial.available()>0 ) {
    c = Serial.read();
    if (( c == '
    ') || (c == '
    ') ) { // End of line reached
    if ( lineIndex > 0 ) { // Line is complete. Then execute!
    line[ lineIndex ] = '\0'; // Terminate string
    if (verbose) {
    Serial.print( "Received : ");
    Serial.println( line );
    }
    processIncomingLine( line, lineIndex );
    lineIndex = 0;
    }
    else {
    // Empty or comment line. Skip block.
    }
    lineIsComment = false;
    lineSemiColon = false;
    Serial.println("ok");
    }
    else {
    if ( (lineIsComment) || (lineSemiColon) ) { // Throw away all comment characters
    if ( c == ')' ) lineIsComment = false; // End of comment. Resume line.
    }
    else {
    if ( c = LINE_BUFFER_LENGTH-1 ) {
    Serial.println( "ERROR - lineBuffer overflow" );
    lineIsComment = false;
    lineSemiColon = false;
    }
    else if ( c >= 'a' && c