#1 Say NO to ARDUINO! New ARM Microcontroller Programming and Circuit Building Series

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hi my name is patrick and i make tutorial videos  on microcontroller programming basic circuit   building and random cnc stuff in this video  i'm going to introduce the arm microcontroller   because i'm making a new series for the arm  microcontroller programming and basic circuit   building if you're new to this channel welcome if  you're not new to the channel then you're probably   familiar with the arm microcontroller tutorial  series i'm going to be redoing that series   using a more appropriate ide the stm32 cube ide  this id is an eclipse ide that is tailor-made for   the stm32 microcontroller in the video series  i'll be referencing a book that i just wrote   titled arm microcontrollers programming and  circuit building and this is volume one there   are going to be multiple volumes i'm going to  be organizing this arm video series in a way   that is more natural or organic where i'm going  to go into a specific application of robotics   develop certain parts of that robot during  that development process i'm going to be using   the the book that i wrote using it as a reference  and going into the details of this development   and showing how i designed the part of the  robot or the process of the robot and how   i'm programming it the detail of this development  will be very basic so anybody can understand it   i'll be going into aspects of communication  control motor control servo control   sensing the environment such as sensing tilt  or angular velocity in the video series i also   may get into the development of the product  through cad software like eagle or keycad   making the schematic in the software producing  the pcb and arranging the devices and traces there   are a couple of ways to get into microcontroller  programming and creating circuits one of the ways   is using an arduino an arduino is a ready-made  circuit that allows you to plug in shields of   various types to gain functionality or you can  start with a basic chip like this this is an stm32   microcontroller it is an arm based chip so what  is a microcontroller a microcontroller is a device   that can receive input as in ones and zeros can  receive input and communication from other devices   like a computer or from various various devices  that provide different types of communication i   can receive an analog voltage using the onboard  analog to digital converter so it takes an analog   voltage which can be anywhere between zero  and let's say 3.3 volts and convert that into   a digital number the microcontroller can also  output it can create an output in the form of   a 0 or a 1 which is a high voltage which is like  3.3 volts you can control devices using this type   of output like say turning on an led or turning  off an led communicating with devices like like   an lcd turning on and off various digital lines of  an lcd you can also output a digital like analog   signal called a pwm pulse width modulation  where it outputs a digital signal that can be   between 0 and a voltage reference like 3.3  volts and anywhere in between one of the   coolest things about the microcontroller is that  you can sense the environment and that's part of   an input specifically it could be an adc where  you're sensing temperature and it would be   the temperature would be converted to a voltage  and then you can convert that voltage into a   number on the microcontroller specifying the  temperature you can also control much higher power   devices with microcontrollers microcontrollers are  everywhere they're used in almost every electronic   device that would be inside of a home or inside of  your car these microcontrollers are used in smart   home devices and the internet of things wireless  devices washing machines tvs monitors computers   it controls the efficiency of your engine in your  car it's used in robotics microcontrollers can   also be tied together to create a much more  complex system microcontrollers are used in   critical applications where lives are dependent  on the functioning of the market controller   the arduino platform is great for creating  one-off projects and you don't plan on   going into production with uh with the project  so if you have a small project that you want to   get a very quick outcome to the project you could  use an arduino plug in the shields that you need   program the arduino very quickly but it would be  very difficult to go from a one-off project using   the arduino to a production-ready circuit to sell  to the masses if you wanted to take this one-off   project and you decided to go to market with it it  would be more difficult to create an efficient and   cost-effective circuit starting from the arduino  if you're starting your project from the actual   chip itself and building from that chip out using  only the components that you need then you you've   already built in a more efficient design for  the project it might be a little bit more   involved in creating the circuit for it but you  get you're gaining an intimate knowledge of the   circuit itself you have a more efficient and cost  effective circuit so if you do go into production   you don't need to spend a lot of money on a lot  of the other parts that would come on a circuit   like this if you wanted to go from your one-off  project and you've decided okay it's time to   make this an actual product you would need to  understand how the circuit works internally   you would obviously want a product that  is cost effective and efficient in design   when creating a product the number of components  that you put on the product costs money and you'd   want to make sure that that product has the fewest  components necessary there's a lot of stuff that's   on the arduino that may not even be necessary for  the product you may not want a crystal oscillator   this particular button this header an external  source for power you may want to use battery   any of these capacitors there are a few other  chips that are here that obviously cost money and   you may not need those one of them is to provide  usb communication with the arduino platform   you're bound by a particular chip that they put  on their boards when you're developing from the   bear chip you're not bound by any specific chip as  long as you know the fundamentals of programming   from the bare chip there's a wide selection  of arm-based chips out there in the stm32 line   you can pick from the cortex m0 all the way to  the cortex m4 in this series i teach using the   cortex m0 but the fundamentals are all the same  so when you program for the m0 you can pick up the   m4 and there might be some variations in the  data sheet but that's easy to just reference   when you need to so why did i select the arm  microcontroller over like an atmel microcontroller   by the way atmel also make our mic controllers but  this particular one is the avr series i've always   wanted to get into the arm architecture rather  than sticking with the avr and i was looking   for some some chips to use and i found the stm32  which is a very very inexpensive chip compared to   the atmel avr series which is has fewer features  than the the arm stm 32 chip i believe when i was   purchasing these i think these were like  five dollars and these were two dollars   i don't know what the prices are right now off the  top of my head but these are significantly cheaper   and they have so many more features than the the  avr microcontrollers the programming that you have   to do to make an arduino work and the program  that you have to do to make a chip function   in the same respect as the arduino is very very  similar you're using the same programming language   c or c plus with the arduino you're plugging it  into the computer and you're creating a sketch a   sketch is just the program and it's based in the c  plus plus or c programming language the same thing   goes with the bear chip you're programming  in c or c plus plus when you're programming   for the bare chip you're creating programs  that is more fundamental to the chip itself   so the microcontroller that i'm holding in my  hand right now you know it's it's obviously very   difficult to to interact with this microcontroller  the way it is here that's why the arduino is   so attractive because it's so easy just to plug  into the computer and get started immediately but   microcontrollers can be broken out into pins like  this where you just plug this into a breadboard   and breadboards are used for prototyping  electronics where you develop your circuit   on the actual breadboard itself where you have  all of your discrete components taking advantage   of the pins of this microcontroller this is an  example of of how you use the microcontroller so   you have the microcontroller like this that is in  the middle of the circuit board here the circuit   board is only the microcontroller and it's broken  out into these pins that's it there's no other   components on this circuit board so you know that  you're you're designing specifically for this   particular chip and then when you go to create  your product all of the components you add around   the microcontroller you can easily design in your  pcb designing software when you decide to put out   a product and this particular example of a circuit  the microcontroller is connected to an lcd screen   here and there's a potentiometer or a trimmer  providing an analog voltage to the microcontroller   similar to the way you would use a shield or  some other device with the arduino with the   bare chip you're going to be using passive  components like resistors capacitors diodes   leds but you can also use development boards from  the manufacturers the manufacturers will provide   free samples of their application circuits or  their boards for instance like an imu an inertial   measurement unit that contains accelerometers and  gyros you can find these development boards from   manufacturers websites you can get free samples  of them because they want you to develop with   their chips and their components their devices  and uh and they give you the application circuit   in their data sheet so all you'd have to do is  apply that application circuit to your product   and you have that taken care of this is a passion  of mine and i hope these videos show this passion   and i'm really excited about it and i hope  you join along with with me in this journey
Info
Channel: BuildYourCNC
Views: 145,299
Rating: undefined out of 5
Keywords: arm processors, arm architecture, arm microcontroller tutorial, ARM programming and circuit building, arduino, arduino tutorial
Id: ftjQ6YelAXE
Channel Id: undefined
Length: 12min 1sec (721 seconds)
Published: Fri Jan 21 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.