| Products > Test Equipment |
| Brymen IR connection protocol - Anyone sniffed it yet? |
| << < (25/31) > >> |
| Sairus:
how to choose resistor for LED. 1) Check the voltage drop on led (Vd) 2) Find out what will be the operating voltage (Vs) 3) Decide how much we need current (it is selected on the power supply capacity, or the maximum output current of IC pin,and LED Imax) I R=(Vs-Vd)/I remarks If the calculated resistance value non-standard should be taken nearest appropriate. (After you select you should recalculate current) When LED work or heating it voltage drop decreases slightly sometimes it is necessary to take into account. In my design, I take current value approximately equal to half of the maximum as LED is located very close to the photodetector, and no need for high brightness (less current will increase reliability). In case of phototransistor is also possible to perform calculations on the basis of the manual but I do not know what model I have and what it features and is unknown to me consecrated created by DMM LED. So I just found right in experimental way. I made HEX for you (speed 9600 standart settings) i test it with my software it work OK. https://www.dropbox.com/s/qyisyfoqxdlw4gz/bu%2086%20uart.hex?dl=0 circuit in attachments value of R3 must be chosen experimentally To do this, run the COM Port terminal and view the data packets end of package must always be the same is indicator of a well-functioning cable 01 11 be a1 fe fc 7c 01 00 be bf be be 04 00 86 86 86 86 80 01 11 be a1 fe fc e4 01 00 be bf be be 04 00 86 86 86 86 80 01 11 be a1 fe fc da 01 00 be bf be be 04 00 86 86 86 86 80 01 11 be a1 fe fc a0 01 00 be bf be be 04 00 86 86 86 86 80 01 11 be a1 fe fe fc 01 00 be bf be be 04 00 86 86 86 86 80 01 11 be a1 fe a8 be 01 00 be bf be be 04 00 86 86 86 86 80 01 11 be a1 fe 7e fc 01 00 be bf be be 04 00 86 86 86 86 80 01 11 be a1 fe 7e fe 01 00 be bf be be 04 00 86 86 86 86 80 01 11 be a1 fe e4 a8 01 00 be bf be be 04 00 86 86 86 86 80 01 11 be a1 fe e4 7e 01 00 be bf be be 04 00 86 86 86 86 80 01 11 be a1 fe e4 7c 01 00 be bf be be 04 00 86 86 86 86 80 possible terminal will display data like this fc a0 01 00 be bf be be 04 00 86 86 86 86 80 01 11 be a1 fe fe fc 01 00 be bf be be 04 00 86 86 86 86 80 01 11 be a1 fe a8 be 01 00 be bf be be 04 00 86 86 86 86 80 01 11 be a1 fe 7e fc 01 00 be bf be be 04 00 86 86 86 86 80 01 11 be a1 fe 7e fe 01 00 be bf be be 04 00 86 86 86 86 80 01 11 be a1 fe e4 a8 01 00 be bf be be 04 00 86 86 86 86 80 01 11 be a1 fe e4 7e 01 00 be bf be be 04 00 86 86 86 86 80 01 11 be a1 fe e4 7c 01 00 be bf be be 04 00 86 86 86 86 80 so it can be difficult to understand if everything is okay |
| t1d:
--- Quote from: Sairus on June 26, 2016, 08:19:05 am ---how to choose resistor for LED. 1) Check the voltage drop on led (Vd) 2) Find out what will be the operating voltage (Vs) 3) Decide how much we need current (it is selected on the power supply capacity, or the maximum output current of IC pin,and LED Imax) I R=(Vs-Vd)/I --- End quote --- Thank you for this! It really helped to correct my thinking. I get lost in the math, sometimes... --- Quote from: Sairus on June 26, 2016, 08:19:05 am ---I made HEX for you --- End quote --- Fantastic! Thank you for all your hard work!!! You may recall from my prior posts that my controller is a fully developed platform. (I apologize, if this was not clear.) My brother writes the software for us. He has already coded all the chip configurations and coded various functions, including USB communications. So, I will not be using the USB converter. He has also written code to read various analog and digital signals. So, he would probably just needs to see the portion of your C code that is transmitting and reading the data, to compare it to the way he might write that portion of the code and to make sure it would work with his existing code. If you wouldn't mind, may we please have that portion of the C code? Even though it is written for a different compiler, he probably can figure it out, particularly if you have made comments. (We are using MPLAB X IDE. He does not like it and we will be changing to something else, in the near future...) Thank you so much for your kindness and generosity! You make the internet a wonderful world-wide community! |
| t1d:
@ Sairus - I noticed on Ebay that there are ready-made USB cables that have on-board UART converters. They are very inexpensive. Would specifying the use of that type of cable remove the need for the PL2313 to be on the board, thereby making your board a little more universal to use, for people that are using PICs that have USB capability? |
| Sairus:
--- Quote ---@ Sairus - I noticed on Ebay that there are ready-made USB cables that have on-board UART converters. They are very inexpensive. Would specifying the use of that type of cable remove the need for the PL2313 to be on the board, thereby making your board a little more universal to use, for people that are using PICs that have USB capability? --- End quote --- if you read the instructions carefully you will see that I am using ready solution that you find on ebay. In addition PL2313 usb uart 1.1$ http://www.aliexpress.com/item/Free-Shipping-10PCS-LOT-PL2303-PL2303HX-USB-to-UART-TTL-Cable-module-4p-4-pin-RS232/32246850839.html?spm=2114.30010308.3.225.YAGSFd&ws_ab_test=searchweb201556_8,searchweb201602_1_10037_10017_405_507_10033_10032,searchweb201603_11&btsid=bc2e7bb7-9fbc-41fb-b088-b1af303c4acc Simple PIC12F683 1.38$ http://www.ebay.com/itm/1Pcs-PIC12F683-I-P-PIC12F683-DIP8-MICROCHIP-IC-MCU-FLASH-2KX14-20MHz-2V-5V-/281783031814?hash=item419b93d806:g:Iz8AAOSwY45UNRN- they two cost less than one micro with USB on board. |
| t1d:
Ah, saving money... Excellent idea... |
| Navigation |
| Message Index |
| Next page |
| Previous page |