Forum Replies Created
-
AuthorPosts
-
Ligo GeorgeKeymaster
Hello it may be caused due to EMI (Electromagnetic Interference) problems.
If you are using same power supply for relay and LCD, make sure that you are using proper filtering capacitors.
Add proper power supply decoupling capacitors near to the VDD and VSS of PIC, LCD etc. Try with parallel combination of 10uF and 0.1uF. If it doesn’t works use 1nF, 100nF and 4.7uF in parallel.
If you are using long wires to LCD, reduce its length.
Make sure that there is sufficient delay after each LCD write.
Also check whether the clock frequency in the project settings and hardware / simulator is same.November 11, 2014 at 11:43 am in reply to: How to interface more than one servo with PIC 16F887 #9809Ligo GeorgeKeymasterYour code seems to be correct. It might be the problem of simulator. Try in real hardware.
Ligo GeorgeKeymasterPlease post your code here…
Ligo GeorgeKeymasterHello,
Sorry for the delay in reply.
You may also sense the LED status by using Photo diode. It is the best method.
Or
You can take the voltage across LED. Use a Transistor as a Switch to boost the voltage to 5v.Ligo GeorgeKeymasterNote that required bits are SET using OR Operator, so we should clear previously set bit if any using AND Operator.
Ligo GeorgeKeymasterHello, I used 8MHz crystal in that project.. You may use 4MHz or 20MHz. Just need to edit it in MikroC project settings.
Use 1/4 watt resistors… .. and select 0.47 ohm fusible resistor as per your current requirements.Ligo GeorgeKeymasterInterfacing USB modem is a very difficult task..
Try interfacing UART modem.. it is easy..Ligo GeorgeKeymasterPIC may reset due to different problems..
Unexpected reset might not be due to Watchdog timer..
Use a good power supply..Ligo GeorgeKeymasterAs shown in the error message, please check your target. It might be the problem of your pic microcontroller. Try replacing it with a new one. Check whether the ICSP circuit is correct or not.
Ligo GeorgeKeymasterYes, you can use that code for PIC 16F876A.
Ligo GeorgeKeymasterNo, it will not work.. you need to develop codes for IC 23017.
Ligo GeorgeKeymasterYou may solve it by incrementing a variable as above…. but the best solution is to use PIC’s internal timer module..
eg ://Start Timer for(a=read_timer;a< a_value;) { //Do Something } //Stop Timer
You can use Timer0 module… Read the Timer0 section in the datasheet.
Ligo GeorgeKeymasterYou may use Microchip’s IO port expanding IC’s MCP23017 or MCP23S17.
Following link may help you :
Increasing IO Ports PIC Microcontroller
You can expand output pins by using D-Latches or Shift Registers
Expanding Output Pins PIC MicrocontrollerLigo GeorgeKeymasterIt is very easy to interface an LCD with Arduino Board using LiquidCrystal library.
Code Example :// initialize the library with the numbers of the interface pins LiquidCrystal lcd(9, 8, 7, 6, 5, 4); void setup() { // set up the LCD’s number of columns and rows: let it be 16×2 LCD display. lcd.begin(16, 2); // Print a given text on the LCD screen. lcd.print(“hello, world!”); } void loop() { // set the cursor point to 0th column, 1st line lcd.setCursor(0, 1); // print the number of seconds since last reset: lcd.print(millis()/1000); }
Refer following links :
http://arduino.cc/en/Tutorial/LiquidCrystal
https://electrosome.com/lcd-interfacing-with-arduino-board/Ligo GeorgeKeymasterYou should not provide a voltage more than 5V to PIC IO pins..
-
AuthorPosts