How to Use a Simple Microcontroller Part 1 - An Introduction (PIC10F200)

  Переглядів 141,909

CircuitBread

CircuitBread

День тому

How do you use a simple microcontroller? In this intro to our Simple Microcontroller series, we go over the plans and expectations for a set of 15+ tutorials that utilizes the one of the simplest and cheapest microcontrollers we could find, a PIC10F200. We discuss the importance of the lessons learned from these tutorials, both in understanding how microcontrollers work at their most fundamental level as well as how the low-level firmware that drives them works. We give some examples of the LED, robot, and communication projects that we will eventually go over and hopefully get you excited for this inexpensive, easy, yet foundational series on understanding basic microcontrollers.
The accompanying written tutorial, with a bit more detail and something you can go over at your leisure, is here: www.circuitbread.com/tutorial...
If you find this interesting, subscribe to CircuitBread for more videos on microcontrollers and other beginner and intermediate electronics!
Table of Contents:
0:00 Introduction
0:30 Tutorials are available as video or written on our webpage.
0:56 Why learning about simple microcontrollers is important even though we have Arduinos
1:20 Beneficial skills that would help understanding - electronics and boolean logic
1:48 Why we're using the PIC10F200
3:05 Why we're using Assembly language for this series
4:06 Disclaimer that we still love Arduinos!
4:26 Next steps for these tutorials
For electronics tools, tutorials, equations and more check out our site: www.circuitbread.com
And check out our Friends of CircuitBread, who offer special discounts, product samples, resources and more to our users: www.circuitbread.com/friends
CircuitBread is joining the fight to help people more easily learn about and use electronics. With an ever-growing array of equations, tools, and tutorials, we're striving for the best ways to make electronics and electrical engineering topics more accessible to everyone.
☕️ Buy Me A Coffee ➤ www.buymeacoffee.com/circuitb...
CircuitBread is and always will be free to its users but we’ll gladly accept any monetary appreciation you may send our way!
Connect with CircuitBread:
Instagram ➤ / circuitbread
Facebook ➤ / circuitbread
Twitter ➤ / circuitbread

