Tell us about yourself!

Complete Your Profile
  • Abolfazlnazari commented on Antzy Carmasaic's instructable FS-Touch Bed Levelling Tool16 days ago
    FS-Touch Bed Levelling Tool

    mega32.h>#include #include volatile int T_Counter;float T = 0.0;float d = 0.0; interrupt [TIM0_OVF] void timer0_ovf_isr(void){TCNT0 = 0;T_Counter++; } void main(void){DDRA=0xff;PORTC=0x00;DDRC=0x01; // Timer/Counter 0 initialization// Clock source: System Clock// Clock value: 8000.000 kHz// Mode: Normal top=0xFF// OC0 output: DisconnectedTCCR0=0x01;TCNT0=0x00;OCR0=0x00; // Timer(s)/Counter(s) Interrupt(s) initializationTIMSK=0x01; // USART initialization// Communication Parameters: 8 Data, 1 Stop, No Parity// USART Receiver: On// USART Transmitter: On// USART Mode: Asynchronous// USART Baud Rate: 9600UCSRA=(0UCSRB=(0UCSRC=(1UBRRH=0x00;UBRRL=0x33; // Global enable interrupts#asm("sei") while (1) { delay_ms(150); T_Counter = 0; PORTC.0 = 1; d...

    see more »

    mega32.h>#include #include volatile int T_Counter;float T = 0.0;float d = 0.0; interrupt [TIM0_OVF] void timer0_ovf_isr(void){TCNT0 = 0;T_Counter++; } void main(void){DDRA=0xff;PORTC=0x00;DDRC=0x01; // Timer/Counter 0 initialization// Clock source: System Clock// Clock value: 8000.000 kHz// Mode: Normal top=0xFF// OC0 output: DisconnectedTCCR0=0x01;TCNT0=0x00;OCR0=0x00; // Timer(s)/Counter(s) Interrupt(s) initializationTIMSK=0x01; // USART initialization// Communication Parameters: 8 Data, 1 Stop, No Parity// USART Receiver: On// USART Transmitter: On// USART Mode: Asynchronous// USART Baud Rate: 9600UCSRA=(0UCSRB=(0UCSRC=(1UBRRH=0x00;UBRRL=0x33; // Global enable interrupts#asm("sei") while (1) { delay_ms(150); T_Counter = 0; PORTC.0 = 1; delay_us(20); PORTC.0 = 0; while(PINC.1 = good but

    View Instructable »