GNL Project
GNL Project
  • 147
  • 4 777
PIC12F1822 Lab 5 - Interactive UART: Building a Guessing Game. PIC Microcontroller
Welcome to the last of our several UART-focused labs with the PIC12F1822! In this lab, we're combining everything we've learned about UART communication to create an interactive guessing game between the microcontroller and a computer.
🎮 Lab Overview:
We'll implement a simple yet engaging number guessing game where the computer chooses an 8-bit number, and the PIC12F1822 tries to guess it. This lab showcases bidirectional UART communication in a real-world application scenario.
🌟 Key Features:
Two-way UART communication between PIC12F1822 and computer
Implementation of a simple guessing algorithm
Processing of "too high" and "too low" feedback
Demonstration of interactive embedded systems programming
🛠 Hands-On Skills:
You'll gain practical experience in:
Configuring UART for both transmission and reception
Implementing a basic search algorithm on a microcontroller
Parsing and responding to text commands
Creating an interactive system with embedded devices
💡 Real-World Applications:
This lab's concepts are applicable in various scenarios, including:
IoT device communication and control
Embedded systems with user interfaces
Sensor calibration and feedback systems
Automated testing and diagnostics in electronics
📚 Educational Value:
This final lab ties together all the UART concepts we've covered, demonstrating how they can be used in a practical, interactive application. It provides a foundation for more complex embedded systems projects involving bidirectional communication.
🔗 Useful Resources:
PIC12F1822 Datasheet: ww1.microchip.com/downloads/en/devicedoc/40001413e.pdf
PIC12F1822 Course Website: www.darinulness.com/learning-communities/gnl-project/related-courses/pic12f1822-microcontroller
GNL Project Homepage: www.darinulness.com/learning-communities/gnl-project
Instructor's Website: www.darinulness.com
GitHub Repository: github.com/ulnessd/PIC12F1822
📺 Series Highlights:
This lab concludes our 4 lab set on UART communication, showcasing how the individual concepts we've learned come together in a practical application. We've journeyed from basic transmission to advanced interactive communication!
💡 Pro Tip:
As you work through this lab, consider how you might expand on this concept. Could you implement more complex games or interactive systems using similar principles?
👍 Stay Connected:
If you've enjoyed our UART series and this final interactive project, please like, share, and subscribe. Your support encourages us to create more engaging, hands-on content for embedded systems enthusiasts!
#pic12f1822 #UART #InteractiveEmbeddedSystems #GuessingGame #MicrocontrollerProgramming #EmbeddedCommunication #GNLProject
มุมมอง: 33

วีดีโอ

