HC-SR04 Archives - electroSome https://electrosome.com/topic-tag/hc-sr04/ You Inspire.....We Create..... Fri, 03 Feb 2017 07:31:17 +0000 en-US hourly 1 https://wordpress.org/?v=6.1.1 Interfacing 2 HC-SR04 to PIC Microcontroller https://electrosome.com/topic/two-hc-sr04-pic-microcontroller/ Thu, 02 Feb 2017 13:38:06 +0000 https://electrosome.com/topic/interfacing-two-hc-sr-04-with-pic-16f877a/ How can I interface two HC-SR04 ultrasonic distance sensor with PIC 16F877A using a single timer (timer 1) ?

The post Interfacing 2 HC-SR04 to PIC Microcontroller appeared first on electroSome.

]]>
DC Motor PWM Speed Control with Ultrasonic Distance https://electrosome.com/topic/dc-motor-speed-ultrasonic-distance-hc-sr04-pic/ Tue, 15 Mar 2016 03:28:16 +0000 https://electrosome.com/topic/ultrasonic-control-dc-motor-by-using-pwm-and-trigger-by-switch-with-pic16f877a/ hi and good day to you, i am working on pic16f877a , have interfaced push-button to trigger the ultrasonic sensor hc-sr04 and the range will control the motor speed by using the pwm function. i am very new to the programming mikroC and i really hope you can guide me. As now i just learn […]

The post DC Motor PWM Speed Control with Ultrasonic Distance appeared first on electroSome.

]]>
Interfacing HC-SR04 Ultrasonic Sensor with PIC 16F676 using Hi-Tech C https://electrosome.com/topic/hc-sr04-ultrasonic-pic-16f676-hi-tech/ Thu, 08 Jan 2015 08:09:45 +0000 https://electrosome.com/topic/16f676-and-hc-sr04-ultrasonic-sensor-with-hi-tch/ With reference to the article Interfacing HC-SR04 Ultrasonic Distance Sensor with PIC Microcontroller, I am trying to change the microcontroller to PIC 16F676. #define _XTAL_FREQ 8000000 #define RS RC5 #define EN RC4 #define D4 RC0 #define D5 RC1 #define D6 RC2 #define D7 RC3 //#include <xc.h> #include <htc.h> #include "lcd.h"; #include <pic16f676.h> // BEGIN CONFIG […]

The post Interfacing HC-SR04 Ultrasonic Sensor with PIC 16F676 using Hi-Tech C appeared first on electroSome.

]]>
PIC C Compiler and HC-SR04 Ultrasonic Sensor https://electrosome.com/topic/picc-compilier-ultrasonic-sensor/ Mon, 08 Dec 2014 14:09:32 +0000 https://electrosome.com/topic/picc-compilier-ultrasonic-sensor/ What is wrong. The below code. Please help me. #include "C:\Users\enhee\Documents\lcd16f873a.h" #define use_portb_lcd TRUE #include <LCD.C> #byte timer1=0x10 #bit  trigger=0x07.2 #bit  echo=0x07.1 #bit on_off=0x10.0 unsigned char zai=12; void main() { float a; set_tris_c(0x02); timer1=0x10; setup_adc_ports(NO_ANALOGS); setup_adc(ADC_OFF); setup_spi(SPI_SS_DISABLED); setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1); setup_timer_1(T1_DISABLED); setup_timer_2(T2_DISABLED,0,1); setup_comparator(NC_NC_NC_NC); setup_vref(FALSE); lcd_init(); lcd_gotoxy(1,1); printf(lcd_putc,"zai medregch"); for(;;) { set_timer1(0x0000); trigger=1; delay_us(10); trigger=0; while(!echo);      […]

The post PIC C Compiler and HC-SR04 Ultrasonic Sensor appeared first on electroSome.

]]>