awshick / Arduino_WireCutter

Arduino wire cutter stripper with nextion display
GNU General Public License v2.0
11 stars 2 forks source link

call you #1

Open daivu2020 opened 2 years ago

daivu2020 commented 2 years ago

i want to call you daivu4651@gmail.com

awshick commented 2 years ago

Hello. I'm not sure where you would be calling from, but I'm typically not available until after 4:30pm (Central). If during the week, you can call me (after 4pm) @ 972-994-8521. I havent worked with this cutter in awhile so I'm abit rusty, but should be able to answer the basics.

-Joe

On Wed, Oct 26, 2022 at 10:24 AM daivu2020 @.***> wrote:

i want to call you @.***

— Reply to this email directly, view it on GitHub https://github.com/awshick/Arduino_WireCutter/issues/1#issuecomment-1292219455, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVB22PCEW7VEQS3LCWZFQELWFFEKVANCNFSM6AAAAAARPDW6RQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

daivu2020 commented 1 year ago

I want your house to give me a program like mr innovative I will pay for you Can you help me if you have free time?

awshick commented 1 year ago

Everything is open source and on github. So I'm not sure what you are asking for exactly. Are you wanting a built unit or some kind of software customization?

On Tue, Nov 1, 2022 at 2:39 AM daivu2020 @.***> wrote:

I want your house to give me a program like mr innovative I will pay for you Can you help me if you have free time?

— Reply to this email directly, view it on GitHub https://github.com/awshick/Arduino_WireCutter/issues/1#issuecomment-1298143952, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVB22PCRD7RKW3JMH6C2UHTWGDCLXANCNFSM6AAAAAARPDW6RQ . You are receiving this because you commented.Message ID: @.***>

daivu2020 commented 1 year ago

I would like to ask you to give me an HMI program with only "CUT" and arduino program

daivu2020 commented 1 year ago

because in your program there are 3 parts "CUT" "TEST"....... and arduino program too I use arduino nano a4988 servo 90s nema 17

awshick commented 1 year ago

Ok I can understand that. But you would need to be able to edit/modify the arduino code, as the steps for a full cut (on your stepper) may be different than mine. Are you familiar with arduino coding enough to do this? Are you still wanting to be able to input the length, and quantity, for the cut or will it be the same every time? Or are you just looking for a simple "press here" button that executes the same function every time (same length of wire no matter what)?

Do you have a schematic for how your drivers (a4988) are wired? I do not use any servo's in my build, and if you are just "cutting" the wire I dont see the need for a servo - so what is it doing?

I can help you make the code, for what you want, but I need specific details for all of this. What size/resolution is your nextion screen, what do you want to actually see when powered on, what do you want to be able to enter (wire details), etc. It would be best for me to rough code the arduino and HMI code, and walk you through the steps involved to modify/customize for your use.

Also, judging by the time your emails are sent, it looks like we are on quite a huge time difference. May I ask where you are located? Worse case I may be able to do a teams meeting or something similar to show you the code and walk you through it.

-Joe

On Wed, Nov 2, 2022 at 3:51 AM daivu2020 @.***> wrote:

because in your program there are 3 parts "CUT" "TEST"....... and arduino program too I use arduino nano a4988 servo 90s nema 17

— Reply to this email directly, view it on GitHub https://github.com/awshick/Arduino_WireCutter/issues/1#issuecomment-1299864776, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVB22PG7MH262PXIRT2UAL3WGITPPANCNFSM6AAAAAARPDW6RQ . You are receiving this because you commented.Message ID: @.***>

daivu2020 commented 1 year ago

I come from Vietnam

daivu2020 commented 1 year ago

do you use facebook or instagram?

daivu2020 commented 1 year ago

image

awshick commented 1 year ago

If you can send me your arduino code? Also what pin or pins are your limit switches on?

On Fri, Feb 17, 2023 at 2:30 PM ivanichy77 @.***> wrote:

hello

I have tried your example and it works perfect, thank you very much for your contribution. I have another nextion of another size but I have not had a problem importing your code,