PIC12F1822 Lab 4 - Mastering UART: Receiving and Processing ASCII Characters
มุมมอง 24หลายเดือนก่อน
Welcome to Lab 4 in our PIC12F1822 series! Building on our previous UART lessons, we're now exploring the receiving side of serial communication. In this lab, we'll dive into processing incoming ASCII characters and using LEDs to indicate their properties. 🔬 Lab Overview: We'll configure the PIC12F1822 to receive ASCII characters via UART and implement a simple yet effective visualization syste...
PIC12F1822 Lab 3 - Mastering UART: Communication of an Analog Signal. MQ-3 Alcohol Detector
มุมมอง 40หลายเดือนก่อน
Welcome back to our PIC12F1822 series! In this real-life third lab, we're continuing to explore the world of UART (Universal Asynchronous Receiver/Transmitter) communication, a fundamental protocol in embedded systems. This lab is the second of several that will explore the power and versatility of UART. 🔬 Lab Overview: We'll set up the PIC12F1822 to convert an analog signal from an MQ-3 alcoho...
PIC12F1822 Lab 2 - Mastering UART: Fundamentals of Serial Communication
มุมมอง 62หลายเดือนก่อน
Welcome back to our PIC12F1822 series! In this exciting second lab, we're diving into the world of UART (Universal Asynchronous Receiver/Transmitter) communication, a fundamental protocol in embedded systems. This lab is the first of several that will explore the power and versatility of UART. 🔬 Lab Overview: We'll set up the PIC12F1822 to transmit 8-bit signals via UART, visualizing the output...
PIC12F1822 Lab 1 - Getting Started: The Classic LED Blink
มุมมอง 48หลายเดือนก่อน
Welcome to our new series on the PIC12F1822 microcontroller! In this inaugural lab, we're starting with the fundamental "Hello World" of embedded systems: blinking an LED. While simple, this project introduces us to the essential concepts and registers of this more sophisticated mid-range PIC. 🔬 Lab Overview: We'll implement a basic LED blink program, focusing on the necessary file registers an...
PIC12F675 Microcontroller Lab Course: From Basics to Real-World Applications
มุมมอง 90หลายเดือนก่อน
Welcome to the GNL Project's comprehensive lab course on the PIC12F675 microcontroller! This playlist is your gateway to mastering embedded systems programming and applications using this versatile chip. 🎓 Course Overview: This series takes you on a journey from the basics of the PIC12F675 to advanced applications. Through hands-on labs and detailed explanations, you'll gain practical skills in...
PIC12F675 Application Lab - Building a Salinity Tester Alert System. PIC Microcontroller
มุมมอง 24หลายเดือนก่อน
Welcome to our PIC12F675 Application Lab! In this exciting session, we're putting our microcontroller skills to practical use by creating a Salinity Tester Alert system. This project demonstrates how the concepts we've learned can be applied to real-world sensing applications. 🔬 Lab Overview: We'll use the PIC12F675's comparator feature to detect salinity levels in different water samples. This...
PIC12F675 Lab 5 - Mastering Interrupts: GPIO-Triggered Program Flow Control
มุมมอง 33หลายเดือนก่อน
Welcome to Lab 5 of our PIC12F675 series! In this crucial session, we're diving into the world of interrupts, a fundamental concept in embedded systems that allows for responsive and efficient program execution. 🔬 Lab Overview: We'll explore the interrupt capabilities of the PIC12F675, focusing on the GP2 pin interrupt. You'll learn how to set up an interrupt-driven system that can immediately ...
PIC12F675 Lab 4 - ADC Mastery: Building a Voltage-Controlled Pulse Width Modulator (PWM)
มุมมอง 73หลายเดือนก่อน
Welcome to Lab 4 of our PIC12F675 series! In this exciting session, we're combining our ADC knowledge with Pulse Width Modulation (PWM) to create a voltage-controlled dimmer. This project showcases the power and versatility of the PIC12F675 in real-world applications. 🔬 Lab Overview: We'll use the ADC to read an analog voltage and use that value to control the duty cycle of a PWM signal. This p...
PIC12F675 Lab 3 - Analog to Digital Conversion Advanced: Flipping a Coin. PIC Microcontroller
มุมมอง 40หลายเดือนก่อน
Welcome to Lab 3 of our PIC12F675 series! In this exciting session, we're taking our ADC knowledge to the next level by creating a unique random number generator - or more accurately, a digital coin flipper! 🔬 Lab Overview: We'll use environmental noise as our analog input and harness the ADC's least significant bit to generate random outcomes. This project showcases a creative application of A...
PIC12F675 Lab 2 - Analog to Digital Conversion Basics: Visualizing Voltage with LEDs.
มุมมอง 33หลายเดือนก่อน
Welcome to Lab 2 of our PIC12F675 series! In this session, we're diving deep into the Analog-to-Digital Converter (ADC) feature, a powerful tool for interfacing with the analog world. TYPO On the whiteboard I list the ADCON1 register. It should be the ADCON0 register. The code is correct. 🔍 Lab Overview: We'll explore the ADC by creating a simple 4-bit voltage display using LEDs. This hands-on ...
PIC12F675 Lab 1 - Mastering the Comparator: Two Essential Configurations. PIC microcontroller
มุมมอง 24หลายเดือนก่อน
Dive into the world of analog comparators with Lab 1 of our PIC12F675 series! This two-part lab explores one of the most versatile features of this microcontroller, essential for various scientific and hobbyist applications. 🔬 Lab Overview: Part 1: Standard Two-Input Comparison Configuration Part 2: Single Input vs. Internal Reference Voltage Configuration 🌟 Key Takeaways: Understanding the com...
PIC12F675 Preliminary Material - Datasheet: Understanding Your PIC Microcontroller
มุมมอง 44หลายเดือนก่อน
Welcome to our PIC12F675 series! In this preliminary session, we're laying the groundwork for your microcontroller journey by exploring the PIC12F675 datasheet. This comprehensive overview is essential for anyone looking to master this versatile chip. 🔍 Key Takeaways: Detailed exploration of PIC12F675 features and capabilities In-depth look at the chip's memory structure Overview of crucial fil...
PIC12F675 Lab 0 - Setting Up Your MPLAB Development Environment and PICKIT 5. The Classic Blink.
มุมมอง 67หลายเดือนก่อน
Welcome to Lab 0 of our PIC12F675 series! In this session, we're tackling the quintessential microcontroller project: blinking an LED. This lab is perfect for newcomers and a great refresher for those familiar with other PIC models. 🌟 Key Takeaways: Step-by-step guide to wiring the PIC12F675 for programming with PICKIT5 Creating a new project in MPLAB X IDE Setting up an assembly file with prop...
Magnetic Fields: Magnetostriction, Entropy and Adiabatic Demagnetization
มุมมอง 244 หลายเดือนก่อน
Welcome to the final lecture in our series on Thermodynamics of Fluids in External Fields. In this session, we delve into the fascinating world of magnetic fields, focusing on magnetostriction, the changes in entropy, and the process of adiabatic demagnetization. We start by deriving the key formulas that describe how magnetic fields can induce dimensional changes in materials through magnetost...
Thermodynamics of Electric Fields: Electrostrictive Pressure
มุมมอง 104 หลายเดือนก่อน
Thermodynamics of Electric Fields: Electrostrictive Pressure
Thermodynamics of Electric Fields: Frank Apparatus and Isothermal, Isobaric Electrostriction
มุมมอง 64 หลายเดือนก่อน
Thermodynamics of Electric Fields: Frank Apparatus and Isothermal, Isobaric Electrostriction
Thermodynamics of Electric Fields: Isothermal, Isotonic Electrostriction and Entropy
มุมมอง 134 หลายเดือนก่อน
Thermodynamics of Electric Fields: Isothermal, Isotonic Electrostriction and Entropy
Thermodynamics in General External Fields and Barometric Formula
มุมมอง 114 หลายเดือนก่อน
Thermodynamics in General External Fields and Barometric Formula
Introduction to a minicourse on thermodynamics for fluids in external fields
มุมมอง 84 หลายเดือนก่อน
Introduction to a minicourse on thermodynamics for fluids in external fields
Common Ion Effect and Buffers
มุมมอง 45 หลายเดือนก่อน
Common Ion Effect and Buffers
Limiting Reagents
มุมมอง 15 หลายเดือนก่อน
Limiting Reagents
Friction
มุมมอง 25 หลายเดือนก่อน
Friction
Temperature and the Zeroth Law of Thermodynamics
มุมมอง 25 หลายเดือนก่อน
Temperature and the Zeroth Law of Thermodynamics
The Born Model of Solvation
มุมมอง 3485 หลายเดือนก่อน
The Born Model of Solvation
Le Chatelier's Principle: A Quantitative Approach
มุมมอง 235 หลายเดือนก่อน
Le Chatelier's Principle: A Quantitative Approach
The Henderson Hasselbach Equation and Buffers
มุมมอง 45 หลายเดือนก่อน
The Henderson Hasselbach Equation and Buffers
Chemical Potential
มุมมอง 25 หลายเดือนก่อน
Chemical Potential
Acid/Base Equilibria
มุมมอง 15 หลายเดือนก่อน
Acid/Base Equilibria
Acids and Bases
มุมมอง 35 หลายเดือนก่อน
Acids and Bases

