Hi, I understood this and implemented this it works and helps a lot but the problem is I have to run this on simulator on Proteus for my project and Tried alot but Stuck on led display there a-k alphabets in led but in Proteus there is a-g so how to take other inputs can you make a video on it
@howitworks-anmolshastri2259День тому
What are the alternatives to CD 4081?
@khaledhoubani96995 днів тому
i need built a circuit has one inbut as switch and the outputs are more than four LED's , when pressing the switch one time the LED1 will be ON and others Off, when pressing rhe switch twine the LED2 will ON and others off, and etc.
@Amin-py6tl7 днів тому
what a great video thank you nerd
@FriendlyWire7 днів тому
Haha sure thing :)
@tiempoveganoprovida22479 днів тому
No se puede hacer sin microcontrollers...???? No me gustan los microcontrolers... odio todo lo digital
@FriendlyWire8 днів тому
Thank you for the question! I know, using microcontrollers can be a bit scary. On this channel I try to help beginners to lose that fear and give it a try :-) But of course you don't have to use microcontrollers, if you don't want to. For touch sensors, there are ready-built modules. Just search for "TTP223B touch sensor" and you will find ready-made modules. But if you want to build something yourself, there is also a microcontroller-less version that I found here: ukposts.info/have/v-deo/q6hkeWyNhGaWmmQ.html . I have not built this circuit myself, but it looks like it makes use of a similar principle. Let me know if that helps, and thank you again for your question! Have a great weekend! :)
@tiempoveganoprovida22478 днів тому
@@FriendlyWire aaaah... ok... muchas gracias..!!! Tomare nota... estaba buscando un sensor capacitivo que pueda armarse con componentes simples... gracias por los datos... Saludos y buena suerte...!!!
@FriendlyWire8 днів тому
@@tiempoveganoprovida2247 Happy to help, and good luck to you, too! :)
@ihadadream-itsgonenow9 днів тому
1st electronic "article" I looked at in 18 years. Immediately I new I was listening to a good lecturer. Thanks ! Well done. What I was looking for is a digital readout 0 to 360 degrees. The knob had to be attached to a pointer on a compass rose. I guess one needs to add BCD for 3.5 segment display. Can that pic do it ?
@FriendlyWire8 днів тому
Thank you, I am glad you liked the video! If you want to resolve the position in an absolute way then you need an "absolute" rotary encoder. These have more outputs than just A and B, of course, because they need to resolve the whole angular span. But I am not sure if that is always necessary: if you don't need the full 360 degrees, you could also use a potentiometer and measure the voltage at the wiper with a good analog-to-digital converter. Alternatively, you could use a gear with a 2:1 reduction to map 360 degrees to 180 degrees on the potentiometer. What is your target resolution for this project?
@ihadadream-itsgonenow4 дні тому
@@FriendlyWire Thanks for answering. I have created a web app. It converts the shadow azimuth obtained from a shadow stick (to be your potentiometer turning "cylindrical knob") at center of a 0 to 360 degrees azimuth dial (azimuth angle is from 0 degrees to shadow) to an associated target azimuth. 0 degrees on the dial does not necessarily meaning north pointer but any required azimuth as I turn the cardboard dial I actually cut out a pointer above the 0 degrees It's an upsidedown marker or teardrop I WANT YOUR IDEA TO DISPLAY THE TARGET AZIMUTH AS YOU CHANGE THE SHADOW WITH THE POTENTIOMETER (OR OTHER SOLUTION OF YOURS) THEN YOU HAVE A SHADOW SUN COMPASS ! (make nice plastic toy with display) I have an improved web app that I call SHARKY SHADOWS for shark spotting (and flares and drowning people etc) I learnt long ago you cannot be a PC OR PHONE programmer AND a microprocessor programmer at the same time, but I can help anyone who attempts it with atleast some javascript guidance. OK, the pic cannot really do all the calculations, I guess.
@Kieran_McNally10 днів тому
Just found the channel. Well done!
@FriendlyWire9 днів тому
Thank you so much, Kieran, much appreciated. Have a great weekend!
@djt393413 днів тому
hello i have an issue, i am following this project exactly as the video shows, but instead of a 16f627 im using a 628. which from what ive seen online are basically the same. my issue is that the led is turning on, however it is not flashing.
@FriendlyWire13 днів тому
Thanks for your interest and for your question! When you set up the project etc. did you select the PIC16F28A as a device?
@djt393412 днів тому
@@FriendlyWire yes i selected PIC16F628, maybe this issue is something to do with the internal clock?
@FriendlyWire11 днів тому
@@djt3934 Yes, it could be that. Can you send me your code to my email (at the bottom of www.friendlywire.com) and I will have a look at it :)
@simonyovino212614 днів тому
Thanks! Very helpful
@FriendlyWire14 днів тому
Thank you, Simon, much appreciated! :)
@brandonlightner403116 днів тому
Thanks!
@FriendlyWire16 днів тому
Much appreciated, thank you, Brandon!
@brandonlightner403116 днів тому
Thanks!
@FriendlyWire16 днів тому
Wow, thank you so much much, Brandon!
@marounn-ao401416 днів тому
how to change the code?
@FriendlyWire16 днів тому
Good question! Because this circuit does not use any microcontroller, the code is fixed and cannot be changed. If you want to change the code, you have to change the circuit. Have a look at the companion article on my website: www.friendlywire.com/projects/code-lock/ . In this article I explain how the schematic works, and after reading it you will have a pretty good idea of how you can change the code :) But if you are building this circuit and have the pushbuttons in a separate location, a simple way to change the code is this: leave all wires unchanged, and just move the location of the physical pushbuttons around. For example, switch the location of pushbutton A and C on your keypad, and all of a sudden it looks as if the code has been changed. Let me know if this helps or if you have additional questions, and thanks again for your interest & for your question! And, most importantly, have fun with electronics!
@marounn-ao401416 днів тому
Man!! the article is so helpful... thank you!
@FriendlyWire15 днів тому
@@marounn-ao4014 I am glad it helps! If anything doesn't make sense please reach out via email, I will do my best to help out. You can find my email at the bottom of www.friendlywire.com :)
@talha_abbas22 дні тому
Hi, Great video. One Question, on which software did you make the schematic circuit
@FriendlyWire22 дні тому
Thank you! I use Eagle to make the schematics (no real reason, I just like how they look like) and then I animate the squiggly lines by hand by drawing onto the schematic with GIMP and then superimposing those lines on top of it.
@talha_abbas22 дні тому
@@FriendlyWire Thanks A lot for this brief comment, I have my DLD Project presentation next week, saw your designs and it caught my attention. Amazing ❤️
@FriendlyWire22 дні тому
@@talha_abbas Happy to help, and good luck for your presentation! :)
@Tom-tt8hl26 днів тому
könnt ihr auch Deutsch sprechen?
@FriendlyWire25 днів тому
Ich komme aus Deutschland, aber mache die Videos auf Englisch :)
@hemanthdevaraj199129 днів тому
Thank you for neat and clean explanation, i got better understanding, please keep up the good work like this!
@FriendlyWire26 днів тому
Thank you, Herman, much appreciated! I recently moved so I have to wait until I can film the next video, but I have already planned a lot of new videos :)
@jozefsoucik3115Місяць тому
10:55 part about decoding direction deserves slower and more repetitions ...because it is the most important part of not understanding principle. But overall great video
@FriendlyWire26 днів тому
Thank you for your feedback! :) Yes, it could use more time, I agree with you. Sometimes it's hard to decide for me how much detail to put in the video. For this reason I always write a companion article to each video, which usually has more details. You can check it out here: www.friendlywire.com/tutorials/rotary-encoder/#ch7 Let me know if it makes sense or if you have questions, I am happy to help!
@nevalesМісяць тому
I'm 53and i will learn. It was my first choice but was not able to get to decide.
@FriendlyWire26 днів тому
It's never too late to learn something new! :-)
@SNStuartМісяць тому
Hi I love you videos. But did you do some video on the pic 10f200. I thought I saw some on your channel. Thank you again
@FriendlyWire23 дні тому
Hi Stuart, thanks for your kind words! Sorry, I have no videos on the PIC10F200. The chips I use most frequently are the PIC16F1455, PIC16F627A, and the PIC16F883.
@ChandrashekarCNМісяць тому
💖💖💖💖
@FriendlyWire26 днів тому
Glad you liked the video! :)
@yamitokyooМісяць тому
"It activate it like Minecraft piston." Lol, that's fun. I am amaze by this presentation. I am frustrated in understanding this because mine doesn't work and I am switching from 74HC165 to CD4021 shift register due to it's lack of information to fix that or do that shift register and it is just annoying.
@FriendlyWire26 днів тому
I am glad you liked the video! Yes, it can be very frustrating... Sometimes it helps to just have the shift register, with LEDs at all outputs, and pushbuttons at the input pins (with debounce capacitor and pulldown/pullup resistor) to check everything step by step. Have you tried that? Let me know if this helps. If not, I can explain more. Don't be discouraged by this. It is a normal experience, and I have had similar experiences, too. I almost gave up many times. But I know you can do this :)
@yamitokyoo12 днів тому
@@FriendlyWire I actually did it. I didn't know 'shiftIn()' function actually works but it is quite tricky at timing. I just keep on believing on it that it'll work until it did and made me so happy. Also, for people reading this I don't recommend using breadboard I recommend soldering it in a temporary soldering board because breadboard can have a chance of loose connection of the resistors causing it to read different.
@FriendlyWire12 днів тому
@@yamitokyoo I'm glad that it works now, congratulations! Awesome job, and thank you for sharing!! Yes, the timing can be a bit tricky, in the sense that if you do the clock pulses too quickly it may be too fast for the shift register. This is why I run these examples here at 4MHz (effectively 1MHz with PICs) which is slow enough so we don't have to worry. I am glad you got it working on a PCB! I like breadboards because they are so flexible, but if you get a bad breadboard it can be extremely frustrating because of loose wires/bad connections. Glad it worked out! :)
@hemashriМісяць тому
this tutorial is great. Thanks.
@FriendlyWire26 днів тому
Thank you so much, glad you like it!
@engr.ziyana.hameed1421Місяць тому
Hi, My Name is Ziyan an Electronic Instructor from Sri Lanka, you are explaining great, All the best.
@FriendlyWireМісяць тому
Ziyan, thank you so much for your comment, it made my day! All the best wishes from Germany!
@mirkogiglioli1682Місяць тому
Clever management of unexpected A&B status. As always, smart filters are the success key. Thanks
@FriendlyWireМісяць тому
I would love to claim that I came up with the algorithm, but I did some research and found the one I presented in the video online :)
@divitrajgogia4909Місяць тому
Great video, super helpful!
@FriendlyWireМісяць тому
Thank you, glad you find it useful! :)
@divitrajgogia490915 днів тому
@@FriendlyWire don't stop making beginner friendly tutorials. I am trying to replicate and learn :)
@FriendlyWire15 днів тому
@@divitrajgogia4909 Comments like your mean a lot, and I don't have any plans to stop anytime soon. I just moved recently so I am still getting set up in the new place. :) Thank you for your kind words, and have a great Sunday!
@ANCHALCHAUDHARY-nk6uvМісяць тому
Do i really need to use Pickit 3, can't I directly dump the code from pc to microcontroller
@FriendlyWireМісяць тому
You need some sort of device for that. There are other options out there, including kits that use the serial connection from back in the day, but I find the PICkit3 or similar devices to be the easiest choice.
@Gideon_Judges6Місяць тому
One minor nitpick, ASCII is only 7-bit, not 8-bit. Some systems had so-called "Extended ASCII" character sets, but they were not portable and often had different language characters for localization.
@FriendlyWireМісяць тому
Thank you, good to know! :)
@zame2476Місяць тому
Würde sowas auch ohne MCU funktionieren? Mittels Decoder IC der so
@FriendlyWireМісяць тому
Ja, das sollte auch funktionieren, ein paar Flip Flops sollten reichen :)
@epluribusunum6622Місяць тому
I'm going to build a binary clock with this
@FriendlyWireМісяць тому
I would love to see it, make sure to share a photo and tag me :)
@hemashriМісяць тому
Your explanation above is great. thanks.
@FriendlyWireМісяць тому
Thank you very much, I am glad you like it! :)
@sufiyanwajideditzМісяць тому
How to calculate hex for using km change odo meter
@FriendlyWire26 днів тому
Hi! I am not sure if I understand your question, can you elaborate?
@NasirKhan-jl2snМісяць тому
any video for dspic30f2010
@FriendlyWire26 днів тому
For now I will stick with PIC microcontrollers :)
@NasirKhan-jl2snМісяць тому
hi
@dr0mp507Місяць тому
Is it prone to magnetic interference?
@FriendlyWireМісяць тому
Thanks for your interest and for the question! This circuit is sensitive to anything that affects the stray capacitance of the breadboard/surrounding air. The way it is built I did not pay attention to any particular EM shielding, and I doubt that it will be possible to design a truly robust circuit like that on a breadboard. Is there any particular type of application you have in mind? :)
@myshticaanimo2169Місяць тому
Nothing have to say❤️🔥 thanks🥲❣️ Sir you cleared all confusion
@FriendlyWireМісяць тому
Thank you so much, I am glad you liked the video! :)
@alponurkanduran415Місяць тому
Hi dude i compiled my code but i cant reach the hex file. I mean it doesnt appear on my project file ?
@FriendlyWireМісяць тому
It's a bit hidden, it shows up in the dist/default/production/ subfolder of your main project folder. Can you find it there? Alternatively, if you compile it inside MPLAB IDE, there should be a message where the .hex-file is stored. Hope it helps, let me know! :)
@srikanth1508Місяць тому
What will happen if input is ABC (we need to put B 2 times)
@FriendlyWireМісяць тому
If you press C when you have only pressed A and then B, then the CD4017 in charge of pin C will still be at Q0, and therefore the circuit will reset when C is pressed :)
@sebastienvaillancourt9399Місяць тому
I love your demonstrations, they are very helpful for understanding!
@FriendlyWireМісяць тому
Thank you so much, Sebastien, much appreciated :)
@niedarle2 місяці тому
If I would use analog input I wouldn't have to strongly consider 0.8 as my low level value, but rather use any value I want, right?
@FriendlyWireМісяць тому
This capacitive sensing only works with all ADC functionality turned off. I think the ADC is a bit too slow for a proper conversion. It's not so much about the voltage levels involved, but about the time scale in which the voltage levels change. So my recommendation is not to use the ADC functionality. But let me know if you can figure out a way to use it, it would be good to know! :)
@susmithat8812 місяці тому
Why don't you connect the cap at 4,5 pins of max232
@FriendlyWireМісяць тому
Good question, I should have mentioned it. If you look at the schematic at 5:05 you see that there is another pair of inputs/outputs called R2IN/R2OUT, T2IN, T2OUT, because the MAX232 can actually support two channels in total. And C2 is needed for the second channel. Since we only need one channel for this project, you can omit C2. Hope it helps! :)
@susmithat881Місяць тому
@@FriendlyWire tq a lot
@FriendlyWireМісяць тому
@@susmithat881 Happy to help, and thank you for your interest! :)
@susmithat881Місяць тому
@@FriendlyWire we are doing project about transmission of characters using pic controller and max232 and rs232 to pc but we can't see the characters in hyper terminal can you please suggest how to deal with.i have debugged at max232 we put led it glows but we can't see output on hyper terminal baud rate everything goes fine.please can you suggest where it went wrong.
@FriendlyWireМісяць тому
@@susmithat881 It's great that you built this, nice work! It always takes some time to get these things sorted out. Did you use the PIC16F627A, and the PICkit3 to program it?
@aSameplayer2 місяці тому
Man würde also Anschlüsse am Prozessor oder Controller sparen, aber gibt es denn auch ne möglichkeit die Uhrschläge zu sparen. Also die Clock Cycles. Dadurch dass man nun die Daten seriell sendet benötigt man doch für jedes bit einen Impuls. und so würde man doch in einem System, wie einem Game Boy oder der NES wichtige Rechenzeit für den Input nutzen. Könnte man dafür nicht einen weiteren Prozessor nehmen? Einer der nur auf die Inputs achtet?
@FriendlyWireМісяць тому
Die Rechenzeit dafuer ist minimal, weil du die Inputs ja nur maximal einige hundert Mal pro Sekunde abfragst, es geht ja um menschliche Computereingaben, und nicht um digitale Signale. Wenn Du schneller reagieren moechtest, dann ist diese Auslesemethode in der Tat nicht die idealste, aber fuer Konsoleninputs reicht es alle mal :)
@aSameplayerМісяць тому
@@FriendlyWire Verstanden. Danke für die Antwort.
@FriendlyWireМісяць тому
@@aSameplayer Keine Ursache! :) Lass mich wissen, ob Du noch weitere Fragen hast, ich helfe gerne.
@ebbewertz34172 місяці тому
Is the output of the output-register a separate storage register or only a latch? I am searching for a shift reg where I don't disturb my outputs while shifting and I found this one. It looks to me that it has an output storage register + a latch for OE, but this makes me wonder why it's so much cheaper then the 74HC595.
@FriendlyWire2 місяці тому
Yes, this one is latched! I think the 595 is probably more expensive these days because it's older and used in a bunch of legacy equipment?
@hadibq2 місяці тому
you mean the 5k resistors are a "happy accident" 😅
@FriendlyWire2 місяці тому
Bob Ross has spoken :D
@maxheadrom30882 місяці тому
Beautiful wiring on those breadboards, man!
@FriendlyWire2 місяці тому
Thank you, glad you like it! It's a bit of a puzzle for me for every video to try and make it look neat, and I do enjoy the challenge, but ultimately I hope that it can make the videos more fun and easy to follow :) Have a great weekend!
@bharathreddy69622 місяці тому
bro how to do for pickit2
@FriendlyWire2 місяці тому
I am not sure if the PICkit2 is still supported by the current versions of MPLAB :( But the PICkit3 still is, for now, and you can get clones (sometimes called PICkit3.5) on Amazon and other sites for around $20. I know it's super silly that they keep making new programmers, since for these simple PICs the old ones work just fine...
@davitberishvili80622 місяці тому
This is nice explanation. Thank you for this video
@FriendlyWire2 місяці тому
Thank you for your nice comment, I am glad you found the video helpful! :)
@LabSkaterPussies2 місяці тому
How do you know how many stops a rotary encoder has? Is this information on the part's data sheet somewhere? Do they come with different numbers of stops?
@LabSkaterPussies2 місяці тому
Never mind its called detents
@FriendlyWire2 місяці тому
Yeah they go by different names, and for cheap ones that don't have datasheets it's a bit of a guess, unfortunately. But commonly the situation with the detents/stops is similar to what is shown in the video.
@paitangkinabuhi51652 місяці тому
Can it work for PIC16F84A ?
@FriendlyWire2 місяці тому
Yes, it works for any pin that has a tristate register :) But you will have to write different code for the PIC16F84A because its internal registers are different from the ones of the PIC16F627A. Do you have some experience with PIC microcontrollers?
@curly-hairedassassin52332 місяці тому
New to computer electronics, does anyone know a great place to purchase all of these materials?
@FriendlyWire2 місяці тому
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-hairedassassin52332 місяці тому
@@FriendlyWire this information that you have provided MORE than helps! Thank you for your assistance and I’ll look into the link
@FriendlyWire2 місяці тому
@@curly-hairedassassin5233 Fantastic, happy to hear it. Let me know if you find what you need!
@shokdj12 місяці тому
Nice tutorial you e earned another subscriber. I'm hoping with this sensitivity I'm going to be able to set this up on something that rotates without the need for wires to be attached
@FriendlyWire2 місяці тому
Thank you, I am glad you liked the video! You'll have to try a bit with the threshold values in the code for that, let me know how it goes, I will be happy to help!
@xmakutronix2 місяці тому
Nice content ! For more details can i ask. You directly via instagram? I certainly need your help