I am inexperienced in programming nextion, It's been a couple of weeks I want to put two limit switches to fix a dc motor and make it turn until it detects a sensor and not by time, with the limit switches to know that it's in the correct position and to turn or stop.

when i do the arduino code to know the position and rotate until it detects the other limit switch, i put the new code in the loop before the readserial and it works until i connect the screen.

Do you know how to make the code do a digitalRead , I always get the same value when the nextion is connected, if I put digital wirte in some void it does them well but it doesn't read them. it only reads when i disconnect the nextion

you can help? thank you so much

— Reply to this email directly, view it on GitHub https://github.com/awshick/Arduino_WireCutter/issues/1#issuecomment-1435233956, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVB22PHPJREML3AXPRVFCKLWX7NWTANCNFSM6AAAAAARPDW6RQ . You are receiving this because you commented.Message ID: @.***>

ivanichy77 commented 1 year ago

As I have told you, I don't know how to interrupt the connection of the nextion micro so that it can perform the digital read, or how to do the reading, I have been seeing examples of the nextion that read the value and show it on the screen, but I can't do it work in your example. I'm a little lost

As I have told you, I don’t know how to interrupt the connection of the Nextion so that it can perform the digitalRead or how to do the reading I have been seeing examples of the Nextion that read the value of a potentiometer and show it on the screen but I can’t do the read and work in your example I´m a little lost.

The new pins are

const int motorDC = 10; //motor dc 120 r.p.m const int sensorA = 8; //limit swicht that detect that the motor are position initia Al 0º const int sensorB = 9; //limit switch that detects that the motor has turned to position B 180º int valA = 0; int valB = 0;

In the Void setup() I add,

pinMode(motorDC, OUTPUT); pinMode(sensorA, INPUT_PULLUP); pinMode(sensorB, INPUT_PULLUP);

void openCutter() I change it for

valA = digitalRead(sensorA); //Read limit swttch position opne 0ª if (valA == 0){ digitalWrite(motorDC,HIGH); }else { digitalWrite(motorDC,LOW); } delay(500);

