Search results

  1. Amar Dhore

    Converting int to string - C Programming

    #include <stdio.h> char *itoa(char *buffer, int i) { unsigned int n; unsigned int negate = 0; int c = 6; if (i < 0) { negate=1; n = -i; } else if (i == 0) { buffer[0] = '0'; buffer[1] = 0; return buffer; } else...
  2. Amar Dhore

    Help with code.

    Me too. I am a PIC guy...
  3. Amar Dhore

    Help with code.

    In this kinda situation, I would first make sure that I disabled analog pins and make sure they are digital..
  4. Amar Dhore

    Help with code.

    First, I would check if I am getting any output Voltage when you push the button, do you see any voltage at the output pin? If yes, What relay are you using, ratings? This way we will know if the problem is hardware or software.
  5. Amar Dhore

    Help with code.

    What output voltage you getting at BJT base after you push the button? Can you post the code and schematic.
  6. Amar Dhore

    LM338 power supply problem

    Anubhav, Check the datasheet for LM338 Dropout Voltage. I guess for 1 Amp, the headroom is few Volts. your Vin -Vout should not be more than allowable limit otherwise your output might saturate.
  7. Amar Dhore

    Android automobile gauges

    I believe in Automotive, most of the electronics are controlled via CAN bus (Google ECU Can bus) and I guess that is what your obd2 is doing. Its a one of the node on the CAN bus which reads all the information (sensor, rpm etc etc ) from all the nodes on the network. If you can buy a device CAN...
  8. Amar Dhore

    Samsung Battery Thermistor (NTC) type?

    Correct me if I am wrong: What I would do is, I would create a resistance divider, with res 100ohm or 1K or 10K or 20K to Vcc and Samsung battery's one thermistor leg to ground. So with one of the above combinations, you should get a room temperature reading when the battery is at rest. So now...
  9. Amar Dhore

    SCI works fine in loopback mode but in normal mode it doesn't

    in here: void SciA_Transmit(int data) { while (SciaRegs.SCIFFTX.bit.TXFFST != 0) {} //Why are you doing this?? // Check if TXRDY is high SciaRegs.SCITXBUF=data; //wait for TXRDY to go low } Few more things: 1. Enable TXENA 2. Write to SCITXBUF, then the transmitter is no longer...
  10. Amar Dhore

    SCI works fine in loopback mode but in normal mode it doesn't

    I am confused about your baud rate calc. Note that your Baud rate formula are applicable only when 1 ≤ BRR ≤ 65535. So make sure your baud rate calc is correct. What is your CPU_FREQ? I do not follow CPU_FREQ 100E6 (100K?) Helpful link...
  11. Amar Dhore

    Which Robotics Algorithms should you Learn

    True, as steve said. Search for: Controls theory: Every robotics engineer is an expert in this.. Adaptive Algorithms: to make a robot Automatic Motor Controls: to make it move, fly or run. These 3 are enough to give you a Headache.. :P ... Enjoy.
  12. Amar Dhore

    SCI works fine in loopback mode but in normal mode it doesn't

    1. In your code, Where are you enabling RX and TX. 2. what is your Baud Rate? May be instead of trying interrupt mode, you should try first with polling, then go from there to interrupt mode. This might be a helpful document: http://www.ti.com/lit/ug/sprufz5a/sprufz5a.pdf
  13. Amar Dhore

    Flow Chart Software? C Programming

    I use Inkscape (free) which is like photoshop and can be use for so many things including documentation. A very powerful tool.
  14. Amar Dhore

    program pic16f877a for ds1307

    As Sadlercomfort said, First you should know how the SPI communication works, then its easy to implement it in the Micro. You should go through some sample examples source code just to understand it.
  15. Amar Dhore

    LTSpice Help

    Good to know. I will keep it in mind. Thanks again. - Amar
  16. Amar Dhore

    LTSpice Help

    Yaaay, it works.Thanks Adam. I am curious to know, How did you figure it out?
  17. Amar Dhore

    LTSpice Help

    I updated the file. Sorry about that, I forgot to save the changes.
  18. Amar Dhore

    LTSpice Help

    Hello Everyone, I am new to the ltspice. I am trying to import a third party OPAMP (MCP6L04) into ltspice. I download the spice model and added in the SPICE directories. When I compile it, I am getting an error: "Analysis: Time steps too small; initial timepoint:trouble with node u1:21" I...
  19. Amar Dhore

    simple question

    Your FPGA, Is it a developer Kit or is it just a FPGA chip that you are planning to build a circuit? please provide more details.
Top