Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
hi Burt,
I have seen slip rings made using a standard 0.25inch jack plug and socket.
Sorry to hear about your sad news.
:100000002500290A6A002900FF0CE9010307EA011B
:100010000307250A030C2800DF0C1009040A6800F6
:100020002700E70CE7016802FC0C03071B0AE70145
:100030000306170AE7010400E803170A0706200A67
:100040002707240A0000240A0008C404A4040400AA
:1000500000086400FF0C32003600170C3500250044
:10006000000C36000600000C2600B204120202004A
:10007000A6050602B6041602060046040602560449
:1000800016020600010C0209A6040602B6041602B6
:10009000060046050602560416020600010C020977
:0200A000380A1C
:021FFE00EA0FE8
:00000001FF
@ movwf OSCCAL
lowO var GPIO.5
highO var GPIO.2
TRISIO =%00000000
GPIO =%00000000
OPTION_REG.5=0
while 1==1
HIGH lowO
low highO
pause 1
low lowO
high highO
pause 1
wend
Probably a good ideajust a transistor
/* *****************************************************************************
; *
; Filename: *
; Date: *
; File Version: 001 *
; *
; Author: Jason Lopez *
; Company: AtomSoft *
; *
;***************************************************************************** */
#include <p18f2525.h>
#include <delays.h>
#include <string.h>
#pragma config WDT = OFF, LVP = OFF, OSC = INTIO67, XINST = OFF
/************************************
Prototypes
*************************************/
void main(void);
#define lowO LATCbits.LATC4
#define highO LATCbits.LATC5
#define Btn PORTBbits.RB0
/************************************
Main
*************************************/
void main(void){
char time = 1;
OSCCON = 0x72; //8MHz clock
while(!OSCCONbits.IOFS); //wait for osc stable
ADCON1 = 0x0F; //Digital Pins (we dont need ADC)
TRISA = TRISB = TRISC = 0x00; //All Outputs
LATA = LATB = LATC = 0x00; //All Low
TRISBbits.TRISB0 = 1;
while(1){
lowO = 1;
highO = 0;
Delay10TCYx(time);
lowO = 0;
highO = 1;
Delay10TCYx(time);
if(Btn){
time++;
while(Btn);
Delay1KTCYx(10);
if(time > 10) time = 1;
}
}
}