Find Jobs
Hire Freelancers

Arduino programming -- 2

kr192-1600 SEK

Imeghairiwa
Imechapishwa over 5 years ago

kr192-1600 SEK

Kulipwa wakati wa kufikishwa
Program cnc arduino. I want help to program a movable xy table. I have tried to google to find similar code and use copy paste I have no programming skills. However time is running away and I am stuck in project. My client have a sushi robot. This machine dropping about 35 pices of nigiri(riceballs)per minute. 1 person is lifting these Nigiri and placing them in lines on a tray. very simple repetive task. On this tray worker make 12 lines with 5 Nigiri in every line. So the table movement is Y -axis about 5cm steps repeated 5 times) then x axis should move 2-3 cm repeted 12 times with some spacings between lines. When full tray stop. I have built a xy table under the sushi machine and need help to have program correctly move this table for positioning the dropping nigiri in place in tray. I found and modifyed a code that almost works. (added below short version) I mecanically tried to sort out the different travel distance for x axis and y by using different leadscrews. Then I have speed problem and non smooth movement instead. So code needs separation for x and y. hardware that I use. * arduino uno * cnc shield version 3.0 with a4988 drivers * Nema 17 motor 42BYGH 1.5A (17HS4401) * 4 pices 3 pin end stop switches Standard Leadscrew 8 mm m8 screw Extra sensor for possible cycle start stop input. * Reflective Photoelectric 3pin IR Infrared Obstacle Avoidance Sensor Module for arduino) This code below almost works. The problem with this code is I want to be able decide the x steps and Y steps separately. Example y axis 20400 steps and x - axis 10 000 steps. ..................................................................................................... #define EN 8 //Direction pin #define X_DIR 5 #define Y_DIR 6 //Step pin #define X_STP 2 #define Y_STP 3 //DRV8825 int delayTime=30; //Delay between each pause (uS) int stps=20400;// Steps to move void step(boolean dir, byte dirPin, byte stepperPin, int steps) { digitalWrite(dirPin, dir); delay(1000); for (int i = 0; i < steps; i++) { digitalWrite(stepperPin, HIGH); delayMicroseconds(delayTime); digitalWrite(stepperPin, LOW); delayMicroseconds(delayTime); } } void setup(){ pinMode(X_DIR, OUTPUT); pinMode(X_STP, OUTPUT); pinMode(Y_DIR, OUTPUT); pinMode(Y_STP, OUTPUT); pinMode(EN, OUTPUT); digitalWrite(EN, LOW); } void loop(){ step(false, X_DIR, X_STP, stps); // Rad nr +1 step(false, X_DIR, X_STP, stps); // Rad nr +2 step(false, X_DIR, X_STP, stps); // Rad nr +3 step(false, X_DIR, X_STP, stps); // Rad nr +4 step(false, X_DIR, X_STP, stps); //Rad nr +5 step(false, Y_DIR, Y_STP, stps); // Radbyte nr +1 step(false, Y_DIR, Y_STP, stps); // Radbyte nr +1 step(false, Y_DIR, Y_STP, stps); // Radbyte nr +1 step(true, X_DIR, X_STP, stps); // Rad nr -6 step(true, X_DIR, X_STP, stps); // Rad nr -7 step(true, X_DIR, X_STP, stps); // Rad nr -8 step(true, X_DIR, X_STP, stps); // Rad nr -9 step(true, X_DIR, X_STP, stps); // Rad nr -10 step(false, Y_DIR, Y_STP, stps); // RADBYTE NR +2 step(false, Y_DIR, Y_STP, stps); // RADBYTE NR +2 step(false, Y_DIR, Y_STP, stps); // RADBYTE NR +2 // I cut away some cycles of same info here is delay(10000); step(false, X_DIR, X_STP, stps); // Rad nr +1 step(false, X_DIR, X_STP, stps); // Rad nr +2 step(false, X_DIR, X_STP, stps); // Rad nr +3 step(false, X_DIR, X_STP, stps); // Rad nr +4 step(false, X_DIR, X_STP, stps); //Rad nr +5 step(true, Y_DIR, Y_STP, stps); // Radbyte nr +1 step(true, Y_DIR, Y_STP, stps); // Radbyte nr +1 step(true, Y_DIR, Y_STP, stps); // Radbyte nr +1 step(true, X_DIR, X_STP, stps); // Rad nr -6 step(true, X_DIR, X_STP, stps); // Rad nr -7 step(true, X_DIR, X_STP, stps); // Rad nr -8 step(true, X_DIR, X_STP, stps); // Rad nr -9 step(true, X_DIR, X_STP, stps); // Rad nr -10 step(true, Y_DIR, Y_STP, stps); // RADBYTE NR +2 step(true, Y_DIR, Y_STP, stps); // RADBYTE NR +2 step(true, Y_DIR, Y_STP, stps); // RADBYTE NR +2 delay(10000); // replace full Nigir tray. }
Kitambulisho cha mradi: 17285570