ความคิดเห็น

  • @AkshayKumar-yl6dc
    @AkshayKumar-yl6dc 2 วันที่ผ่านมา

    Sir i'm from india studying for jee Can you tell me why steric factor in arrhenius equation is greater than unity for harpoon reaction

    • @GNLProject-yp8po
      @GNLProject-yp8po 2 วันที่ผ่านมา

      Hi Akshay, Thanks for the comment. I want to start by saying that I am not an expert on harpoon reactions which are a category of charge transfer reactions. Perhaps an expert will see your comment and offer more than I can. Your pointing out that the steric factor is greater than 1 is indicative of the fact the reactions proceed faster than expected from simple collision theory. It is plausable that some degree of quantum tunnelling through the reaction energy barrier is occuring. This would result in a reaction that occurs faster than expected and it is known to occur for some reactions. I'm not sure this is the case for harpoon reactions. One thing to keep in mind is that the Arrhenius is an emperical equation and so neither A nor Ea can be truely assigned to a specific physical event. Thus the generic cross-section of the "collision" might not correspond to the actual physical cross-section of any specific pair of particles.

  • @baghalimathapa1302
    @baghalimathapa1302 2 วันที่ผ่านมา

    Thank you for excellent delivery on the methamatical derivations. Is it possible to do a video on the theory of dropshape analysis for measuring surface tenstion? Especially the mahematical part.

    • @GNLProject-yp8po
      @GNLProject-yp8po 2 วันที่ผ่านมา

      Hi Baghali, Thanks for the suggestion. It may be a fair bit of time before I am able to do that. I'm not sure yet when I'll be able to get to it.

  • @jaimeestrella4613
    @jaimeestrella4613 5 วันที่ผ่านมา

    Inputs always need pull-up resistors either internal or external. There is one more thing, in this pic (12f675) you should grub the factory OSCCAL and save it on a register, say w_temp or whatever name, and after returning from the interrupt, that saved value must be put back in the OSCCAL ( address 3FFF). If an external oscillator (crystal) is used, then there is no need to do this, but in this caseyou are using the internal oscillator so you should save the OSCCAL in order to avoid loosing the factory calibration of the OSCCAL

    • @GNLProject-yp8po
      @GNLProject-yp8po 3 วันที่ผ่านมา

      Thanks, Jaimee, for your helpful comment. I hope others viewing this will notice you comment.

  • @AncientNordTechnologies
    @AncientNordTechnologies 10 วันที่ผ่านมา

    Thank you for your work. please create a playlist for this MCU

    • @GNLProject-yp8po
      @GNLProject-yp8po 9 วันที่ผ่านมา

      Thanks for your comment. I’m planning to. I’d like to get a few more features of the PIC12F1822 made into videos so that I can have a more complete playlist. In the meantime they are all the latest videos listed for the channel.

  • @kieranj67
    @kieranj67 13 วันที่ผ่านมา

    Thanks

    • @GNLProject-yp8po
      @GNLProject-yp8po 13 วันที่ผ่านมา

      Your welcome. Good luck with your studies and projects.

  • @imperatoreTomas
    @imperatoreTomas 17 วันที่ผ่านมา

    Thank you! I’ve learnt statistical thermodynamics but never chemical thermodynamics. The differences are very interesting

    • @GNLProject-yp8po
      @GNLProject-yp8po 17 วันที่ผ่านมา

      Yeah. These days and even when I was in graduate school the focus of the curriculum was statistical thermodynamics and quantum mechanics. It was only when I started teaching did I really appreciate thermodynamics for its power and elegance. Good luck with your studies!

  • @AncientNordTechnologies
    @AncientNordTechnologies 25 วันที่ผ่านมา

    Great video. Thank you for your work. You can click the mouse on the SFRs, hold and drag to the right, you will be able to view at the same time File Registers and SFRs

    • @GNLProject-yp8po
      @GNLProject-yp8po 23 วันที่ผ่านมา

      Thanks for the tip! There’s lots to the MPLAB ide that I have yet to learn!

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

    great video

    • @GNLProject-yp8po
      @GNLProject-yp8po 2 หลายเดือนก่อน

      Thanks. Good luck with your studies!

  • @MihirBhalothia-rs3uw
    @MihirBhalothia-rs3uw 2 หลายเดือนก่อน

    Sir , would you please tell me the difficulty difference between the questions of jee advanced physical chemistry vs the questions that are taught in American Universities. Please 🥺

    • @GNLProject-yp8po
      @GNLProject-yp8po 2 หลายเดือนก่อน

      Thanks for the question. I'm not going to be able to give you a satifactory answer. The range of difficulty varies considerably. The treatment of the topics in the series this video is in is at what would be considered the elementary or "freshman" level. Typically, in what would be considered normal undergraduate physical chemistry in the United States, the questions would rely on a knowledge of calculus. Finally, graduate school level physical chemistry can involve some pretty advanced mathematics. One can start to learn the basic physical concepts seen in physical chemistry early and then as one gains more experience in advanced mathematics, one can really probe deep questions about how nature works.

  • @joel.espinoza.o
    @joel.espinoza.o 5 หลายเดือนก่อน

    Better explanation that Microchip.

    • @GNLProject-yp8po
      @GNLProject-yp8po 5 หลายเดือนก่อน

      Thanks. Good luck with your studies!

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

    Well explained

    • @GNLProject-yp8po
      @GNLProject-yp8po 5 หลายเดือนก่อน

      Thanks. Good luck with your studies!

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

    Thank you! As a part of an adsorption project, I extend my deepest gratitute for a dive into the theory and making it public! All the best to you and hope for a great development of your project!

    • @GNLProject-yp8po
      @GNLProject-yp8po 5 หลายเดือนก่อน

      Thank you. And good luck with your studies!

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

    Clear explanation, good video. Thank you sir!

    • @GNLProject-yp8po
      @GNLProject-yp8po 5 หลายเดือนก่อน

      I'm glad you found it useful. Good luck with your studies!

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

    Awesome video! Makes me understand pointers in general much better 👏👏👏

    • @GNLProject-yp8po
      @GNLProject-yp8po 6 หลายเดือนก่อน

      Great! Thanks for watching.

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

    Awesome video I will watch the complete series :) great explanation keep up the great work it's so cool that you do the programming in ASM

    • @GNLProject-yp8po
      @GNLProject-yp8po 7 หลายเดือนก่อน

      I’m glad you enjoyed the video. Yes! It’s fun to think about how to do things in assembly with a limited instruction set. You really feel close to the 1’s and 0’s in the registers.

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

    Amazing tutorial! Thank you for the video!

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

    Looks Great Darrin! A suggestion would be to use a single trigger for the DSO. This way you can 'freeze' and see the waveform :)

    • @GNLProject-yp8po
      @GNLProject-yp8po 7 หลายเดือนก่อน

      Ha! Yes, good suggestion! I'm embarrassingly poor with oscilloscopes. :)

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

    Very impressed! learned more in this video than i have ever done before! Appreciated and thank you :), Of course i do have a question.... :) If I wanted to program an external device only once, i.e. done in the main: only, will I then just need to do a simple nop in mainloop: so to keep the pic active? The external device only needs to be prgrammed once. Peter

    • @GNLProject-yp8po
      @GNLProject-yp8po 7 หลายเดือนก่อน

      I'm glad you found this useful, Peter. I'm not completely sure I'm interpreting your question correctly but here are a couple of things. You certainly can streamline the program. In fact you don't need mainloop. For a simple program with no function calls (like delay) then you could just have main. You would need a goto main at the end to keep the program running. Generally, one never has the program terminate on the microcontrollers. So something like nop and goto main would be just about the simplest program. Of course, it wouldn't do anything.

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

    amazing video! Thank you

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

    Amazing! Thank you!

    • @GNLProject-yp8po
      @GNLProject-yp8po 7 หลายเดือนก่อน

      Your welcome. Good luck with your studies!

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

    Excellent learning path with the PIC10F200 and Assembly programming. The knowledge shared in your videos will undoubtedly serve as a foundation for excellent projects. Once again, thank you for sharing.

    • @GNLProject-yp8po
      @GNLProject-yp8po 7 หลายเดือนก่อน

      You’re welcome. Good luck with your projects.

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

    Thanks for sharing.

    • @GNLProject-yp8po
      @GNLProject-yp8po 7 หลายเดือนก่อน

      You bet. Good luck with your studies.

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

    I'm following your program class in an attempt to learn to program chips with a PICKIT-5 and being 76 years old this is a great addition to my electronics and ham radio hobby projects. In following this video my MPLAB X IDE ver 6.15 does not show "PIC-AS" where it appears in your program.....what have I missed ???

    • @GNLProject-yp8po
      @GNLProject-yp8po 7 หลายเดือนก่อน

      Yes, I really enjoy these in addition to electronic circuits as well. I wanted to respond quickly to acknowledge your question. Currently, my students are getting ready for a conference so I'm a bit busy this weekend but I'll try to get you a more complete answer as soon as I can.

    • @GNLProject-yp8po
      @GNLProject-yp8po 7 หลายเดือนก่อน

      In seting things up, one needs to install the IDE as well as the compiler. The compiler is not installed automatically. I think that is because there are different compilers for the different families of PIC microcontrollers. We need the 8-bit compiler, which is called XC8. I suspect that you may need to install that or it did not install correctly. Here is a link to the XC8 8-bit complier: www.microchip.com/en-us/tools-resources/develop/mplab-xc-compilers/xc8 Fortunately or unfortunately depending on one's point of view, I have not experienced any issues with my MPLAB installs so I don't have any experience troubleshooting. I hope this corrects the problem and you can get off and running.

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

      Thank you for taking time during your busy weekend to help with a suggestion. I will see if that corrects the issue for me. I have some PIC10F200 coming from Mouser the first part of the week, hopefully! I look forward to following and learning from your GNL TH-cam course.

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

      @@GNLProject-yp8po That was the part that I had missed. Thank you again

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

    A great works, thanks

    • @GNLProject-yp8po
      @GNLProject-yp8po 8 หลายเดือนก่อน

      I'm glad you found it helpful. Good luck in your studies.