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

  Рет қаралды 149,142

CircuitBread

CircuitBread

Күн бұрын

Пікірлер: 97
@W1RMD
@W1RMD 2 жыл бұрын
I've got that exact same toaster!
@FASHIONIZE
@FASHIONIZE 5 ай бұрын
This is the best intro to microcontrollers i've found.
@seeking9145
@seeking9145 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 3 жыл бұрын
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.
@CircuitBread
@CircuitBread 4 жыл бұрын
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
@zayn7510
@zayn7510 4 жыл бұрын
the best video on the internet
@CircuitBread
@CircuitBread 4 жыл бұрын
Thanks Umair!
@bendustin7609
@bendustin7609 Жыл бұрын
Im so excited, thanks a lot
@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).
@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 :)
@shakesinthehouse
@shakesinthehouse 2 жыл бұрын
How’s prison Creed?
@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!
@dragonliu5350
@dragonliu5350 4 жыл бұрын
So good Chanel with so less fans.good luck
@CircuitBread
@CircuitBread 4 жыл бұрын
Thank you!
@jasonchiak6789
@jasonchiak6789 4 жыл бұрын
Awesome Wonderful Keep going ..... Well Delivered
@CircuitBread
@CircuitBread 4 жыл бұрын
Thanks Jason!
@Richie_
@Richie_ 3 жыл бұрын
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 3 жыл бұрын
Awesome!
@RixtronixLAB
@RixtronixLAB 11 ай бұрын
Cool info, well done, thanks for sharing :)
@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!
@hannahwells9397
@hannahwells9397 Жыл бұрын
I've been hunting for tutorials that go to the basics without using the arduou environment
@PriyaPriya-qm3pl
@PriyaPriya-qm3pl 9 ай бұрын
Very nice thank you dear
@raulcajacuri3930
@raulcajacuri3930 8 ай бұрын
thanks
@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
@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.
@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.
@Fnta_discovery
@Fnta_discovery 2 жыл бұрын
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.
@GaryCrowellJr
@GaryCrowellJr 5 жыл бұрын
OH YEEEEAH TURN ON THOSE LEDS!
@CircuitBread
@CircuitBread 5 жыл бұрын
😂
@ebenezerdzuwa2823
@ebenezerdzuwa2823 4 жыл бұрын
thanks what an awesome explanation.
@jayahanton7867
@jayahanton7867 4 жыл бұрын
Thanq
@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!
@juansauceda9656
@juansauceda9656 4 жыл бұрын
Great work!
@CircuitBread
@CircuitBread 4 жыл бұрын
Thanks Juan! Also appreciate the shout-out on Twitter!
@mikey38632
@mikey38632 10 ай бұрын
C'mon, you could fly to the moon with that!
@lecrammped9036
@lecrammped9036 20 күн бұрын
Tremendo
@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.
@abdulrahmanzam2803
@abdulrahmanzam2803 3 жыл бұрын
Hope you explain the transistor to us
@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!
@anyonecanmakeit718
@anyonecanmakeit718 Жыл бұрын
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.
@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.
@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
@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.
@seanlicht6083
@seanlicht6083 2 жыл бұрын
Can't find anyone that has 10f200 on hand will 10f220 be the same?
@CircuitBread
@CircuitBread 2 жыл бұрын
Yep, that should work just fine.
@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
@dynamogaming7521
@dynamogaming7521 4 жыл бұрын
Thanks sir
@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.
@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.
@samudayarajapaksha1468
@samudayarajapaksha1468 3 жыл бұрын
good start..
@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 9 ай бұрын
Is it possible to add , ram and rom to this smal simlpe microcontroller 😅?
@CircuitBread
@CircuitBread 9 ай бұрын
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.
@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: kzbin.info/aero/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.
@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.
@percutseituan
@percutseituan Жыл бұрын
saya berharap kita memulainya dari transistor yang sebenarnya hingga menjadi IC Macro Controller
@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,
@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.
@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 😂
@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!
@xtrlab2376
@xtrlab2376 3 жыл бұрын
Hii sir
@CircuitBread
@CircuitBread 3 жыл бұрын
👋
@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
Рет қаралды 534 М.
He bought this so I can drive too🥹😭 #tiktok #elsarca
00:22
Elsa Arca
Рет қаралды 48 МЛН
Microcontroller Showdown: Which One Wins for Your Project?
17:21
Predictable Designs
Рет қаралды 15 М.
An Introduction to Microcontrollers
40:59
Solid State Workshop
Рет қаралды 532 М.
How to get source code onto a PIC microcontroller
11:21
FriendlyWire
Рет қаралды 88 М.
I Designed My Own 16-bit CPU
15:46
AstroSam
Рет қаралды 2 МЛН
Smallest and cheapest microcontroller -  tutorial
9:15
Volos Projects
Рет қаралды 111 М.
Fun with Transistors
24:33
HackMakeMod
Рет қаралды 277 М.
Your first microcontroller project!
19:44
FriendlyWire
Рет қаралды 67 М.
What is a microcontroller? ft. Raspberry Pi Pico
4:29
Raspberry Pi
Рет қаралды 176 М.