Search Results - MEL PICBASIC Forum


Search:

Type: Posts; User: mbw123; Keyword(s):

Page 1 of 4 1 2 3 4

Search: Search took 0.00 seconds.

  1. Replies
    7
    Views
    6,648

    Yeah, I switched it to 2400 baud rate and turned...

    Yeah, I switched it to 2400 baud rate and turned off the handshake. Maybe the visual basic code is wrong or the code on the PIC should be "if OK = 4" instead of 4 being in quotation marks. Or am I...
  2. Replies
    7
    Views
    6,648

    OK, thanks for the response. I tried it...

    OK, thanks for the response.

    I tried it without the RTS / CTS lines but it still didn't work.

    Sorry about the HSER defines, I used them before and I forgot to get rid of them. Even without...
  3. Replies
    7
    Views
    6,648

    PIC to serial with visual basic

    Hello,

    I am trying to hook up my PIC18F4550 to my serial port and send data using Visual Basic. The code for the PIC is below. I have a 22K resistor on the RX line of the PIC. The RTS and CTS...
  4. Replies
    7
    Views
    5,948

    It takes five seconds for the LED to come on. ...

    It takes five seconds for the LED to come on.

    I tried to turn it on without using the RTS and it works fine.

    Just now, I tried putting a diode on the pin and it actually seems to be working...
  5. Replies
    7
    Views
    5,948

    Alright, I got it working by changing adding...

    Alright, I got it working by changing adding "DEFINE OSC 4." So it works fine now. However, when I tried the original program there is still a pause. When I turn the pin off there is no pause,...
  6. Replies
    7
    Views
    5,948

    OK, this is really weird. I made a LED blink...

    OK, this is really weird. I made a LED blink program but it takes like 5 seconds to turn on and then it doesn't blink, it just stays on. How do I turn off the 37khz oscillator? Thanks.

    -Mike
  7. Replies
    7
    Views
    5,948

    Thanks for the response. The resistor is in...

    Thanks for the response.

    The resistor is in series with the pin. And I'll try to test the LED program right now.

    -Mike
  8. Replies
    7
    Views
    5,948

    Really slow digital input

    Hello,
    I am using an 18F4550 and I am trying to get it to read a digital input and turn on a LED when it is on. For some reason there is a five second pause when I trigger the pin. When I reset...
  9. Replies
    10
    Views
    7,975

    OK, thanks. -Mike

    OK, thanks.

    -Mike
  10. Replies
    10
    Views
    7,975

    "Which serial modes are you using" I am using...

    "Which serial modes are you using"
    I am using the HSERIN and HSEROUT commands. I haven't actually tested it yet because I've been working on RTS and CTS. Do I need to use SERIN and SEROUT with the...
  11. Replies
    10
    Views
    7,975

    Wow, thanks Skimask, it appears to be working. I...

    Wow, thanks Skimask, it appears to be working. I put the 22K resistor in and it is recognizing the voltage from the serial port.

    The one thing I didn't understand is

    "it'll be inverted from...
  12. Replies
    10
    Views
    7,975

    "you're not using a MAX232 or at least a series...

    "you're not using a MAX232 or at least a series resistor like the green manual says..."
    Uhhh...oops. I am using a 22K resistor on the transmitter line of the serial port but not on the RTS. What...
  13. Replies
    10
    Views
    7,975

    Thanks, I put that in but I am still having...

    Thanks,

    I put that in but I am still having problems. I think it has something to do with the serial port. I have connected the RTS line to porta.0. When I measure the voltage with a voltmeter...
  14. Replies
    10
    Views
    7,975

    18F4550 digital input

    Hello,

    This should be a really simple problem but I spent tons of time reading the datasheet and couldn't find a solution. I am trying to get a digital input on porta.0 and trigger a led to...
  15. Replies
    9
    Views
    6,633

    I appreciate the responses. I may have to...

    I appreciate the responses. I may have to abandon this project because of the aforementioned difficulties. However, for future projects, how would I strengthen the sensitivity of the ADCIN reading...
  16. Replies
    9
    Views
    6,633

    Uh oh, I smell a difficult project ahead if I...

    Uh oh, I smell a difficult project ahead if I were to try that. If I stuck with what I am doing (IR emitter and receivers) , what difficulties would I run into as far as measuring distance using...
  17. Replies
    9
    Views
    6,633

    dhouston, you said that I should send a...

    dhouston, you said that I should send a ultrasound pulse to find distance. But how would I track the position of a specific object (one with a IR emitter, for example) without using anything too...
  18. Replies
    9
    Views
    6,633

    Thanks guys. I'll try it out and post my...

    Thanks guys. I'll try it out and post my results.

    -Mike
  19. Replies
    9
    Views
    6,633

    reading IR photoresistor

    Hello everyone,

    I am using a PIC18F4550 and I am trying to measure the strength of an IR beam (translating to distance). I am using this...
  20. Thread: What is ADCON?

    by mbw123
    Replies
    2
    Views
    4,128

    Thank you very much, Henrik! This problem has...

    Thank you very much, Henrik! This problem has been plaguing me forever.

    -Mike
  21. Thread: What is ADCON?

    by mbw123
    Replies
    2
    Views
    4,128

    What is ADCON?

    Hello everyone,

    Can someone tell me how to configure adcon(1)? I need to use all the analog channels on my PIC18F4550 for the adcin command. Can anyone tell me how to read the datasheet?

    I...
  22. Replies
    6
    Views
    4,557

    Does anyone have a link or know of an article...

    Does anyone have a link or know of an article about this where I could go to?

    -Mike
  23. Replies
    6
    Views
    4,557

    I might use the USB feature... I don't know if I...

    I might use the USB feature... I don't know if I need the feature right now though.

    I think I will use this code...but are the adc_bits and adc_sampleus numbers arbitrary?

    DEFINE OSC 4
    DEFINE...
  24. Replies
    6
    Views
    4,557

    I would like to read all channels. And I am...

    I would like to read all channels. And I am using a 20mHz crystal, although I know I need a DEFINE OSC 20 for that. What I don't understand is how to read the tables in the datasheet and how to set...
  25. Replies
    6
    Views
    4,557

    adcon problems with adcin

    Hello everyone,

    I have a simple question: I am trying to use the adcin command to get input from a pot source on a 18F4550. I am hacing problems with the defines and setting it up. I assume I...
Results 1 to 25 of 76
Page 1 of 4 1 2 3 4