Kuhusu mradi

6 mapendekezo
Mradi wa mbali
Inatumika 6 yrs ago

Unatafuta kupata pesa?

Faida za kutoa zabuni kwenye Freelancer

Weka bajeti yako na muda uliopangwa
Pata malipo kwa kazi yako
Eleza pendekezo lako
Ni bure kujiandikisha na kutoa zabuni kwa kazi
6 wafanyakazi huru wana zabuni kwa wastani kr1,342 SEK kwa kazi hii
Picha ya Mtumiaji
I have read your project details and I understand what you are trying to do. Please contact me so that we can go through the details of your job.
kr2,444 SEK ndani ya siku 3
4.8 (41 hakiki)
6.2
6.2
Picha ya Mtumiaji
yes buddy,,,How r u?Its me Imad, Have done 200+ projects regarding Arduino, CNC and control. U will feel brotherhood.............................
kr192 SEK ndani ya siku 3
4.5 (9 hakiki)
2.5
2.5
Picha ya Mtumiaji
Hi there, I have strong experience on electronics and embedded software. I finished my electronics classes with 4.0GPA in USA. I also completed many projects. Since I moved from US a month ago you are not going to have to deal with bad English and/or bad communication skills. I will be working for you with very low rates because I am currently building up my freelancer.com profile and references. Just contact me and we can talk about details. Looking forward to hear from you soon. Burak
kr1,555 SEK ndani ya siku 3
0.0 (0 hakiki)
0.0
0.0
Picha ya Mtumiaji
i'm software engieneer i'm so intersting to help you with your project I have many projects based on arduino like Smart meter, smart home using many sensors humidity, temperature,motion,tft touch screen,lcd. and iot emergancy robots which stream video and audio to Web server from anywhere
kr1,200 SEK ndani ya siku 1
0.0 (0 hakiki)
0.0
0.0
Picha ya Mtumiaji
Hi, May I have the opportunity to work on this project. I am an adept arduino programmer. Welcome to have an interview session to start with. Regards, NG Services
kr1,666 SEK ndani ya siku 7
0.0 (0 hakiki)
0.0
0.0

Kuhusu mteja

Bedera ya SWEDEN
Brunflo, Sweden
0.0
0
Njia ya malipo imethibitishwa
Mwanachama tangu Mac 13, 2017

Uthibitishaji wa Mteja

Asante! Tumekutumia kiungo cha kudai mkopo wako bila malipo kwa barua pepe.
Hitilafu fulani imetokea wakati wa kutuma barua pepe yako. Tafadhali jaribu tena.
Watumiaji Waliosajiliwa Jumla ya Kazi Zilizochapishwa
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Onyesho la kukagua linapakia
Ruhusa imetolewa kwa Uwekaji wa Kijiografia.
Muda wako wa kuingia umeisha na umetoka nje. Tafadhali ingia tena.