Your first microcontroller project!

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 พ.ย. 2024

ความคิดเห็น • 312

  • @someoneheh3339
    @someoneheh3339 4 ปีที่แล้ว +15

    Thank you soo much ! Like I literally had so much joy watching your video and I’m sure I’ll watch all the videos, you’re nice and I can sense the passion you have, I understood EVERYTHING which is life saving for me thank you and don’t stop!!!

    • @FriendlyWire
      @FriendlyWire  4 ปีที่แล้ว +2

      Thanks! I am glad you find it useful! Do you have anything you want to see explained with microcontrollers? Let me know :)

  • @memirandawong
    @memirandawong ปีที่แล้ว +4

    Nice! The big picture in less than 20 minutes!! An engineer friend of mine loved using the PIC series micro-controllers, He jokingly referred to them as "trailing edge" technology. But in reality he used these in all his designs and products due to their ease of use, reliability and cost. Sounds like engineering to me!

    • @FriendlyWire
      @FriendlyWire  ปีที่แล้ว

      Thank you, Michael! Sure thing, a PIC16F627A (the chip in this video) is not an ESP32 with WiFi connectivity and all other bells and whistles, I could not agree more. But I am always amazed how versatile these comparatively simple chips are, and I think for hobbyists who want to develop a deeper understanding of microcontrollers these mid-range PIC controllers are an ideal compromise between functionality and complexity. Thank you for your kind words and for stopping by, have a great rest of your weekend, Michael!

  • @mdmustafizurrahman3504
    @mdmustafizurrahman3504 ปีที่แล้ว +1

    Created my first project watching your tutorial
    Alhamdulillah ♥ ♥

    • @FriendlyWire
      @FriendlyWire  ปีที่แล้ว

      This is fantastic, great job! I am happy to hear it, and thank you for sharing! :-)

  • @anoniem012
    @anoniem012 3 ปีที่แล้ว +8

    May Allah bless you with Islaam, this was useful. Alhamdulillah.

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว +1

      Thank you, Tarik, glad you liked the video! :)

    • @JA-ur8ob
      @JA-ur8ob ปีที่แล้ว +1

      Hahahaha amen brother.

    • @andyrandy2278
      @andyrandy2278 4 หลายเดือนก่อน

      What does Islam have to do with anything here my guy? Are you mentally ok?

  • @engr.ziyana.hameed1421
    @engr.ziyana.hameed1421 7 หลายเดือนก่อน +1

    Hi, My Name is Ziyan an Electronic Instructor from Sri Lanka, you are explaining great, All the best.

    • @FriendlyWire
      @FriendlyWire  6 หลายเดือนก่อน

      Ziyan, thank you so much for your comment, it made my day! All the best wishes from Germany!

  • @FW190D9
    @FW190D9 8 หลายเดือนก่อน +2

    Great Videos, they are extremely informative !!

    • @FriendlyWire
      @FriendlyWire  8 หลายเดือนก่อน

      Thank you so much, I am glad you find them helpful! :)

  • @alphahr
    @alphahr 3 ปีที่แล้ว +2

    Very good. I have been doing PIC microcontroller since 1999 and really enjoy creating projects with many different types

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว +1

      Hey, that's awesome! Glad you like my video. Do you have anything you would have liked to learn, as a beginner, as an idea for me to cover in a future episode? :)

    • @raymondheath7668
      @raymondheath7668 3 ปีที่แล้ว +1

      @@FriendlyWire the new mplab X really intimidating. I think I'm still using 8.6 or something like that

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว +1

      @@raymondheath7668 Yeah, I know what you mean. When I updated my computer I had to switch to MPLAB X as well. Was there something unclear or confusing in my video? If yes, let me know, I will do my best to explain it better :)

    • @alphahr
      @alphahr 3 ปีที่แล้ว +1

      @@FriendlyWire I think the modular approach of MP10 is more cumbersome and requires much more input, thus more instruction steps to memorize. I'm used to the older IDE and the ease of typing in an assembly or C program and immediately programming your chip

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว +1

      @@alphahr There is a chance you know the depths of MPLAB X IDE more than I do :) You have been working on microcontrollers for more than 20 years, yes? For simple projects I found it quite easy to use since most of the default settings are what you need, I think.

  • @rafaeldavies4144
    @rafaeldavies4144 3 ปีที่แล้ว +2

    Thankyou Yens. Brilliant. After being convinced I had burnt my first Pickit3 clone out... I've now at last succeeded with the second one... and then the original one (happily fine after all) Your instructions had just enough background, and were clear and easy to follow. Nice that you put the config in the main.c to make it easier, and that you used config bits for it. I've watched several people's videos and yours was the one that finally worked. You should remind ppl about the polarity of the power supply, as if you put it on the wrong end of the breadboard... the polarity is reversed... yes I was that stupid!

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว

      Hey Rafael, thank you for your kind words, and congratulations on your first project! The first project is always the hardest, so it's a fantastic accomplishment that you persevered and made it through to completion! I think I will redo this video here at some point (maybe with a different example) and I will be sure to mention the polarity then, this is a very good point! Thanks again, and have a great day!

  • @ArifBillahOnGoogle
    @ArifBillahOnGoogle 3 ปีที่แล้ว +4

    Fantastic tutorial for the beginners. Thank you.

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว

      Thank you, Arif, I am so glad you like it! Do you have anything you want to see next on the channel? I am always looking for suggestions! Have a great day :)

  • @muhammadbilal2000
    @muhammadbilal2000 ปีที่แล้ว +2

    You had done it so nicely. Learning quite much from your channel. Thanks man.

    • @FriendlyWire
      @FriendlyWire  ปีที่แล้ว

      Thank you so much, Muhammad, it means a lot. How did you find my content? And what else would you like to learn? I am always interested in your stories and plans for future tutorials that you may find useful. Have a great day!

  • @staycool4349
    @staycool4349 3 ปีที่แล้ว +2

    Thank you, best thing about you is you just don't teach it, you teach it gently.

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว +1

      Thank you, glad you like the video :)

  • @jaren4410
    @jaren4410 4 ปีที่แล้ว +2

    its my first time see video on youtube without dislike .

    • @FriendlyWire
      @FriendlyWire  4 ปีที่แล้ว +1

      Thanks for bein here :) I am glad the video is useful!

  • @Alex-rv8gw
    @Alex-rv8gw 2 ปีที่แล้ว +1

    Recently I did see you updated any Pic microcontroller series

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว

      Hey Alex, thanks for commenting :) I am not sure if I fully understand, can you explain more what you mean? Thanks!

  • @chih01yi86
    @chih01yi86 2 ปีที่แล้ว +1

    Great job, thanks your efforts. I come from Taiwan, I feel sorry for students in Taiwan,I can not see any one from Taiwan.

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว

      Glad you like the video! :)

    • @NeerajKumar-po6gh
      @NeerajKumar-po6gh 4 หลายเดือนก่อน

      It's really very strange
      Hello from India

  • @hobbyelectronics2121
    @hobbyelectronics2121 3 ปีที่แล้ว +2

    Complex concepts but explained in a very easy way. Everybody can learn electronics. Great Work!.

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว

      Thank you, glad you like it! Any ideas or suggestions for future videos? :)

  • @jamesdyer2219
    @jamesdyer2219 4 ปีที่แล้ว +3

    I have an upcoming project and this video really helped in a huge way!

    • @FriendlyWire
      @FriendlyWire  4 ปีที่แล้ว +1

      That's fantastic, James, I am very happy to hear that! Let me know if you have any questions or future PIC micocontroller topic suggestions :)

    • @jamesdyer2219
      @jamesdyer2219 4 ปีที่แล้ว +1

      I actually do have question(s) pertaining the coding part of the project. I did everything step by step by still at the end I keep getting “Built failed “ Error

    • @FriendlyWire
      @FriendlyWire  4 ปีที่แล้ว

      @@jamesdyer2219 Oh no! My email address is on www.friendlywire.com (scroll to the bottom), send me your code and a screenshot of the error message. We'll make it work :)
      //edit: To anybody else reading this: it turned out it was a simple typo on James's end, but now we got it working. Code in the video is fine.

  • @b-jail7731
    @b-jail7731 2 ปีที่แล้ว +1

    Thank you so much Sir.This tutorial is very useful.I’ve learned many things from this tutorial.

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว

      Thank you, I am so glad to hear it! If you liked it, make sure to check out the other PIC microcontroller videos on my channel as well :)

  • @hemashri
    @hemashri 7 หลายเดือนก่อน +2

    this tutorial is great. Thanks.

    • @FriendlyWire
      @FriendlyWire  6 หลายเดือนก่อน

      Thank you so much, glad you like it!

  • @luisfigueroa6475
    @luisfigueroa6475 2 ปีที่แล้ว +1

    Te veo por primera vez desde Alemania, muy buen tutorial!

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว

      Muchas gracias! I am actually from Germany :)

  • @karkerav1175
    @karkerav1175 2 ปีที่แล้ว +1

    Many thanks for these tutorials, meanwhile would request you to kindly put up Embedded C tutorials with theoretical and practicals also assembly language tutorials in depth would be much grateful for this...! Again many thanks!

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว

      Thank you for your kind words! :) I am always thinking of ways to explain programming in C better. What do you think about the latest video where I go through how to code an entire program line by line? th-cam.com/video/oq0E5sjUxk8/w-d-xo.html Thanks again for your message, it's always super helpful to learn which areas I can improve!

    • @karkerav1175
      @karkerav1175 2 ปีที่แล้ว +1

      @@FriendlyWire Oh, goodness many thanks for your reply, I am from old school when there wasn't any PC nor programming in the '70 here, so we were on analog electronics and on fringe of digital electronics but on the way picked up things learning bit by bit... but certain lines and codes doesn't get in me..! Your method and practical approach I do like it and highly appreciate it. By sheer Grace I came across your tutorial today and now on you can mark me as your ardent follower ! I am just going through the link you sent me and hope to be in touch with you Sir! Can I have your email so I can be in touch.. Kindly let me know.. With best and warm regards..!

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว

      @@karkerav1175 Happy to help, and thank you for your kind words! You can find my email address at the bottom of my website www.friendlywire.com

  • @Ali_Babao_01
    @Ali_Babao_01 หลายเดือนก่อน +1

    Thank you soo much, Please continue

    • @FriendlyWire
      @FriendlyWire  หลายเดือนก่อน +1

      Thank you so much! I moved internationally so I had a bit of an adjustment period getting the lab back together, but I am already working on the next video :)

  • @alanturner1184
    @alanturner1184 หลายเดือนก่อน +1

    Another interesting video thank you

    • @FriendlyWire
      @FriendlyWire  หลายเดือนก่อน +1

      Thank you, I am glad you found it useful! :)

  • @akshaygs292
    @akshaygs292 2 ปีที่แล้ว +1

    Great Content!!
    Please do a Universal Bootloader video, The cost of a PICKit tool is a bit towards the pricey side, It would be a great option to reduce the learning cost.

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว

      I am glad you like it! It's a great idea and a very good suggestion, but a bit outside my scope. If I may ask, how much does a PICkit cost, compared to a PIC, where you are located? And what would you consider a fair price for a programmer? :)

  • @jdean2131
    @jdean2131 2 ปีที่แล้ว +1

    Well explained…Nicely Done ✅

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว

      Thank you so much, glad you like it! Make sure to check out the other tutorials for PIC microcontrollers I have on this channel, if you are interested :)

  • @brucelamb6060
    @brucelamb6060 ปีที่แล้ว +1

    Thank you for this video. This might be the only video where you demonstrated a working chip off of an external source. Will this work off an external direct 5v source with no regulation?

    • @FriendlyWire
      @FriendlyWire  ปีที่แล้ว

      Glad you liked the video! By "external source" you mean anything that is not a battery? Yeah, these breadboard adapters for USB are quite practical to power small projects that do not need too much current. In my experience I have found it sufficient to add a 100uF capacitor for stability, and as long as the power draw doesn't change drastically, your microcontroller will be happy with that voltage of roughly 5V. If you want to do precision measurements, or anything critical, you should of course use a dedicated power supply. What kind of project do you have in mind, if I may ask?

  • @abdullahshamim2218
    @abdullahshamim2218 5 ปีที่แล้ว +2

    Got here from Instagram. Great work

    • @FriendlyWire
      @FriendlyWire  5 ปีที่แล้ว

      Thanks a lot! Let me know if you have any questions :)

  • @muralivanapali1278
    @muralivanapali1278 4 ปีที่แล้ว +1

    Great job👍.. I really like this video and thanks for explanation... All connections are understand...

    • @FriendlyWire
      @FriendlyWire  4 ปีที่แล้ว

      Thank you, I am very glad you found it useful! I have more videos on PIC microcontrollers if you are interested, with more to come in the future :)

  • @SuperYusuf1
    @SuperYusuf1 4 ปีที่แล้ว +2

    Nice your work is just rite for me Thank You

    • @FriendlyWire
      @FriendlyWire  4 ปีที่แล้ว

      Thanks, Yusuf, glad you like it and happy you are here!

  • @DominicKumar06
    @DominicKumar06 2 ปีที่แล้ว +1

    Thank you so much for these videos. Can you also add basic electronics tutorials as well ?

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว

      Thank you, Dominic, glad you like the videos! What kind of basic electronics are you thinking? I am always looking for new suggestions :)

    • @DominicKumar06
      @DominicKumar06 2 ปีที่แล้ว +1

      @@FriendlyWire about resistors, capacitors , diodes, using multimeters etc etc

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว

      @@DominicKumar06 Thanks for the ideas, I will see what I can do! :)

  • @malikamir120
    @malikamir120 4 ปีที่แล้ว +2

    Bro all ur videos are amazing ur approach of delivering is fantastic, u attach all the required dox., Materials list etc in the links. It future is bright in Electronics & TH-cam......Keep it up bro👍👍👍

    • @FriendlyWire
      @FriendlyWire  4 ปีที่แล้ว +1

      Thank you for your kind words, Amir, this means a lot. I am glad you like the videos! The next video will be without microcontrollers again, but I have many more planned. Is there anything that you are interested in? I am always eager to learn what my viewers want to see more :)

  • @samudrapanda3990
    @samudrapanda3990 2 หลายเดือนก่อน +1

    Nice Video... Thanks a lot

    • @FriendlyWire
      @FriendlyWire  หลายเดือนก่อน

      Glad you like it, and have a great day! :)

  • @aneesmohammed7135
    @aneesmohammed7135 ปีที่แล้ว +1

    I have a dspic30f2010 microcontroller...need to begin with this kind of led blink program.....still confused with configuration bits done initially....please help me

    • @FriendlyWire
      @FriendlyWire  ปีที่แล้ว

      I have never worked with the dspic30f2010 before. Let me ask you, have you set up the project in MPLAB for the dspic30f2010 already, following similar steps as in the video?

  • @adesuyisunday4287
    @adesuyisunday4287 2 ปีที่แล้ว +1

    Thanks. Very educating. Please can you do teaching on using dspic33fj16gs504 , for sinewave hbridge complementary pwm using mplabx. I needed this knowledge. Thanks .

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว

      Glad you like it! I have a video on the basics of PWM, but I won't be covering the advanced chips anytime soon, sorry :)

    • @adesuyisunday4287
      @adesuyisunday4287 2 ปีที่แล้ว +1

      @@FriendlyWire ok. Which mcu are you willing to cover?

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว

      @@adesuyisunday4287 What is your project about?

    • @adesuyisunday4287
      @adesuyisunday4287 2 ปีที่แล้ว +1

      @@FriendlyWire sinewave hbridge 4pwm inverter . It should have LCD, menu parameters setting buttons, voltage feedback for stable 220v on load condition

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว

      @@adesuyisunday4287 I see! Power electronics is beyond the scope of this channel, it's focused on beginner electronics. Do you have any experience with PIC controllers?

  • @Akos_V
    @Akos_V ปีที่แล้ว +1

    Thank you so much for making this content! It is incredibly helpful and fun to watch. I have a question though: how do you change the oscillator frequency?

    • @FriendlyWire
      @FriendlyWire  ปีที่แล้ว +1

      Hello, and thank you for your kind comment, it means a lot! And even better that you find these videos helpful. Usually you can change the oscillator frequency with some registers inside your microcontroller, and there is typically a choice of fixed frequencies available. But it always depends on the microcontroller you want to use. Which one are you interested in, and what frequency do you need? I'll be happy to take a look at your controller's datasheet to help you out!

    • @Akos_V
      @Akos_V ปีที่แล้ว +1

      @@FriendlyWire Thank you so much!
      The microcontroller is a PIC18F4420, but changing _XTAL_FREQ to 8Mhz and setting IRCF0, IRCF1 and IRCF2 to 1,1,1 respectively makes the pic no longer blink, which is weird.

    • @FriendlyWire
      @FriendlyWire  ปีที่แล้ว

      @@Akos_V See ww1.microchip.com/downloads/en/DeviceDoc/39631E.pdf for the datasheet. On page 30 they say that you gave to set SCS1 = 1 so that the internal oscillator is used. Also, did you enable the internal oscillator in the configuration word?

    • @Akos_V
      @Akos_V ปีที่แล้ว +1

      @@FriendlyWire I tried adding SCS1 = 1, but it does not seem to work at any other frequency besides 1Mhz. I also did #pragma config OSC = INTIO67 at the beginning. Thank you.

    • @FriendlyWire
      @FriendlyWire  ปีที่แล้ว

      @@Akos_V Hmm, that is odd. Can you send me the full source code?

  • @phamtrung5414
    @phamtrung5414 ปีที่แล้ว +1

    I have a question about the schematic, how the current was limited when the resistor was between LED and GND. Im newbie, thank for your answer !!

    • @FriendlyWire
      @FriendlyWire  ปีที่แล้ว

      Hello, and thank you for your question! :) It does not matter where you put the resistor, it can be "before" or "after" the LED, because the current has to go through both of them.

    • @phamtrung5414
      @phamtrung5414 ปีที่แล้ว +1

      @@FriendlyWire thank for your answering

    • @FriendlyWire
      @FriendlyWire  ปีที่แล้ว

      @@phamtrung5414 Hope it helps! You can put it on either side, just don't forget about it :)

    • @phamtrung5414
      @phamtrung5414 ปีที่แล้ว +1

      @@FriendlyWire Really appreciate it sir ^^

    • @FriendlyWire
      @FriendlyWire  ปีที่แล้ว

      @@phamtrung5414 Happy to help, and thank you for your interest. Have a great day!

  • @blackarnab9287
    @blackarnab9287 2 ปีที่แล้ว +1

    Would you mind to make a video about RS422 Communication.

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว +1

      Good question! I have used RS422 in the past. On the PIC microcontroller side of things it is identical to the RS232 protocol, the only difference is that you need a MAX488 level shifter IC as opposed to the MAX232, and each signal wire has two poles (differential data transfer). It's super useful for large-baseline data transfer, above 10-15 meters, where RS232 signal integrity will typically fail. Maybe I will cover this in a future video :) Do you have any specific questions on RS422?

  • @rqmatix305
    @rqmatix305 5 หลายเดือนก่อน +1

    Hi 👋🏻 great video.
    I am trying to create program to control two different outlets ( wall plug outlets). I am trying to control two different valves (hot and a cold) . The sequence is 1 minute on cold then wait 30 seconds ,then 1 minute hot then wait 30 seconds (a continous loop ) for “x” Loop cycles . Any ideas on how to do this ?

    • @FriendlyWire
      @FriendlyWire  4 หลายเดือนก่อน +1

      Hello! Yes, you can do that with a relay module. You connect the LED signal to the input of the relay, and on the contact side of the relay you can hen switch other devices. But be careful with this: line voltage is dangerous, and please only do this if you feel confident about it. If not, no worries: you can probably talk to a local makerspace or find a programmable timer solution. Let me know what you think, and be safe.

    • @rqmatix305
      @rqmatix305 4 หลายเดือนก่อน +1

      @@FriendlyWire thank you !

  • @oveschleisner-meyer8139
    @oveschleisner-meyer8139 ปีที่แล้ว +1

    This is a very good video and I have made this one LED blinking just like you did. But how can I make two LED blinking with two different output from the same PIC? I have tried a lot but it will not work...

    • @FriendlyWire
      @FriendlyWire  ปีที่แล้ว +1

      Thank you, Ove, I am glad you find it helpful! The learning curve can be a bit steep, but you will get the hang of it in no time. Which pin do you want to connect the LED to, and what controller are you using? We will get it to work, no worries! :) But just in case, say you want to add an LED to pin RB2. Then all you do is this:
      Add #define LED2 RB2 after line 20. Add TRISB2 = 0; after TRISB3 = 0; (to make it also an output). Then you can write LED2 = 1; or LED2=0; and it will control the LED at pin RB2. That's it! :)

    • @oveschleisner-meyer8139
      @oveschleisner-meyer8139 ปีที่แล้ว +1

      @@FriendlyWire
      You are fantastic...Thanks a lot. That works and I furthermore understand why...ha ha. Thats great. But that means that it's not possible to have two or more outputs running with each independent program...? Only one program can be running step by step down the lines...
      I'm using a PIC16F627A and the outputs number is not that important. I'm really happy for your help.

    • @oveschleisner-meyer8139
      @oveschleisner-meyer8139 ปีที่แล้ว +1

      Is there anywhere on the net where I can find explanation and examples of all the different commands and rules for PIC programming?

    • @FriendlyWire
      @FriendlyWire  ปีที่แล้ว

      @@oveschleisner-meyer8139 Yes, the code is always executed line by line. More advanced microcontrollers can have threading, but the PIC16F627A and similar controllers don't offer that functionality.

    • @FriendlyWire
      @FriendlyWire  ปีที่แล้ว +1

      @@oveschleisner-meyer8139 You can check my website www.friendlywire.com, I always explain the source code line by line in the companion articles to my video, but if you are just getting started it may be a little bit too much at first. In my projects, I use the XC8 compiler, which makes use of the C programming language. I am sure it would help if you learn a little bit of simple C. Then you have the basics and you can take it from there much more easily :)

  • @kabandajamilu9036
    @kabandajamilu9036 3 ปีที่แล้ว +2

    So nice

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว

      Thank you very much, Kabanda, much appreciated! :)

  • @Come_with_me9
    @Come_with_me9 3 ปีที่แล้ว +2

    please create more video on PIC :)

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว +1

      Thank you, Jayesh, I have many more videos planned. Do you have anything you are particularly curious about? Let me know, and have a great day! :)

  • @oveschleisner-meyer8139
    @oveschleisner-meyer8139 ปีที่แล้ว +1

    Thanks a lot for your tutorial... When I tried to connect my PICKit3 to the MPLAB IPE I got this message..: The target circuit may require more power than the debug tool can provide. An external power supply might be necessary.
    Connection Failed.
    How can I connect an external power supply to the USB to get more power?

    • @FriendlyWire
      @FriendlyWire  ปีที่แล้ว +1

      Hi there, Ove, thanks for your kind words! I would try this, in this order: 1. double check the wiring and make sure there is no short. 2. Try a different USB port on your computer, some of them have surprisingly little capabilities. 3. Try switching from a laptop to a desktop PC, if you have the option. 4. Disable the "power target circuit from tool" option and use a battery instead.
      Also check out the "eight common mistakes" part in my newer video here: th-cam.com/video/mUhzqDD6dg4/w-d-xo.html
      Let me know if it helps, and if not, no worries: we will figure it out :) Thanks again for your interest!

    • @oveschleisner-meyer8139
      @oveschleisner-meyer8139 ปีที่แล้ว +1

      @@FriendlyWire
      Many thanks for your advice. After disabling the "power target circuit from tool" everything worked as it should... so again thank you for your support. I'm new in this PIC programming world so I' have a lot to learn so I will follow your video and your channel.

    • @FriendlyWire
      @FriendlyWire  ปีที่แล้ว

      @@oveschleisner-meyer8139 Happy to help, and I am so glad it works now! It must mean that your USB port cannot supply enough power. Welcome to the world of PICs! Fun fact: one of my USB ports on my desktop PC (!) also has this issue...

  • @shantanusingh6699
    @shantanusingh6699 3 ปีที่แล้ว +3

    i had a doubt
    where is the oscillator ?
    don't we need to use external oscillator with pic or it has one?
    also, what are the other ways to flash pic?
    awesome tutorial tho

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว

      Thank you for your kind words and the questions :)
      At 3:03 I start setting the configuration bits, and the first parameter actually tells the PIC to use its internal 4MHz clock (3:07 in the video), and I briefly mention that at 5:41 as well. When using the internal oscillator you don't need to use the external crystal :) I should have mentioned it more prominently, sorry! If you want you can also read more about it on my website: friendlywire.com/tutorials/config/#ch1
      I always use the PICkit3 to flash PIC microcontrollers. I am sure you can use other tools for that as well, but the PICkit works well for me, so that is what I use :)
      Let me know if you have any more questions, and have a great day!

  • @oveschleisner-meyer8139
    @oveschleisner-meyer8139 ปีที่แล้ว +1

    Hello Jens. I have seen nearly all your video with microcontroller projects and I learn more and more. I have one question... how can I make an interrupt (pause) in my PIC16F627 microcontroller? I have made a program and I want to be able to stop it with a pushbutton and then continioue when I release the button. Have you decribed this anywhere in your vodeos...?

    • @FriendlyWire
      @FriendlyWire  ปีที่แล้ว

      Hi Ove, I am so happy that you find my videos useful! It's a good question. I have not discussed this in my videos, but something that might work is put the controller in sleep mode (which effectively pauses program execution and ensures super-low power consumption). I describe this in the analog clock video [ th-cam.com/video/N8rlLG6EXpk/w-d-xo.html ], but that is based on the PIC16F1455.
      Let me ask: are you interested in this for a specific application (and if yes, what is it?) or is it more of an academic question? Nothing wrong with either, of course, but it helps to put things in context :) Let me know!

    • @oveschleisner-meyer8139
      @oveschleisner-meyer8139 ปีที่แล้ว +1

      @@FriendlyWire
      Hello Jens. Thank you so much for replying my comment.
      I will try to explain what I'm doing.
      I am doing a small project where I am making a traffic intersection model which is completely authentic with regard to all the lights in the signals.
      I am using four outputs from the Microcontroller (PIC16F627A) as a binary counter from 0 to 14. (RB1, RB2, RB3 and RB4).
      These four outputs go on to my circuit of logic gates which ends up in the control of 26 different lights in all the traffic signals.
      The reason I use a microcontroller is because the switching time between the different signals is different going from 2 seconds to 28 seconds. Yellow is 4 sec. and red is much longer).
      The entire traffic light is being built on a large plate as a model of the intersection.
      I use this to teach children and young people how a traffic light works.
      I need to be able to stop the signals from the microcontroller with a push button (or something else...) while I explain what is happening with the various lights and then continue with the process.
      I have made the complete (for you very simple) PIC program and it works OK, but I can't figure out how to pause or interrupt the program and then continiue the process.
      If possible I can mail you the code and drawing og the intersection. The Intersection-steps is taken from at real intersection.
      Or I can give you my mail if you want that?
      Best regards Ove

    • @FriendlyWire
      @FriendlyWire  ปีที่แล้ว

      @@oveschleisner-meyer8139 I see! That sounds like a great project. I think what you have in mind can be done with a simple TIMER0-routine. Please feel free to send your code to my email (you can find it at the bottom of www.friendlywire.com) and I will be happy to modify it so that it does what you need. Would that work?

    • @oveschleisner-meyer8139
      @oveschleisner-meyer8139 ปีที่แล้ว +1

      @@FriendlyWire
      Hello Jens. Thank you so much... That will work fine... I will send you an email...

    • @FriendlyWire
      @FriendlyWire  ปีที่แล้ว

      @@oveschleisner-meyer8139 Got it, thanks!

  • @wladimirq6176
    @wladimirq6176 2 ปีที่แล้ว +1

    Thank you !!

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว

      Glad you like the video, Wladimir! :)

  • @kabandajamir9844
    @kabandajamir9844 ปีที่แล้ว +1

    So nice thanks

    • @FriendlyWire
      @FriendlyWire  ปีที่แล้ว

      Thank you, glad you liked it! :)

  • @kabandajamir9844
    @kabandajamir9844 ปีที่แล้ว +1

    So nice please teach me how to flash satellite receiver chip

    • @FriendlyWire
      @FriendlyWire  ปีที่แล้ว

      I don't think this works with the methods presented here, this is about PIC microcontrollers. What is the chip called that you want to flash?

  • @tahamohamed9446
    @tahamohamed9446 8 หลายเดือนก่อน +2

    Nice video! But I get BUILD FAILED error. How do I fix it?

    • @FriendlyWire
      @FriendlyWire  8 หลายเดือนก่อน

      Thank you! Can you post the full message? It means that something did not compile correctly.

    • @tahamohamed9446
      @tahamohamed9446 8 หลายเดือนก่อน +1

      [1]: * * * [nbproject/makefile-default.mk:85: .build-conf] error 2

    • @tahamohamed9446
      @tahamohamed9446 8 หลายเดือนก่อน +1

      It also does
      Make: * * * [nbproject/makefile-impl-mk:39: .build-impl] error 2

    • @FriendlyWire
      @FriendlyWire  8 หลายเดือนก่อน +1

      @@tahamohamed9446Thanks! It's a bit hard to see from there what it is. Are you using the PIC16F627A and the code exactly as in the video?

    • @tahamohamed9446
      @tahamohamed9446 8 หลายเดือนก่อน +1

      Same code but different pic

  • @PhongTran-hn3uf
    @PhongTran-hn3uf 13 วันที่ผ่านมา +1

    Are there more advanced projects that you have done with PIC16F627A microchip?

    • @FriendlyWire
      @FriendlyWire  9 วันที่ผ่านมา

      Yes, the PIC touch sensor: th-cam.com/video/3KQd9F0P6PI/w-d-xo.html :)

  • @Akos_V
    @Akos_V ปีที่แล้ว +1

    Hello,
    I really like your videos, but there is one thing that I don't get. How do you know which pin corespondes to which TRI register?
    I am also working on a microcontroller project, but I may have gotten stuck here.
    Any help would be really appreciated.
    Thank you!

    • @FriendlyWire
      @FriendlyWire  ปีที่แล้ว +1

      Hello AK, thanks for your kind words! The registers usually have the same name as the pin, just a "TRIS" in front of it. For example, the tristate register for RB2 is called TRISB2. The one for RA3 is called TRISA3. And so on :) Some pins actually don't have tristate registers, because they are input-only. You can usually find that when you search in the datasheet. What controller are you working on? If you have a question for a specific pin, let me know, it'll be easier to help :)
      Thank you again for your interest, and let me know if you have any other questions, I am always happy to help. Have a great day!

    • @Akos_V
      @Akos_V ปีที่แล้ว +2

      @@FriendlyWire Hello,
      I recently bought a few pic18f4420 chips, I am able to flash them, but I can't even get a led to blink (using your code, just with different configuration bits). The goal in the end would be to set it up as an I2C slave using its mssp module, but I'm new to microcontrollers and I can't even get past this step. All help is appreciated.
      Thanks!

    • @FriendlyWire
      @FriendlyWire  ปีที่แล้ว +1

      @@Akos_V I had a look at the datasheet at ww1.microchip.com/downloads/en/DeviceDoc/39631E.pdf . In table 10-2 on page 107, table 10-4 on page 110, and table 10-6 on page 113 you can find the TRISTATE registers. It may be possible that something with the configuration bits is wrong (maybe you did not set the oscillator correctly)? It may be easier to diagnose this once I see your source code. Can you contact me on Twitter @FriendlyWire? If you don't use social media, I also have an email at the bottom of my page www.friendlywire.com :) We will figure this out!

    • @Akos_V
      @Akos_V ปีที่แล้ว +1

      @@FriendlyWire Thank you so much, I sent you an email.

    • @FriendlyWire
      @FriendlyWire  ปีที่แล้ว +1

      @@Akos_V Thank you, I will try to get back to you this weekend!

  • @நெசவுதொழில்
    @நெசவுதொழில் 2 ปีที่แล้ว +1

    I need some help 😭 I have pic16f series IC chip and when I searched for pic kit it seemed costly can I program using Arduino nano or Uno please 🙏

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว

      Thank you for your question and for your interest :-) How much do you want to spend? I am not sure if there are options to program PICs using Arduinos (but I would not be surprised), but you can also get very cheap PIC programmers online.

  • @FriendlyWire
    @FriendlyWire  5 ปีที่แล้ว

    What else do you want to learn about microcontrollers? And what parts did not make sense in the video?
    Let me know and I'll do my best to make a video about it in the future! :)

  • @andreydunin6712
    @andreydunin6712 2 ปีที่แล้ว +1

    Thank you so much!!!

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว +1

      Thank you, Andrey, glad you like the video! :) Have you seen the updated video "How to get source code on a PIC microcontroller"? Let me know if you have any questions, I am happy to help :)

  • @CapturingLifeJantyMoses
    @CapturingLifeJantyMoses 3 ปีที่แล้ว +1

    great explanation does work same for pic16f847

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว +1

      Thank you, glad you like it! Yes, I think so. You just have to select the PIC16F847 everywhere where in the video we selected the PIC16F627A inside the software. The pin RB3 is the same for both PIC16F627A and your PIC16F847, so the LED can even go in the same place. Let me know if it works. If not I am happy to help! :)

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว +1

      Oh, and the connections from the PIC16F847 to the PICkit3 are also identical to that of the PIC16F627A :)

  • @jackski5732
    @jackski5732 2 ปีที่แล้ว +1

    plz explain more the choosing the CONFIG code

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว

      Sure thing, what would you like to know more about? :) I also have an article on this subject from some time ago: friendlywire.com/tutorials/config/

  • @sahguftanaz4217
    @sahguftanaz4217 4 หลายเดือนก่อน +1

    Amazing

    • @FriendlyWire
      @FriendlyWire  4 หลายเดือนก่อน

      Thank you, I am glad you liked it! :)

  • @nael114
    @nael114 10 หลายเดือนก่อน +1

    Hello, thank you for helping beginners to start with microcontrollers ! I have a little problem with the coding part, I have a ATmega328P and the Bits Configuration isn't the same as you, so I didn't change anything and paste it in the program but when I build it, it says build failed with two error, one : TRISB3 or/and RB3 aren't defined and the second : expected expression before the = in "LED = 0;". I hope you'll be able to help me, I really want it to work.

    • @FriendlyWire
      @FriendlyWire  10 หลายเดือนก่อน +1

      Thank you for your question! It is a bit difficult to change the tutorial for a new chip, especially if you are just getting started. The ATmega328P has different pins and an entirely different architecture, so this tutorial, unfortunately, is not written for this chip. Do you have a way of getting a PIC16F627A to get things started? Or is there a specific reason you want to use the ATmega328P?

    • @nael114
      @nael114 10 หลายเดือนก่อน +1

      @@FriendlyWire thank for your answer ! Yes, I got a starting kit with different electronics elements and a circuit with this micro controller for Christmas and I was searching for an easy project to begin with. Is it really necessary to begin with another micro controller ?

    • @FriendlyWire
      @FriendlyWire  10 หลายเดือนก่อน

      ​@@nael114 Ohh, that's a nice Christmas gift, happy experimenting. You will see, it's a lot of fun! :-) What kit did you get?

  • @karthikeyanr457
    @karthikeyanr457 2 ปีที่แล้ว +1

    Are you using embedded c for doing this program

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว

      Thanks for the question, but I am not sure if I understand you correctly :) I am using the XC8 compiler as well as the MPLAB IDE from MicroChip, which are all freely available for download.

  • @stnwrd
    @stnwrd 2 ปีที่แล้ว +1

    Does the MCLR/Vpp have to be connected to Vdd on all PIC's when operating them?

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว

      Good question, Steve! No, not always, you can adjust this in the configuration word, and use the MCLR/Vpp pin as a regular pin. But you need to always connect the MCLR pin to the PICkit3 when you are flashing a .hex-file onto the controller. Hope that helps :)

    • @stnwrd
      @stnwrd 2 ปีที่แล้ว +1

      @@FriendlyWire When you say "configuration word" is that in the MPLABX C script? (I'm still learning the lingual LOL)

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว

      @@stnwrd Yes, exactly :) I have an article on this topic here: friendlywire.com/tutorials/config/

  • @emreaka3965
    @emreaka3965 3 ปีที่แล้ว +1

    I would like to learn program microcontrollers and make cool things.

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว +1

      That's awesome Emre, you have come to the right place! :) Have you seen my other microcontroller videos?

    • @emreaka3965
      @emreaka3965 3 ปีที่แล้ว +1

      @@FriendlyWire I will watch them but firstly, I should buy a microcontroller and pickit before begin to watch these videos.

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว

      @@emreaka3965 Yes, it's a good investment. The PICkit3 goes for around $20 and the PIC controllers that I use in my videos (PIC16F627A, PIC16F1455, PIC16F883) are not that expensive (a dollar each, give or take). Let me know if you have any questions, I am happy to help! :)

  • @fahimshahriar2441
    @fahimshahriar2441 3 ปีที่แล้ว +1

    Thanks man

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว +1

      Glad you like the video, Fahim, have a great weekend! :)

  • @gakuruvictor1276
    @gakuruvictor1276 4 ปีที่แล้ว +1

    thank you bro that was great

    • @FriendlyWire
      @FriendlyWire  4 ปีที่แล้ว

      Thanks so much, glad you find it useful! :)

  • @daveb3910
    @daveb3910 9 หลายเดือนก่อน +1

    Thanks dude

    • @FriendlyWire
      @FriendlyWire  9 หลายเดือนก่อน +1

      Glad you like it, Dave, have a great weekend! :)

  • @jaikrish50
    @jaikrish50 2 ปีที่แล้ว +1

    How to program pickit3 using mplab ide sir

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว

      What microcontroller are you using? This video explains all the steps for the PIC16F627A, but I also have a newer video here that walks you through some of the software step in more detail: th-cam.com/video/mUhzqDD6dg4/w-d-xo.html Hope it helps!

  • @fddfedf136
    @fddfedf136 ปีที่แล้ว +1

    Mister, i managed to fckup Pickit3. I misconnected some wires. I hear windows sound when i connect it to PC like before (USB connection sound).
    Power and Active LEDs are lighting. Everything is ok. But! I can't find it in MPLABs list. No device. It can not recognize it anymore. Oh no!

    • @FriendlyWire
      @FriendlyWire  ปีที่แล้ว

      Oh no, maybe it's fried :( Have you tried different USB ports? (And do you remember how you misconnected the wires?)

  • @sulaimanadewale320
    @sulaimanadewale320 5 ปีที่แล้ว +1

    I just subscribe, I hope you put up more contents

    • @FriendlyWire
      @FriendlyWire  4 ปีที่แล้ว

      Thank you! What are you most interested in when it comes to microcontrollers?

  • @Innovative_electronics
    @Innovative_electronics ปีที่แล้ว +2

    Why my microcontroller is stopped at first instruction and is not going further.earlier it was worked well. Is there any issue in microcontroller or its external circuit. Pls help

    • @FriendlyWire
      @FriendlyWire  ปีที่แล้ว

      Interesting question, did you forget the while-loop perhaps?

    • @Innovative_electronics
      @Innovative_electronics ปีที่แล้ว +1

      @@FriendlyWire
      I didn’t make changes to program. It’s a circuit which was came for repair .

    • @FriendlyWire
      @FriendlyWire  ปีที่แล้ว

      @@Innovative_electronics Oh, so it's a different circuit? It could be anything, hard to tell without more details, I am sorry. Do you have access to the code?

    • @Innovative_electronics
      @Innovative_electronics ปีที่แล้ว

      @@FriendlyWire yes I have access to code

  • @TheJavaSync
    @TheJavaSync ปีที่แล้ว +1

    Is the software work to atmega 328 + usbasp also? I learned blink2 by arduino - digital write.

    • @FriendlyWire
      @FriendlyWire  ปีที่แล้ว +1

      The PICkit supports some ATmega chips (since they are also owned by Microchip) but this tutorial is just for PIC microcontrollers. Which chip do you want to use?

    • @TheJavaSync
      @TheJavaSync ปีที่แล้ว

      @@FriendlyWire I used atmega 328p - I tried it (& sucseed) by usb asp & atmel studio - I mean is the sofware in this video work also to atmega 328p + usb asp instead of PIC & pickit programmer?

  • @shahwez7260
    @shahwez7260 2 ปีที่แล้ว +1

    Great

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว

      Thank you, glad you like it!

  • @lostwey6427
    @lostwey6427 4 ปีที่แล้ว +1

    hi please suggest any easy project on microcontroller that can be done on proteaus .

    • @FriendlyWire
      @FriendlyWire  4 ปีที่แล้ว

      I have never worked with Proteus because it is rather expensive if you want to purchase a full version that allows you to design your own circuits, it looks like it ranges from $250 to well over $5,000. But if you already have access to Proteus, for example via your job/university/friends..., then it sure looks like a cool software.
      For ever microcontroller project I ever covered you can download all the .hex files directly from my website www.friendlywire.com and upload them to Proteus, as I understand it :) So all of them can be done in Proteus :)

  • @vedanthgowdas2218
    @vedanthgowdas2218 3 ปีที่แล้ว +1

    Hello there does this mplab program support 8051 microcontroller

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว +1

      Hey there, I don't think so, MPLAB is developed by Microchip and only supports their line of controllers. The 8051 is from Intel, so it is not supported, sorry.

  • @causey797
    @causey797 9 หลายเดือนก่อน +1

    Hey! I'm using a PIC16F88 and I'm getting this message when I try and verify in IPE:
    program memory
    Address: 0 Expected Value: 3fff Received Value: 0
    EEData memory
    Address: 0 Expected Value: ff Received Value: 0
    configuration memory
    Address: 2008 Expected Value: 3 Received Value: 0
    Verify failed
    I have followed all of the other steps in this video. What do you think the problem might be?

    • @FriendlyWire
      @FriendlyWire  9 หลายเดือนก่อน

      Thanks for your interest and your question! To me it looks like a data transmission error, and it's very common. Can you send me a picture of your setup where all the cables etc are visible? You can reach me on Instagram, Twitter, or via email (address is at the bottom of www.friendlywire.com).

    • @causey797
      @causey797 8 หลายเดือนก่อน

      Looks like I was able to resolve the issue, thank you for your offer though! @@FriendlyWire

  • @riadhelectrotech321
    @riadhelectrotech321 3 ปีที่แล้ว

    Thank you

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว

      Thank YOU, glad you have you :)

  • @xarrismarkoy1
    @xarrismarkoy1 3 ปีที่แล้ว +1

    question: since you "programmed" the flashing effect on the led, if you connect the led directly to the battery will it remain on this "flashing" mode?

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว +1

      Nope, the LED is just an LED, the microcontroller does the blinking :)

    • @xarrismarkoy1
      @xarrismarkoy1 3 ปีที่แล้ว +1

      @@FriendlyWire thanks for the reply. But how is it possible to buy flickering /flashing led bulbs thatbthey dont have a conteoller?

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว +1

      @@xarrismarkoy1 Oh, I see what you mean! These LEDs have a controller built in, it is just very very small, and in most cases it isn't even a controller but just a small oscillator. In this tutorial here we make an LED blink because it is a good beginner's project, but it wasn't our goal to make it as small as possible :)

    • @xarrismarkoy1
      @xarrismarkoy1 3 ปีที่แล้ว +1

      @@FriendlyWire ah ok i understand. I just wanted to take a led strip program it to flicker and then cut each individual led light and use it separately with a battery for different projects.Can i do that?

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว +1

      @@xarrismarkoy1 I don't think that works, each LED strip still has to be connected to a microcontroller to work properly. But there are some flickering LEDs on Ebay if you search for it, or if you check out my electronic candle video at 0:18 you can see such a module: th-cam.com/video/pCvCan2yGZg/w-d-xo.html

  • @curly-hairedassassin5233
    @curly-hairedassassin5233 8 หลายเดือนก่อน +1

    New to computer electronics, does anyone know a great place to purchase all of these materials?

    • @FriendlyWire
      @FriendlyWire  8 หลายเดือนก่อน +1

      Good question! For all my videos there are companion articles on www.friendlywire.com, and they always include links to where you can buy the components. All basic stuff (capacitors, resistors, LEDs) and the PICkit you can get from electronics starter kits you can buy on Amazon or any other website. The PIC microcontrollers can be bought directly from electronics distributors, such as Mouser or Digikey, or other local ones to your country. Let me know if it helps, and thank you for stopping by! :)

    • @curly-hairedassassin5233
      @curly-hairedassassin5233 8 หลายเดือนก่อน +1

      @@FriendlyWire this information that you have provided MORE than helps! Thank you for your assistance and I’ll look into the link

    • @FriendlyWire
      @FriendlyWire  8 หลายเดือนก่อน

      @@curly-hairedassassin5233 Fantastic, happy to hear it. Let me know if you find what you need!

  • @boring_radio838
    @boring_radio838 หลายเดือนก่อน +1

    thx!

    • @FriendlyWire
      @FriendlyWire  หลายเดือนก่อน

      Thank you, glad you like it :)

  • @rileypeterson1796
    @rileypeterson1796 2 ปีที่แล้ว +1

    Hi! I was following the tutorial and I'm using a pickit 3 clone and it took me a little bit of time but I was able to connect it to my microcontroller (PIC16F628A), however when I try to verify it says verify failed and it says:
    0 Expected Value: 3fff Received Value: 2ffe
    configuration memory
    Address: 2007 Expected Value: 21ff Received Value: 2170
    Would you happen to know how to fix this?

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว +1

      Hey Riley, glad you found my video :) I have seen this error message many times, and it is most likely a bad wire connection. Make sure they are all plugged in correctly, and double check the datasheet one more time. It is a pretty common problem and it happens to me, too. If you want you can send me a photo of your connections over at Twitter @FriendlyWire or use the email address on my website www.friendlywire.com and I will be happy to check :)

    • @rileypeterson1796
      @rileypeterson1796 2 ปีที่แล้ว +1

      @@FriendlyWire Thank you for the quick reply! I tried testing the wire connections and I'm not sure what I did but I also unplugged the pickit and plugged it back in and then it seemed to work? Not sure what happened but it works now. Thanks again! -p.s. I looked around at your other videos and they are great so u got my sub :)

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว +1

      @@rileypeterson1796 Fantastic, I am glad it works now! Let me know if you have any other questions, and I'm happy you like my other videos, welcome! :)

  • @maithreyaaravindsitaraman3266
    @maithreyaaravindsitaraman3266 3 ปีที่แล้ว +1

    @FriendlyWire, I replicated everything you did exactly (with a PIC16F628A), except that I used 2 AA battery back (total of 1.5 + 1.5 = 3V). However, the LED doesnt light up at all. However, if I disconnect the V_ss from the negative terminal, the LED lights but does not blink (and it does so from every port). Do you by any chance know if the 3V is the problem? i.e do I really need a 5V battery? (the data sheet says that it runs from 2V to 5.5V, so I thought there must be some other problem, but I really feel that everything else is correct). Thanks so much for your valuable time, and great tutorial!

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว

      Thanks for your kind words, and happy new year! My first idea to check would be to add another battery and run everything at 4.5V. The reason is that some LEDs have a forward voltage of around 3V or even higher, so they might be very dim when the circuit runs at 3V only. What LED color do you use? :)
      I am not sure what you mean when you say "if I disconnect the V_ss from the negative terminal, the LED lights but does not blink (and it does so from every port)." Can you clarify? We'll figure this out :)

    • @maithreyaaravindsitaraman3266
      @maithreyaaravindsitaraman3266 3 ปีที่แล้ว +1

      @@FriendlyWire Happy New Year! I will try that out soon and keep you posted! I am not sure if the brightness of the LED is the issue because it burns bright enough when I connect it in a test circuit even with the resistor (the LED is orange). But, adding another battery and checking what happens is certainly a good idea. By disconnecting the V_ss, what I mean is: I have one wire from the +ve terminal of the battery to the V_dd port, one wire from the +ve terminal of the battery to the MCLR port, the LED at the RB3 port and a resistor from the other end of the LED to the -ve port, but I do not connect the V_ss port to the -ve terminal of the battery. When I connect the microcontroller this way, all ports are permanently open (i.e all ports are = 1 as far as I can tell). Thank you for the response, Happy new year, and I will keep you posted once I add another battery and try it out :)

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว

      ​@@maithreyaaravindsitaraman3266 Thanks for the clarification :) So it seems that maybe the voltage is high enough to drive the LED after all. Let's just be safe and see what happens if you connect 4.5V instead :)

    • @maithreyaaravindsitaraman3266
      @maithreyaaravindsitaraman3266 3 ปีที่แล้ว +1

      @@FriendlyWire So, I connected the 4.5V - but to no avail :(. With 4.5 V, when I connect all the wires (with the V_ss), the V_ss or V_dd wire gets hot - however, the LED still doesn’t light. I have attached pictures or screenshots of each step completed below:
      (1) The code: math.columbia.edu/~maithreya/robotics/blink_code.png
      (2) Successful Clean and Build: math.columbia.edu/~maithreya/robotics/cleanbuildsuccess.png
      (3) Programming the microcontroller successfully: math.columbia.edu/~maithreya/robotics/programmingmicrocontrollerlog.png
      (4) LED burns (but doesn’t blink) when V_ss is disconnected: math.columbia.edu/~maithreya/robotics/vss_disconnected.JPG
      (5) LED fails to light when V_ss is connected (pic 1): math.columbia.edu/~maithreya/robotics/vss_connected_LEDdoesntlight.JPG
      (5b) LED fails to light when V_ss is connected (pic 2): math.columbia.edu/~maithreya/robotics/vss_connected_LEDdoesntlight2.JPG
      A possible thought I had (it may or may not be the reason for the problem, but just a thought): Is it true that all ports of the microcontroller = 0 by default if V_ss is connected and =1 by default if V_ss is not connected? If so, it could it be possible that for some reason I am making a mistake in the programming step (i.e passing the code to the microcontroller), and that therefore when I connect the V_ss, the V_ss wire becomes hot but the LED doesn’t light because the port is closed (since the code has not successfully been transferred to the microcontroller).
      Thanks so much for your kind help!

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว +1

      @@maithreyaaravindsitaraman3266 Thanks for the detailed steps! Looks like you plugged the PIC16F628A in upside down in math.columbia.edu/~maithreya/robotics/vss_connected_LEDdoesntlight2.JPG , I think. Does that fix it? :)

  • @jitendrarajput6549
    @jitendrarajput6549 4 ปีที่แล้ว +1

    You are best

    • @FriendlyWire
      @FriendlyWire  4 ปีที่แล้ว

      Thanks so much, glad you like it! What kind of tutorials or projects with PIC microcontrollers are you interested in? :)

  • @Santho003
    @Santho003 3 ปีที่แล้ว +1

    how did you calculate the "size" of the resistor?

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว +1

      Hey Santho! It was a rough estimate, 220 ohms for any LED at 5V is a good idea. Basically you need to know the current of the LED, call it I, which is around 10mA and the supply voltage (here it is 5V, call it U). Then you also need to know what voltage the LED needs to glow, which is around 2.4V, call it U0 (depends on the color and you can look it up in your LED's datasheet).
      Then you have U, U0, and I. The resistor is R = (U-U0) / I = 2.6V / 10mA = 260 ohms. So 220 Ohms is a good guess :)

    • @Santho003
      @Santho003 3 ปีที่แล้ว +1

      @@FriendlyWire thanks for the answers, in school its hard to follow the lessons about electronics rn so im teaching "myself".

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว

      @@Santho003 That's great! Also U0 is often called "forward voltage" if that helps :)

    • @Santho003
      @Santho003 3 ปีที่แล้ว +1

      @@FriendlyWire im in a german school im not so good at english but i think it will help im strugling rn with ac bcause my teacher doesnt give a **** about students

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว

      @@Santho003 Best of luck!

  • @phnompenhlifestyle
    @phnompenhlifestyle 4 ปีที่แล้ว +2

    hello, is it support on macOS?

    • @FriendlyWire
      @FriendlyWire  4 ปีที่แล้ว +1

      Hello! Yes, MPLAB IDE X runs on Mac 10.X, see at the bottom of this page here: www.microchip.com/mplab/mplab-x-ide

  • @Airstrike_lol
    @Airstrike_lol 2 หลายเดือนก่อน +1

    absolute giga chad ngl🗿

    • @FriendlyWire
      @FriendlyWire  หลายเดือนก่อน

      To quote your username: lol :D But in all seriousness, I am glad you found the video helpful!

  • @JosephDimacali25
    @JosephDimacali25 4 ปีที่แล้ว +1

    What will happen if i reverse the position of resistor and led, pin 9 - R1 + LED - GND?

    • @FriendlyWire
      @FriendlyWire  4 ปีที่แล้ว +1

      Good question, I should have mentioned! It doesn't matter, either way is fine :)

  • @Sanaullahalam95
    @Sanaullahalam95 3 ปีที่แล้ว +1

    Dear
    Can you make 10bit PWM 10khz pwm frequency led two channels dimmer using pic12f683/675 with two potentiometer
    Please how much money will you charge for making I want the source code.

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว +1

      Hey there, all my content is free, so I don't charge for it. I looked at that chip, and the PIC12F683 only has one PWM module, so I don't think you could do a dual-channel one with just that one chip. Why don't you give it a try (just one potentiometer and a single channel) and you send me what you have on Twitter @FriendlyWire , and I will walk you through the process? :)

    • @Sanaullahalam95
      @Sanaullahalam95 3 ปีที่แล้ว

      @@FriendlyWire One channel will also work, I will use two ICs

  • @thejoeblowshow
    @thejoeblowshow 2 ปีที่แล้ว +1

    Hi. I am currently at the "Flash the Controller" portion in your tutorial, but I can't get any further than verifying my connection in the IPE v 6.0. Please note, I do not have a 6 pin header like you used, so I am using a 6 x 6 pin m/m jumper cable that shipped with my newly arrived PICKit 3. Could this type of connection that I am using be the cause for the following repeated error message that I am receiving? I did make sure that "Power Target Circuit from PICKit3" is selected, per your trouble shooting instructions. : - )
    Connecting to MPLAB PICkit 3...
    Currently loaded firmware on PICkit 3
    Firmware Suite Version.....01.56.09
    Firmware type..............Midrange
    ERROR MESSAGE
    PICkit 3 is trying to supply 5.000000 volts from the USB port, but the target VDD is measured to be 4.750000 volts. This could be due to the USB port power capabilities or the target circuitry affecting the measured VDD.
    The target circuit may require more power than the debug tool can provide. An external power supply might be necessary.
    Connection Failed.
    Verify Failed
    PS: I assume that you surely must have a 6 x 6 pin m/m jumper wire that you would have found much easier to connect than your pin header, as you have demonstrated, so is that why you still used a 6 pin header instead, because of this very issue that I am having?

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว +1

      Great work, Joseph, and thank you for your interest! The cables you are using are 100% fine, no worries. It looks like your USB port cannot supply enough power. Can you try a different USB port on your computer? (I know it's silly, but sometimes it helps). Otherwise, disable the "Power Target Circuit from PICKit3" option and use a 4.5V battery pack (three AA batteries) to power everything, this can help, too. I also talk about some of those issues in this newer video here: th-cam.com/video/mUhzqDD6dg4/w-d-xo.html
      Let me know if it helps. We will figure it out :)

    • @thejoeblowshow
      @thejoeblowshow 2 ปีที่แล้ว +1

      @@FriendlyWire Thanks Jens! I will keep you updated. Stay safe.

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว

      @@thejoeblowshow Yes, let me know how it goes, we will figure it out :)

    • @thejoeblowshow
      @thejoeblowshow 2 ปีที่แล้ว +1

      ​@@FriendlyWire Hi Jens. I had no luck with switching from all three (2) usb3 & (1) usb2 ports. Can you please explain in more detail how I would power everything using 4,5V batteries? Also, isn't the issue "not receiving 5v"in the first place, i,e,. the reason the original, and still persistent error message reads:
      PICkit 3 is trying to supply 5.000000 volts from the USB port, but the target VDD is measured to be 4.750000 volts.
      So, obviously 4.5v "battery power" should work, or you would not have even suggested this method, however, I still don't understand the circuitry when trying to power the PIC 3 through the X IPE software in the computer, and then back through to the breadboard. Sorry for my total ignorance in all this, but this is the first time that I even inserted a mcu into a breadboard before. So, If you get bored, and find some extra time, can you please give a total newbie, like myself. some very detailed info on exactly how I would loop everything together to flash the mcu using your suggested 4.5v battery power method? PS: I always made sure that I selected the "targeted power circuit from the PIC 3" in the power options in the X IPD too. Thanks Jens!

    • @thejoeblowshow
      @thejoeblowshow 2 ปีที่แล้ว +1

      PS: Am I assuming correctly that my usb ports are supplying too much voltage, as stated:
      "PICkit 3 is trying to supply 5.000000 volts from the USB port, but the target VDD is measured to be 4.750000 volts."
      in the repeated error message(s)?

  • @weerasingheb7a998
    @weerasingheb7a998 2 ปีที่แล้ว +1

    Brother. Why not use a Oscillator in this microcontroller

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว +1

      Yes, that would have been a better idea! I guess in my mind I had the application of the binary clock ( th-cam.com/video/FVitTZLxtyQ/w-d-xo.html ) where we needed the crystal to get a proper timebase. But you are right, in this case it would have been better to use the internal 4MHz oscillator.

    • @weerasingheb7a998
      @weerasingheb7a998 2 ปีที่แล้ว +1

      @@FriendlyWire thank you so much brother

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว

      @@weerasingheb7a998 I'm glad you are here :)

  • @phnompenhlifestyle
    @phnompenhlifestyle 4 ปีที่แล้ว +1

    can i see the usb cable which is used to supply power?

    • @FriendlyWire
      @FriendlyWire  4 ปีที่แล้ว +1

      Can you tell me what time in the video you are talking about? To run the circuit at the end I use a USB cable that looks like 18:50 at both ends. One end goes into the circuit, and the other end into a USB power bank or a computer or a phone charger, basically anything that powers USB is fine. Hope that helps! :)

    • @phnompenhlifestyle
      @phnompenhlifestyle 4 ปีที่แล้ว

      FriendlyWire you are using male to male usb cable, right? for the usb port on that adapter circuit, it is used for input not for output?

    • @FriendlyWire
      @FriendlyWire  4 ปีที่แล้ว +1

      @@phnompenhlifestyle Can you tell me what time of the video you refer to?

    • @phnompenhlifestyle
      @phnompenhlifestyle 4 ปีที่แล้ว

      FriendlyWire 18:50

    • @FriendlyWire
      @FriendlyWire  4 ปีที่แล้ว +1

      @@phnompenhlifestyle Yeah, the USB cable is just for the power. You can use any other 5V DC power supply :)

  • @didemozisik4602
    @didemozisik4602 3 ปีที่แล้ว +1

    Hi, I am a software developer. I have just started PIC programming with this video. Thanks a lot for your effort. I have a question. I will add LEDs and sensors to other pins. Let's start with just adding another LED to RB2. I have modified the MPLAB code by inserting TRISB2=0, RB2=1 for HIGH and RB2=0 for LOW. But I got an error during the verification of the HEX code in MPLAB IPE. Does someone have an idea?

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว +1

      Hey Didem, this is fantastic, glad you like the video and are taking new steps yourself! It looks like it is an issue of transferring the hex file onto the PIC, and everything else sounds perfect. Can you show me the error message in IPE? (If it is easier for you, I am also on Twitter, Facebook, and Instagram with the handle @FriendlyWire). Let me know, I'm sure we can sort it out! :)

    • @didemozisik4602
      @didemozisik4602 3 ปีที่แล้ว +1

      @@FriendlyWire Thank you for your reply, you are amazing. The main code is:
      void main(void) {
      TRISB2 =0;
      TRISB3 = 0x00;
      while (1){
      RB2=1;
      RB3 = 1;
      __delay_ms(1000);
      RB2=0;
      RB3 = 0;
      __delay_ms(1000);
      }

      return;
      }
      The error in IPE is : Address: 3d6 Expected Value: 1683 Received Value: 3fff

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว

      @@didemozisik4602 I think the code is fine, although you could change TRISB3 = 0x00; to TRISB3 = 0; . The error is the physical connection of the PICkit3 to the PIC16F627A controller. The data transmission does not work. Have you double-checked your connections?

    • @didemozisik4602
      @didemozisik4602 3 ปีที่แล้ว

      @@FriendlyWire I ignored the error and continued to program the controller. It worked. It is so weird. I am dreaming to make a smart toy. I will be following your videos. Best

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว

      @@didemozisik4602 Glad it worked out, that's fantastic! Way to go! I have had strange errors during flashing, too, but in 9/10 cases it's a bad wire :) Good luck for your projects, and glad you find my videos useful!

  • @mayukhbanerjee8877
    @mayukhbanerjee8877 3 ปีที่แล้ว

    Sir can I use Kiel for the software purpose

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว

      Thanks for the question, Mayukh :) I have never used Keil products for PIC, and Google says it's not so easy. But the MPLAB IDE is free, as well as the XC8 compiler, so the only upfront cost is the PICkit3 (which is around $25). So in order to avoid frustration, as a beginner it is probably better to use the MicroChip tools :) Sorry I could not be of more help, hope you'll have a great day!

  • @mrengtop
    @mrengtop 2 ปีที่แล้ว +1

    The writing is so small, it should be closer presentation.. Thx

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว

      Oh, sorry about that! At what time in the video is the text too small? :)

  • @ruttur1072
    @ruttur1072 2 ปีที่แล้ว +1

    Hi! Really nice initiative to make videos like these, for people who are wanting to learn.
    I got here cause I wanted to learn how to change a lamp I have at home, and would really need some help. I sent you an email about this. Hope you can reply there. Cheers :)

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว +1

      Hey there! I am glad to hear you like these videos! Oops, sorry, I must have missed that email, will go and find it! I should say that I am not an expert on anything power-related, and especially when it comes to charging lithium batteries we should be careful.

    • @ruttur1072
      @ruttur1072 2 ปีที่แล้ว +1

      @@FriendlyWire Oh no, it's just about a lamp and a microcontroller and some LED's. Nothing power related or anything to do with batteries. :)

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว +1

      @@ruttur1072 Oh, my bad, I read "charge" instead of "change," oops! OK, perfect! I will get back to you later today :)

    • @ruttur1072
      @ruttur1072 2 ปีที่แล้ว +1

      @@FriendlyWire Haha no problem. Ok great!

  • @TrueDetectivePikachu
    @TrueDetectivePikachu 2 ปีที่แล้ว +1

    I seriously got some Eclipse PTSD vibes for some reason

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว

      Oh, it's not that bad, I promise :)

  • @jpscafe7648
    @jpscafe7648 2 ปีที่แล้ว +1

    ☹️ esse é um bom trabalho, mas não vamos toma uma 🍺😏 não entendo nada de códigos, de computador! Sinto muito.

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว

      If you want to learn about these things you have come to the right place :) I have many more videos on PIC microcontrollers to get you started!

  • @Alex-rv8gw
    @Alex-rv8gw 3 ปีที่แล้ว +1

    hi sir do you have a full course of the pic microcontroller from scratch for beginners in udemy web

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว

      Hey Alex, no, all my content is available on TH-cam for free (as well as on my website www.friendlywire.com) :)

  • @hamidrahmaty4708
    @hamidrahmaty4708 หลายเดือนก่อน +1

    Please don't touch pins of mcu

    • @FriendlyWire
      @FriendlyWire  หลายเดือนก่อน

      In general it's a good idea not to touch them. But in practice I find it makes no damage if you ground yourself first. I have touched microcontroller pins when inserting them into the breadboard for 10+ years, and none have broken yet.

  • @samuelothimsagah6889
    @samuelothimsagah6889 2 ปีที่แล้ว +1

    Great

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว

      Thank you, Samuel, I am glad you like it! :)