How to program an analog clock with a microcontroller

Sdílet
Vložit
  • čas přidán 24. 07. 2024
  • This is the additional program guide for the PIC16F1455 analog clock project, where we talk about how to program an analog clock with a PIC microcontroller and program the C source code for the XC8 compiler line by line.
    Main video: • Building an analog clo...
    Companion article: www.friendlywire.com/projects/...
    Thanks for watching, and let me know in the comments if you have any questions!
    Website: www.friendlywire.com
    Twitter: / friendlywire
    Reddit: / friendlywire
    Facebook: / friendlywire
    Instagram: / friendlywire
    Timestamps:
    00:00 Introduction
    01:41 Part 0: setting up the software
    04:16 Part 1: talking to the LEDs
    10:15 Part 2: reading out the pushbuttons
    15:20 Part 3: configuring the internal oscillator to 4MHz
    20:47 Part 4: using TIMER1 to create a solid 1Hz timebase
    30:16 Part 5: software timebase and animating the LEDs
    35:59 Part 6: configuring the external interrupt
    39:26 Part 7: pulse width modulation
    44:19 Part 8: converting time information into a PWM signal
    46:24 Part 9: SLEEP mode
    52:01 Conclusion

Komentáře • 11

  • @jonashuesenielsen9513
    @jonashuesenielsen9513 Před rokem +1

    This is awesome, I am an electronics engineering student my self, and it is always nice with a well rounded tutorial to brush up on some stuff.
    And might I say, the pickit seems like a nice way to use a microcontroller. Correct me if I’m wrong, but some microcontrollers need so much setup, that it ia almost impossible to do it yourself at home. Nice that there is actually a usable solution, so that we can avoid arduino a bit 😂😊

    • @FriendlyWire
      @FriendlyWire  Před rokem +1

      Thanks for your kind words, Jonas! I agree, the PICkit is not so hard to set up, especially for these 8 bit microcontrollers :)

  • @amarnath12640
    @amarnath12640 Před rokem +1

    Good work bro keep going

    • @FriendlyWire
      @FriendlyWire  Před rokem

      Thank you, glad you like it! And I have no plans of stopping :) Is there a particular topic you would like to see on this channel?

  • @jerril42
    @jerril42 Před 2 lety +1

    That was awesome Jens. There were so many great points brought up in this tutorial. It may be long but there was a good deal of information about programming, researching and debugging.

    • @FriendlyWire
      @FriendlyWire  Před 2 lety +1

      Thank you so much, Jerry! For this project, since there are so many components, a simple walkthrough of the finished code would have swept things a bit too much under the rug. Glad you like it!

  • @SpinStar1956
    @SpinStar1956 Před rokem +1

    Hi There! New to the channel and just subscribed.
    Used to do a lot of PIC programming but have been away from it for years (I started with PIC 16F84 and MPASM doing is all in assembly!).
    I was thinking of doing a project for a friend (a solar charge controller (for his raeley used truck) and so was trying to get my PIC-memory brains-cells back to a functioning level. I used to use the old MPLAB 8 and the Hi-Tech C but see that they have this new MPLAB-X and XC8; so am looking over your shoulder to see how to use the new GUI. I was puzzled why you use MPE when you can c program through the PICkit3 directly from main MPX?
    Anyway, really like you channel and hope to learn more from you... Thanks!

    • @FriendlyWire
      @FriendlyWire  Před rokem

      Thanks for your kind words, and welcome back to the world of PIC microcontrollers! Yes, using the built-in programmer would make more sense... except that for some reason it does not run properly on my computer, and there is no reliable connection; the simpler, MPLAB IPE standalone option works just fine, however. So I like to use that one, especially for beginners who just want to flash a ready-made .hex-file it can be a bit simpler to use (for example in the project here with the analog clock, there is no need to compile your own code, and if you just want to build this project as a beginner the MPLAB IPE is easier to use, I find). What do you think?
      Thanks again, and have a great rest of your week!

    • @SpinStar1956
      @SpinStar1956 Před rokem +1

      @@FriendlyWire Jens, I sent you an email on your website; did you happen to see it?

    • @FriendlyWire
      @FriendlyWire  Před rokem

      @@SpinStar1956 My goodness, no, when did you send it? I will have to check again, my apologies.

    • @SpinStar1956
      @SpinStar1956 Před rokem

      @@FriendlyWire Thursday the 12th 🗓 to the “info” account.