Robotik Kodlama

Robotik Kodlama
Ana Sayfa

İLGİNİZİ ÇEKEBİLECEK LİNKLER :

24 Nisan 2021 Cumartesi

Arduino Seri İletişim Tuşa Basıldı mı ?

Arduino Seri İletişim Tuşa Basıldı mı ? 

Devre şeması


Seri İletişim Devre Şemaları

Kaynak kodu:


int led = 13;
int button = 12;
void setup() {
pinMode(led, OUTPUT);
pinMode(button, INPUT);
Serial.begin(9600);
}
void loop(){
if(Serial.available() > 0) {
char ledState = Serial.read();
if(ledState == '1'){
digitalWrite(led, HIGH);
}
if(ledState == '0'){
digitalWrite(led, LOW);
}
}
int buttonState = digitalRead(button);
if ( buttonState == HIGH){
Serial.println("Button is pressed");
delay(500);
}
}

ANA SAYFAYA DÖN

Bahadır ÖZGEN
Electronic Robotic Coding Research and Development 1975 - ∞
Learn Forever
If you want, let's learn together...
https://roboticcode2020.blogspot.com/
bahadirozgen1975@gmail.com
facebook    robotic.code
instagram    @roboticcode


Sayfalarımı ziyaret ettiğiniz için teşekkür ederim.Bu sitede mevcut olan içerikler kendi oluşturduğum projeler yazı,resim ve videolardan oluşmaktadır.İçerik oluşturmak çok uzun sürdüğü için bazı projelerde yurtdışı kaynaklardan faydalandım.Buradaki amacım ticari değildir.Kaynağı belli olan ve bizim kaynağına ulaşabildiğimiz materyal (yazı, fotoğraf, resim, video v.b.) için ilgili konularda fotoğraflarda logo varsa v.b. not olarak gösterilecektir.Sitemizde yayınlanan tüm içerik, bizim tarafımızdan ve internet üzerinden youtube, facebook ve blog gibi paylaşıma sunulmuş kaynak sitelerden alındığı için, sitemiz yasal yükümlülüğe tabi tutulamaz. Sitemizde telif haklarının size ait olduğu bir içerik varsa ve bunu kaldırmamızı isterseniz, iletişim sayfamızdan bizimle iletişime geçtiğiniz takdirde içerik yayından kaldırılacaktır.Bu konu ve modüller ile uğraşarak, ileride çok güzel makine ve elektronik aletler yapabilirsiniz.


21 Şubat 2021 Pazar

Drawing Plotter with Arduino

 Gcode Controlled Drawing Plotter with Arduino


Drawing Plotter

Arduino Plotter

Pen Plotter 

CNC Plotter

DIY Plotter 

Homemade Plotter 

GRBL Plotter 

Gcode plotter


Hello to Everyone,

I want to do a pen plotter. There are many plotter systems. I am doing it, the system that uses the belt.

GRBL and Arduino CNC Machine Working Principle Overview

The main parts I use for this are Arduino UNO R3 and CNC Shield, A4988 Step Motor Driver.

My assembly parts list

1 x Arduino UNO R3

1 x USB Printer Cable 3 meter

1 x CNC Shield

3 x A4988 Stepper Motor Driver

2 x NEMA 17 Stepper Motor (For XY Axes)

1 x 28BYJ-48 5volt Stepper Motor (For up / down Pen Holder)

1 x 28BYJ-48 Driver board ULN2003 Chipset

1 x Bright White Led and 100 Ohm resistor for Pen Holder Light for the Draw on the A4 Paper

1 x Cabels for Arduino and Boards

4 or 6 x Limit Switch for Horning settings
















































For Download Arduino Uno Driver Software

https://www.arduino.cc/en/software


I used the Inkscape version 0.47.

The extension Unicorn Gcode we will add to this program may not work with different versions.

https://drive.google.com/file/d/19wAqT7PvQHqOCwqY0Y7rVaPwY0A-_m9n/view?usp=sharing


PDF file download address describing GRBL Codes;

https://drive.google.com/file/d/1GPVPpPgu_PqUD68FIgePHZjIyv25gM_C/view?usp=sharing


28BYJ-48 5 volt Stepper Motor Specifications

https://drive.google.com/file/d/1CRGqC2_Wr8jutVs3PoYfhCv_vBu9CdYT/view?usp=sharing


Gcode Inkscape Extention

https://drive.google.com/drive/folders/1uzh3ksM_C0E9t1N8-gRItg9_TQjh7tax?usp=sharing


Gcode Universal Sender

https://drive.google.com/file/d/1G8Ah6yQfL1ctdGbAaFoGPm-H_kCqMpWD/view?usp=sharing


GRBL Arduino Uno files

https://github.com/grbl/grbl


I used to upload this file to Arduino GRBL   v1.1h (2019-08-25) Release

https://drive.google.com/file/d/1twiVfCslwQwtTkepJSuqnKDilgBJyURQ/view?usp=sharing


sample gcode files

