11 Great Projects from 2019 - A New Year in the Workshop!

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
today in the workshop it's a brand new year I'll show you some of the projects I worked on on 2019 and discuss some new changes in store for 2020 have a happy new year and welcome to the workshop [Music] hello and welcome to the workshop and welcome to the year 2020 a new year has dawned upon us some people consider this to be the beginning of a new decade as well although I'm of the school of thought that says the decade starts next year because there was no year zero but whether or not you consider it to be a new decade it is certainly a new year and time for a lot of new beginnings for many of us and that is true here in the drone bot workshop so today I want to tell you a bit about what is going on here in the workshop going forward I will have a new video out for you in a couple of days as well and the first thing that's going on is you may not be seeing the videos as frequently I'm going to try to still get them out every Sunday but I'm gonna miss the occasional Sunday as I have recently and the reason is I want to focus this year more on quality than quantity last year I was really trying to go for quantity and I feel that the quality of a few of those may have suffered and I apologize for that there's a lot involved in making one of these videos as you might imagine I've got to get together some experiments write some code for it test everything film everything make the animated explainers and graphics to go along with the video write an article to go along with the video and put it all together all within the space of a week and at the same time I'm also working on a robot project and as I'm now a very old man I had a birthday recently I'm into my seventh decade it's a little too much for a one-person operation like myself so although I'll try to get the videos out to you every week I will be missing the occasional one now the best way to find out about when these videos come out is of course to subscribe to the YouTube channel and when you subscribe you'll see a little Bell notification hit that Bell and you will be advised every time I create a new video now another change in the workshop is the way that I'm taking suggestions for the content of the video last year we were doing it with the newsletter and it worked out very well for me there was a link to a survey in every newsletter and you could go to that serve and give me your opinion on the content you want to create it have some opinions on the content though it's planning on creating and it was very helpful in getting out the content that you would enjoy me making well this year I'm moving that survey over to the drone bot workshop forum and that way you will be able to do the same thing but you'll be able to see the results and you'll be able to discuss among each other what content you want created and the pluses of minuses of doing it and that way I'll get to really know what it is you want me to make now if you haven't joined the forum yet it's quite easy to do it's at forum drone bow or comm there's a new signup procedure in which you send me an email as opposed to filling out a form we're doing that because we had too many spam bots joining but it's a great way of signing up because it allows me to get to know you personally when you get on to the forum so it's kind of a win-win situation now we're also going to be having the newsletter a bit more frequently previously the newsletter came out about once a month or so this year if I'm making any New Year's resolutions and I usually don't make the mix-up they always make one resolution I know I can keep so this year I'm not going to be cruel to giraffes for example and living in Canada I could probably keep that resolution but this year another resolution I'll make is to try to get more frequent newsletters about every two weeks so they don't disturb you in your inbox but keep you informed about what's going on in the workshop because I have a number of new changes here a number of new changes I've made to the website and plus a new ones coming up and I want to keep you informed in that so if you haven't joined the newsletter yet please just hit the link right below the video and do that now today what I want to do is go and look back at some of the stuff we've done in 2019 it was a great year here in the workshop it had its ups it had its downs and I had a lot of cool projects that I created that a lot of you seem to enjoy so I want to go over a few of those you might be watching this on New Year's Day and you just want to do some binge watching well that would be great so these are some videos you can check out or you might be looking for a new project for the new year so let's go and take a look at the projects that we've worked on in 2019 now hearing the workshop we really like making things move we like making robot slow robot arms move and a variety of different devices using a number of different types of motors a lot of the times we focus on very tiny motors but occasionally we need to work with big motors and so I did a video on how you can control a large gear motor with an Arduino check it out so as we can see changing the pulse width modulation frequency definitely has an effect on the sound that our motors make however what effect is it having on the motor performance now one thing about PWM frequency is as the frequency goes up sometimes the efficiency of the motor tends to go down there's kind of a graph you can follow for that and there comes a point where if you increase the frequency you're going to really start decreasing the amount of torque that the motor can give and of course we want this to be a high torque motor that's why I bought these big motors and they're gonna have to carry a fair deal of weight around so I want them to be able to do that so in order to test this what I've done is I don't have any scientific lab testing that can measure torque but I decided to give it a real-world test and here's my real-world test we want to carry this around no this is a 10 kilogram bag of road salt now for those of you who don't live in winter climates you may not be aware that in the winter we spread down salt and sand in order to provide traction on the ice and the salt will actually melt the ice as well and this is 10 kilograms for those of you who don't speak metric 10 kilograms is 22 pounds which is why I'm straining a bit holding this thing now we're going to put this on to the robot and have it drive it across the room I'm going to start off at the same PWM frequency the Arduino used for 88 Hertz and then we're going to move the frequency up and see how it affects the performance of their robot so let me put this thing down and we'll get going with that test okay we've got the 22 pounds 10 kilograms of salt on the base along with a board which probably weighs close to a pound in itself and we're set to go I've got the PWM set at 3,000 Hertz and as you can see the square wave over there right now the power supplies on standby which is why it's not moving it's at a 50% duty cycle so it should go at half speed and I've only got a little space over here I can test it in but it should be good enough to see if we can at least move the motors and here we go and it seems to move rather well let me reverse it and try it again reverse [Music] and it looks like it works pretty well like it has no problem carrying ten kilograms of load plus that board plus its own weight so it's pretty high torque I would say we have no problem at three thousand Hertz moving everything around now large gear motors aren't the only large motors we worked with this year we also worked with this beast which is a very large stepper motor so check out how we used an Arduino to control this device so I've loaded the bounce example from accel stepper up to my Arduino now you can try some of the other examples as well all you have to do is remember when you're defining the stepper object to use the syntax that I showed you and you can change any of the existing examples you can of course also use other code that uses Excel stepper using one of these driver modules so all that remains to do is to put some power on and we've got it right at the end now Excel step four what it does is it accelerates the speed and then it rotates and then it decelerates and comes to a stop and then reverses and does the whole thing all over again and there you go now one thing you probably can't hear because I think my noise reduction technology is muting it for you but on the stepper drive where the fan does come on every time that I power it up and I haven't really felt any heat off of this I ran this the other day for a few hours there was a bit of warmth on the stepper motor of course I'm not driving it at anywhere near its full capacity it's full torque so what I'm going to do now is I'm still stepping this at 800 pulses per revolution I'm going to turn the power off for a moment and I'm going to use the dip switch on the side now they have a diagram here that tells you the microstepping as well as the current set up and so you need to set this up correctly make sure not to exceed the current of your stepper but I'm going to press this one down and that should cause it to only use four hundred pulses in order to do a rebel let's try it back on and it is moving faster definitely and so using micro stepping and the speed controls in Excel stepper or whatever sketch you're using you can control both the speed of your motor and to some degree its torque because different micro stepping modes will give you more torque now not every motor that we worked with this year was a massive motor we still worked with those tiny little motors that come with those little robot car kits and most of the time we use the L 298 and eight birds to control them because that's the standard way of doing it but I found a better 8 / H to work with it uses MOSFETs instead of transistors so it is much more efficient than the L - 98 n and the beauty is you can actually take the code you've already written for the L - 98 n and substitute this new H bridge in for it so let's take a peek at that and so here's our demonstration as you can see i've got the two potentiometers this is a and this is B and I've got my two motors mounted up here with a couple of wheels on them so we can watch them spin and this is a and this one over here is B I've got my power supply which in this case consists of four double A batteries to provide six volts here on this breadboard buried behind all these wires is the actual motor controller itself the TV 66:1 - FNG and of course my arduino uno and so now that I've got this all hooked up let's just simply take a look at it working I'm going to turn the pot from motor a turn it up the speed the motor be and I can vary the speed to both motors [Music] [Music] now one thing that you're going to find that you need when you're working with electronics is a source of power for your projects and of course there are many ways of providing electricity you can use batteries you could use a USB power adapter and with Raspberry Pi in Arduino projects you quite often can use the PI or the Arduino itself to power things up but there comes a time when you're going to want an actual bench power supply and in 2019 I constructed two of these now the first one I constructed used an old ATX computer supply and it can supply you with 5 volts and 12 volts at a reasonable amount of current so let's go take a peek at that project alright now here's my supply of place the front panel on and I've fastened it down and I've connected all the wires so it's actually just ready to test now I've got the switch on the back off when I turn it on the supply will go into standby mode and you can see the standby LED you can also see the power came on to my power meter and that's because I'm powering it from the standby power supply and again the power meter is just an optional thing but it seems to be working right now now if I go and measure the voltage however I won't have any voltage right now on any of my outputs and that's of course because the supply is in standby mode so let's place it in the power mode and the power good light comes on over here you may be able to hear a little bit of fan noise ELISA pretty quiet power supply and now here's my 3.3 volt it's actually measuring a little hot at about 3.5 volts and my 5 volts is just about bang on and my 12 volts the 12.1 7 volts is pretty good as well and so there you have it a bench power supply constructed from a ATX type power supply and this actually will be a very handy unit not only for the project I'm planning to use it for but for my workbench in general now of course I'm going to tell you a little bit about this power meter in case you want to add one of those on to your project so let's discuss that right now now that ATX supply is an excellent piece of equipment and if you don't already have a bench supply I highly suggest you to go ahead and consider building something like that you probably have an old ATX supply that you can get your hands on from an old computer and even if you don't they're not that expensive however one disadvantage they have is that they only provide fixed output voltages such as 5 volts and 12 volts and while those are indeed the most common voltages that we use in electronics there are times when we need voltages that aren't 5 volts 12 volts or 3.3 volts and so for that I built another power supply and this one has a variable output and a rather fancy display as well so let's take a peak of that project so here are the components I'm going to be using in my power supply of course you could use some different components you could certainly use a different case than the one that I used and if you wanted to use different modules that would be fine too the principle basically is that I'm going to take this power supply unit the one that is already certified and the one that works well and I'm going to use it with this module in order to provide a variable voltage output and a module over here that I'm going to be using for the 5 volt output but of course you could add modules if you want to the 3 point 3 and a 12 volt output you could do that bear in mind you need to realize the limitations of your power supply this one is 5 amperes what does a fair amount of current but when you start dividing it among a bunch of different outputs you have to remember it's the total of all the outputs that you're going to be able to get so here are the components this is a case that I purchased a knife did want to make the case look a little prettier I was going to paint it and I was going to add lettering to it but then I look my can of paint and realized that when you paint plastic although it dries in an hour it actually on plastic doesn't completely set the complete hardness for five to seven days and I wasn't willing to wait however I am going to be building this in a fashion that I can easily take it apart without having to unsolder anything and so I will probably down the road paint this I was going to paint the front and back panels what for these two panels white and then I was going to paint the rest of this blue because that kind of matches up my workshop and after I painted this one white and let it dry I was gonna use press-on lettering that I have used before on some of my projects and just label these things and then give it a coat of clear coat and that should make it look very nice and again I might still do that down the road so we're gonna have to settle with a bluey grey power supply but what I've done to the cases you can see is I kind of hacked out an opening for this over here I measured this and hacked it out over here you'll notice is some extra little lip area over here so to speak because of these little tabs on the back of this that allow it to snap into place now I know it looks kind of crude but the bezel on this will completely cover this so you won't see it and then I just drilled out some holes for the binding posts and these are my binding posts over here I've got two black ones a red one that I'm going to use for the 5-volt out and I was going to use the yellow one for the positive on the variable one mostly because the controls on this are yellow and I thought that it might match kind of nicely this is the coaxial powered jack for the back and I'm putting it over here on the back now if you wanted to you could put a switch on that I decided not to use a switch but if I had I probably would have put it on the back as well and here's the hardware to mount that power jack these little standoffs over here these two are for this regulator board and I'm going to mount it here you might be able to see that on the bottom of the case over here I have drilled a couple of holes and that's going to be where this mounts and so it's going to actually be a pretty easy build this is the rest of the hardware that came with this the the feet and some long screws that go through the case over here and hold the bottom on top together so a fairly simple build before we start building it though I want to test out these modules so let's bring these over to the other workbench and give these modules a test this is a variable one so I also want to set it to have a five volt output let's go do that now many of the times when you're constructing a project you need to add a display to that project and there are a variety of displays that you can use last year I showed you how to use a couple of different displays including organic light-emitting diodes or LEDs and so let's take a look at how you can use both I to see an SPI bus OLED displays in your project now here's our OLED demo wired up on a solderless breadboard with the i2c and power lines connected back to the Arduino and so let's start it up and run the Adafruit demo and it starts up with the Adafruit logo and then it starts drawing a number of patterns now as you can see this is a pretty bright display I've got all the lights on the workshop on right now and even under all my LED lighting you can still see this very clearly and it just runs through all of its different patterns right now it's showing a bit of text and you can see how small you can actually make the text on one of these displays and so it seems like our sketch is working now for our final look at the 32 line display I thought I'd try something a bit amusing now I've got two of these 32 line displays over here and they both have the same eye to see address in fact on this particular display I don't know of any way of changing that address I've got them in parallel on the i2c data bus right now now these are displays they are not sending data back to the date of bus they're simply picking it up so though although you normally don't want to I to see devices with the same address in this particular case I think we'll make an exception and let's take a look at what happens when I start the Arduino up and it's probably what you expected what happened both displays are showing the exact same thing now again this is working because displays are just receiving data from the Arduino they aren't sending any back if that was the case you certainly couldn't have two devices with the same i2c address and if you wanted to independently address these two displays of course you'd have to use two ones that had different I to C addresses but if you want to parallel a display this is actually a pretty neat technique that you can use now one excellent type of display that you can add to your project is a touch screen display because this is not only a display it's also a user interface and it can be a dynamic user interface as well and touch screens are very versatile and they come in a number of different forms including resistive touchscreens and capacitive touch screens now I'm going to be working with touch screens a lot more this year but last year I showed you the basics of using them by showing you how to use a resistive touchscreens with the Arduino was kind of a touchy-feely episode so let's take a look at a few highlights from that okay so here's our display as you can see it's a very simple hookup I've got the shield on top of the Arduino mega and the red green and blue LEDs through their associated dropping resistors are connected to three of the i/o pins on the mega and you can get at the i/o pins on the very end of the field without an extra adapter anything so that's very handy to be able to do that now I've also got my serial monitor up as you can see it's already displaying that it's done the LCD test it's found the correct driver and it has determined a resolution of the display as well so all that's left to do is to press some buttons and see what happens so let's press the red one and as you can see of course the red light came on and it stayed on and you'll see on the serial monitor that the event of both press and button zero and releasing it has been recorded let's do it again and we'll see again we've recorded another pressing and release of nth and the light is turned off it's toggled and of course this works with all of the lights and so you could see on the serial monitor as I'm doing it the events are being recorded and of course the lights are doing exactly what we would expect them to be doing now if you wanted to instead of hooking up three independent LEDs a red green and blue one you could of course just use an RGB LED and in that case you'd be able to dial up seven different colors now admittedly that's not the fanciest display but it's a good start for getting to work with liquid crystal displays and touch screens and the next time we work with touch screens we'll look at adding some additional controls on to our display now for 2020 and beyond I want to start working more with artificial intelligence and machine learning and so in order to do that I need a platform to build upon and last year I found what is probably the perfect one for experimenters it's the Nvidia Jetson nano it's a low-cost board that is capable of doing a number of machine learning and artificial intelligence applications so let's take a quick peek at the nano because we're going to be seeing a lot more of it here in the workshop this year so here's the Jetson Nano development board now I've got it all hooked up but I'm going to unhook it so we can take a better look at it so I'm just going to disconnect this which is the power supply an Ethernet cable a USB which in my case is going to a keyboard and a mouse and an HDMI and we'll take the Nano board off now before we look at the board I just want to show you the box the box came with this little stand which is rather amusing you place that in here and then you can just place the board on here and it gives you a convenient place to work on the board which I guess is pretty cool now let's just take a look at this side of the board over here as you can see we have a series of jacks on there the ethernet that's a Gigabit Ethernet there are four USB three jacks there is a HDMI and a DisplayPort output and these can both be used simultaneously by the way both at 4k video and over here is a barrel connector that you can use to supply 5 volt set up before amperes if you want a higher ampere supply now this connector over here the microUSB is only used for it up to two and a half ampere supply so if you want to use this in high powered mode you're going to need to use this power supply and when you do use that power supply there is a jumper here that you're going to have the jumper in order to take power from the barrel connector instead of the microUSB connector now down on here is a CSI connector not certain how well you can see that that's the connector for the Raspberry Pi camera there's a few other i/o connector over here power over ethernet connector down here down this side you'll see a 40 pin connector now that's a 40 pin GPIO and it's output pins are programmable but by default this is the same GPIO that the Raspberry Pi uses so you've got the ability to use some Raspberry Pi designs with the Nano although of course you won't be able to put a hat on top of here because of the heatsink now the heat sink itself sits on the nano module the nano module itself is an Esso dim module it's mounted on a socket I don't know if you can see the socket over here and when you remove it and you'll have to take these two screws off to remove it there is another connector underneath that's an m2 type connector that can be used to add a Wi-Fi and Bluetooth connection to the Nano now you'll also notice that the heatsink has four threaded holes in it this is for mounting a 40 millimeter fan if you want and this connector over here is for a 5 volt 40 millimeter PWM controlled fan so that's where you would connect it and so that is the Nvidia Nano in a nutshell the Jetson Nano now one of the neat devices we worked with last year were rotary encoders and they can be used in multiple applications and one application they can be used as a fancy potentiometer they're capable of continuous rotation and they're much more accurate another way you can use a rotary encoder is on the back of a motor in order to determine the motor position and I'll show you how to do both of these in my rotary encoder video so here's how we're going to hook up our rotary encoder test you will need an Arduino Uno a rotary encoder module a couple of LEDs I'm showing a green one and a red one but you can use any two colors that you like and a couple of dropping resistors for those LEDs I'm showing 220 ohms here but any value from 150 to 470 ohms would work well we'll begin by connecting the ground from the Arduino to the ground pin on the rotary encoder we'll connect the Arduino is 5 volt output to the V plus pin on the encoder digital pin 4 on the Arduino will be connected to the COK pin on the encoder and digital i/o pin 5 on your Arduino connects to the D T pin on the module now connect pin 8 of the Arduino to one side of a drop-in resistor connect the other side to the anode of one of the LEDs this will be the LED that indicates a clockwise rotation connect pin 9 of the Arduino to one side of a drop-in resistor and the other side of that resistor to the anode of the other LED this will indicate counter clockwise motion finally the ground of the Arduino is connected to both of the cathodes on the LEDs and this completes the wiring now let's take a look at the sketch we'll use to test our rotary encoder now one thing that we've worked with a lot in the drone bot workshop or sensors specifically sensors that can detect move and we've seen ultrasonic sensors we've seen sensors based on light we've seen passive infrared sensors and even using video cameras to detect movement but one of my very favorite sensors is one that we worked on last year and it makes use of microwaves it's a very inexpensive device and you can even use it without an Arduino or Raspberry Pi let's take a peek at that microwave sensor so here's a demonstration of the transmitter and receiver this is my transmitter side with the red LED and the receiver side with the blue LED and as you can see whenever I make a movement the microwave sensor is picking it up over here and transmitting that over to here now admittedly these are only a couple of centimeters apart but their range of these 433 megahertz modules is fairly reasonable you should be able to get it transmitting throughout your home especially if you take care of the antenna you'll notice that on these devices I've got some curled up wire over here and that creates a bit of an antenna now if you want to learn more about creating an antenna and optimizing these devices I'd advise you check out the other video that I did on the 4 33 megahertz modules it goes into much more detail but as you can see this seems to work pretty well whenever I make a movement over here that movement is transmitted and picked up over here so now we can remotely sense movement using this arrangement with two arduino z' and the RC wl0 five one six sensor now I could probably go on all day showing you videos that I did last year but of course we have to stop somewhere I'm going to show you one more now last year I did a video on using gyroscopes and in that video I put together a very simple little electronic level that used LEDs in order to indicate whether you were level or not and it's actually a pretty cool project I just built it on a little stick because it was an experiment but you could put this into a case and actually make it into a permanent device and so if you're looking for something to build into the new year this might be the ticket so let's take a look at that all right here's our demonstration all hooked up I'm going to plug the power into it right now and when you first start off remember it has to calibrate itself so you'll see nothing on the display at the beginning and there we go we have a display and also our Center led is lit because everything's pretty flat now let me lift up the end a bit and as we go up the yellow one and the red one and notice the pitch values there are negative I'll bring it back down to the center and move it up over here and they're positive and of course as we go above it just stays with the red LED because we've exceeded two degrees and move it back down into the center you can also see the roll values when if I rotate it you'll see that the roll values are changing as well and so there you go it seems to work very well and you could actually use this as a permanent project if you wanted to put it into an enclosure and maybe use a smaller Arduino with it and so our electronic level meter seems to work quite well now before you run off and start watching a few of the other videos and I hope that's what you're going to do after this I have a bit of a personal message that I'd like to deliver to each and every one of you this channel has been a real adventure for me I started off as someone who never appeared in front of a camera before and of taking it to the point where we now have as of today a hundred and forty five thousand subscribers and it really means something that a hundred and forty-five thousand people took the time to click that little subscribe button because they wanted to see more of what it is I'm producing and back in July last year July 27th to be exact the channel hit a milestone we turned the odometer on 100,000 viewers and a few weeks later I got this in the mail this wonderful little plaque from YouTube this is a silver play button and this is displayed proudly on my wall along with this which is a letter from the CEO of YouTube congratulating me for this and boy that really meant a lot to me and so to each and every one of my subscribers thank you so much for making this possible now if you haven't subscribed yet please do because there's a gold version of this and I'd like to get that as well and I only need eight hundred and fifty five thousand more of you to do that so if you haven't subscribed please do and if you have I'll just tell 855 thousand of your friends and I'll be there so until the next time we meet please take care of yourself please once again allow me to wish you a very happy healthy and prosperous 2020 I hope all of your wishes come true this year and I will see you again very soon here in the drĂ´me bot workshop goodbye for now [Music] you
Info
Channel: DroneBot Workshop
Views: 74,637
Rating: 4.9272432 out of 5
Keywords:
Id: im3MZ1zJFRM
Channel Id: undefined
Length: 36min 4sec (2164 seconds)
Published: Wed Jan 01 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.