Search Results - MEL PICBASIC Forum


Search:

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

Search: Search took 0.00 seconds.

  1. Sorry, I forgot to divide rpm by 60 to get...

    Sorry, I forgot to divide rpm by 60 to get revolutions per second.

    Here is (I hope) the correct calculation:

    motor shaft is running at 11050rpm

    That's 184.17 rotations per second

    40...
  2. I think you may be right. Here's a listing of my...

    I think you may be right. Here's a listing of my polling version of the code:


    Device 16F876a
    Config WDT_OFF,CPD_OFF,CP_OFF, LVP_OFF, BODEN_OFF, HS_OSC
    Xtal = 20

    HSERIAL_BAUD = 57600 ...
  3. Using a wheel-mouse sensor as a motor speed sensor.

    Hello,

    I'm trying to use a wheel mouse optical sensor as a quadrature encoder for a small DC motor. I have the small patterned disc from the mouse epoxied onto the back of the motor, and the...
  4. Replies
    5
    Views
    7,688

    Hi Jerson, You're absolutely right - that was...

    Hi Jerson,

    You're absolutely right - that was the problem. What an incredibly stupid mistake! For anyone who's interested it now works fine with a 10k pull-down as in the diagram I posted earlier,...
  5. Replies
    5
    Views
    7,688

    Ok, I've tried replacing the 20k resistor with...

    Ok,

    I've tried replacing the 20k resistor with 1M (largest I have to hand), and the results are much the same - a clear voltage swing when just connected to my voltmeter, but almost none when also...
  6. Replies
    5
    Views
    7,688

    Using the optical sensor from a ball mouse

    Hello,

    I'm trying to use the optical encoder from a ball mouse to make a cheap quadrature encoder for an electric motor.

    I've removed the part of the PCB with the LED and sensor, and wired them...
  7. Thanks for all the suggestions - I'm blown away...

    Thanks for all the suggestions - I'm blown away by how quickly people have responded.

    Ok, I've added the snubber and it's immediately eliminated 90% of the resets. I can now turn the relay on and...
  8. Oh! In series... Which is what you said to begin...

    Oh! In series... Which is what you said to begin with (sorry, somehow misread your original post).

    Thanks again.
  9. Thanks >> If you didn't change the default...

    Thanks

    >> If you didn't change the default config fuse while loading the Bootloader firmware the first time, you can't modify them later in your code.

    I know! :-) But I'm quite happy with that...
  10. mat: If I try what you suggest won't the resistor...

    mat: If I try what you suggest won't the resistor allow a current to flow all the time? Or have I misunderstood how it should be connected?

    sayzer: The code is definitely working ok - with no load...
  11. Pic reseting when switching mains current with relay

    Hi,

    I'm trying to switch a mains current (240V AC) with a relay connecting via a transistor to my PIC (a 16f876a). The PIC is powered from a battery supply - 4 rechargeable AA NIMH cells providing...
  12. Replies
    3
    Views
    5,297

    Detecting mains current

    Hi there,

    I'd like to know if there's an easy and preferably cheap (in terms of components) way that my PIC can determine whether current is being drawn by a mains level (i.e. 240V) device....
  13. Replies
    7
    Views
    4,112

    Hi, Well spotted! Unfortunately putting it in...

    Hi,

    Well spotted! Unfortunately putting it in doesn't seem to resolve the problem.
  14. Replies
    7
    Views
    4,112

    Actually I am using Proton. I posted here...

    Actually I am using Proton. I posted here automatically because I'm used to reading this forum. Would I be better off posting it elsewhere (at www.picbasic.org/forum)?

    Nontheless, here's a...
  15. Replies
    7
    Views
    4,112

    Interrupts interfering with PRINT

    Hello,

    I have a 16f876a running at 20MHz. It's connected to 2 H-bridges (of Bob Blick's design as can be seen at http://www.bobblick.com/techref/projects/hbridge/hbridge.html) which I'm using to...
Results 1 to 15 of 15