PWM and Fading LEDs 🔴 PIC Microcontroller Programming Tutorial #10 MPLAB in C

  Рет қаралды 15,309

Binder Tronics

Binder Tronics

Күн бұрын

Пікірлер
@BinderTronics
@BinderTronics 4 жыл бұрын
Full playlist on the PIC microcontroller Programming kzbin.info/www/bejne/gYSsZ5mwhLWJsJI If there is anything you would like to see let me know.
@jocimarsilva9425
@jocimarsilva9425 2 жыл бұрын
Very good!
@marswatcher
@marswatcher 2 жыл бұрын
Interesting video. You can do PWM with just 3 lines of code on a Udamonic Scamp3 embedded computer (PIC24-based and running Forth). It compiles down to 32 bytes of machine code. If you haven't tried Forth as an embedded programming language, you really should. It's great.
@BinderTronics
@BinderTronics 2 жыл бұрын
Interesting, did not know that this existed. The only problem is that I assess a language by: "Can I put this on a CV". I really dislike the syntax, reminds me of assembler. C is also pretty much on it way out in favor of C++. I might try it one day.
@marswatcher
@marswatcher 2 жыл бұрын
I guess it depends where you want you a job. NASA uses Forth extensively, particularly in its deep space missions. So do a lot of other companies. I've seen it used in some pretty heavy industrial applications. Speaking personally, I'm an R&D manager and if I see "arduino" or java on a resume, I move on. Just my $0.02.
@BinderTronics
@BinderTronics 2 жыл бұрын
This might be a "type of industry" thing but I have not seen Forth as a requirement or preferred skill. The most common hard requirements that I see are Altium, C/C++ (they mean C++) and VDHL with preferred skills: Python, JavaScript, C# and KiCAD. The most common architecture is also ARM Cortex Mx based MCUs. This is for the Title: Firmware/Embedded Engineer and in the European, American and my local market. Multiple industries including aerospace. Recently went though the process of firing my management. Just sharing what my experience was. My initial impression of Forth was: "Oh this is like Cobol and Fortran". So I assumed it only still exists to maintain legacy systems. Arduino does have its place as a rapid prototyping/POC platform but it is not industrial grade nor can it be maintained long term in production environment. Arduino has done both a lot of good and harm for the industry. I can write a whole essay on Arduino and the frustration it has caused me. Basically comes down to Wizard of Oz MVPs. I have two things to say about Java. The best selling game (as of writing this) is written in Java. The amount Java is used in embedded Linux that needs a GUI is disgusting. I personally do not like Java but I cannot argue with the results. P.S. To anyone else reading this. I have not use PIC MCUs once in my day job. Everything is on ARM or Espressif.
@AMtechEngineeringYT
@AMtechEngineeringYT 4 жыл бұрын
When i did your PR2 equation with your values i got PR2 = 20 how did you get 19?
@BinderTronics
@BinderTronics 4 жыл бұрын
2:46 The original equation is PR2 + 1 thus you get PR2 = x - 1. I did forget to add this explicitly.
@AMtechEngineeringYT
@AMtechEngineeringYT 4 жыл бұрын
@@BinderTronics ahhh, yes i see that now! Thank you for the reply. I've been trying to get my PWM working for hours now and still no luck! I'm using CCP1 with PPS to RB7 On a PIC16F18856
@assoumouhorland9439
@assoumouhorland9439 4 жыл бұрын
Hi Binder Tronics, you included some files in your code. Please can you explain what these files are for ? thanks in advance.
@BinderTronics
@BinderTronics 4 жыл бұрын
Includes are explained in previous videos. kzbin.info/www/bejne/gYSsZ5mwhLWJsJI
@ChunWaFish
@ChunWaFish 5 жыл бұрын
Can you please specify the values of the resistors and the hardware connection?
@BinderTronics
@BinderTronics 5 жыл бұрын
Transistor base 1k 5% (R11-R18) and LEDs 330R 5% (R1-R8). 10k 5% (R10) pull-up on MCLR
@ChunWaFish
@ChunWaFish 5 жыл бұрын
@@BinderTronics Thanks alot! Can you also explain and upload the code for that LCD indicator as well?
@BinderTronics
@BinderTronics 5 жыл бұрын
@@ChunWaFish Store bought amzn.to/2CLXmtE. Couldn't get the multimeter into frame.
@naushad0074
@naushad0074 4 жыл бұрын
Can you please make video of pic pwm for much higher frequency (20 Mhz) to operate mosfet.
@BinderTronics
@BinderTronics 4 жыл бұрын
Gonna need a proper lab for that. Nvm the component cost.
«Жат бауыр» телехикаясы І 26-бөлім
52:18
Qazaqstan TV / Қазақстан Ұлттық Арнасы
Рет қаралды 434 М.
요즘유행 찍는법
0:34
오마이비키 OMV
Рет қаралды 12 МЛН
Your first microcontroller project!
19:44
FriendlyWire
Рет қаралды 70 М.
Pulse Width Modulation and Motor Control with a PIC microcontroller
24:43
How does a USB keyboard work?
34:15
Ben Eater
Рет қаралды 3,3 МЛН
DIY PCB: Professional Results with CNC + Laser
20:23
El Taller de Álvaro
Рет қаралды 185 М.
PCB making, PCB prototyping quickly and easy - STEP by STEP
10:16
WEGSTR s.r.o.
Рет қаралды 7 МЛН
«Жат бауыр» телехикаясы І 26-бөлім
52:18
Qazaqstan TV / Қазақстан Ұлттық Арнасы
Рет қаралды 434 М.