The Bored Robot

The Bored Robot

Welcome to The Bored Robot, your premier destination for hobbyists, students, and enthusiasts eager to explore the world of practical robotics and engineering.

As a passionate advocate for hands-on learning, I've had the privilege of instructing undergraduates in robotics and participating in innovative projects. This channel is a testament to the digital age of education, providing instructional videos and project presentations.

Join me on a journey where we simplify the world of robotics and engineering, making it accessible to everyone. Together, let's unlock the potential of creativity and knowledge.

Don't miss out-subscribe now, and let's embark on an adventure of exploration, creation, and enlightenment together!

DIY Camera Phone Slider

DIY Camera Phone Slider

Пікірлер

  • @narayanpatil7712
    @narayanpatil7712Күн бұрын

    How many ampere need when I used two Nema 17 with load

  • @PintaoLoko
    @PintaoLokoКүн бұрын

    There must be a simple way t change this. The plotter this way looks wrong for any application. My version is 2.3.2 and it's still like this.

  • @Animace
    @Animace2 күн бұрын

    Where to connect the signal wire to Arduino Mega?

  • @mrspaceman1767
    @mrspaceman17676 күн бұрын

    Lovely video! I was wondering if this code is compatible with an Arduino leonardo?

  • @bennguyen1313
    @bennguyen13137 күн бұрын

    How fast can the GUI keep up with the data? I tried using pyqtgraph, using one thread to parse the serial data, and another thread for the gui updating. However, my sensor transmits at 115kbps continuously, and the GUI starts to lag behind after just a few seconds! I imagine this is such a common application that surely someone has figured it out. Haven't yet tried VizhPort ... but on the off chance that python isn't the best suited, I was thinking fl_charts and flutter!

  • @andydebecker1192
    @andydebecker11929 күн бұрын

    Thanks, really good !

  • @TheBoredRobotLLC
    @TheBoredRobotLLC3 күн бұрын

    Glad you liked it!

  • @barbarianhadii1222
    @barbarianhadii122212 күн бұрын

    on minute 9:45 u said abaout 0 and 1023 on analog read,the funcition of 0 and 1023 for what???i'm still laerning bout that

  • @patrickchomurove819
    @patrickchomurove81912 күн бұрын

    Woooow, this is the best out there on stepper control using Accel. How can i connect with you for further talks on some projects we can collaborate on. LinkedIn, Email, ????

  • @TheBoredRobotLLC
    @TheBoredRobotLLC3 күн бұрын

    [email protected]

  • @TopoBasah
    @TopoBasah14 күн бұрын

    sorry for my language before. But what if using nodemcu (esp8266) ? is the code still same ?

  • @TheBoredRobotLLC
    @TheBoredRobotLLC3 күн бұрын

    I've never used that piece of hardware before. Just a quick google search shows that it uses a different language, so I do not believe the code will work.

  • @Okay1
    @Okay115 күн бұрын

    Ok

  • @ellerycadel
    @ellerycadel18 күн бұрын

    Question: this is a 1.5A stepper motor and from what I have read so far you need to double it for microstepping, then there are 3 motors so I get a total amperage of 9amps for the system and you said you are keeping the amperage at 1 amp because you are using a breadboard. How are you getting away with only 1 amp?

  • @TheBoredRobotLLC
    @TheBoredRobotLLC17 күн бұрын

    I have the motor controllers set to a current that just gets the motors moving. Also, there isn't any load on the motor shafts, so the motors won't draw that much current. The setup was just for the sake of this demonstration.

  • @narayanpatil7712
    @narayanpatil7712Күн бұрын

    I want two stepper motor Nema 17 with the load. How much ampered I need?

  • @JeffreyMaster
    @JeffreyMaster26 күн бұрын

    Hi, Is it possible to have the graph scaled to 600 points rather than the 1 point on the axis. So the incoming data is seen to the left of the graph(like the older IDE version seen in video kzread.info/dash/bejne/goSNr6d7kZO8qdY.htmlsi=__NaLmAU9nlpRXpA&t=1673). I don't want the automatic update of the X-axis. Thanks

  • @TheBoredRobotLLC
    @TheBoredRobotLLC23 күн бұрын

    I haven't looked into trying to make that happen. Recently, I've just been plotting data with Python to get more options with what I display.

  • @JeffreyMaster
    @JeffreyMaster23 күн бұрын

    @@TheBoredRobotLLC Thank you for your reply. I went back to the old version to output this data again. 😀

  • @talawadekargaureshsandeep5494
    @talawadekargaureshsandeep549426 күн бұрын

    I am trying to control two stepper motors using arduino uno and tb6600 motor drivers and control them using Radio controller . However when i run my code only one stepper motor work while the other doesn't receiver input signals from transmitter

  • @TheBoredRobotLLC
    @TheBoredRobotLLC23 күн бұрын

    It's hard to say without knowing more. My first step would be to check the wiring and make sure that each of the motors runs individually first.

  • @spidarx
    @spidarx27 күн бұрын

    Exactly what I was looking for. Perfect! Thank you!

  • @TheBoredRobotLLC
    @TheBoredRobotLLC23 күн бұрын

    Great to hear!

  • @OPPSINT
    @OPPSINT29 күн бұрын

    Thank you for this video. It is helpful.

  • @TheBoredRobotLLC
    @TheBoredRobotLLC28 күн бұрын

    Glad it was helpful!

  • @rafiihsanalfathin9479
    @rafiihsanalfathin9479Ай бұрын

    What is the advantage/disadvantage of using external pull up resistor other than the internal one?

  • @TheBoredRobotLLC
    @TheBoredRobotLLC28 күн бұрын

    One advantage of an external one is if you wanted to use a resistor with a different resistance value than the internal one.

  • @rafiihsanalfathin9479
    @rafiihsanalfathin947928 күн бұрын

    @@TheBoredRobotLLC but why does that matter? Isnt the point of using pull up resistor is so that ur button is not in floating state? So the value of resistor doesn't matter anyway as long as it is high enough to be stable

  • @TheBoredRobotLLC
    @TheBoredRobotLLC23 күн бұрын

    @@rafiihsanalfathin9479 Yes that is true, but by variable resistance, I was referring to applications that you may want to control current draw.

  • @Daniel-dg5po
    @Daniel-dg5poАй бұрын

    I have to run the python file when the Arduino starts running?

  • @TheBoredRobotLLC
    @TheBoredRobotLLC28 күн бұрын

    Do not open the serial monitor in Arduino. Get the code uploaded to your arduino first. Then run the python code.

  • @abdotsouri9432
    @abdotsouri9432Ай бұрын

    link of the code !

  • @TheBoredRobotLLC
    @TheBoredRobotLLC28 күн бұрын

    github.com/TheBoredRobot/KZread-Code

  • @ivanravaglioli
    @ivanravaglioliАй бұрын

    Avrei bisogno di leggere 6 canali da un ricevitore RC, come devo modificare la Sketch?

  • @TheBoredRobotLLC
    @TheBoredRobotLLC28 күн бұрын

    I have a video update on this: kzread.info/dash/bejne/f6eJro-LiZvAorw.htmlsi=A3ninmmYJwcJUuIB

  • @girrrrrrr2
    @girrrrrrr2Ай бұрын

    I have a question, I'm using a drv8825-ish in 1\32 micro step, and the motor moves terribly slow. What can I do to make it go faster? My ultimate goal is just a constant rotation speed which varies per motor so that I can use it in my drawing machine

  • @TheBoredRobotLLC
    @TheBoredRobotLLC28 күн бұрын

    It's going slow probably because you're doing 1/32 steps. Changing to full step or even half step will make it faster, but you may give up precision. It depends on your application.

  • @MrGerka0291
    @MrGerka0291Ай бұрын

    How did you get it!??? Thank you very much!!!!

  • @TheBoredRobotLLC
    @TheBoredRobotLLCАй бұрын

    I'm glad it helped. I had to look through some forums on this one.

  • @NightEagle816
    @NightEagle816Ай бұрын

    volatile long StartTime = 0; volatile long CurrentTime = 0; volatile long Pulses = 0; int PulseWidth void setup() { Serial.begin(9600); pinMode(RCPin, INPUT_PULLUP); attachInterrupt(digtalPinToInterrupt(RCPin),PulseTimer,CHANGE); } void loop() { if (Pulses < 2000){ PulseWidth = Pulses; } Serial.println(PulseWidth); } void PulseTimer(){ CurrentTime = micros(); if (CurrentTime > StartTime){ Pulses = CurrentTime - StartTime; StartTime = CurrentTime; } }

  • @TheBoredRobotLLC
    @TheBoredRobotLLCАй бұрын

    I have an update to this video to make things easier: kzread.info/dash/bejne/f6eJro-LiZvAorw.htmlsi=HysbnLop4zBKpxot

  • @rickperalta1921
    @rickperalta1921Ай бұрын

    Excellent video - Thanks! Consider using unsigned math on micros() it simplifies the code (no if() needed). Consider a small state machine in the inyerrupts. On a rising edge save time and on falling edge compute delta and set a new system state. Thid avoids some complications and can help clarify the interface.

  • @TheBoredRobotLLC
    @TheBoredRobotLLCАй бұрын

    Thanks for the advice! I also found another approach and I did that on another video as well. kzread.info/dash/bejne/f6eJro-LiZvAorw.htmlsi=HysbnLop4zBKpxot

  • @karkashashankkumar253
    @karkashashankkumar253Ай бұрын

    if yes can you provide the circuit diagram and code for it

  • @TheBoredRobotLLC
    @TheBoredRobotLLCАй бұрын

    github.com/TheBoredRobot/KZread-Code

  • @karkashashankkumar253
    @karkashashankkumar253Ай бұрын

    can we control the position of stepper motor with tb6600 and potentiometer

  • @TheBoredRobotLLC
    @TheBoredRobotLLCАй бұрын

    I have a video on this. You should be able to do the same with the motor controller that you mentioned. kzread.info/dash/bejne/g4Z32KVuqMuwc9o.htmlsi=tg4ZDeatLPXbjkhq

  • @stevefox3763
    @stevefox3763Ай бұрын

    Please could you release code for this that uses Rc PWM for the control input? My personal use requirement is 2 Rc channel input for 2 stepper controls so this would work great for me if I could use Rc input to control it. Steve.

  • @TheBoredRobotLLC
    @TheBoredRobotLLCАй бұрын

    github.com/TheBoredRobot/KZread-Code

  • @user-cp3tm2nx5l
    @user-cp3tm2nx5lАй бұрын

    Oh wow this is incredible, I also manage to make the Y axis modification work on Mac, you just need to do the modification in VScode, thank you so much kind sir.

  • @TheBoredRobotLLC
    @TheBoredRobotLLCАй бұрын

    I'm happy it was useful.

  • @YouTuber-xh1ej
    @YouTuber-xh1ejАй бұрын

    Thanks!!!!!

  • @TheBoredRobotLLC
    @TheBoredRobotLLCАй бұрын

    Happy to help

  • @sampamnl.8964
    @sampamnl.8964Ай бұрын

    ขอบคุณมากครับ

  • @TheBoredRobotLLC
    @TheBoredRobotLLCАй бұрын

    You're welcome!

  • @mbenj2023
    @mbenj2023Ай бұрын

    Outputs were visibly not synchronised.

  • @TheBoredRobotLLC
    @TheBoredRobotLLCАй бұрын

    Arduino not synchronous in general, but this did approach did the job for the application of getting two walking legs to sync up for another project. I do agree there is still plenty of room for improvement with adjusting gains or even a completely different method.

  • @Cfernanv
    @CfernanvАй бұрын

    Quiero fabricar un afilador de herramientas, quiero agregarle un eje mas. Tres ejes que se muevan de forma lineal y un eje rotativo. Display para agregar valores en pantalla para el desplazamiento y valores de angulos para que gire la herramienta. Hay formas que me puedas ayudar?

  • @TheBoredRobotLLC
    @TheBoredRobotLLCАй бұрын

    I had to use google translate on this one. The library works for additional motors. You'll just have to make sure you have enough pins on your Arduino.

  • @stevefox3763
    @stevefox3763Ай бұрын

    In this video and on your blog you show schematics and a PCB for two modules to control two motors but the Arduino code provided is only for one, I understand enough to see its only for one but don't have the knowledge to modify it myself for two and would likely just break the code, could you provide the code for the two modules please? I want to use this to control zoom and focus on a motorised lens for a HD FPV system on a Rc plane!

  • @TheBoredRobotLLC
    @TheBoredRobotLLCАй бұрын

    My suggestions is to use the AccelStepper library. See video below. The code from this video you're commenting on can get a bit clunky when you start adding more motors. kzread.info/dash/bejne/g4Z32KVuqMuwc9o.html&lc=UgzrPGWk_RqfpmJ7d-d4AaABAg If you add an additional channel from you remote control, then you can have it correspond with the additional motor.

  • @stevefox3763
    @stevefox3763Ай бұрын

    @@TheBoredRobotLLC I got your email, yes it was me! I had no idea you had messaged me here, for some reason youtube turned off all notifications for comment reply's so I didn't know. Had a look at the linked video and that looks better, especially the position control which might be better for lens control than moving a motor then needing to return the control to 0 to halt it in that position but the video only talks about using Pots for control and not using Rc PWM. I want to use the Pots on my transmitter so I can use either continuous movement or position control as I would not be using Sticks. I am very comfortable with wiring but coding is not something I have been able to absorb and my limit is being able to inspect code and sometimes duplicate existing parameters for more of the same, 95% of attempts to modify further than that results in broken code :( How would I go about using the Accelstepper example but with RC pwm input instead of standard pots please?

  • @TheBoredRobotLLC
    @TheBoredRobotLLCАй бұрын

    If you're able to read signals from the remote control, you can map that to another variable that would directly drive the variable that is responsible for the movement of the stepper motor.

  • @alphacreations4558
    @alphacreations4558Ай бұрын

    Is it possible to stop the motor at same time with different position?

  • @TheBoredRobotLLC
    @TheBoredRobotLLCАй бұрын

    Yes, there are many ways to do that. There are stop commands within the library or send a signal to EN pin on the driver itself at the same time.

  • @andreweberjavorski2231
    @andreweberjavorski2231Ай бұрын

    thanks code works

  • @TheBoredRobotLLC
    @TheBoredRobotLLCАй бұрын

    Glad to hear it!

  • @30smindset
    @30smindsetАй бұрын

    It's really helpful! Thank you!

  • @TheBoredRobotLLC
    @TheBoredRobotLLCАй бұрын

    Glad it was helpful!

  • @user-nv3sb5hr2f
    @user-nv3sb5hr2fАй бұрын

    thanks a lot

  • @TheBoredRobotLLC
    @TheBoredRobotLLCАй бұрын

    Glad it was helpful!

  • @visheshsaxena6199
    @visheshsaxena6199Ай бұрын

    Hi great video. But my code does not work. It just displays a blank plot and says: Animation was deleted without rendering anything

  • @TheBoredRobotLLC
    @TheBoredRobotLLCАй бұрын

    Sorry to hear it doesn't work. If you want you can try copy and pasting the code: github.com/TheBoredRobot/KZread-Code

  • @xanderyesilirmak956
    @xanderyesilirmak956Ай бұрын

    Out of interest, if one motor is moved by hand when stationary, does the other motor follow the other still?

  • @TheBoredRobotLLC
    @TheBoredRobotLLCАй бұрын

    Yes, it should still work. If you ever tried to take the back of one of these motors off to expose the encoder, you're count should still go up if you move the encoder by hand. However, the motor shafts in this video are pretty hard to move by hand because of the gear ratio.

  • @seresmora
    @seresmora2 ай бұрын

    THANK YOU VERY MUCH, you saved me i was looking the documentation or arduino but couldn't find anything so thaaaank yoouuuuu

  • @TheBoredRobotLLC
    @TheBoredRobotLLCАй бұрын

    Glad I could help!

  • @Dracomance
    @Dracomance2 ай бұрын

    Hello bro I'm doing a project that will use 3 stepper motors So far I'm still in my prototype for this project (Of 3 engines I'm only testing 1) I was using the L298n driver I saw this driver there and found it more interesting The A4988 It requires less wire connected to Arduino, enabling a greater number of motors connected at the same time, interesting I would like to know if you have seen any difference in practice using these drivers, if, for example, it is more interesting to use an L298N or an A4988 to keep a stepper motor on for longer A big hug from Brazil :)

  • @TheBoredRobotLLC
    @TheBoredRobotLLCАй бұрын

    I really haven't tested both of them extensively. Both have worked for my projects in the past. If one of the options can clean up your wiring, then it would make sense to go with that one.

  • @emilianopelaezdiaz6263
    @emilianopelaezdiaz62632 ай бұрын

    No matter what value I put on the useState sentence, the plotter stays as default on the x-axis. Any suggestions?

  • @Jesse-fh2ox
    @Jesse-fh2ox2 ай бұрын

    did you close the plotter and restart it after changing the value?

  • @emilianopelaezdiaz6263
    @emilianopelaezdiaz62632 ай бұрын

    @@Jesse-fh2ox Yes, I did. I even restart the IDE, and also changed the value several times.

  • @TheBoredRobotLLC
    @TheBoredRobotLLCАй бұрын

    I really don't know of a solution to this without seeing the full picture of your system. Perhaps a reinstall might do the trick?

  • @GeekDetour
    @GeekDetour2 ай бұрын

    Ok.... but... why? ha ha ha. I was expecting a particular practical reason for that.

  • @TheBoredRobotLLC
    @TheBoredRobotLLC2 ай бұрын

    This video was made for a group of students who had built walking mechanisms that needed the linkages to be in sync. It was for a very specific project.

  • @harshad1435
    @harshad14352 ай бұрын

    I want to do this for arudino nano how much battery required for this and which one where to apply power in arudino nano there power supply pin

  • @TheBoredRobotLLC
    @TheBoredRobotLLC2 ай бұрын

    The nano accepts 7-12 volts and you would connect the positive end of the batteries to Vin and the negative end to any GND pin.

  • @TheMightyWej
    @TheMightyWej2 ай бұрын

    Amazing video and absolute gem of a channel! I have just started getting into robotics and had spent weeks struggling with how to solve this. Sod's law I found an old archived post that described something similar on the same day I found this video!! Just wish I had found this channel sooner haha :)

  • @TheBoredRobotLLC
    @TheBoredRobotLLC2 ай бұрын

    Glad to help!

  • @PeedrooHenriiquee
    @PeedrooHenriiquee2 ай бұрын

    hello. im performing a teste where i need that the sensorValue1 and 2 to be a float. because i need to be very precise. and so when i put float sensorValue1 and 2, in the python code, the append on the list does not accept float value to be assigned. Can you help?

  • @TheBoredRobotLLC
    @TheBoredRobotLLCАй бұрын

    It's really hard to say without seeing your code. Recently, I've just been sending my error messages into any of the AI chat bots to help give me insight into issues with my code that I write.

  • @user-vl6nu2tn5j
    @user-vl6nu2tn5j2 ай бұрын

    Is it possible for the motor '1' to go around 10 times, and the motor '2' to go around 1 time?

  • @TheBoredRobotLLC
    @TheBoredRobotLLC2 ай бұрын

    Yes that is possible. You would have to know the number of counts per revolution and then set that to be your desired position in your code.

  • @user-bk3zj2wd4d
    @user-bk3zj2wd4d2 ай бұрын

    It would be nice if you could be more specific about the parts you used, such as the potentiometer

  • @TheBoredRobotLLC
    @TheBoredRobotLLC2 ай бұрын

    The main parts are in the description. Any hobby level pot will do for this example. In the video, I used the ones from the Arduino starter kit.

  • @tb-vr1qv
    @tb-vr1qv2 ай бұрын

    I watched an hour and a half of videos trying to understand pull up resistors, this is the best video i found and now i get it. Thanks :)

  • @TheBoredRobotLLC
    @TheBoredRobotLLC2 ай бұрын

    Glad it helped

  • @alkimadsiz4867
    @alkimadsiz48672 ай бұрын

    Very helpful video thanks

  • @TheBoredRobotLLC
    @TheBoredRobotLLC2 ай бұрын

    Glad it was helpful!

  • @sarinashahhosseini
    @sarinashahhosseini2 ай бұрын

    Does synchronizing also depend on the initial position of the two motors? Since from the beginning we are counting encoder counts, then synchronization only can happen if the motors started at the same position.

  • @TheBoredRobotLLC
    @TheBoredRobotLLC2 ай бұрын

    For this simple example, it's assumed that the motors start at the same position. The motor positions are relative to the positions that the motors started at when the Arduino was powered up.