author
1Instructables32,349Views42CommentsMexicoJoined August 3rd, 2014
I studied Digital Systems and Robotics Engineering. Currently I'm working as a Software Engineer. I love to do special projects on my spare time. After being waiting for the chance to buy a 3d printer I finally did it and now I'm kind of obsessed with it, despite I'm not a pro designer. Many things that I've learned were from people who shared, so I believe that the knowledge should be spread and shared all around the world. Cheers! -Cesar Nieto

Tell us about yourself!

Complete Your Profile

Achievements

10K+ Views Earned a bronze medal
Design Now: In Motion Contest
Contest Winner Second Prize in the Design Now: In Motion Contest
Robotics Contest 2017
Contest Winner Grand Prize in the Robotics Contest 2017
Show 2 More »
  • CesNieto commented on CesNieto's instructable DIY Vacuum Robot 1 month ago
    DIY Vacuum Robot

    It is actually really nice, the suspension on the wheels looks great. If it is to expensive you can try services like 3dHubs or maybe you can actually find someone who might be up to send you the printed parts for lowcost.

    Hi! The pololu motors of 6V can handle 12V but it might affect their lifetime.I recommend this ones:https://www.pololu.com/product/3056, their extended shaft will help when trying to add the encoders (which I recommend also to buy).Since they are 12V the current consumption is less.

    View Instructable »
  • CesNieto commented on CesNieto's instructable DIY Vacuum Robot 2 months ago
    DIY Vacuum Robot

    I have uploaded a new code, I changed a lot of things but I hope you understand everything. The pins for the motors changed and since you are using arduino Mega, you will need to verify the attachinterrupt() because it has different ones. I tested the code with one motor and it works nice, still it can be improved though.I saw your project on thingiverse and it looks really nice. Cheers!

    View Instructable »
  • CesNieto commented on CesNieto's instructable DIY Vacuum Robot 2 months ago
    DIY Vacuum Robot

    No worries. For the encoders it needs a bit more of code since they need to use Arduino interrupts and a PID controller. I have a project where I used a similar encoder so let me adapt it to this project and I will reply you soon. You can start by looking at those concepts to try to understand why we need them, you don't need to understand all the theory behind PID controllers, just a bit of intuition.

    View Instructable »
  • CesNieto commented on CesNieto's instructable DIY Vacuum Robot 2 months ago
    DIY Vacuum Robot

    Yes follow the steps and if you have any doubts, refer to the comments on this site from other users, that might help. The code is complete, it is not necessary to have the second LED unless you want to use it for something. Try to understand the code so that you can see where I'm using it and how to use it. See the Blink example on Arduino, that might help.

    View Instructable »
  • CesNieto commented on CesNieto's instructable DIY Vacuum Robot 2 months ago
    DIY Vacuum Robot

    Hi, the second LED is not connected but you can connect it on a free pin with a resistor 220 or 330 ohms and do some code for it. It is optional.

    View Instructable »
  • CesNieto commented on CesNieto's instructable DIY Vacuum Robot 3 months ago
    DIY Vacuum Robot

    Yeah, the bumper can definitely be improved, I saw some issues as well that can be changed like a larger bumper to cover all spots, different batteries like NiMh, a smaller microcontroller, etc.. If you have any idea you can model it and we can discuss it, it would be nice. It is great that you finished your robot! Any video? Congratulations! It would be nice if you try to see all the things that you consider should be improved and write them down for the 2nd version of this robot!

    View Instructable »
  • CesNieto commented on CesNieto's instructable DIY Vacuum Robot 3 months ago
    DIY Vacuum Robot

    Ok you will have to debug to improve the code. Open the Serial Monitor on the arduino to see what is happening. Here, you can print different things such as text, variables values, etc. Try doing that so that you can debug it. I will try as well to add the second push button and try to do some code for it. It can be happening that the pushbutton is giving wrong values while pressed which is called bouncing, for this it is necessary to add code for the debouncing. Search for it so that you can understand this behavior. Cheers!

    View Instructable »
  • CesNieto commented on CesNieto's instructable DIY Vacuum Robot 3 months ago
    DIY Vacuum Robot

    Is that condition inside the if(control)? I it should be inside that if. That If ensures that the battery will not be discharged by the motors anymore.

    View Instructable »
  • CesNieto commented on CesNieto's instructable DIY Vacuum Robot 3 months ago
    DIY Vacuum Robot

    Hi, wow it sounds pretty nice that you almost finish yours. I have also added the encoders to mine but I haven't implemented any code to them. I bought https://www.pololu.com/product/3081 and for them you need a motor with an extended shaft (product 3056), this ones are of 12V and will help with the battery current, I have tested them and although they don't have the same torque by suplying the 12V compared with the ones that I posted on this project, they seem to work fine, you can also consider ones with more torque. For the bumper, yes indeed I only used one pushbutton cause I had some problems but if you see the code you can add another variable for the second pushbutton and add the else condition for it. Let me know if you have troubles.

    View Instructable »
  • CesNieto commented on CesNieto's instructable DIY Vacuum Robot 3 months ago
    DIY Vacuum Robot

    Hi, yes definitely the sensors are the responsibles. Try to see the code to understand what is happening. Yes if the bumper senses, it will move to the left. on the line 205 of the code "else if (bumperState==0) ..." you can see what is happening. Please see my last comment to Stefanied because you will have to create a new function for your IR sensors, you have a similar problem. Maybe you can help each other.

    Hi, The logic seems correct but the sdSharp() function is specific for the Sharp sensors because they give an specific voltage per distance measured (Seeh their datasheet). In this case you would like to create a new function to measure the voltage that is being measured by your new sensor, so that you can understand it as a distance. For instance 5V could be 30cm 4.5V -> 20cm, etc. Try first building the bottom sensor and then you have to characterize it, that is, you have to put an object lets say at 0.5cm and see the voltage given, then every 0.5cm. So that you can have a small function (you can do it on excel and plot it to have the function). (This is considering that you are using other sensor different from the sharp sensor, which I will suggest) You can search how to build on...

    see more »

    Hi, The logic seems correct but the sdSharp() function is specific for the Sharp sensors because they give an specific voltage per distance measured (Seeh their datasheet). In this case you would like to create a new function to measure the voltage that is being measured by your new sensor, so that you can understand it as a distance. For instance 5V could be 30cm 4.5V -> 20cm, etc. Try first building the bottom sensor and then you have to characterize it, that is, you have to put an object lets say at 0.5cm and see the voltage given, then every 0.5cm. So that you can have a small function (you can do it on excel and plot it to have the function). (This is considering that you are using other sensor different from the sharp sensor, which I will suggest) You can search how to build one (http://www.elecrom.com/how-to-make-simple-infrared-sensor-modules/)

    View Instructable »
  • CesNieto commented on CesNieto's instructable DIY Vacuum Robot 3 months ago
    DIY Vacuum Robot

    I see the problem. Let me think what I can do to help you. I will try to build a simple code to test it.

    Hi, I have uploaded a beta sw for the side sensors. (VaccumCode_SideSensorsBeta_1.0.0) Let me know how it works! If you have also built it please send some videos and pictures, that would be awesome.

    It seems that the left sensor is causing that. I have sent you an inbox. Please Follow that steps so that I can help you.

    View Instructable »
  • CesNieto commented on CesNieto's instructable DIY Vacuum Robot 3 months ago
    DIY Vacuum Robot

    Hi, I didn't add the side sensors. But the robot supports them, you can add them and include them on the code. The code so far only includes the front sensors (2x sharp and 1 pushbutton of the bumper) There is an extra space on the bottom part of the robot to add two IR sensors for clift detection but I didn't implement them. (Try them and please share your improvements) Regards.

    View Instructable »
  • CesNieto commented on CesNieto's instructable DIY Vacuum Robot 3 months ago
    DIY Vacuum Robot

    Hi! Your robot looks great! Flip the bumber so that it doesn't exceeds the dimensions. I can't see your video, can you upload it on Youtube? So far it looks really nice, I saw that you redesign the model the grid on the back looks awesome, can you also share it?

    View Instructable »
  • CesNieto commented on CesNieto's instructable DIY Vacuum Robot 3 months ago
  • CesNieto commented on CesNieto's instructable DIY Vacuum Robot 3 months ago
    DIY Vacuum Robot

    Hi! It is amazing that you are building it. Please share the photos.I hope I understood well about the connection.I'm almost 98% that the diagram is correct. If you are using the same L298H driver you must be careful about the jumpers connected (the yellow rectangles), they make the battery power is given to the Arduino. You must also make sure that the grounds are connected correctly. Please let me know if you could fix it. And please let me know if there is any improvement to the diagram that you might want to share.Cheers! Good Luck!

    View Instructable »
  • CesNieto followed JON-A-TRON6 months ago
      • Perpetual Clock With Arduino
      • CNC Class
      • Split Flap Display
  • CesNieto commented on CesNieto's instructable Build Your Own Vacuum Robot 6 months ago
    Build Your Own Vacuum Robot

    Thanks a lot!

    That would be awesome. Actually, I'm thinking about adding the encoders for the motors and probably we will need more wires, so the PCB can help a lot. If you want, we can keep on touch to collaborate. Cheers.

    View Instructable »
  • CesNieto's entry Build Your Own Vacuum Robot is a winner in the Robotics Contest 2017 contest 6 months ago
  • CesNieto's entry Build Your Own Vacuum Robot is a finalist in the Robotics Contest 2017 contest 6 months ago
  • CesNieto commented on CesNieto's instructable Build Your Own Vacuum Robot 6 months ago
    Build Your Own Vacuum Robot

    Attached! Let me know if you have any doubts.

    I have updated this.Regards!

    View Instructable »
  • CesNieto's entry Build Your Own Vacuum Robot is a winner in the Design Now: In Motion Contest contest 7 months ago
  • CesNieto commented on cyrzee's instructable Modern LED Desk Lamp...Powered by 5V USB7 months ago
    Modern LED Desk Lamp...Powered by 5V USB

    Nice and simple! Nice job. Voted!

    View Instructable »
  • CesNieto's entry Build Your Own Vacuum Robot is a finalist in the Design Now: In Motion Contest contest 7 months ago
  • CesNieto's instructable Build Your Own Vacuum Robot 's weekly stats: 7 months ago
    • Build Your Own Vacuum Robot
      20,260 views
      378 favorites
      30 comments
  • CesNieto commented on ngadhno's instructable Contemporary Decorative Table Light7 months ago
    Contemporary Decorative Table Light

    It is a really nice project! I would love to have one of those on my bedroom.Cheers!

    View Instructable »
  • CesNieto commented on CesNieto's instructable Build Your Own Vacuum Robot 7 months ago
    Build Your Own Vacuum Robot

    It cost me around 150 dlls. But I didn't buy them on the cheap web sites. It can cost you 100 dlls if you chase the good prices.Looking forward to see what you do with this!Feel free to give me suggestions!

    Thanks for your comments. It is interesting what you've said. Of course they can get trapped and I've experienced that. The beta2.ino code includes a way to avoid being stuck on the corners, for instance. But I will actually take that as a challenge and see what I can do to avoid that. Maybe a camera to detect possible dangers? measuring if the robot fits? Could you please share with us under what conditions did your robot get trap themselves? That would be amazing.Regards!

    Thanks for your comments! It is actually a good math. I does long that time. I'm considering using a more powerful battery and maybe trying a way to charge the robot on a dock! (see other related comments )Looking forward to see what you do with this!Feel free to give me suggestions!Regards!

    In addition, the Beta2.ino code monitors the battery and it actually ensures the battery life. When the voltage drops below 11.6 it will turn the motors and fan OFF and will start blinking the led. You can change the limit and expect more vacuuming time but It could be dangerous.

    View Instructable »
  • CesNieto commented on CesNieto's instructable Build Your Own Vacuum Robot 7 months ago
    Build Your Own Vacuum Robot

    I hope so :D Thanks!

    Thanks for the feedback! Yes I will try to explain that much better. Still if you have any doubts please don't hesitate to ask. Cheers!

    View Instructable »