22:40 I have to agree. (ordered a 12n.M servo yesterday for a DIY milling indexer and this video/code is what I was looking for. Teach 0 function, goto set incremental position at the push of a button, rotary encoder menu and constant position display.) Thank you, awesome stuff.
@CuriousScientist3 жыл бұрын
Hi! I am glad that you found this video useful!
@daryl72373 жыл бұрын
hi! i just wanna to say i really like this project. really appreciate you share it
@CuriousScientist3 жыл бұрын
Hi and thank you! I am glad that you like it. Keep checking back because I constantly improve this thing.
@daryl72373 жыл бұрын
hi no worries i will! by the way do you have any project using nextion HMI with Arduino control Stepper motor?
@CuriousScientist3 жыл бұрын
@@daryl7237 Not yet. Those displays are expensive, so I try to avoid them. :)
@daryl72373 жыл бұрын
@@CuriousScientist O I see! anyway i really like your project very detail and useful for me!
@CuriousScientist3 жыл бұрын
Thank you! Glad to hear that you find useful.
@itsempire23453 жыл бұрын
Happy to see brother to see your subs and montized channel in about i think 6 7 mounths from 700 ❤️ Good luck
@CuriousScientist3 жыл бұрын
Hi! Thank you very much for the kind words! Yes, we managed to cross the magic number 1000 in the middle of October 2020. I was really happy to see it. I will work hard this year to provide a lot of useful contents. They might not come very fast but I can promise that they will be interesting.
@itsempire23453 жыл бұрын
@@CuriousScientist brother if you don't mind like before i told you about editing I will ask you to talk faster or speed up 1.25x speed its also great i watches on 1.25x speed. And if you wanted me to help you in editing and more. i will do for you. And know your videos are recommended to some people try an quailty video not expensive (QUAILTY) Also try voiceOver video
@CuriousScientist3 жыл бұрын
Thank you, all advices and suggestions are welcome. We are here to learn together! I do not want to speed up the video during editing except where I do something like soldering, assembling something...etc. There are several reasons for that. For example, I am not a native speaker, so if I mispronounce something, it might be even worse at faster speeds. Also, since I am not a native speaker, I cannot talk much faster. This also comes from the fact that my videos are not scripted at all. I just build the stuff, then I explain how it works. At this moment I am not really interested in the professional video production such as writing scripts and making voiceover because it takes a lot of time. I don't have time for these and all I want is just to share my hobby with other people who might be interested in similar topics.
@CuriousScientist3 жыл бұрын
Hi! Your comment is automatically held back by the KZbin filter, I guess, because you revealed a phone number. Contact me on my email, you can find it on my website.
@itsempire23453 жыл бұрын
@@CuriousScientist ok bro
@KW-ei3pi Жыл бұрын
Very interesting and educational. When you are showing and explaining the code on the screen, it's just too small to see.
@CuriousScientist Жыл бұрын
Thanks! Try to watch it on full-screen.
@KW-ei3pi Жыл бұрын
@@CuriousScientist Thanks. I watch videos on a 65" 4K TV, full screen. The code is too small using this method, but ok on a computer, though spending an hour (or hours) setting at a computer watching a video is not the most comfortable situation. So to learn these high level subjects, I watch on the TV. Other posters often show code larger. Video suggestion: I would like to see a video of the following set up: Arduino controlling stepper driver (TB6600), and NEMA 17 motor. Potentiometer to control speed. One momentary switch to run the motor in one direction. Second momentary switch to control the motor in the other direction. And a Rotary Encoder to advance the motor a few steps (number of steps set in code) in both directions by turning CW or CCW. Thank you very much. Watching all of your videos hoping to figure out how to do this. Regards.
@CuriousScientist Жыл бұрын
Thanks! I think you can make the above described setup if you watch my videos. I published all the code and everything which would allow you to assemble such a system.
@CesarTheard3 жыл бұрын
Really cool, thanks a lot for sharing that ;).
@CuriousScientist3 жыл бұрын
You're welcome! I am glad that you liked it.
@mahalingamrajaratnam6121 Жыл бұрын
Hello there, thanks for sharing your project. I have a specific question on close loop stepper motor that i am planning to work on. Can you help me to resolve some of my questions?
@CuriousScientist Жыл бұрын
Hi! What's the question? Depending on the complexity, I can answer it here, or you can also hire me for consulting.
@dondon19922 жыл бұрын
I hope, in the future you will use NEXTION as your HMI display.. i really like the way you discuss
@CuriousScientist2 жыл бұрын
You already wrote the same comment to a similar video and I have already answered it...
@justinmathew130 Жыл бұрын
This is very informative video, can we use Arduino instead of SMT32 (can we code it by Arduino software)
@CuriousScientist Жыл бұрын
It is an Arduino code.
@justinmathew130 Жыл бұрын
Okay 👍, can we use Arduino nano ?
@CuriousScientist Жыл бұрын
Sure.
@siddhantsrivastav84753 жыл бұрын
Great tutorial. Thanks a lot. Sadly I was not able to run the 5110 Display. I did whatever I could do. I generally use the SSD1306 Oled Display which works for me. I am not a real coder so I am not able to run the Oled with this project. Can you help with that or may be you could do another video with the Oled. I successfully ran your code and was able to drive the motor through the serial monitor as per your earlier tutorial. Thanks again
@CuriousScientist3 жыл бұрын
Hi! I have plenty of videos where I use the other display you mentioned. I am just using the Adafruit library tailored to my needs. Check some of my most recent videos and you can get the idea of how to run that display.
@ashishdmc3 жыл бұрын
@@CuriousScientist Thanks, I am sorry but I was unable to run my Adafruit_SH1106 display OLED Display . I am able to run my display with other simple codes but not with this one. its way too difficult for me
@CuriousScientist3 жыл бұрын
It is just copy paste, can't be that difficult. I always explain the code line by line.
@신태진-w2g3 жыл бұрын
Hi, Thanks for the quick reply. I am using the Arduino Mega and I changed the pin assignments (I use GPIO pins 2-13 and pin 50 for limit switch input). But still no luck. Nothing is showing on the LCD screen although it is lit up by the back light. I uploaded all the libraries from the sources you specified. So I am wondering if I am missing something in the code. I would really appreciate it if you could give me your feedback on the following issues: 1) Your code only shows 3 signals that control the LCD : N5110_RST, N5110_CS, N5110_DC. What about the CLK and DIN signals? You don't need them? 2) Using "pinMode" you designated the pin that connects to the rotary encoder, the 2 buttons and the limit switch as input pins. How about the pins that connect to the LCD, don't you have to declare them to be output pins? I don't seen pinMode declarations for the output pins. Thanks
@CuriousScientist3 жыл бұрын
1, The LCD works with the SPI protocol. So the rest of the pins are depending on your board's SPI pins. Connect them to the corresponding SPI pins. 2, No pinMode is needed for the SPI pins as it is handled by the SPI library.
@canario4303 жыл бұрын
Although I don't understand English and I have to translate the text, I really like your video and the published diagrams, I precisely have a Nokia 5100 phone, the nema 17 and the TB6600, I only need the small components
@CuriousScientist3 жыл бұрын
Thank you very much! I hope that the translations work well. I hope this system will satisfy your requirements. Don't forget to visit my website where you can find all the wiring and source code.
@canario4303 жыл бұрын
@@CuriousScientist Thank you, I will do that, although the economy is on the ground and I have to lower everything I can, you already have a subscriber, A greeting from Spain
@provuksmc6619 Жыл бұрын
amazing
@CuriousScientist Жыл бұрын
Thank you!
@provuksmc6619 Жыл бұрын
@@CuriousScientist would you mind if i copy that and use it in my project?
@CuriousScientist Жыл бұрын
No, I would not mind it, that's why I published it. However, I would appreciate it if you would cite me as the creator of the code.
@provuksmc6619 Жыл бұрын
@@CuriousScientist of course i will do that. by your actual name or by your youtube channel?
@CuriousScientist Жыл бұрын
Just mention my channel or my website. It is perfectly fine.
@cncrobotic2464 Жыл бұрын
Hi, i am really amazing about your projects, congratulations, i would like to know where you learned to program the arduino and stm32 microcontrollers.
@CuriousScientist Жыл бұрын
Hi! It is all self-studying. Reading other people's codes, reading datasheets, and books helped a lot.
@신태진-w2g3 жыл бұрын
Hi I decided to instead go with the STM32 blue pill because it costs less than $3 and I was still having problems with Arduino Mega. I decided to just to create a circuit exactly like yours. EXCEPT that I did not have your stepper drivers. I had a whole bunch of DRV8825 lying around and so I used those. Well it seems the STM32 blue pill is having some compatible issue with DRV8825 because although I got the LCD, encoder and buttons working, the stepper motor just won't rotate. This got me thinking. STM32 operating voltage is 3.3V and it outputs 3.3V signals. But the STEP and DIR pins on the DRV8825 expects 5V signals. So may be this is why DRV8825 is not able to receive STEP and DIR signals properly. So, in this case do I have to use some kind of logic level shifter between STM32 and the DRV8825 driver?
@CuriousScientist3 жыл бұрын
Hi! I think you are still doing something wrong. I use DRV8825 with STM32 without any issues.
@CuriousScientist3 жыл бұрын
BTW, this is the video where I use the DRV8825 with STM32: kzbin.info/www/bejne/q5ionoGLatSJepo I still think you are just not connecting everything properly. DRV8825 is compatible with both 3.3 V and 5 V systems.
@신태진-w2g3 жыл бұрын
@@CuriousScientist Thank you. I got it working. I made some mistake with the wiring.
@CuriousScientist3 жыл бұрын
As I suspected. :) But at the end of the day you figured out what was wrong and you made it work! Great job! I hope you'll enjoy it!
@Bunty7933 жыл бұрын
My code won't complie for stm32 bluepill when including the accelstepper library. Please help
@CuriousScientist3 жыл бұрын
The code I published for this project is made for STM32 bluepill and as you can see it on the video, it works.
@Bunty7933 жыл бұрын
@@CuriousScientist Yes it worked it was a mistake on my end. My apologies for wasting your valuable time sir.
@CuriousScientist3 жыл бұрын
No worries, no time wasted. Glad to hear that it works now.
@howardbealeau Жыл бұрын
At 3:56 you start to describe the little PCB's on the back of the control panel. One has the R's & C's to help debounce the rotary encoder outputs and the other one has the two resistors to help debounce the up and down buttons. At 4:13 you say the two resistors are "NAMELY FOR THE BUTTONS, ALSO FOR PULLING THEM UP." However, the (Fritzing) schematic you link to (kzbin.info?event=video_description&redir_token=QUFFLUhqbklPQ25oSGl1OE9Tb01ScGwzNjU2ejgzTjJxQXxBQ3Jtc0trT0ZxZld2bkJHem11RTRkZDZoaWxBeGlZeWZjRno1N19BdXZkSHFYUTBhNHU2dTJXc25KOEFVNl9ZOGI1bEVjZUpub0RXSHJ5MzJhbWh2LVQ2bkR2bnQxZ2ZEdEpFT3l3djl3QWxGWkc3LW5Db2pGMA&q=https%3A%2F%2Fcuriousscientist.tech%2Fblog%2Fstm32-nokia5110-stepper-control-panel&v=4Wrt7swXjsQ) shows the two resistors for the buttons are pulling them DOWN to the GND (0V) line.
@CuriousScientist Жыл бұрын
So?
@howardbealeau Жыл бұрын
@@CuriousScientist Just wanting to know if the (Fritzing) schematic is correct or not.
@CuriousScientist Жыл бұрын
Why don't you try it? You can see in the video that the circuit works. I drew the schematics based on the circuit in the video. Pull-up or pull-down, it doesn't matter and I even indicated in the code why.
@신태진-w2g3 жыл бұрын
Is the code meant to be used only with STM32 Bluepill? I wired it up to an Arduino MEGA and I got a whole bunch of compile errors.
@CuriousScientist3 жыл бұрын
You got the errors most probably because you haven't changed the pin assignments.
@DaniloDezelak7 күн бұрын
Hoj, Nokia display have pins: GND, BL(BackLight), VCC(3,3V), CLK (SerialClockSpeed), DIN(SerialDataLine), DC(DataCommands), CE(chipSelection, RST (Reset); in code is: #define N5110_CS PA4; Nokia do not have mark CS pin. I use Arduino UNO board, so I put this unknown pin CS on Analog pin 2 (#define N5110_CS A2); I hope that is SC pin on Nokia CE?
@CuriousScientist7 күн бұрын
CE (Chip Enable) is the same as CS (Chip Select).
@thehulk01112 жыл бұрын
can you teach me how to replace this LCD wih i2c LCD ?
@CuriousScientist2 жыл бұрын
You would need to rewrite the whole code.
@ipadize2 жыл бұрын
i wish the printing would be on another thread so that printing does not interfere with other operations.
@CuriousScientist2 жыл бұрын
Yeah it's a bit annoying. I couldn't figure out how to do that yet. Or I would say, I haven't implemented it yet... I could probably do something with the timers.
@justinmathew130 Жыл бұрын
Compilation error: 'N5110_SPI' does not name a type; did you mean 'N5110_CS'? I got this error message , how I can correct it
@CuriousScientist Жыл бұрын
You need the correct library. If you use Arduino instead of STM32, then you need the Arduino library for the display.
@justinmathew130 Жыл бұрын
@@CuriousScientist thank you, I almost corrected my library and I Selected STM32 board from Arduino IDE, but now I got an error : exit status 1 , Compilation error: expected unqualified-id before '{' token (The root showing is : /N5110_SPI.h:1:1: error: expected unqualified-id before '{' token) can you please help me to correct it
@CuriousScientist Жыл бұрын
It says in the error message. Somewhere you miss a curly bracket "{". Maybe you didn't copy the code correctly.
@justinmathew130 Жыл бұрын
@@CuriousScientist You mean in your code? (main code)
@CuriousScientist Жыл бұрын
Yes.
@신태진-w2g3 жыл бұрын
Hi I am having problems with SMT32 blue pills. You see I think I bought fake Chinese products with the fake STM32 chips on them. So I am having lots of problems getting USB port not recognizing the device. I had one that worked but I blew the chip accidentally. The other one I have I succeeded in installing bootloader via USART1 pins (A9, A10) after completely giving up trying with ST-LINK, but my PC consistently fails to recognize the blue pill's USB port so I can't load a program. So to make a long story short, I decided to go back to using an Arduino Mega until I can get my hands on some genuine blue pills. Arduinos are simply so much more reliable although they may be slower. But I just want to make sure I clear up all issues related to configuring the pins for the Arduino. So if you don't mind I have a few last questions (any other precautions you can suggest to me would be greatly appreciated): A) The step/Dir signals (PA9, PA8) for the stepper motor driver must be designated as OUTPUT pins. Why did you not declare them as OUTPUT using the pinMode command or is this taken care of by AccelStepper.cpp? B) The 5V level of ALL the command pins from the Arudino to the Nokia 5110 MUST be lowered to 3.3V using 10K resistors, right?
@CuriousScientist3 жыл бұрын
Sorry, but I think it is not the STM32's or other microcontrollers fault. It worked for me flawlessly. It happened to me only once to receive a fake STM32 (you can spot the fake by having 3 small circles on the chip instead of 1), but otherwise, they work well. BTW, I have a tutorial on installing the bootloader on the STM32. You can follow it. A; They do not have to be defined as output. The library takes care of it. B; Yes, you can drop the voltage by resistors, or you can use a logic level shifter. Some displays also support 5 V. Also please keep in mind that I am not a free support service. I can't answer every little questions.