КОМЕНТАРІ: 95
@W1RMD
@W1RMD Рік тому
I've got that exact same toaster!
@FASHIONIZE
@FASHIONIZE Місяць тому
This is the best intro to microcontrollers i've found.
@cking9145
@cking9145 4 роки тому
This is the first video I saw of this channel and I immediately subscribed. I like tutorials for explaining how things work and not only how to use them.
@CircuitBread
@CircuitBread 4 роки тому
Thanks for the feedback! That's why I love Sergey's tutorials, and his write-ups that we post on circuitbread.com are even better than my video versions in this regard. He is quite thorough in explaining the whys and hows.
@dragonliu5350
@dragonliu5350 4 роки тому
HAHA,i am also love this Chanel immediately,but i am will to watch more making videos than explaining videos.
@nathanthomas9395
@nathanthomas9395 2 роки тому
same
@SuryanshInstrumental
@SuryanshInstrumental 2 роки тому
Same with me bro😂😂
@SuryanshInstrumental
@SuryanshInstrumental 2 роки тому
I also see this video and subscribed this immediately😂😂
@jobbydude
@jobbydude 2 роки тому
Thank you for this amazing series! This will serve as an introduction for me to dive into electronics and microcontrollers with a better understanding of it at a lower level. Also exited to learn assembly. I can make projects with fewer and cheaper parts this time.
@bendustin7609
@bendustin7609 Рік тому
Im so excited, thanks a lot
@Bianchi77
@Bianchi77 7 місяців тому
Cool info, well done, thanks for sharing :)
@wunderkid8749
@wunderkid8749 3 роки тому
Wow. I'm glad that i found this channel. One subscriber for sure. Keep it up !
@CircuitBread
@CircuitBread 3 роки тому
Thanks, I appreciate it!
@jasonchiak6789
@jasonchiak6789 4 роки тому
Awesome Wonderful Keep going ..... Well Delivered
@CircuitBread
@CircuitBread 4 роки тому
Thanks Jason!
@shadadalhaj7576
@shadadalhaj7576 4 роки тому
Thanks for your easy way
@CircuitBread
@CircuitBread 4 роки тому
Thanks Shadad! We're really enjoying making this series, it has been a lot of fun so far. We have two that are being edited (one of which will hopefully be posted later today) and two more that we're hoping to shoot tomorrow - Sergey has been creating some really interesting tutorials!
@marcvandenhende5344
@marcvandenhende5344 4 роки тому
A thumbs up for the way you bring over the information. I do have my thoughts on the use of a pic though... PICs may be a good choice for when you have to do very simple things or just to learn how microcontrollers work at the lowest level. But I did a lot of PIC assembly language programming at work (pic16f and pic18f devices) and believe me, pics are definitely not a good choice for larger assembly language projects. The use of memory banks and the way conditional branching is performed makes programming errors unavoidable.
@CircuitBread
@CircuitBread 4 роки тому
Hey Marc, thanks for the feedback! Those are some great insights and I hope people see this when they're considering what to use for some of their projects. When Sergey and I were discussing this, we chose it because we wanted the simplest example possible to go over the functions of a microcontroller. We explicitly assumed that once people go through these, they'll have a better idea of what's going on at the fundamental / underlying levels but then move onto a complete different microcontroller (and probably change to C).
@CircuitBread
@CircuitBread 3 роки тому
Hi all! These microcontroller video tutorials are based on the written tutorials that Sergey has put together. He goes into *a lot* more detail in the code, the organization, and the schematics and I highly recommend you check out the accompanying written tutorial for each of these. For this introductory tutorial, you can find it here: www.circuitbread.com/tutorials/how-to-use-a-simple-microcontroller-series-intro-pic10f200-part-1
@Richie_
@Richie_ 2 роки тому
I've had an Arduino for 4 weeks now but I need to learn how microcontrollers work. I ordered a PIC10F200 for these tutorials.
@CircuitBread
@CircuitBread 2 роки тому
Awesome!
@christerranaldo906
@christerranaldo906 3 роки тому
I'm currently designing a device which counts Pull-Ups. I already shrunk the project down to just the Atmega328 chip but the costs of those chips is still a bit too much for production (I'm planning to produce around 10 devices). I hope this series will give me some insight in cheaper alternatives :)
@shaymendis
@shaymendis 2 роки тому
How’s prison Creed?
@hannahwells9397
@hannahwells9397 Рік тому
I've been hunting for tutorials that go to the basics without using the arduou environment
@PriyaPriya-qm3pl
@PriyaPriya-qm3pl 5 місяців тому
Very nice thank you dear
@dLLund
@dLLund 4 роки тому
could one cable directly from rs232 serial port on older computer to the rx & tx pins on the uC, to eliminate the pickit2/3 ? null modem, i assume [rx->tx & tx->rx], & pretty slow, maybe 1200 baud ? thank you for posting your fine series of tutorial videos. you've re-animated an old man's interest. used to program stepper controllers w/ n-codes, an ascii text editor, a simple rs232 cable, and a short basic program to down/upload. that was 30 years ago, however. thank you. dLLund
@CircuitBread
@CircuitBread 4 роки тому
Hi David! Actually, once you've programmed the PIC, you don't need the PICKit2/3/4 at all. You can provide power from another source and the RS232 is completely independent of the PICKits. And if you have an older computer, you won't need the USB-RS232 converter, though you will still need a logic level shifter as the voltage levels on the microcontroller and the voltage levels on the computer rs232 serial ports are different. That is the piece from Sparkfun that I bought a decade ago and is plugged into the actual breadboard. Thing is, even with an old computer, you could probably go significantly faster than 1200 baud (I guess it depends on how old the computer is) but that setup sounds like it would work!
@jayahanton7867
@jayahanton7867 3 роки тому
Thanq
@zayn7510
@zayn7510 4 роки тому
the best video on the internet
@CircuitBread
@CircuitBread 4 роки тому
Thanks Umair!
@raulcajacuri3930
@raulcajacuri3930 4 місяці тому
thanks
@dragonliu5350
@dragonliu5350 4 роки тому
So good Chanel with so less fans.good luck
@CircuitBread
@CircuitBread 4 роки тому
Thank you!
@ebenezerdzuwa2823
@ebenezerdzuwa2823 4 роки тому
thanks what an awesome explanation.
@Fnta_discovery
@Fnta_discovery Рік тому
Hello. often program the microcontrollers. I see bit shift right or left using symbol ">>". why we use it. I am waiting for your response thank you.
@randomassname42069
@randomassname42069 2 роки тому
Assembly is great for learning how a microcontroller works, but most c-compilers are way better than any beginner can write in assembly, it takes a lot of experience to really get anything out of coding in assembly
@CircuitBread
@CircuitBread 2 роки тому
Yeah, I'd agree with that wholeheartedly. For practical applications, the only time I've used assembly is embedded in C-code when I want to directly control how many cycles occur for timing purposes. Sergey may be able to write eloquent and efficient Assembly, but C is more up my alley.
@stnwrd
@stnwrd 2 роки тому
Barebones was what I was looking for. Simple and easy to use. I also like designing and making my own custom circuits. Making my own design and not using someone else design.
@abdulrahmanzam2803
@abdulrahmanzam2803 3 роки тому
Hope you explain the transistor to us
@elkelvinhobrook1143
@elkelvinhobrook1143 3 роки тому
Wow greatful
@saneeshelectronica9293
@saneeshelectronica9293 3 роки тому
i have a speedo meter works on encoder. encoder purse rate 0- 500 pulses per second on both channel A & B .my meter has 5% errror i wanted to feed this to micro controller and make 5% more pulses out put on both channel to compensate the error. (for examble if frequency 100 hz i need 105 hz output) could you please guide me
@CircuitBread
@CircuitBread 3 роки тому
Hi Saneesh, have you looked at our PWM tutorial? Did it help out? www.circuitbread.com/tutorials/pwm-led-dimming-part-7-microcontroller-basics-pic10f200
@tanishjeetsingh4350
@tanishjeetsingh4350 4 роки тому
Hey, Can you do a project on 8051 using assembly language.
@CircuitBread
@CircuitBread 4 роки тому
Hey Tanishjeet! Sergey and I are in discussions right now about what he's doing next 0 we have about five more tutorials on this topic we still need to wrap up. Honestly, though, it's unlikely it'll be on the 8051, though it is an option.
@brucelamb6060
@brucelamb6060 2 роки тому
Great intro! I think i'm sold on watching more. Before I do.. Is there software on "emulating" components such as the microchip/controller and various possible hardware? I would like to emulate and make sure it works before I go buy the real stuff and make it work. Very familiar with c++ and memory management. Little experience with MIPS32 assembly.
@bennyhinnsamuel3149
@bennyhinnsamuel3149 2 роки тому
Please can someone urgently help me with a guide of designing a pcb board or the circuit for pic mcu, just like the arduino board
@waltwilliams6012
@waltwilliams6012 3 роки тому
If you produced these videos in September 2019 why did you code it in the depreciated MPASM assembly?
@CircuitBread
@CircuitBread 3 роки тому
As far as I can tell, it was deprecated in May 2020, but it still sucks.
@GaryCrowellJr
@GaryCrowellJr 4 роки тому
OH YEEEEAH TURN ON THOSE LEDS!
@CircuitBread
@CircuitBread 4 роки тому
😂
@abhijeetkaware203
@abhijeetkaware203 Рік тому
Sir if i use pic12f508 instead of u told i just have to change library for that ic right?? Pls comment i m not getting pic12f200
@davidconner-shover51
@davidconner-shover51 Рік тому
for the size, not a bad one, I've done a single character display (20LEDs in a 4x5 grid) with no extra silicon with a 12c509 in the past, it had the room to implement 4 bits of shading, character maps, scrolling, messages. I used every last byte on it. ROM and RAM, however.
@allenchow-dc6br
@allenchow-dc6br Рік тому
Does all pic microcontroller do need Been program before use ?
@CircuitBread
@CircuitBread Рік тому
We go over everything that you'll need in a later tutorial, which includes a programmer (like a PICKit).
@allenchow-dc6br
@allenchow-dc6br Рік тому
@@CircuitBread good
@work1008
@work1008 4 роки тому
3:56 so what to use when going commercial?
@CircuitBread
@CircuitBread 4 роки тому
That's an interesting question! Like so many answers in engineering - it depends. What kind of application are you going for? If you want a simple, inexpensive chip to play a birthday jingle in a card, then the PIC10F200 may be the ideal solution. If you're looking for a robust ADAS solution that can handle touchscreen interfaces, dozens of peripherals, and still have real-time responsiveness, then Renesas has some great products. I'm curious if there are other people out there reading these comments that might have some more thoughts on this, though.
@seanlicht6083
@seanlicht6083 Рік тому
Can't find anyone that has 10f200 on hand will 10f220 be the same?
@CircuitBread
@CircuitBread Рік тому
Yep, that should work just fine.
@anokhautomation4453
@anokhautomation4453 2 роки тому
Please post more information about pic10.
@CircuitBread
@CircuitBread 2 роки тому
The first five tutorials are basically an introduction to the PIC10F200 (which, in many ways, represents the entire series). I'd also highly recommend checking out all of those tutorials in their written form that Sergey put together, there's a lot more detail. They're quite good!
@pietervanniekerk4453
@pietervanniekerk4453 4 роки тому
How about something with a STM30g030 form st
@CircuitBread
@CircuitBread 4 роки тому
Hi Pieter! We do have some STM projects we've been working on and it is also on the list of possible future topics, but probably not anything soon. For me, I actually have more experience with the STM32F than the the PIC10F, but Sergey is the driving force behind these and we'll see what he wants to do.
@samudayarajapaksha1468
@samudayarajapaksha1468 3 роки тому
good start..
@juansauceda9656
@juansauceda9656 4 роки тому
Great work!
@CircuitBread
@CircuitBread 4 роки тому
Thanks Juan! Also appreciate the shout-out on Twitter!
@oldguy8177able
@oldguy8177able 4 роки тому
yes i want to understand how these things work arduino good but i want to know more
@CircuitBread
@CircuitBread 4 роки тому
Cool! Yeah, the first 5-7 of these are really great at getting a better understanding of how the microcontroller works and how the commands in general work. The later tutorials start to focus more on applications and peripherals which are also very useful but it is a different focus.
@lct9031
@lct9031 2 роки тому
Is it possible to use micro python to code these chips?
@CircuitBread
@CircuitBread 2 роки тому
I'm not very familiar with micro python, but my understanding is that while it is compatible with some PIC's, the PIC10F200 is not one of them. If I'm not mistaken, it only works with 16-bit PICs.
@tomhankstomhanks2579
@tomhankstomhanks2579 5 місяців тому
Is it possible to add , ram and rom to this smal simlpe microcontroller 😅?
@CircuitBread
@CircuitBread 5 місяців тому
You can't add RAM and ROM to the MCU (well, technically, you could have some external chips) but you can just look at the PIC10F series and choose an option with more RAM and ROM.
@migkillerphantom
@migkillerphantom 4 роки тому
There isn't an order of magnitude difference in binary program size between asm and compiled C. The reason arduino code is huge is that it includes a whole bunch of standard library shit, defines a whole bunch of interrupts, and has a bunch of overhead for their own platform functions. Remove the static overhead and you will be left with binaries within the same order of magnitude in size.
@CircuitBread
@CircuitBread 4 роки тому
Thanks for the comment - you're right, it doesn't need to be that much bigger. In general, programming something in C versus ASM on the PIC they should be relatively similar in size and poorly written ASM code could easily be larger than well-written C code with a good compiler. But with Arduino, building an LED blinky program, the output code size it gives is an order of magnitude bigger than the PIC code of the same size. I don't know the inner workings of the Arduino well enough to say why, but in our tests, it's pretty clear. It would be interesting to know why.
@dynamogaming7521
@dynamogaming7521 4 роки тому
Thanks sir
@mauricioherrera2482
@mauricioherrera2482 3 роки тому
Thanks for the videos. Are You a Romulan?
@CircuitBread
@CircuitBread 3 роки тому
I've never done any genetic testing but physiologically, all indication is that I'm human. I'll let you know if I find out anything to the contrary!
@wayneeden98
@wayneeden98 2 роки тому
If anyone can help me figure out to build a small 2 inch by 2 inch circuit board that would direct electric current in 2 different directions, with 1 or 2 different micro electric motors, by turning a bolt in 2 different directions with something that you would hold in your hand, that's all I need, my door is open,
@Copynnpaste
@Copynnpaste Рік тому
What type of education do I need to learn all this
@CircuitBread
@CircuitBread Рік тому
It's helpful to have a bit of circuits background to understand some things that we skim over on that subject (we do have a basic circuits playlist - you don't need much past Ohm's Law to understand everything we do here: ukposts.info/slow/PLfYdTiQCV_p4IKgfbRML5EHFJPfBdW9Fv If this is your first foray into anything technical like this, you should be fine but I think it will just be all that much more important to go and read the written tutorials that Sergey wrote in addition to watching these videos. Between the written and video tutorials, you should be able to work through all these!
@Copynnpaste
@Copynnpaste Рік тому
@@CircuitBread thank you, I’m glad I ran into your Chanel. This is definitely something I’m looking to get into.
@percutseituan
@percutseituan 10 місяців тому
saya berharap kita memulainya dari transistor yang sebenarnya hingga menjadi IC Macro Controller
@mikey38632
@mikey38632 6 місяців тому
C'mon, you could fly to the moon with that!
@yasinozkan839
@yasinozkan839 4 роки тому
5:00 with the subtitles Conceptual-->sexual :) Who is the writer? By the way... Very fluent, comprehensive and understanable content. Thanks ^^
@CircuitBread
@CircuitBread 4 роки тому
Haha! Oh dang it - that's me. I obviously didn't do the greatest job cleaning up that text, I'll jump in and fix that now. Glad you enjoyed and thanks for pointing that out!
@unchayndspersonalaccount7690
@unchayndspersonalaccount7690 2 роки тому
But can it run Doom
@CircuitBread
@CircuitBread 2 роки тому
😂 I don't think so but there are smarter people out there than I.
@unchayndspersonalaccount7690
@unchayndspersonalaccount7690 2 роки тому
@@CircuitBread Haha there's a running joke of trying to get Doom to run on lots of different things. I think someone ran it on a printer, and I think someone even ran it on an Arduino Uno lol. As for running it on this tiny chip... it's a pretty far-fetched prospect 😂
@xtrlab2376
@xtrlab2376 2 роки тому
Hii sir
@CircuitBread
@CircuitBread 2 роки тому
👋
@thomasschuler5351
@thomasschuler5351 2 роки тому
zoom in - zoom out - zoom in - zoom out - zoom in - zoom out - zoom in - zoom out - zoom in - zoom out ... makes this video hard to watch
What is a microcontroller and how microcontroller works
10:55
ShortcutElectronics
Переглядів 508 тис.
Анита просто на химии, поэтому такая сильная
00:21
Женя Лизогуб SHORTS
Переглядів 2,8 млн
Teenagers Show Kindness by Repairing Grandmother's Old Fence #shorts
00:37
Fabiosa Best Lifehacks
Переглядів 18 млн
КИРПИЧ ОБ ГОЛОВУ #shorts
00:24
Паша Осадчий
Переглядів 6 млн
Что будет с кроссовком?
00:35
Аришнев
Переглядів 2,5 млн
Smallest and cheapest microcontroller -  tutorial
9:15
Volos Projects
Переглядів 104 тис.
#1099 How I learned electronics
19:55
IMSAI Guy
Переглядів 1,1 млн
How a microcontroller is made?
14:34
CompletTV
Переглядів 57 тис.
Learn PIC Microcontrollers Programming in 1 Tutorial
1:01:41
DeepBlueMbedded
Переглядів 187 тис.
A simple guide to electronic components.
38:06
bigclivedotcom
Переглядів 8 млн
What is a PID Controller? | DigiKey
22:19
DigiKey
Переглядів 57 тис.
Hacker's Guide to UART Root Shells
17:40
Flashback Team
Переглядів 449 тис.
Connecting a Relay Module to a Microcontroller
11:41
Brad Henson
Переглядів 204 тис.
iPhone 16 - Повернення ДО КЛАСИКИ
9:22
Svidomy
Переглядів 32 тис.
Samsung UE40D5520RU перезагружается, замена nand памяти
0:46
Слава 100пудово!
Переглядів 2,6 млн
Subscribe for more!! #procreate #logoanimation #roblox
0:11
Animations by danny
Переглядів 3,9 млн