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❤🎉
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 :)
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
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!
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
@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.
@@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!
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!
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
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?
@@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!
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!
@@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
@@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.
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 :)
@@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
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
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.
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! :)
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.
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 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.
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.
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?
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 :)
@@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 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? :)
@@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 :)
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
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?
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
@@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?
@@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
@@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. :)
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.
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! :)
@@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.
@@sepiroid 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?
@@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
@@sepiroid 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 :(
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!
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
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 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 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 :)
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...:)
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 ;-)
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! :)
@@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.
@@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?
@@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 :)
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.' :)
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❤🎉
Wow, thanks so much! :)
Your video is a godsend. Please don't stop, I was getting curious with electronics and these quality videos are what I need.
Thank you so much! I have no plans of stopping, and with positive feedback like this, why would I? :)
I really appreciate your video clip. This is the first time I totally understand the mechanism of RS232 at last.
Thank you so much, Jaeho, I am very happy to hear that! :)
Finally a video that everyone can understand. Keep up the good work!
Thanks, I am glad you like it! :)
Love the animations on the components. Makes what could quite a dull list fun to watch!
Thanks, I am happy to hear that!
Thank you for neat and clean explanation, i got better understanding, please keep up the good work like this!
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 :)
Very nice explanation and schematics. Now you have a new susc.
Thank you, Daniel, I am so glad you like it! Did you get her from Ben Eater's new video on RS232? :)
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
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!
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
@Jeffrey Frank instablaster =)
@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.
@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 !
Thanks ~ Merci.
Glad you like it!
Nice video bro.... Your work is great ....
Thanks so much, glad you like it!
i love it makes me want to learning again about electronics
Thank you, that's fantastic! :-) Have you seen my PIC microcontroller introduction video?
very good ! in RS232 you can also have RTS/CTS
Thanks! Yes, in this tutorial I decided to go with a very basic implementation :)
Sir please elaborate more on rs 232. It was a nice video
Thank you! What would you like to know more about?
Great job with editing video and of course with the content of them, thank you!
Thank you so much, I am very glad you like the video!
Excellent graphical combo with explanation. also really liked the starting moto ''everyone can learn electronics''
Thanks so much, glad you liked it! :)
Educative and funny! Great video!👍
Gracias, Jorge, I am glad you like the video! :)
What a nice video, your channel is great, I just subscribed
Thanks so much, I am glad you like it! Let me know if you have any questions or ideas for future videos/tutorials/projects :)
Thank You For the Awesome Video !!!!!
Thank you, I am glad that it's useful! :)
Excellent topic explanation. And superb presentation!
Thanks so much, glad you like it!
👍👍thanks, nice channel!
Thank you, glad you like the video! :)
I had to subscribe right away. Great job explaining things and awesome detail!!!
Thank you so much, and I am glad you like the video!
@@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!
@@Teyros Great, I hope it works! :)
Good video, this will be helpful to my homework in the college
Thanks, glad you like it!
These videos looks great!!!
Thanks so much, Percy, glad you like it! :)
great video and simple
Thanks so much!
Thank you sir.. I learned a lot
Thank you so much, Joseph, that's great to hear! :-)
Thanks for your video!
Thank you, glad you like it! :)
You sir, have just gained a subscriber.
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!
Amazing video !!!!
Wow, thanks so much, Nick! :)
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
Good Job, Keep it up ❤️
Thanks, glad you like it!
Quality Content! Can you make videos on dspic33ch dual core microchip controllers?
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?
Your videos are great!!
Thank you so much, glad you like them! :)
@@FriendlyWire do you do arduino too?
@@arkmediagroupllc For now I only focus on PIC microcontrollers :)
@@FriendlyWire can those microcontrollers control an I2C OLED display?
@@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!
me ayudo a enterder algo del RS232 thanks
Muchas gracias :) Glad it is helpful, have a great day!
I hope that the next tutorial will be pic interface with pc by using rs-422, rs485, and USB
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!
@@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
@@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.
Awesome video keep it up!
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 :)
@@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
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
@@CoVerseAU That's very interesting, thanks for sharing!
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.
Thank you, good to know! :)
I like it 😍👍
Thank you so much! :)
cool!
Thank you so much, glad you enjoyed the video!
Thanks, and see you later.
Thanks Thanh, have a great weekend! :)
Nice job!
Is it possible using your idea to control 8 independent PWM fans?
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! :)
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.
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.
@@FriendlyWire I see, thank you.
@@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.
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.
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?
is it possible to interface an ATmega328 with MAX232
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 :)
How to display a image using RS232 protocol
Ohh, that would be difficult if the image has a high resolution. What kind of image do you have in mind?
@@FriendlyWire pixel image for a advertistment board led panel
@@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?
@@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.
@@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? :)
The MAX232 is for 5V, C = 1uF
the MAX232A is for 5V, C = 0.1uF
the MAX3232 is for 3V or 5V C = 0.1F
Thank you for your comment! We are using the MAX232 here, so 1uF should be OK. How come the MAX232A only needs 100nF for the charge pump?
I love to decorate my tandem bicycle with LEDs, please help me make it beautiful
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!
Send ASC 255 for all LED glow ... Right ?
Yes, exactly! 1+2+4+8+16+32+64+128, each number is one LED :)
Can we do the same circuit connection with the arduino?
I mean the way rs232 goes to de pic
@@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 :)
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
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?
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
@@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?
@@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
@@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. :)
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.
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! :)
@@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.
@@sepiroid 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?
@@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
@@sepiroid 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 :(
Do you do arduino too?
For now I am focusing on PIC microcontrollers :)
Can this be used with USB communication?
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!
👏
Thanks so much, glad you liked the video!
nic
Thanks!
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
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).
@@FriendlyWire i want to use sim900a module
@@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? :)
@@FriendlyWire no worries... thanks
@@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 :)
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...:)
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 ;-)
Why don't you connect the cap at 4,5 pins of max232
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! :)
@@FriendlyWire tq a lot
@@susmithat881 Happy to help, and thank you for your interest! :)
@@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.
@@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?
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?......
Oh, good question! Do you want this to work with a general radio station?
@@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.
@@Berghiker Okay, I think I need more information :) You are creating your own FM signal?
@@FriendlyWire yes, a simple FM transmitter.
@@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 :)
7:11 why you did this bit shitfing and 'and'?
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.' :)