How to use rotary encoders
14:12
Жыл бұрын
MAX7219 LED multiplexing tutorial
13:26
NE555 tutorial: three useful circuits
16:09
CD4026 decimal counter tutorial
7:59
Build your own electronic dice!
21:37
Your first microcontroller project!
19:44
Пікірлер
@Fritzenlab_Br
@Fritzenlab_Br 4 күн бұрын
Nice idea, might give it a try with my Pi Pico W
@oskimac
@oskimac 7 күн бұрын
you lost me on "pic" microcontroller. sorry . but i will try to take alook at the full video anyways.
@FriendlyWire
@FriendlyWire 7 күн бұрын
Oh, no worries, I have a whole lot of videos on these controllers on this channel, so you won't be completely on your own. Alternatively, the method described in this video works with any microcontroller that has TRISTATE IOs (= pins that can be either an input or an output). Let me know if that helps :)
@oskimac
@oskimac 7 күн бұрын
@@FriendlyWire i mean i more into atmel (arduino guy) also i developed a kond of hate/fear at pic back in the days pre arduino when programers where expensives and code dificult. thanks for you answer
@FriendlyWire
@FriendlyWire 6 күн бұрын
@@oskimac The same technique works on AVRs :)
@boring_radio838
@boring_radio838 12 күн бұрын
thx!
@FriendlyWire
@FriendlyWire 11 күн бұрын
Thank you, glad you like it :)
@Ali_Babao_01
@Ali_Babao_01 13 күн бұрын
Thank you soo much, Please continue
@FriendlyWire
@FriendlyWire 13 күн бұрын
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 :)
@HSens-u8d
@HSens-u8d 14 күн бұрын
Hi my friend l need to make this ckt. Bul l dont have the fils. To build. I need to help me . Tanks for you
@FriendlyWire
@FriendlyWire 14 күн бұрын
Did you see the companion article at www.friendlywire.com/tutorials/touch/ ? This has all the files and details :)
@alanturner1184
@alanturner1184 15 күн бұрын
Another interesting video thank you
@FriendlyWire
@FriendlyWire 14 күн бұрын
Thank you, I am glad you found it useful! :)
@alanturner1184
@alanturner1184 16 күн бұрын
Great video explained extremely well thank you.
@FriendlyWire
@FriendlyWire 16 күн бұрын
Thank you so much, I am glad you found it useful!
@alanturner1184
@alanturner1184 15 күн бұрын
@@FriendlyWire I will be building a few circuit once I have a few parts. Thanks again for a very informative video I enjoyed your web page and other video, have a good weekend
@FriendlyWire
@FriendlyWire 14 күн бұрын
@@alanturner1184 Thank you so much! Send me a picture of what you are building, my email is at the bottom of www.friendlywire.com, I'd love to see it :) And don't hesitate to reach out if anything doesn't work, we will figure it out :) And a great weekend to you too!
@patswazent
@patswazent 19 күн бұрын
Hi, what peripheral did you use on the pic, if none at all ? i understand that it needs 48mhz clock function to get thoses speeds, wouldnt there be any way to use a 16/32mhz clock and a "true" peripheral that can make the proper timings ? my goal is to use a cheaper/low entry pic for a RGB project. thanks.
@FriendlyWire
@FriendlyWire 19 күн бұрын
I used the PIC16F1455 because it has the option for 48MHz which is really fast for a mid-range PIC. Others will need an external one, but I am not sure if they can run so fast. As I understand it you are thinking of using, say, a PIC16F84 and connect it to a 32MHz crystal? If yes, we need to check the specs of that chip. Which one do you have in mind?
@patswazent
@patswazent 19 күн бұрын
@@FriendlyWire Hi, i dont have any PIC in mind, right now i am using a 18LF6410 from an existing project that runs at 32mhz. it would be nice if i could drive WS leds with it. As i understand there is no periphral that could handle this pwm type modulation, not at thoses speed imho. 16f913/916, 18f6410, 18f4431,...any of thoses would do it for me. thanks a lot !
@patswazent
@patswazent 18 күн бұрын
fwiw ive been able to make it work at 32mhz but it was trickey since all instructions takes a lot of time, its done is assembly coding (.asm) and could be used in any low cost/low entry pic as long as it runs at 32mhz.
@Oliver-OBM
@Oliver-OBM 21 күн бұрын
Wow! Perfect video! Thanks!!
@FriendlyWire
@FriendlyWire 21 күн бұрын
Thank you, Oliver, I am glad you found it useful! :)
@gregwx
@gregwx 24 күн бұрын
Such a great video thank you very much. Question, if the PC is solder to a PCB is there a way to bridge it to reprogramed/flash or this might get issues?.
@FriendlyWire
@FriendlyWire 23 күн бұрын
Thank you, I am glad you found the video helpful! To answer your question: it depends, unfortunately, one what is connected to the controller. If you have a PCB, check if there is a "programming interface" connector or something like that. A lot of production PCBs are designed such that the PIC can be flashed after being soldered, for convenience. If such a pinheader exists, it should be OK to flash it. Hope it helps!
@eitantal726
@eitantal726 25 күн бұрын
2:53 caution about that high-impedance. When your load is a 10M, and your capacitance is in the pFs, then the high-impedance input pin is no longer negligible. Also, at that high impedance, You'll pick up a bunch of RF, too.
@FriendlyWire
@FriendlyWire 25 күн бұрын
It's true, this circuit can work a bit wonky if there is lots of interference (like fluorescent light bulbs, or noisy power supplies). But I am not sure what your reference to 2:53 means, could you explain more?
@eitantal726
@eitantal726 24 күн бұрын
@@FriendlyWire This is when you introduced the input pin and said it's high-impedance
@hamidrahmaty4708
@hamidrahmaty4708 26 күн бұрын
Please don't touch pins of mcu
@FriendlyWire
@FriendlyWire 25 күн бұрын
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.
@fahtfakcarl7695
@fahtfakcarl7695 27 күн бұрын
it’s just so sad to see quality content creators not getting enough recognition and giving up
@FriendlyWire
@FriendlyWire 26 күн бұрын
Thank you for the compliment! But rest assured I am not giving up :) I moved internationally and I only now have all my electronics stuff in one place again. I am working on the next tutorial on LCDs :)
@fahtfakcarl7695
@fahtfakcarl7695 27 күн бұрын
I think you could benefit from posting a bunch of shorts, increasing your exposure
@FriendlyWire
@FriendlyWire 25 күн бұрын
Thanks for the suggestion! I am not sure if shorts are the way to go, to be honest, because I like to explain things properly, and shorts may bring in people with a different expectation :)
@fahtfakcarl7695
@fahtfakcarl7695 27 күн бұрын
15k subscribers channel 5M subscribers quality
@FriendlyWire
@FriendlyWire 26 күн бұрын
Thanks so much! :)
@kobie1585
@kobie1585 27 күн бұрын
That's a nice video Boss👍👍👍, I've just subscribed to your channel and liked your video..........Hello from Ghana, Africa✌✌✌
@FriendlyWire
@FriendlyWire 26 күн бұрын
Thanks so much, I am so glad you like it! Best wishes from Germany! :)
@anhthodung92
@anhthodung92 27 күн бұрын
Thank you ! I from Vietnam's
@FriendlyWire
@FriendlyWire 26 күн бұрын
Glad you like it! Best wishes from Germany!
@anhthodung92
@anhthodung92 26 күн бұрын
@@FriendlyWire I admire your country very much !
@FriendlyWire
@FriendlyWire 26 күн бұрын
​@@anhthodung92 Thank you! I have always wanted to visit Southeast Asia more, I love the food so much :D
@Dj.julien.b
@Dj.julien.b Ай бұрын
Outstanding explanation ! Thanks
@FriendlyWire
@FriendlyWire 26 күн бұрын
I am glad you like it, and thank you for your kind words!
@samudrapanda3990
@samudrapanda3990 Ай бұрын
Nice Video... Thanks a lot
@FriendlyWire
@FriendlyWire 26 күн бұрын
Glad you like it, and have a great day! :)
@fabioeleuterio9382
@fabioeleuterio9382 Ай бұрын
Simple and very well explained. Thanks for sharing!
@FriendlyWire
@FriendlyWire 26 күн бұрын
Thank you for your kind words, I am so glad you liked it! :)
@thanatosor
@thanatosor Ай бұрын
Are people still using PIC nowadays ? I have so many mixed comments into starting with it...
@FriendlyWire
@FriendlyWire 25 күн бұрын
I guess the answer is YES, since this channel exists ;-) I like to use them for the type of projects and applications I share on this channel, but there are of course other alternatives. I like to program them in C, since you learn a lot about how registers work, and how the hardware is configured. But you have to choose what you like best, of course :)
@thanatosor
@thanatosor 24 күн бұрын
@@FriendlyWire i have just tested some PICs with this PICKIT3, and I must say it's a very hard time finding a working version of IDE/IPE to actually let you connect the device. I eventually had to use MPLAB X IDE 6.20 + Standalone PICKIT3 Programmer 3.10 to completely control over this. I think PIC / PICKIT3 are very obsolete technology nowadays that Microchip doesn't even bother to maintain correctly.
@perezpaezandrea1201
@perezpaezandrea1201 Ай бұрын
Very nice project, unfortunally i only can find pic16f84 in my town
@jervx829
@jervx829 Ай бұрын
Thanks my F75 keybord volume knob literally jumps value, this vid will help a lot. Should I just clean it or replace the EC11?
@FriendlyWire
@FriendlyWire 25 күн бұрын
It can be dust inside the rotary encoder. Get some compressed air and try to get rid of it. I had a similar case a few years back, and after the compressed air it worked fine again. Good luck, and let us know what you find :)
@jervx829
@jervx829 24 күн бұрын
@@FriendlyWire ​ The rotary encoder in my keyboard has clips located underneath, so I couldn't open it without desoldering. I went ahead and desoldered it from the module, then carefully cleaned the inside with a Q-tip. After reassembly, it's now working perfectly. I'm not entirely sure what caused the issue, as I didn’t find any visible dust or debris. It’s possible something very small got lodged in the contacts. There was a decent amount of lube inside as well, which seemed fine. I soldered the encoder back in place, but since I don’t have proper desoldering tools, I only used a minimal amount of solder just enough to hold it in. This way, if the problem returns, it’ll be easier to remove again. It’s been a week now, and everything’s still functioning well. Thanks for the vid I have a good guide what is in the inside and how it works.
@FriendlyWire
@FriendlyWire 24 күн бұрын
@@jervx829 Wow, that sounds like quite the operation! Congratulations, and yes, it's quite possible that there was a small piece of debris that affected the inside contacts. Thanks for sharing, and congratulations again, nicely done! :)
@lepetitponey
@lepetitponey Ай бұрын
Hi. I'd like to use a rotary encoder with an esp32. Is it okay to use it "raw" or do I have to use it on a module board (with 4 pins) ? If I use it raw, do I have to add resistors, or does the esp have internal pull up resistors like the chip you use in the video? I'm sorry I don't know anything about resistors...
@FriendlyWire
@FriendlyWire 24 күн бұрын
Thank you for the question! This all depends on the inputs of your ESP32. I am not an expert on these chips, but in general it does not hurt to add pullup resistors. If the circuit works between 3-5V, then 4.7 kilo Ohm resistors are a good choice. I am not really sure, however, what you mean by the module board. Do you have a link? These module boards are not usually needed if you program the microcontroller yourself, like in this video, because we do all the decoding ourselves in software :)
@Airstrike_lol
@Airstrike_lol Ай бұрын
absolute giga chad ngl🗿
@FriendlyWire
@FriendlyWire 24 күн бұрын
To quote your username: lol :D But in all seriousness, I am glad you found the video helpful!
@antunvujica2220
@antunvujica2220 Ай бұрын
Hello, i have a question and i'm not sure where to ask it, but the people here seem to know ehat they are talking about. I have a project where i am supposed to interface a rf pickup sensor. The rf pickup sensor produces a very weak signal, and i do not really know how t amplify it, and convert it to a DC output. So could i use the PIC16F1455 to do so. Basically the question is how sensitive is the ADC on the board? Thanks!
@FriendlyWire
@FriendlyWire 24 күн бұрын
Thanks for the question! ADC's are typically not used to amplify signals, for that you would need an operational amplifier or a good old transistor circuit, all in the realm of "analog electronics." Once you have an amplified signal that is in the range of 0-5V DC, you can use the PIC's ADC to convert it into a number between 0..1023. But before the signal is amplified, this conversion does not really help since you would lose a lot of resolution of the ADC. Let me know if this helps :)
@antunvujica2220
@antunvujica2220 24 күн бұрын
@@FriendlyWire so i should focus on amplifying the signal first? I also have a few arduini boarda, so could i use the arduino as an adc?
@rrssmooth6643
@rrssmooth6643 Ай бұрын
Jesus christ, looking again at video, you are one clever bastard.
@FriendlyWire
@FriendlyWire Ай бұрын
Hahaha I am glad you like the video, thanks! :)
@afarukbey9707
@afarukbey9707 Ай бұрын
Hi! I could not understand but mine just counts till 7 then returns back to 0. Help!
@FriendlyWire
@FriendlyWire Ай бұрын
Thank you for your question! Is it possible that the touch button you use bounces? This could explain why the counter sometimes jumps. Is your reset pin connected to anything? Don't worry, these kind of things are normal and can happen (and happened to me a lot of times, too), but we will find the mistake :)
@ben10er6
@ben10er6 Ай бұрын
can someone help me how many of these 220 resisters do i need for a flickering orange bulb with two aa batterys
@FriendlyWire
@FriendlyWire Ай бұрын
You can try 100 Ohms, it should work OK.
@ben10er6
@ben10er6 Ай бұрын
@@FriendlyWire thankyou
@FriendlyWire
@FriendlyWire 26 күн бұрын
@@ben10er6 Happy to help! If anything doesn't work, let me know, we will figure it out together :)
@jamesfisher4110
@jamesfisher4110 Ай бұрын
how can I make a large 8x8 matrix of these sensors?
@FriendlyWire
@FriendlyWire Ай бұрын
Multiplexing does not work with this schematic, unfortunately, so you will need a single microcontroller input for each one of these. But if you need that many pins then maybe it's a good idea to search for a dedicated chip that does this sort of thing. What is your application?
@B5hourz
@B5hourz Ай бұрын
when adding on the picofarad capacitor, where exactly should it be in the circuit and what value picofarad?
@FriendlyWire
@FriendlyWire Ай бұрын
I have never done this, so I am not 100% sure. It depends also on the length of the PCB traces. The overall stray capacitance is a few picofarad, so if you aim for, say, 22pF, it would be a good starting point. But since I have not built this on a PCB I am not an expert on this unfortunately, it may require some experimenting.
@guilloip
@guilloip Ай бұрын
I used to connect a device with a computer using device printer pins RS232 to DB9 RS232 at PC but RS232 board broke down and now I am using an USB -RS232 at computer side but instead of coherent writeable ascii I am getting commands characters under space codes 02 02 ... 02 18 10 The last 10 for LF is expected but 02s should be spaces and weights in ascii I am pretty sure that its a device configuration problem, but I thought, might it be a connection or a RX-TX inversion problem? Well, now, because of your comment I will try inverting them. BTW the device is a dynamic wagon weighting scale.
@FriendlyWire
@FriendlyWire 24 күн бұрын
Interesting! Yes, it's easy to switch RX/TX either by mistake or by thinking about it wrongly, since one device's RX can be the other device's TX (or RX) depending on how everything is configured :) Did you manage to figure it out?
@ecotronic6622
@ecotronic6622 Ай бұрын
Thank you for this video. Unfortunately MPLABX IPE V5.25 can't connect to the programmer (pickit3). I tried with an external power supply without success. The same programmer works fine with the standalone application pickit3 v.3.10.
@FriendlyWire
@FriendlyWire Ай бұрын
That is strange---although PICkit3 is no longer officially supported, I am using it every day with the newest release of MPLAB IPE. Can you share a screenshot? You can reach me on social media (links in description) or via email (at the bottom of www.friendlywire.com) so we can get this sorted out :)
@ecotronic6622
@ecotronic6622 Ай бұрын
@@FriendlyWire Thank you for your reply. Meanwhile, the problem is resolved, thanks to this video: kzbin.info/www/bejne/rJfQfahsjd91qtk. In brief - pickit3 had to be switched to MPLAB mode, either through the standalone application or by holding pressed the button, while usb plug-in.
@FriendlyWire
@FriendlyWire Ай бұрын
@@ecotronic6622 That is so interesting---I never had to do anything to my PICkit3 to make it work with the IPE. Thanks for sharing, this is good to know!
@cubirk
@cubirk Ай бұрын
im having this error: Target Device ID (0x0) is an Invalid Device ID. Please check your connections to the Target Device. please help i even changed pics already and tried another compiler
@FriendlyWire
@FriendlyWire Ай бұрын
If it reads back 0x0 it most likely means that the PIC is not connected to power. Can you check the VDD and VSS pins for 5V?
@cubirk
@cubirk Ай бұрын
​@@FriendlyWire i got the cyan brick thing that connects all the pins already , and it did tell me that the pic is not powered but i fixed that error already using the ipe power section, but i still get the id error
@FriendlyWire
@FriendlyWire Ай бұрын
​@@cubirk Can you send me a picture of the setup? You can find my email at the bottom of www.friendlywire.com . It's quite common to get these errors, we will figure it out :)
@cubirk
@cubirk Ай бұрын
@@FriendlyWire oks thank you
@FriendlyWire
@FriendlyWire Ай бұрын
@@cubirk Thank you, I got your email! I will look at it today so we can figure it out. It's quite common to have these problems when setting things up, so I am confident we can solve it. :)
@shispices1495
@shispices1495 Ай бұрын
if you dont,t mind can you write Ms51fb9ae Microcontroller and tutorial video
@FriendlyWire
@FriendlyWire Ай бұрын
Thank you for the suggestion, but for the foreseeable future I plan to stick to the 8-bit PIC microcontrollers. Have a great start into your week! :)
@waimiprince9239
@waimiprince9239 Ай бұрын
I want to create an automatic system can you help me
@FriendlyWire
@FriendlyWire Ай бұрын
What kind of a system do you have in mind? You can find my email at the bottom of www.friendlywire.com, but I should mention that I do not have time to take commission. Nevertheless I am always interested in chatting and trying to point people in the right direction :)
@waimiprince9239
@waimiprince9239 Ай бұрын
Ok bro thank you
@FriendlyWire
@FriendlyWire Ай бұрын
Happy to help! :)
@hyperek8046
@hyperek8046 Ай бұрын
What application are you using to design circuits?
@FriendlyWire
@FriendlyWire Ай бұрын
I use Eagle by Autodesk, but I honestly only use it to visualize the circuits since I like the aesthetics and know how to create new components in that software. Since I do not make PCBs it is mostly a matter of taste for me, for that reason :)
@hyperek8046
@hyperek8046 Ай бұрын
Ok thank you for help
@FriendlyWire
@FriendlyWire Ай бұрын
@@hyperek8046 Happy to help, and thank you for stopping by. Have a great day!
@md.arifulislamarif8077
@md.arifulislamarif8077 Ай бұрын
Sir, for push pull inverter. dead time pwm 50Hz with control Duty cycle. Please provide a video on this topic. It will be very good.
@FriendlyWire
@FriendlyWire 24 күн бұрын
It's a very interesting topic, but I don't cover high voltage topics on this channel :) These are very interesting circuits, but they are also quite tricky and potentially unsafe for beginners. This is why everything here uses 12V max. Sorry, but thank you for your interest! :)
@rajanne2947
@rajanne2947 Ай бұрын
Title is wrong! You don't get source code into a micro! Only machine language or hex files can be sent to program a PIC micro. Anyway it's a useful video! From Chennai city, India.
@FriendlyWire
@FriendlyWire Ай бұрын
True, the source code is first compiled into something the PIC understands, and then that .hex-file is transferred to the PIC. I chose this simpler title to make the video more understandable to beginners, but I don't think it will confuse anyone, because if you watch the video you see that I explain it exactly like this :)
@JohnSmith-pn2vl
@JohnSmith-pn2vl 2 ай бұрын
pelase do the same with the "dual" endless pots found on akai apc40 mk1 mk2 or native instruments machine mk1 mk2 mk3 etc. those have no detend and are way better. i would love to understand them, they have 4 pins.
@FriendlyWire
@FriendlyWire Ай бұрын
Ohh, interesting, do you have a link to one of these potentiometers? I am always interested in new topics to cover in upcoming tutorials, so I would really appreciate it! Thank you!
@edsonlopes3610
@edsonlopes3610 2 ай бұрын
Hello please is possible get the source code of protected PIC16F877A?
@FriendlyWire
@FriendlyWire Ай бұрын
Hello, thank you for your question. Unfortunately, if the source code is protected it is not possible to extract it with the PICkit.
@electronicphilia1687
@electronicphilia1687 2 ай бұрын
Thank you sir
@FriendlyWire
@FriendlyWire Ай бұрын
Glad you liked the video, happy to help!
@AbhinavChandra-s6w
@AbhinavChandra-s6w 2 ай бұрын
Hey so i have watched your video today but i have been working oh this project since last 4 months i had some issues that i wanted to be solved so is there any way of contacting you instead of Instagram
@FriendlyWire
@FriendlyWire Ай бұрын
Hello, thanks for your comment! I check Instagram sporadically, but it is easier to send me an email, which you can find at the bottom of www.friendlywire.com :)
@TariqAlware
@TariqAlware 2 ай бұрын
Keep up the good work
@FriendlyWire
@FriendlyWire Ай бұрын
Thank you so much, Tariq, much appreciated! I just moved and for this reason everything is getting a bit delayed, but my studio is all set up again, and I will start working on a new video very soon :)
@ff-mu6cc
@ff-mu6cc 2 ай бұрын
cool!
@FriendlyWire
@FriendlyWire Ай бұрын
Thank you so much, glad you enjoyed the video!
@bringthemup7913
@bringthemup7913 2 ай бұрын
brother i want to tranfer it to pcb and you sayed i have to add a pico capacitor and how and where shall i add it next question how to learn how to program the micro controller
@FriendlyWire
@FriendlyWire 24 күн бұрын
Thanks for your question! For a beginner it's a bit of a project to get this on a PCB, because there are several details I did not cover in this video relevant for the PCB creation. Why don't you get started with a simple project, like the LED blink project (kzbin.info/www/bejne/m2W0Y5ePi8qXhrs) and if that all works, you can try out the touch sensor on a breadboard presented in this video. Together with the companion article on my website (see link in description) it should give you a pretty good starting point :)
@pmimran124
@pmimran124 2 ай бұрын
Dear sir how to programe 30f2010 microcontroler ic rt809h programer
@FriendlyWire
@FriendlyWire 2 ай бұрын
This tutorial is for the PICkit3 programmer. Do you want to use a different programmer? If so, do you have a link so I can check it out?
@502deth
@502deth 2 ай бұрын
think you got your right and left mixed up there at 13:00
@FriendlyWire
@FriendlyWire 2 ай бұрын
How so? :) All notches (circled in green) point to the left of the breadboard :)
@502deth
@502deth 2 ай бұрын
@@FriendlyWire not the notches, the positive and negative voltage pins. i had to watch it 3 times because i thought i was missing something.
@FriendlyWire
@FriendlyWire 2 ай бұрын
@@502deth I cannot see what you mean, I am sorry. Can you explain more what is misleading? :)
@502deth
@502deth 2 ай бұрын
@@FriendlyWire then maybe im still confused? lol. because i used the mixed up left and right excuse to make thing work in my head. at 13:00 you say "connect the ic's to vdd on their top right pins" and show them getting connected to the top left pins, followed by "and to ground on their bottom left pins" then show the wires getting placed on the bottom right pins. the data sheet shows v+ at pin 18 and gnd at pin 8, so the visual makes sense to me, but confused as the narration doesnt seem to match. so concluding that the narration is mistaken makes it make sense to me. what am i missing?
@kidsfun4974
@kidsfun4974 2 ай бұрын
Your explanation is very nice
@FriendlyWire
@FriendlyWire 2 ай бұрын
Thank you for your kind words! :)