https://drive.google.com/drive/folders/1UKoFoUT-LKznErzsG6A22-VrTCVCb2sn?usp=sharing


photos, files and details of this work you can reach from this link

https://www.instructables.com/Pen-Plotter/

I did not specify; Plotter connection and circuit diagram especially.

There is a CNC Shield on the Arduino board and 3 A4988 motor controllers.

I positioned the 28BYJ-48 Small step motor driver and its circuit to the pen holder motor output. Because the CNC Shield is controlled by 12 volts, the Z-axis A4988 driver can cause some small motors to overheat. 28BYJ-48 motor driver circuit extra has two reasons. Because 28BYJ-48 Small stepper motor works with 5 volts.

The second reason is not to cut the stepper motor socket.


I tried 3 different pen holders.

Test 1

when it runs too much with a very small stepper motor

it gets very hot.

It must be used with a limit switch.

That's why I gave up.

Test 2

I used a spring pen.

But this system is also difficult to adjust.

and in some fast projects this system can be slow.

Test 3 is the last system I decided on

You can adjust the step and speed of the stepper motor as you wish.

And it works very efficiently.

Since I use the 28BYJ48 5 volt step motor driver circuit, no

It does not heat up, it works very efficiently.


There are 4 Homing switchs. You can also use them disabled.Or by adjusting the settings.Socket locations on CNC Shield for Homings Switches are clear.Also show you in the photos.I used the output on the 3.3 volt CNC Shield for the Pen Holder Drawing Page lighting led.Also CNC Shield for 28BYJ-48 Small step motor driver board I used the 5 volt outlet on it.

What You Should Do In Order;

1. Install the Arduino software on your computer

2. Open the GRBL software v1.1h file and upload it to the arduino to the hardware part.

3. After installing the GRBL software, install it on the Arduino Uno board.

You are done with the Arduino software.

4. Now, connect the plotter you have made as hardware to your computer by cable.

5. Install the InkScape program on your computer.

6. Copy the Inkscape unicorn gcode extension to the extentions folder of the Inkscape program and

Open the program.

7. Create a sample 4 cm x 4cm square area and import a picture into it or draw a picture

Save your created file from the Save a copy to section with makerBot Unicorn G-code (.gcode) format.

8. Open the Gcode Universal Sender program and connect to your Arduino UNO board.

9. If necessary, you can get help from this link for calibration according to the motor type you have used.

https://www.xixxeaon.com/tools/cnc-axis-setup-calibration

Motor step number, motor step rating, gear diameter and teeth can be important in many printers.

10. If your connection is ok, you can move your plotter motors in X-Y positions with the direction keys.

11. If everything is okay, call your gcode file from the Browse section of the Gcode Universal Sender program.

I will put 1 sample gcode file for you.

12. Center your Plotter to your starting point according to the size of the picture and reset all your X-Y-Z Axes.

13. You can now Send your file and print it ...




​Bahadır Ozgen Pen Up/Down Special system

Slide and circle track, Lock system I used only nails unaffected by vibrations.

Colored lines are drawn on with the Paint program. Line thickness is chosen as 5. 

No reduction has been made in the photo scale. The original scale is 1: 1. 




Pen selection is very important !!! 

You should also consider the precise and detailed drawings you will make.

The pen used for the plotter was chosen ULTRA GEL 0.5 mm for the best result. 


You have made many details up to this point.If the plotter is running, you've done it!

You Are Really Awesome !

You can view the detailed photos about the project from the link below!

I tried to write all the details, but if there are still missing places, you can write to me. I will help you as long as I have time.


ANA SAYFAYA DÖN

Bahadır ÖZGEN
Electronic Robotic Coding Research and Development 1975 - ∞
Learn Forever
If you want, let's learn together...
https://roboticcode2020.blogspot.com/
bahadirozgen1975@gmail.com
facebook    robotic.code
instagram    @roboticcode


Sayfalarımı ziyaret ettiğiniz için teşekkür ederim.Bu sitede mevcut olan içerikler kendi oluşturduğum projeler yazı,resim ve videolardan oluşmaktadır.İçerik oluşturmak çok uzun sürdüğü için bazı projelerde yurtdışı kaynaklardan faydalandım.Buradaki amacım ticari değildir.Kaynağı belli olan ve bizim kaynağına ulaşabildiğimiz materyal (yazı, fotoğraf, resim, video v.b.) için ilgili konularda fotoğraflarda logo varsa v.b. not olarak gösterilecektir.Sitemizde yayınlanan tüm içerik, bizim tarafımızdan ve internet üzerinden youtube, facebook ve blog gibi paylaşıma sunulmuş kaynak sitelerden alındığı için, sitemiz yasal yükümlülüğe tabi tutulamaz. Sitemizde telif haklarının size ait olduğu bir içerik varsa ve bunu kaldırmamızı isterseniz, iletişim sayfamızdan bizimle iletişime geçtiğiniz takdirde içerik yayından kaldırılacaktır.Bu konu ve modüller ile uğraşarak, ileride çok güzel makine ve elektronik aletler yapabilirsiniz.