archive-nl.com » NL » P » PICBASIC.NL

Total: 182

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • Hexadecimal and BCD
    for the decimal digits 0 9 base 10 BCD counts as how we count daily in decimals only the notation is now binary The number 31 for example is binary 00011111 in BCD 0011 0001 the 3 stays here on the left the 1 on the right side see also the table Converting from BCD to decimal in PIC Basic as follows MyByte MyBCD 4 10 MyBCD 15 Or if it must be the same variable which must be converted MyByte MyByte 4 10 MyByte 15 Converting from decimal to BCD in PIC Basic as follows MyBCD MyByte 10 4 MyByte 10 Or if it must be the same variable which must be converted MyByte MyByte 10 4 MyByte 10 Decimal Hex Binair BCD 0 00 00000000 0000 0000 1 01 00000001 0000 0001 2 02 00000010 0000 0010 3 03 00000011 0000 0011 4 04 00000100 0000 0100 5 05 00000101 0000 0101 6 06 00000110 0000 0110 7 07 00000111 0000 0111 8 08 00001000 0000 1000 9 09 00001001 0000 1001 10 0A 00001010 0001 0000 11 0B 00001011 0001 0001 12 0C 00001100 0001 0010 13 0D 00001101 0001 0011 14 0E 00001110 0001 0100 15

    Original URL path: http://www.picbasic.nl/info_bcd_uk.htm (2016-02-17)
    Open archived version from archive


  • Build your own RC5 remote
    has his own wishes and you have to fill in which button sends which RC5 code mentioned in the RC5 tables see here and here The TRANSMIT HEX file underneath is only an example a TV remote controller with only 5 buttons namely Stand by Program and Volume and On basis of the downloaded PIC Basic example you can expand the program to your own wishes If you need more

    Original URL path: http://www.picbasic.nl/rc5_remote_uk.htm (2016-02-17)
    Open archived version from archive

  • PIC Basic projects
    This page uses frames but your browser doesn t support frames

    Original URL path: http://www.picbasic.nl/frameload_uk.htm? (2016-02-17)
    Open archived version from archive

  • Control dimmer with TV remote
    unnecessary power Adjust start up level Keep while switching the power on the 0 button from your remote control pressed and wait until the lamp burns on desired level Re adjust the default values reset Keep while switching the power on the MUTE button from the remote control pressed During adjusting the dim levels the dim level changes slower then normal to make adjusting easier When letting the button loose and the adjustment is ok the red en green LED blinks for a while With the for the dimmer reserved system selected on the remote control the P dim level up P dim level down and button 0 up down turn by turn works too Button 1 dims directly to the adjusted start up level Which system on the remote control is choosen doesn t matter the 0 button works always in the TV mode too Above described applies to the here downloadable BAS and HEX examples but you can ofcourse modify it to your own wishes Keep in mind that a remote control does not always send that what you expected The volume from TV SAT VCR1 and VCR2 are all the same Just as the volumegroup from TAPE TUNER CD etc And the 0 9 buttons from system TAPE for example send nothing at all See the lists RC5 system codes and RC5 command codes The components a transformer isn t used here PCB 101226 or etch it self ofcourse PIC 12F629 with program RC5 dimmer UK IC U2008B Optocoupler 4N25 Triac TIC226 LED Red en green 3mm IR receiver TSOP1736 Regulator 78L05 small voltage regulator TO 92 Transistor BC517 don t replace with just another NPN type NPN darlington Diode 1N4007 Resistor 180E 470E 2k2 4k7 6k8 8k2 10k 68k 180k 680k Resistor 11 Watt 8k2 do

    Original URL path: http://www.picbasic.nl/lichtdimmer_uk.htm (2016-02-17)
    Open archived version from archive

  • Display RC5/RC6 codes on a LCD
    with the RC5 protocol and must be programmed in a PIC16F648A When PORTB 0 pin 6 is connected to GND then the numeric values from system command and toggle are displayed in binair and decimal If PORTB 0 is not connected just leave it open then the system and commands are displayed as functions i e system Amplifier and command Volume Program 2 If there s no PIC16F648A in stock or you want also decode RC6 signals then program the second HEX file in a PIC16F628A Program 2 can not give function names so PORTB 0 has no function here The second HEX file displays the numeric values from system command and toggle in binair and decimal on the LCD LED s A LED connected on PORTA 3 returns the toggle signal The green LED flashes if an infrared IR signal is being received the red LED if the received signal is poor or if it s not a RC5 RC6 code and the yellow LED if only a glitch is received You can leave these LED s if you don t need this information Attention The TSOP1736 36kHz IR receiver must connected via a 470Ω resistor to 5V and

    Original URL path: http://www.picbasic.nl/rc5_display_uk.htm (2016-02-17)
    Open archived version from archive

  • RC5 10-channel receiver
    the remote control like SAT AMP DCC or VCR2 Push a button 0 9 on the remote control and keep it pressed while switching the power from the PICmicro ON If the LED blinks a couple of times slow then the new system is programmed in EEPROM Now the buttons 0 9 works only when the remote control stands in the just programmed system mode The LED burns continue while a valid button from a valid system is received and blinks fast when an invalid IR code is received System means equipment like TV VCR TAPE SAT etc Command means buttons on the remote like 0 9 I II PLAY STOP etc A push on a button from the RC5 remote control sends a header a togglebit an extended 7th command bit a 5 bit system code and a 6 bit command code When the received system code is equal to the programmed one in the EEPROM from the PIC then the command code is executed The programs are based on the 14 pins 16F630 but they can ofcourse make workable for almost every type PIC To see what system and command code s your remote control sends you can build an other easy project RC5 RC6 codes on a LC Display That project displays the IR code s on LCD so this project can be extend to steer much more channels wireless till 127 outputs with for example the 74HC595 There are two different HEX programs for downloading Program 1 The outputs from the program RC5TOGGL HEX changes always from level thus a push on button 3 from the remote control makes output 3 high until another push on button 3 is happend Program 2 The program RC5PULSE HEX only pulses the output thus if the button from the

    Original URL path: http://www.picbasic.nl/rc5_ontvanger_uk.htm (2016-02-17)
    Open archived version from archive

  • Protocol RC5 remote control
    Commandbit inversed 1 0 0 1 1 Toggle bit 5 System bits 6 Command bits After the start bit comes the toggle bit by every push on a button changes the toggle bit if it was a 1 it becomes a 0 if it was a 0 it becomes a 1 etc On basis of this toggle bit the receiver knows that the same button is pushed more then once The 5 system bits contain the device code that must controlled TV VCR1 VCR2 SAT TAPE etc so that if for example the stand by button in video mode is pushed only the video goes stand by and not even the TV or other devices With 5 system bits you can control maximum 32 different audio video devices The 6 command bits contain the button code which is pressed 0 9 MUTE TXT PLAY REC STOP etc The extended command bit was earlier a part of the start bit but with the original 6 command bits there s a maximum of only 64 different commands per device to send and for a modern device like TV and video it s a little these days The Philips engineers has adjust the

    Original URL path: http://www.picbasic.nl/info_rc5_uk.htm (2016-02-17)
    Open archived version from archive

  • Protocol RC6 remote control
    equipment The second point is that if a manufacturer invents something completely new that does not have an existing system command code set they can apply to have it registered as an official RC6 code set If their new gadget doesn t look like it is going to become a common product worthy of the limited official RC6 system codes they can be assigned an 8 or 16 bit manufacturer code and do their own thing with their system command coding the RC6 RC6A authorities can then wash their hands of that Even if the manufacturer makes a complete pigs ear they ve only made a mess for themselves Other manufacturer s equipment will either think Its not RC6 or Its RC6A but not my manufacturer and ignore it This is all only going to work if there is one organisation authority to administer the codings and Philips have the right to do so That s why Philips is a bit reserved with information about RC6 to make it not a tangle of codes what with RC5 is happend The RC6 format is defined as follows HHHHHHH Header data 16 bits 1111110010010101 NO bi phase coded T T Toggle bits 4 bits 0011 or 1100 NO bi phase coded SSSSSSSS System byte 8 bits bi phase coded CCCCCCCC Command byte 8 bits bi phase coded The RC6A format is defined as follows HHHHHHH Header data 17 bits 11111110010101001 NO bi phase coded T T Toggle bits 4 bits 0011 or 1100 NO bi phase coded s if it s 0 s if it s 1 Customer range 0 127 7 bits Customer range 32768 65535 15 bits bi phase coded UUUUUUU Customer identifier 7 or 15 bits depending on s bit bi phase coded SSSSSSSS System byte 8 bits bi

    Original URL path: http://www.picbasic.nl/info_rc6_uk.htm (2016-02-17)
    Open archived version from archive



  •