void closeCutter() {

valB = digitalRead(sensorB); //Read limit swttch position close 180º if (valB == 0){ digitalWrite(motorDC,HIGH); }else { digitalWrite(motorDC,LOW); } delay(500); }

El 17 feb 2023, a las 23:33, awshick @.***> escribió:

If you can send me your arduino code? Also what pin or pins are your limit switches on?

On Fri, Feb 17, 2023 at 2:30 PM ivanichy77 @.***> wrote:

hello

I have tried your example and it works perfect, thank you very much for your contribution. I have another nextion of another size but I have not had a problem importing your code,

I am inexperienced in programming nextion, It's been a couple of weeks I want to put two limit switches to fix a dc motor and make it turn until it detects a sensor and not by time, with the limit switches to know that it's in the correct position and to turn or stop.

when i do the arduino code to know the position and rotate until it detects the other limit switch, i put the new code in the loop before the readserial and it works until i connect the screen.

Do you know how to make the code do a digitalRead , I always get the same value when the nextion is connected, if I put digital wirte in some void it does them well but it doesn't read them. it only reads when i disconnect the nextion

you can help? thank you so much

— Reply to this email directly, view it on GitHub https://github.com/awshick/Arduino_WireCutter/issues/1#issuecomment-1435233956, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVB22PHPJREML3AXPRVFCKLWX7NWTANCNFSM6AAAAAARPDW6RQ . You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/awshick/Arduino_WireCutter/issues/1#issuecomment-1435353083, or unsubscribe https://github.com/notifications/unsubscribe-auth/A56745RPWALLCLUHHFCHCJTWX74ERANCNFSM6AAAAAARPDW6RQ. You are receiving this because you commented.

awshick commented 1 year ago

Ok. So your first email stated that your not having a problem importing the code on a different nextion screen, is that correct? Also, just so I understand a little better:

I personally use limit switches on my setup to determine when the stepper has opened the cutter and also when it has closed it. I do this because I do not care about the stripping function and only want to cut wire at length. If that is the function you are trying to achieve, I may be able to explain how my setup is for you.

As for the nextion screen programming, this is new to me also. They are interesting to use but the code for arduino and the code for nextion are different. The code for reading switch state(s) would need to be in the routine/function. So if the arduino is running the "CUT" code, you would have it read the switch after every movement of the stepper. Once the switch is triggered then we would have a statement that breaks the code and stops the motor loop routine. If you are not using a stepper motor, and only a dc motor, then this may take some trial and error - but would be a similar process I would think.

Let me know what motor type you are using , and I'll go from there. If all you need is to figure out where to code the switch I can help with that easy enough as I already have the code.

On Sat, Feb 18, 2023 at 4:40 AM ivanichy77 @.***> wrote:

As I have told you, I don't know how to interrupt the connection of the nextion micro so that it can perform the digital read, or how to do the reading, I have been seeing examples of the nextion that read the value and show it on the screen, but I can't do it work in your example. I'm a little lost

As I have told you, I don’t know how to interrupt the connection of the Nextion so that it can perform the digitalRead or how to do the reading I have been seeing examples of the Nextion that read the value of a potentiometer and show it on the screen but I can’t do the read and work in your example I´m a little lost.

The new pins are

const int motorDC = 10; //motor dc 120 r.p.m const int sensorA = 8; //limit swicht that detect that the motor are position initia Al 0º const int sensorB = 9; //limit switch that detects that the motor has turned to position B 180º int valA = 0; int valB = 0;

In the Void setup() I add,

pinMode(motorDC, OUTPUT); pinMode(sensorA, INPUT_PULLUP); pinMode(sensorB, INPUT_PULLUP);

void openCutter() I change it for

valA = digitalRead(sensorA); //Read limit swttch position opne 0ª if (valA == 0){ digitalWrite(motorDC,HIGH); }else { digitalWrite(motorDC,LOW); } delay(500);

void closeCutter() {

valB = digitalRead(sensorB); //Read limit swttch position close 180º if (valB == 0){ digitalWrite(motorDC,HIGH); }else { digitalWrite(motorDC,LOW); } delay(500); }

El 17 feb 2023, a las 23:33, awshick @.***> escribió:

If you can send me your arduino code? Also what pin or pins are your limit switches on?

On Fri, Feb 17, 2023 at 2:30 PM ivanichy77 @.***> wrote:

hello

I have tried your example and it works perfect, thank you very much for your contribution. I have another nextion of another size but I have not had a problem importing your code,

I am inexperienced in programming nextion, It's been a couple of weeks I want to put two limit switches to fix a dc motor and make it turn until it detects a sensor and not by time, with the limit switches to know that it's in the correct position and to turn or stop.

when i do the arduino code to know the position and rotate until it detects the other limit switch, i put the new code in the loop before the readserial and it works until i connect the screen.

Do you know how to make the code do a digitalRead , I always get the same value when the nextion is connected, if I put digital wirte in some void it does them well but it doesn't read them. it only reads when i disconnect the nextion

you can help? thank you so much

— Reply to this email directly, view it on GitHub < https://github.com/awshick/Arduino_WireCutter/issues/1#issuecomment-1435233956 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AVB22PHPJREML3AXPRVFCKLWX7NWTANCNFSM6AAAAAARPDW6RQ

. You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub < https://github.com/awshick/Arduino_WireCutter/issues/1#issuecomment-1435353083>, or unsubscribe < https://github.com/notifications/unsubscribe-auth/A56745RPWALLCLUHHFCHCJTWX74ERANCNFSM6AAAAAARPDW6RQ . You are receiving this because you commented.

— Reply to this email directly, view it on GitHub https://github.com/awshick/Arduino_WireCutter/issues/1#issuecomment-1435639769, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVB22PHREOQ5IUXCQN23FVDWYCRIBANCNFSM6AAAAAARPDW6RQ . You are receiving this because you commented.Message ID: @.***>

daivu2020 commented 1 year ago

Thank you very much

ivanichy77 commented 1 year ago

El 18 feb 2023, a las 12:19, awshick @.***> escribió:

Ok. So your first email stated that your not having a problem importing the code on a different nextion screen, is that correct? Also, just so I understand a little better:

Yes I´ve a Nextion enhaced 3.5 and I import your code .HMI , I have only rescaled some button

  • are you trying to use a standard DC motor or a stepper motor? (If standard DC, what pin(s) are driving the motor or are you using pin 10?) Standar motor 24V with a rele on pin 10
  • what type of arduino? (Nano / uno / etc) Mega 2056

I personally use limit switches on my setup to determine when the stepper has opened the cutter and also when it has closed it.

Yes I want it, for cut a ribbon

I do this because I do not care about the stripping function and only want to cut wire at length. If that is the function you are trying to achieve,

Yes, when I close it, I will keep it closed for a while depending on the thickness of the ribbon.

in the future I will put a stepper motor to rotate the blade and cut at an angle, Like when in your example you put the first cut and mark the cable to strip, I want to set an angle and rotate the blade to cut, but I need check that the blade is in the open position or opening, so that the stepper motor can rotate it. I also want to put a limit switch that detects when there is no ribbon to cut and pause the cycle Now I want know how to read a pin

I may be able to explain how my setup is for you. Thanks

As for the nextion screen programming, this is new to me also. They are interesting to use but the code for arduino and the code for nextion are different. The code for reading switch state(s) would need to be in the routine/function.

I sustituye your void openCutter() by this:

void openCutter() //I change it for

valA = digitalRead(sensorA); //Read limit swttch position opne 0ª if (valA == 0){ digitalWrite(motorDC,HIGH); }else { digitalWrite(motorDC,LOW); } delay(500);

But don’t read the pin

So if the arduino is running the "CUT" code, you would have it read the switch after every movement of the stepper. Once the switch is triggered then we would have a statement that breaks the code and stops the motor loop routine. If you are not using a stepper motor, and only a dc motor, then this may take some trial and error - but would be a similar process I would think.

Let me know what motor type you are using ,

https://www.amazon.es/ICQUANZX-Motorreductor-engranaje-eléctrico-engranajes/dp/B0824V7YGT/ref=dp_fod_1?pd_rd_w=dNnmn&content-id=amzn1.sym.339006a6-3b99-4c41-98ef-8bf1aa3ab7a5&pf_rd_p=339006a6-3b99-4c41-98ef-8bf1aa3ab7a5&pf_rd_r=ZWFZHDQDX1EEY4HK67EZ&pd_rd_wg=COOwc&pd_rd_r=94e55b1c-c9f5-4f8a-9300-a5474c0e5545&pd_rd_i=B0824V7YGT&psc=1 https://www.amazon.es/ICQUANZX-Motorreductor-engranaje-el%C3%A9ctrico-engranajes/dp/B0824V7YGT/ref=dp_fod_1?pd_rd_w=dNnmn&content-id=amzn1.sym.339006a6-3b99-4c41-98ef-8bf1aa3ab7a5&pf_rd_p=339006a6-3b99-4c41-98ef-8bf1aa3ab7a5&pf_rd_r=ZWFZHDQDX1EEY4HK67EZ&pd_rd_wg=COOwc&pd_rd_r=94e55b1c-c9f5-4f8a-9300-a5474c0e5545&pd_rd_i=B0824V7YGT&psc=1 To prove a code im using a led conect at pin

and I'll go from there. If all you need is to figure out where to code the switch I can help with that easy enough as I already have the code.

not so easy for me lol

Can I read your code with the switch to try to understand it?

You are receiving this because you commented.

awshick commented 1 year ago

I've attached the files I use to this email. Inside there is also a "test" folder - which I've made to check your motor and switch operations. As you are using a geared DC motor it will not be an instant stop. Imagine removing dc power from the motor, it still spins slightly as it has momentum. A stepper motor does not do this and can be controlled more accurately.

I'd recommend building the nextion TFT file using the "Nextion_test.hmi" file in the test folder. Upload that to your nextion, and also the "switch_test.ino" file (in the test folder) to the arduino. This was written using your information that your motor relay is attached to pin 10, and the sensorA switch is to pin 8, sensorB switch is to pin 9.

IF the files, under the test folder, work for you then we can move forward. If not then we will need to troubleshoot some. I used 2 different ways to run the motor while reading the switch state. That is why the openCutter and closeCutter functions are different. The openCutter function uses a loop statement. Doing this, it will run for only so long (in this case 5000 = 5 seconds) and stop regardless if the switch is hit or not. The closeCutter function uses a while statement. Doing this, it will run constantly until the switch is hit (sensed as a 0).

If this does not work as expected please provide as much detail as you can. For example if you receive any errors or the screen is not doing anything, explain it like "I press OPEN and nothing happens" or "I press a switch and on the screen it always says OFF". If the motor starts running as soon as you power on the arduino, then you will need to change all of the "digitalWrite(motorDC, LOW);" lines to be the opposite "digitalWrite(motorDC, HIGH);" and all of the lines with "digitalWrite(motorDC, HIGH);" lines to be the opposite "digitalWrite(motorDC, LOW);"

Hope this helps some. The files in the "What I use" folder will not work with your current setup. There is also a modified nextion HMI for a 2.5 inch screen in the folder. However it may give you some ideas. The word document kind of explains how my setup works with the limit switches and how the code reads them.

I've learned all of my working with the nextion programming from this channel on youtube: @.***

On Sat, Feb 18, 2023 at 9:03 AM ivanichy77 @.***> wrote:

El 18 feb 2023, a las 12:19, awshick @.***> escribió:

Ok. So your first email stated that your not having a problem importing the code on a different nextion screen, is that correct? Also, just so I understand a little better:

Yes I´ve a Nextion enhaced 3.5 and I import your code .HMI , I have only rescaled some button

  • are you trying to use a standard DC motor or a stepper motor? (If standard DC, what pin(s) are driving the motor or are you using pin 10?) Standar motor 24V with a rele on pin 10
  • what type of arduino? (Nano / uno / etc) Mega 2056

I personally use limit switches on my setup to determine when the stepper has opened the cutter and also when it has closed it.

Yes I want it, for cut a ribbon

I do this because I do not care about the stripping function and only want to cut wire at length. If that is the function you are trying to achieve,

Yes, when I close it, I will keep it closed for a while depending on the thickness of the ribbon.

in the future I will put a stepper motor to rotate the blade and cut at an angle, Like when in your example you put the first cut and mark the cable to strip, I want to set an angle and rotate the blade to cut, but I need check that the blade is in the open position or opening, so that the stepper motor can rotate it. I also want to put a limit switch that detects when there is no ribbon to cut and pause the cycle Now I want know how to read a pin

I may be able to explain how my setup is for you. Thanks

As for the nextion screen programming, this is new to me also. They are interesting to use but the code for arduino and the code for nextion are different. The code for reading switch state(s) would need to be in the routine/function.

I sustituye your void openCutter() by this:

void openCutter() //I change it for

valA = digitalRead(sensorA); //Read limit swttch position opne 0ª if (valA == 0){ digitalWrite(motorDC,HIGH); }else { digitalWrite(motorDC,LOW); } delay(500);

But don’t read the pin

So if the arduino is running the "CUT" code, you would have it read the switch after every movement of the stepper. Once the switch is triggered then we would have a statement that breaks the code and stops the motor loop routine. If you are not using a stepper motor, and only a dc motor, then this may take some trial and error - but would be a similar process I would think.

Let me know what motor type you are using ,

https://www.amazon.es/ICQUANZX-Motorreductor-engranaje-eléctrico-engranajes/dp/B0824V7YGT/ref=dp_fod_1?pd_rd_w=dNnmn&content-id=amzn1.sym.339006a6-3b99-4c41-98ef-8bf1aa3ab7a5&pf_rd_p=339006a6-3b99-4c41-98ef-8bf1aa3ab7a5&pf_rd_r=ZWFZHDQDX1EEY4HK67EZ&pd_rd_wg=COOwc&pd_rd_r=94e55b1c-c9f5-4f8a-9300-a5474c0e5545&pd_rd_i=B0824V7YGT&psc=1 < https://www.amazon.es/ICQUANZX-Motorreductor-engranaje-el%C3%A9ctrico-engranajes/dp/B0824V7YGT/ref=dp_fod_1?pd_rd_w=dNnmn&content-id=amzn1.sym.339006a6-3b99-4c41-98ef-8bf1aa3ab7a5&pf_rd_p=339006a6-3b99-4c41-98ef-8bf1aa3ab7a5&pf_rd_r=ZWFZHDQDX1EEY4HK67EZ&pd_rd_wg=COOwc&pd_rd_r=94e55b1c-c9f5-4f8a-9300-a5474c0e5545&pd_rd_i=B0824V7YGT&psc=1

To prove a code im using a led conect at pin

and I'll go from there. If all you need is to figure out where to code the switch I can help with that easy enough as I already have the code.

not so easy for me lol

Can I read your code with the switch to try to understand it?

You are receiving this because you commented.

— Reply to this email directly, view it on GitHub https://github.com/awshick/Arduino_WireCutter/issues/1#issuecomment-1435695421, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVB22PHXYO34BZDMPI7BOXDWYDQC5ANCNFSM6AAAAAARPDW6RQ . You are receiving this because you commented.Message ID: @.***>

awshick commented 1 year ago

Ok now I see my confusion. I'm receiving emails directly and through github. Also an issue was opened and then continued into this one. So @ivanichy77 if you did not receive my email with file(s) attached (same text as above comment) you can get the files I attached here: https://github.com/awshick/Arduino_WireCutter/tree/main/testing Also I see youtube link was covered up. But the channel name is Cheap Controls. Tons of nextion step by step programming videos from there. Great resource if needed.

awshick commented 1 year ago

@ivanichy77 Ok the file(s) I emailed to you had some issues. I tried to duplicate your setup on my bench with a Mega2560 and has some errors. So I've corrected the files and uploaded them here: https://github.com/awshick/Arduino_WireCutter/tree/main/testing

So again delete the file(s) you received in my email, if you received it, and use the files uploaded here on github.

ivanichy77 commented 1 year ago

Hello, I have also been confused, I thought I was only writing to you by mail and not in the thread, I have been reading your file with the limit switch, but I did not use it because in the configuration of the stepper motors there are three variables that I did not understand , if in that example you explain very well how to use the SwitchesThe fact that the motor does not stop in the position due to inertia is not going to be a problem, I think it will stop very quickly and I can correct that inertia time, physically advancing the switchHe visto el nuevo codigo in the new folder that you have created, the hmi, ino and the images, I really appreciate your involvement and help that you are offering,I try it and I comment, and I learn your way of using digitalreadThanksEl 19 feb 2023, a las 7:45, awshick @.***> escribió: @ivanichy77 Ok the file(s) I emailed to you had some issues. I tried to duplicate your setup on my bench with a Mega2560 and has some errors. So I've corrected the files and uploaded them here: https://github.com/awshick/Arduino_WireCutter/tree/main/testing So again delete the file(s) you received in my email, if you received it, and use the files uploaded here on github.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

ivanichy77 commented 1 year ago

Hello, I have also been confused, I thought I was only writing to you by mail and not in the thread, I have been reading your file with the limit switch, but I did not use it because in the configuration of the stepper motors there are three variables that I did not understand , if in that example you explain very well how to use the SwitchesThe fact that the motor does not stop in the position due to inertia is not going to be a problem, I think it will stop very quickly and I can correct that inertia time, physically advancing the switchI have seen and read the test folder, all very detailed, you have created the hmi, ino and the images, I really appreciate your involvement and help that you are offeringI try it in my mega and I comment and I learn your way of using digitalreadThanksEl 19 feb 2023, a las 7:45, awshick @.***> escribió: @ivanichy77 Ok the file(s) I emailed to you had some issues. I tried to duplicate your setup on my bench with a Mega2560 and has some errors. So I've corrected the files and uploaded them here: https://github.com/awshick/Arduino_WireCutter/tree/main/testing So again delete the file(s) you received in my email, if you received it, and use the files uploaded here on github.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>