Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Recent content by DanD

  1. D

    Pulse capture signal basic conditioning

    Hello, So i'm working on a digital dashboard and everything is working very nicely and now its time to knock out the tach and wheelspeed sensors part. For this i will use my PIC18F4480's pulse capture mode. The signals from the car are 12V in amplitude. I can't find a maximum input voltage...
  2. D

    lookup tablesss VS equations

    i've gotten to with in a couple degrees or PSIs of accuracy w/ a simple Vout*X+Y equation. it runs plenty fast so i think this will be fine. thanks for the input
  3. D

    lookup tablesss VS equations

    indeed. hrm math isnt a problem, i just thought getting complicated would be too slow. i guess i dont have enough uC experience to know what they can and cannot handle. These sensors are from Accutech, a well known automotive guage/sender company. The tables i posted are from their support...
  4. D

    lookup tablesss VS equations

    verrry interesting. Yes a look up table would require a LOT of interpolation.. which would probably be worse than an equation. hrmm Here are my tables: Temperature: Sender R Temp 1123.00 100 708.00 120 460.00 140 374.00 150 253.00 170 175.00 190 123.00 210 119.00 212 105.00...
  5. D

    lookup tablesss VS equations

    Hey guys, OK, i'm stuck. i using my PIC18F4480's ADCs to monitor temp and pressure sensors. the sensors vary their resistance according to the temp or pressure. I have a chart that shows what the temp or pressure is at a given resistance. I've been plotting and playing w/ circuits in excel...
  6. D

    ADC problem

    well i made it work w/ a bunch of conditional LCD writes based on the integer's length. works like a champ i must say, but i'm afraid i'm not being effecient enough for uC use.. still seems to run very fast though *shrug* talking to myself like this is like therapy i guess :P its working
  7. D

    ADC problem

    hrm the problem seems to lie with in the itoa (integer to string) function. it left justifies the result into the string. so 1024 -> "1024" but 900 -> "900 " and 1 -> "1 " its messing everything up because if the numbers stayed lined up i could just insert a decimal point and have a...
  8. D

    ADC problem

    well sort of. here is my code as of now: int getADC (unsigned int channel){ int adcResult = 0; msDelay(10); //OpenADC(ADC_FOSC_32 & ADC_RIGHT_JUST & ADC_12_TAD, ADC_CH0 & ADC_INT_OFF & ADC_VREFPLUS_VDD & ADC_VREFMINUS_VSS, ADC_16ANA); ADCON1=0b00001011; if(channel==1){...
  9. D

    ADC problem

    ah ha! i got it again. there is a bug in the C18 ADC libraries. using the Watch function i verified the reference registers werent being set right so i hardcoded ADCON1 adn voila!
  10. D

    ADC problem

    any ideas here? i'm hoping the results i'm getting can give someone w/ more experience a clue... hrmmmmmmmmmmmmmm
  11. D

    help needed for configuring only one analog input pin in PIC 16F877A

    what compiler are you using? If PIC's C18, there are a lot of prewritten libraries for ADC and all other functions that are quite handy
  12. D

    ADC problem

    Hello, I'm using a PIC18F4480 and attempting to setup one ADC channel for now, AN0. my input circuit consists of a pot voltage divider into a voltage follower opamp as a buffer. The buffer should take care of any input impedance issues, right? i have a multimeter on the input pin and can...
  13. D

    MC only runs w/ ICD2 attached?

    that was it. works fine, thanks!
  14. D

    MC only runs w/ ICD2 attached?

    ah, i see. So programming it in program mode is different than programming it in debugger mode? I'm using the debugger menu for everything. Thanks
  15. D

    Help w/ C code.. how to clear array pointer buffer?

    nevermind, i figured it out :) it was some other *seemingly* unrelated code far far away..

Latest threads

New Articles From Microcontroller Tips

Back
Top