Control LEDs with your computer using RS232!

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 พ.ค. 2024
  • Learn how to control LEDs from your computer!
    In this tutorial we explain the basics of RS232. We learn how to control eight LEDs from your computer by using the USART module of the PIC16F627A microcontroller and the MAX232. We build the RS232 circuit on a breadboard, understand the schematic, and build our own RS232 LED controller.
    More details and an up-to-date list of all components: www.friendlywire.com/tutorials...
    Thanks for tuning in, 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
    00:30 What you need
    01:10 RS232 basics
    04:03 LED controller basic idea
    04:35 LED controller schematic
    05:56 LED controller source code
    08:16 Flashing the PIC16F627A
    09:37 Building the circuit
    11:54 Controlling the LEDs
    13:44 Typewriter example

ความคิดเห็น • 174

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

    Thank you for neat and clean explanation, i got better understanding, please keep up the good work like this!

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

      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 :)

  • @Adhithya2003
    @Adhithya2003 7 หลายเดือนก่อน +3

    This man is a treasure, we need to protect him ❤❤.
    It was comforting that he predicted that begginers apprehensions. Some tutorials on TH-cam don't put themselves in begginers shoe.
    Also editing it's so clean❤🎉

    • @FriendlyWire
      @FriendlyWire  7 หลายเดือนก่อน +1

      Wow, thanks so much! :)

  • @s1nister688
    @s1nister688 4 ปีที่แล้ว +19

    Your video is a godsend. Please don't stop, I was getting curious with electronics and these quality videos are what I need.

    • @FriendlyWire
      @FriendlyWire  4 ปีที่แล้ว

      Thank you so much! I have no plans of stopping, and with positive feedback like this, why would I? :)

  • @atomic14
    @atomic14 4 ปีที่แล้ว +4

    Love the animations on the components. Makes what could quite a dull list fun to watch!

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว

      Thanks, I am happy to hear that!

  • @jaehochoi8062
    @jaehochoi8062 2 ปีที่แล้ว +2

    I really appreciate your video clip. This is the first time I totally understand the mechanism of RS232 at last.

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว

      Thank you so much, Jaeho, I am very happy to hear that! :)

  • @GerryLaureys
    @GerryLaureys 4 ปีที่แล้ว +5

    Finally a video that everyone can understand. Keep up the good work!

    • @FriendlyWire
      @FriendlyWire  4 ปีที่แล้ว

      Thanks, I am glad you like it! :)

  • @wisalkamal413
    @wisalkamal413 3 ปีที่แล้ว +1

    Excellent graphical combo with explanation. also really liked the starting moto ''everyone can learn electronics''

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว +1

      Thanks so much, glad you liked it! :)

  • @stupossibleify
    @stupossibleify 4 ปีที่แล้ว +1

    Excellent topic explanation. And superb presentation!

    • @FriendlyWire
      @FriendlyWire  4 ปีที่แล้ว

      Thanks so much, glad you like it!

  • @cefuve
    @cefuve 3 ปีที่แล้ว +2

    Great job with editing video and of course with the content of them, thank you!

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว

      Thank you so much, I am very glad you like the video!

  • @jorgeyagofernandezrodrigue3735
    @jorgeyagofernandezrodrigue3735 ปีที่แล้ว +1

    Educative and funny! Great video!👍

    • @FriendlyWire
      @FriendlyWire  ปีที่แล้ว

      Gracias, Jorge, I am glad you like the video! :)

  • @Teyros
    @Teyros ปีที่แล้ว +1

    I had to subscribe right away. Great job explaining things and awesome detail!!!

    • @FriendlyWire
      @FriendlyWire  ปีที่แล้ว +1

      Thank you so much, and I am glad you like the video!

    • @Teyros
      @Teyros ปีที่แล้ว +1

      @@FriendlyWire =) Im currently working on a project right now to control a stepper motor with a max232. I have the STM32, I'm trying to communicate to a JSS57P2N motor but I needed to use RS232 to communicate with it. So I'm going to try what you taught in the video here!

    • @FriendlyWire
      @FriendlyWire  ปีที่แล้ว

      @@Teyros Great, I hope it works! :)

  • @ProCroGamers
    @ProCroGamers 4 ปีที่แล้ว +13

    Outstanding quality video! I hope your channel takes off soon, it definitely competes with the best on YT and deserves comparable views. I'm excited to see more, keep 'em coming :D

    • @FriendlyWire
      @FriendlyWire  4 ปีที่แล้ว +1

      Wow, thank you so much for your kind words, I really appreciate it! :-) Let me know if you have any suggestions for future projects/tutorials, I am always interested in new ideas!

    • @jeffreyfrank6998
      @jeffreyfrank6998 2 ปีที่แล้ว

      you all prolly dont give a damn but does any of you know of a tool to get back into an Instagram account..?
      I stupidly lost the password. I love any assistance you can give me

    • @beaukayson929
      @beaukayson929 2 ปีที่แล้ว

      @Jeffrey Frank instablaster =)

    • @jeffreyfrank6998
      @jeffreyfrank6998 2 ปีที่แล้ว

      @Beau Kayson thanks so much for your reply. I found the site through google and Im in the hacking process atm.
      I see it takes a while so I will reply here later when my account password hopefully is recovered.

    • @jeffreyfrank6998
      @jeffreyfrank6998 2 ปีที่แล้ว

      @Beau Kayson it worked and I now got access to my account again. I'm so happy:D
      Thank you so much you really help me out !

  • @dioneto6855
    @dioneto6855 4 ปีที่แล้ว +2

    What a nice video, your channel is great, I just subscribed

    • @FriendlyWire
      @FriendlyWire  4 ปีที่แล้ว

      Thanks so much, I am glad you like it! Let me know if you have any questions or ideas for future videos/tutorials/projects :)

  • @josephocampo
    @josephocampo 3 ปีที่แล้ว +1

    Thank you sir.. I learned a lot

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว

      Thank you so much, Joseph, that's great to hear! :-)

  • @jhoanrivero7885
    @jhoanrivero7885 4 ปีที่แล้ว +1

    great video and simple

  • @gradientattack
    @gradientattack 2 ปีที่แล้ว +1

    These videos looks great!!!

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว

      Thanks so much, Percy, glad you like it! :)

  • @danielvillegas1647
    @danielvillegas1647 ปีที่แล้ว +1

    Very nice explanation and schematics. Now you have a new susc.

    • @FriendlyWire
      @FriendlyWire  ปีที่แล้ว

      Thank you, Daniel, I am so glad you like it! Did you get her from Ben Eater's new video on RS232? :)

  • @skylineofsu9791
    @skylineofsu9791 ปีที่แล้ว +1

    Thanks for your video!

    • @FriendlyWire
      @FriendlyWire  ปีที่แล้ว +1

      Thank you, glad you like it! :)

  • @adi1257
    @adi1257 2 ปีที่แล้ว +1

    i love it makes me want to learning again about electronics

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว

      Thank you, that's fantastic! :-) Have you seen my PIC microcontroller introduction video?

  • @guyems4490
    @guyems4490 3 ปีที่แล้ว +1

    Thank You For the Awesome Video !!!!!

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว

      Thank you, I am glad that it's useful! :)

  • @labdelhamidlaaraj7160
    @labdelhamidlaaraj7160 3 ปีที่แล้ว +1

    Good Job, Keep it up ❤️

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว

      Thanks, glad you like it!

  • @siribvcm9653
    @siribvcm9653 ปีที่แล้ว +1

    Nice video bro.... Your work is great ....

    • @FriendlyWire
      @FriendlyWire  ปีที่แล้ว

      Thanks so much, glad you like it!

  • @nickstamatiou9871
    @nickstamatiou9871 2 ปีที่แล้ว +1

    Amazing video !!!!

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว

      Wow, thanks so much, Nick! :)

  • @hadibq
    @hadibq 2 ปีที่แล้ว +1

    👍👍thanks, nice channel!

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว

      Thank you, glad you like the video! :)

  • @DRSElectronic
    @DRSElectronic 3 ปีที่แล้ว +1

    very good ! in RS232 you can also have RTS/CTS

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว

      Thanks! Yes, in this tutorial I decided to go with a very basic implementation :)

  • @jahzeelalejandroreyeschave2477
    @jahzeelalejandroreyeschave2477 4 ปีที่แล้ว +1

    Good video, this will be helpful to my homework in the college

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว

      Thanks, glad you like it!

  • @lucapoliseno5291
    @lucapoliseno5291 3 ปีที่แล้ว

    You sir, have just gained a subscriber.

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว

      Great to have you, Luca! :) Let me know if you have something you want to learn about microcontrollers or electronics, I am always looking for new ideas!

  • @arkmediagroupllc
    @arkmediagroupllc 5 หลายเดือนก่อน +1

    Your videos are great!!

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

      Thank you so much, glad you like them! :)

    • @arkmediagroupllc
      @arkmediagroupllc 5 หลายเดือนก่อน +1

      @@FriendlyWire do you do arduino too?

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

      @@arkmediagroupllc For now I only focus on PIC microcontrollers :)

    • @arkmediagroupllc
      @arkmediagroupllc 5 หลายเดือนก่อน +1

      @@FriendlyWire can those microcontrollers control an I2C OLED display?

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

      @@arkmediagroupllc Yes, many PIC controllers support I2C. I have not used it yet (most of the hardware I use is a bit older and only uses SPI-type protocols), but it surely can be done :) What display module do you have in mind? It might be a good future video!

  • @CoVerseAU
    @CoVerseAU 2 ปีที่แล้ว

    Awesome video keep it up!

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว

      Thank you so much, Nick, glad you like it! Is there anything you want to see on this channel in a future video? I am always looking for new ideas for tutorials and projects with microcontrollers! Have a great day :)

    • @CoVerseAU
      @CoVerseAU 2 ปีที่แล้ว +1

      @@FriendlyWire I have a cool idea for you: communication between ATMEGA 328PU (or full Arduino UNO) and Android via USB/serial. Tutorial where you create Android app which controls LEDs :) I’ve done it long time ago, have a code on my GitHub somewhere, but I think people will be interested

    • @CoVerseAU
      @CoVerseAU 2 ปีที่แล้ว +1

      Here it is: github.com/NickitaX/Android-Connection-Arduino-ACA- this project was sending text via USB OTG from Android and printing on LCD, maybe of any help

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว +1

      @@CoVerseAU That's very interesting, thanks for sharing!

  • @MiguelAngelGarciaGonzale-cd4me
    @MiguelAngelGarciaGonzale-cd4me 8 ชั่วโมงที่ผ่านมา +1

    thanks for you explication i dont know this information

    • @FriendlyWire
      @FriendlyWire  2 ชั่วโมงที่ผ่านมา

      Glad you liked the video, Miguel, happy to help! :)

  • @mohananchan
    @mohananchan 2 ปีที่แล้ว +1

    Sir please elaborate more on rs 232. It was a nice video

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว

      Thank you! What would you like to know more about?

  • @cani77
    @cani77 4 หลายเดือนก่อน +1

    Thanks ~ Merci.

    • @FriendlyWire
      @FriendlyWire  4 หลายเดือนก่อน

      Glad you like it!

  • @Gideon_Judges6
    @Gideon_Judges6 หลายเดือนก่อน +1

    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
      @FriendlyWire  หลายเดือนก่อน

      Thank you, good to know! :)

  • @anokhautomation4453
    @anokhautomation4453 ปีที่แล้ว +1

    Very very useful tutorial 👍👍👌 thanks for your detailed explanation 🙏.
    can you please create a tutorial for send command to by a GUI application ?
    Example : create Buttons and labels how we are using in tkinter GUI Application.

    • @FriendlyWire
      @FriendlyWire  ปีที่แล้ว

      Thank you so much, glad you like it!

  • @ashishjog
    @ashishjog ปีที่แล้ว +2

    Quality Content! Can you make videos on dspic33ch dual core microchip controllers?

    • @FriendlyWire
      @FriendlyWire  ปีที่แล้ว

      Thank you, Ashish, glad you like my videos! For now I will stick with the mid-range 8bit series of controllers, but those dspics are interesting! What would you like to learn about those?

  • @krizzrojas5037
    @krizzrojas5037 3 ปีที่แล้ว +1

    I like it 😍👍

  • @directionsys
    @directionsys 2 ปีที่แล้ว +1

    Nice job!
    Is it possible using your idea to control 8 independent PWM fans?

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว

      Thank you, glad you like the project! The PIC16F627A has only one PWM module, there are other controllers that have more. You could use the PIC16F627A to drive an 8x dedicated PWM controller, though, if you like, or even implement hardware PWM on the PIC16F627A itself. Does that help? If not let me know and I will explain more, and thanks again for stopping by! :)

  • @sanatgallen6519
    @sanatgallen6519 3 ปีที่แล้ว +1

    me ayudo a enterder algo del RS232 thanks

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว

      Muchas gracias :) Glad it is helpful, have a great day!

  • @Alex-rv8gw
    @Alex-rv8gw ปีที่แล้ว +1

    I hope that the next tutorial will be pic interface with pc by using rs-422, rs485, and USB

    • @FriendlyWire
      @FriendlyWire  ปีที่แล้ว

      I have used RS-485 in the past for transmitting over longer distances, but only the hardware changes, the code will be the same. USB is a really interesting but that requires a different controller, like the PIC16F1455. I would love to make a tutorial on that one day!

    • @Alex-rv8gw
      @Alex-rv8gw ปีที่แล้ว +1

      @@FriendlyWireFor USB application if you use an FTDI chip you no need to change to another microcontroller as long as the microcontroller has UART then could communicate with FTDI

    • @FriendlyWire
      @FriendlyWire  ปีที่แล้ว

      @@Alex-rv8gw Yes, you can use intermediate drivers, true! I like that the PIC16F1455 and PIC16F1459, for example, actually don't need those, which is quite impressive.

  • @FriendlyWire
    @FriendlyWire  4 ปีที่แล้ว

    Thanks for the great feedback, really appreciate it! Check out my PIC introduction video here: th-cam.com/video/e4Q2dYVedPY/w-d-xo.html
    More tutorials: th-cam.com/video/AlpbbeX7-BU/w-d-xo.html
    More projects: th-cam.com/video/H2x3aAJ3jr0/w-d-xo.html

  • @genuinetechniques9323
    @genuinetechniques9323 3 ปีที่แล้ว +1

    Hi , can I use a RS485 serial port on cctv recorder to trigger a relay . It can control a motorised ptz camera by setting rules in dvr, so I hope it is possible

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว +1

      Thank you for the question! RS485 has different voltage levels than the RS232 we talk about today, but I think that RS232 to RS485 converters do exist. Do you have more information on the CCTV recorder?

    • @genuinetechniques9323
      @genuinetechniques9323 3 ปีที่แล้ว +1

      It is a Hikvision dvr and has 2 wire RS 485 port to control devices like motorised camera to look certain area when motion is detected. Instead of that I want to control other devices using a relay

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว

      @@genuinetechniques9323 So you need a circuit that triggers a relay whenever the motor moves, yes? In that case you could sidestep the whole RS488 thing. What voltage does the motor use?

    • @genuinetechniques9323
      @genuinetechniques9323 3 ปีที่แล้ว +1

      @@FriendlyWire I don't know the volatage of motor used, it all comes inbuilt. Only the control signal for movement of the camera can be given through RS485 2 pin port. And for my Requirement I can use any relay as u suggest

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว

      ​@@genuinetechniques9323 I see. I think in this case it would be easier to just try to measure the voltage on the motor. In principle you can use a microcontrollers USART module to send data on the RS485 connection, but you would need a different circuit because the voltage levels are different. So it kind of depends: if you want to just get it done, then I suggest the first method, and if you want to spend some time to learn about the RS485 interface then that's the way to go. :)

  • @saviourmadeit
    @saviourmadeit 2 ปีที่แล้ว +2

    is it possible to interface an ATmega328 with MAX232

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว +1

      Hello Senam, thanks for your question! Yes, I am sure it works as well. According to the ATmega328's datasheet ( ww1.microchip.com/downloads/en/DeviceDoc/Atmel-7810-Automotive-Microcontrollers-ATmega328P_Datasheet.pdf ) it has a programmable serial USART interface, which you can use for RS232 communication :)

  • @NazharaYT
    @NazharaYT 3 ปีที่แล้ว +1

    hi.. i want ask, what if i need rs232 to mini usb? what is needed to change from rs232 to mini usb? because most of those on the market are usb to rs232.

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว

      Hello, thanks for the question! :) The "magic" happens inside the big side of the connector (the right side of the cable shown at 0:00). On the left side you can connect a USB type-A to mini USB adapter without any problems. This way you can make the adapter from RS232 to mini USB, no worries :)
      Can I ask to what device you want to connect it? It is important that the USB end is plugged into a computer that can recognize a virtual serial port. Almost all modern computers can do it, including the Raspberry Pi, but I am not sure if you could connect to, say, a smartphone.
      Thanks again for stopping by, and let me know if you have any additional questions, I am happy to help! :)

    • @NazharaYT
      @NazharaYT 3 ปีที่แล้ว +1

      @@FriendlyWire Thank you in advance.
      I have an RFID that supports USB, but unfortunately my PC only has a serial RS232 slot left, from there I want to connect the RS232 to the mini usb on the rfid.
      can you help?
      i have used ic max 232 and usb TTL but it doesn't work.

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว

      @@NazharaYT Oh, I see! I think in this case it does not work: the RFID device sends out information in the USB format. The USB to RS232 adapter I use in this video only works if the USB end is a computer that can understand a virtual serial port. In this case the RDIF device cannot do that. Just to make sure, do you have a name for that device so I can look it up?

    • @NazharaYT
      @NazharaYT 3 ปีที่แล้ว +1

      @@FriendlyWire then what exactly is the data format that USB accepts on a PC? doesn't the USB port and db9 port have the same TX and RX?
      What kind of chip is used to convert USB to db9 / rs232 format? device I use id.aliexpress.com/item/4000038621078.html

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว

      @@NazharaYT USB is a vastly more complicated data protocol than RS232. They are incompatible. It is like comparing HDMI to composite video, they are just different.
      The "USB to RS232 adapter" was perhaps a poor choice of words on my part. When you plug it into your computer, it is registered as a USB device, and the RS232 functionality is implemented virtually. The computer THINKS there is a serial port, but it is actually just a USB device in disguise. It's like mounting a virtual disk.
      Your linked device is a USB smart card reader, and it needs to be plugged in via USB because it is a full-fledged USB device. It just does not work with RS232 :(

  • @gerardcortez4094
    @gerardcortez4094 3 ปีที่แล้ว +1

    Can we do the same circuit connection with the arduino?

    • @gerardcortez4094
      @gerardcortez4094 3 ปีที่แล้ว +1

      I mean the way rs232 goes to de pic

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว

      @@gerardcortez4094 Thanks for the question :) I am not sure exactly what you mean. This project uses the USART module of a PIC microcontroller, so it only works for PIC. If you want to use an Arduino I am sure it also supports serial communication, but it will be different to connect it :)

  • @Noxoreos
    @Noxoreos 4 หลายเดือนก่อน +1

    I don't mean to be negative, "but" I'm wondering if anyone would actually use a rs232 adapter to usb, when nowadays you could simply use something like an arduino nano instead, which communicates via UART over USB in the same fashion. I mean actually prefer it, other that just to play around. And if there is a use case where this setup is better, then I would be interested in what it is and why it's better.
    I mean it would basically reduce the part count to the arduino nano, a usb cable, breadboard, jumper wires, resistors and leds. That would be more cost effective for sure. And even without USB it would still be easier to do, I suppose.
    Another benefit would be that way you gained some experience with arduino if you're new to it and could use it again in another project and expand that knowledge.

    • @FriendlyWire
      @FriendlyWire  4 หลายเดือนก่อน

      Sure, that's possible, too. I like to show how to use PIC controllers, and work at a rather basic level using the PIC's registers. More advanced PICs also support USB directly, but that is a whole different level of complexity.

    • @Noxoreos
      @Noxoreos 4 หลายเดือนก่อน +1

      @@FriendlyWire I see, thank you.

    • @FriendlyWire
      @FriendlyWire  4 หลายเดือนก่อน +1

      @@Noxoreos I think it's actually great that there are so many different ways to connect computers to microcontrollers these days. I hope to also talk about how to read out old PS2 keyboards and mice using a PIC soon.

  • @mabsonleo
    @mabsonleo 2 ปีที่แล้ว +1

    Send ASC 255 for all LED glow ... Right ?

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว

      Yes, exactly! 1+2+4+8+16+32+64+128, each number is one LED :)

  • @tjnguyen746
    @tjnguyen746 3 ปีที่แล้ว +1

    Thanks, and see you later.

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว

      Thanks Thanh, have a great weekend! :)

  • @lucapoliseno5291
    @lucapoliseno5291 3 ปีที่แล้ว

    👏

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว

      Thanks so much, glad you liked the video!

  • @surojitdas4496
    @surojitdas4496 2 ปีที่แล้ว +1

    Bro i have a old g31 lga 775 motherboard...it has separate 9 pin serial port ....i want to use it but don't know how to use it ....max 232 ic is making it more complex and delay in signal

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว

      MAX232 is just a level shifter, I don't think there is significant delay involved from using this chip. Do you have the motherboard up and running, with an operating system? Can you access the COM ports from there? It should be easy to send out data from there. Just make sure you pick the right Baud rate (or, in other words, make sure the PIC on the receiving end knows what Baud rate the computer is set to).

    • @surojitdas4496
      @surojitdas4496 2 ปีที่แล้ว

      @@FriendlyWire i want to use sim900a module

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว

      @@surojitdas4496 I'm not familiar with that one, all I could find on Google is a "wireless extension module" but I am not sure how this is related to the serial port? :)

    • @surojitdas4496
      @surojitdas4496 2 ปีที่แล้ว +1

      @@FriendlyWire no worries... thanks

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว

      @@surojitdas4496 Sorry I could not be of more help. But basically this tutorial here allows you to connect anything you want to a PIC using the serial interface, so if this module comes with serial commands then you could send/receive them with the PIC :)

  • @byetodd
    @byetodd 2 ปีที่แล้ว +1

    Can this be used with USB communication?

    • @FriendlyWire
      @FriendlyWire  2 ปีที่แล้ว +1

      Thanks for the question! :) This "USB to RS232 adapter" is a USB device that acts as a virtual COM port at the computer. The computer can access this virtual COM port as if it was a physical COM port. This means that it is really effectively a serial connection, with all its limitations such as data bandwidth. So it is NOT a USB communication, because it does not use the USB protocol to transmit data. I hope it makes sense :) If not, please let me know and I will try to explain better! Have a great day, and thank you for watching the video!

  • @arkmediagroupllc
    @arkmediagroupllc 5 หลายเดือนก่อน +1

    Do you do arduino too?

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

      For now I am focusing on PIC microcontrollers :)

  • @seleldjdfmn221
    @seleldjdfmn221 4 ปีที่แล้ว +1

    Nice Vid. Keep going. enjoy your day xd

    • @FriendlyWire
      @FriendlyWire  4 ปีที่แล้ว

      Thanks, have a great day!

  • @Berghiker
    @Berghiker 3 ปีที่แล้ว

    How do I connect a relay to an FM radio output so that it can turn on a light when a strong signal is received?......

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว

      Oh, good question! Do you want this to work with a general radio station?

    • @Berghiker
      @Berghiker 3 ปีที่แล้ว

      @@FriendlyWire No, a blank spot near the bottom end of the dial. I want to receive the signal I transmitted, then relay must get activated.

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว

      @@Berghiker Okay, I think I need more information :) You are creating your own FM signal?

    • @Berghiker
      @Berghiker 3 ปีที่แล้ว +1

      @@FriendlyWire yes, a simple FM transmitter.

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว

      @@Berghiker You could look into using a phase-locked loop (PLL) for that, but this is also a bit beyond my expertise. I am sure that @FesZElectronics (th-cam.com/users/FesZElectronics) should have you covered :)

  • @zambodiazook
    @zambodiazook ปีที่แล้ว +1

    I love to decorate my tandem bicycle with LEDs, please help me make it beautiful

    • @FriendlyWire
      @FriendlyWire  ปีที่แล้ว

      Probably want to check out the WS2812 LED tutorial th-cam.com/video/NLyB3-vEbFk/w-d-xo.html :) Or do you want just one color? Let me know!

  • @susmithat881
    @susmithat881 2 หลายเดือนก่อน +1

    Why don't you connect the cap at 4,5 pins of max232

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

      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
      @susmithat881 2 หลายเดือนก่อน +1

      @@FriendlyWire tq a lot

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

      @@susmithat881 Happy to help, and thank you for your interest! :)

    • @susmithat881
      @susmithat881 2 หลายเดือนก่อน +1

      @@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
      @FriendlyWire  2 หลายเดือนก่อน

      @@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?

  • @GJROBOTICS
    @GJROBOTICS ปีที่แล้ว +1

    How to display a image using RS232 protocol

    • @FriendlyWire
      @FriendlyWire  ปีที่แล้ว +1

      Ohh, that would be difficult if the image has a high resolution. What kind of image do you have in mind?

    • @GJROBOTICS
      @GJROBOTICS ปีที่แล้ว +1

      @@FriendlyWire pixel image for a advertistment board led panel

    • @FriendlyWire
      @FriendlyWire  ปีที่แล้ว

      @@GJROBOTICS Is it supposed to be a movie (if yes, how many frames per second, and what is the color depth), or just a static image? And what is the resolution?

    • @GJROBOTICS
      @GJROBOTICS ปีที่แล้ว +1

      @@FriendlyWire can you upload a tutorial for that . I have a idea only for that. I wanna create a bill board to display images. thank you.

    • @FriendlyWire
      @FriendlyWire  ปีที่แล้ว

      @@GJROBOTICS RS232 is not the ideal format to transfer visual data, it's better for text-based content. The data transmission rate is too low for billboard-style images.
      If it's a small image, say, 62x62 pixels, and only one color and static, then it's easy. If it's a 4K screen showing a video with 16 million colors then it's close to impossible :)
      So the resolution and color depth really matter here, also if it's a movie or a static image. What resolution etc do you have in mind? :)

  • @qzorn4440
    @qzorn4440 3 ปีที่แล้ว +1

    wonderful rs232 info... this is just what the people going to mars will need to get back to earth... hacking in to their sensors...:/ thanks a lot...:)

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว

      Ha, thanks so much! Not sure I get the Mars part, but glad you find the video useful! :-) For space applications you might want to try RS422 instead, it's more reliable www.friendlywire.com/tutorials/rs232/#ch9 ;-)

  • @kevinmitnic1543
    @kevinmitnic1543 4 ปีที่แล้ว +1

    nic

  • @parsifal8232
    @parsifal8232 3 ปีที่แล้ว +1

    7:11 why you did this bit shitfing and 'and'?

    • @FriendlyWire
      @FriendlyWire  3 ปีที่แล้ว

      I just saw your comment, sorry for the delay! I am not sure if I understand your question. I am using the '&' operation to single out the eight bits that make of the byte 'value.' :)