Forum Replies Created
-
AuthorPosts
-
December 18, 2015 at 12:23 pm in reply to: Unexpected behaviour of 12V DC Motor with PIC Microcontroller #11927Ligo GeorgeKeymaster
Ripples in the 12V rail will be coupled to 5V rail also and DON’T FORGET to make ground common when you are using separate power supplies.
December 18, 2015 at 8:08 am in reply to: Unexpected behaviour of 12V DC Motor with PIC Microcontroller #11924Ligo GeorgeKeymasterPlease let me know whether the problem is solved or not.
December 17, 2015 at 6:26 pm in reply to: Unexpected behaviour of 12V DC Motor with PIC Microcontroller #11922Ligo GeorgeKeymasterHi,
Your problem seems to be with Power Supply. Hope you are using same power supply for powering DC Motor and PIC Microcontroller. There will be a sudden drop in the supply voltage when the motor is powered, this will reset the microcontroller and program starts from the beginning again and again.
Try the following,
- Use separate 12V and 5V power supplies.
- Make sure that every components used in the circuit is able to provide peak current required during motor switching
- Increase the capacitance of both 12V and 5V rail. Eg : Put 1000µF for 12V and 100µF for 5V. Add 0.1uF near each ICs.
December 16, 2015 at 6:28 pm in reply to: Connecting Raspberry Pi to PIC16F887 using UART on both #11918Ligo GeorgeKeymasterHi,
Check the following.
- Ground of both Raspberry Pi and PIC should be made common.
- Baud rate, Parity Bits, Number of bits should be same
- Raspberry Pi output is 3.3V while PIC is 5V (3.3V PIC is also available). So you should use level shifting to prevent any possible damages to Raspberry Pi.
Ligo GeorgeKeymasterHi, you can use it like the following.
You can adjust the output voltage (for changing sensitivity) by changing the 10K resistor.
December 3, 2015 at 3:47 pm in reply to: Circuit diagram and programming for the FORCE SENSING RESISTOR SQUARE #11888Ligo GeorgeKeymasterHi,
I will give you some guidance. You can connect the FSR in series with a resistor (10K) across the supply (VCC and GND). You can connect the center point to the ADC input.
Now you can easily read the ADC values which will change depending upon the applied force. You can only get the variation of force by this. For calibration you need to do a lot of practical tests. There is no short cut.
November 19, 2015 at 10:21 am in reply to: INTERFACING OF DS1307 WITH PIC16F877A WITHOUT USING LIBRARY FUNCTIONS #11861Ligo GeorgeKeymasterHi,
Thank you for sharing this code.
November 14, 2015 at 10:10 am in reply to: GPS with PIC microcontroller using MikroC Pro for PIC #11858Ligo GeorgeKeymasterHi,
Sorry I don’t have any working code for it. But you can use string library as you are using MikroC.
Use strstr() function to get a specific part of a string.
Ligo GeorgeKeymasterHi,
You can refer this tutorial : Generating PWM with PIC Microcontroller using CCP module – MikroC Pro
Program will be same only as the compiler is MikroC but you need to change the IC in the project settings.
Ligo GeorgeKeymasterHi,
You can follow our tutorials and if you need any further help, please post it in forums or comments section.
Ligo GeorgeKeymasterHi,
You can use the tool AnalysIR for learning and implementing IR remote related projects. It is a very helpful tool.
Ligo GeorgeKeymasterHi,
I think you should go for a small microcontroller for that. Otherwise it will be very difficult to make it with simple digital circuits. Using a small microcontroller will reduce the cost, complexity etc.
Ligo GeorgeKeymasterDear Mustunsultan,
There is no meaning in combining some codes without any logic.
Try like this.
unsigned int ADC; void main() { short duty1 = 16; CMCON = 0x07; ADCON1 = 0x80; TRISA = 0xFF; //input analog signal //PWM Function PWM1_Init(5000); PWM1_Start(); //ADC Function do { ADC = ADC_Read(1); PWM1_set_duty(ADC/4); delay_ms(400); }while(1); }
Ligo GeorgeKeymasterYou can use the CCP module of PIC Microcontroller for that. Check for the PWM generating functions in CCS C.
All most all of the remote works in 38KHz.
Ligo GeorgeKeymasterYou need to change reading hour and setting hour part of my code also.
-
AuthorPosts