Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Recent content by walumbe

  1. W

    [PIC] PIC12F683 Trouble with GPIO and Interrupt

    Hey, I did as you suggested and removed the phototransistor from GP0 (ADC input) to force it HIGH. With GP0 set at high the circuit works fine, but when the phototransistor is added there is flickering. I added a 0.1uF filter capacitor from this pin to ground and is seems to stop/reduce the...
  2. W

    [PIC] PIC12F683 Trouble with GPIO and Interrupt

    Zuisti, Happy New Year! Now that I too have settled have expelled all the festive drinks I can now conduct the experiment as you suggested. I will let you know how I fair.
  3. W

    [PIC] PIC12F683 Trouble with GPIO and Interrupt

    Thanks Zuisti. I went through your modifications to try to understand the logic. I tested the code with my circuit but it produces inconsistent behavior. The LEDs flicker for a fractioin of a second each time the sensor is vibrated in the dark. Could there be a point where GP2 is being turned...
  4. W

    [PIC] PIC12F683 Trouble with GPIO and Interrupt

    GP1 resting state is LOW. I have it set to check if there's any change in state to reset the counter as it is to be used in a moving car and will vibrate constantly when in motion. The goal is to check this input for any change and if GP0(dark) is LOW then turn off the LEDs. I'm new to PICs...
  5. W

    [PIC] PIC12F683 Trouble with GPIO and Interrupt

    I am using MikroBasic Pro to write the program. The Button command is for debouncing as the switch that I'm using has two rolling balls inside it and does not instantaneously change its state when tilted/vibrated. Just a simple explanation of what I want my circuit to do...If the values of the...
  6. W

    [PIC] PIC12F683 Trouble with GPIO and Interrupt

    Zuisti, I already have a PCB board designed and I'm testing with it. For now I would like to make the changes via code if possible to save on time and cost. From my testing the Vibration sensing is working fine and is resetting the counter each time there is an interrupt. Then issue is the dark...
  7. W

    [PIC] PIC12F683 Trouble with GPIO and Interrupt

    I need the interrupt to test the vibration sensor each time it is activated to reset the counter. I already tried doing in the main part of the program without the interrupt, but the LEDs flicker at the end of the counter before re-entering into it. Could there be a way to use IOC-GP0? Looking...
  8. W

    [PIC] PIC12F683 Trouble with GPIO and Interrupt

    Hi, I have written code for a PIC12F683 using a 4.0Mhz crystal. The pins are configured as follows: GP0 - Phototransistor tied to ground via a resistor. Another resistor tied from this pin to +5V GP1 - a vibration sensor switch (Shot Circuit when there is no vibration) tied to ground with a...
  9. W

    Resetting counter variable in MikroBasic PIC12F683

    A dark sensor is connected to GP0 and a vibration sensor to GP1. When they are both high GP2 will go high and trigger the base of a transistor to turn on a LED board. Both inputs have to be active HIGH for the output to function. I have it working without the use of an external AND gate, but it...
  10. W

    Resetting counter variable in MikroBasic PIC12F683

    Hi, I am using MikroBasic Pro to program a PIC12F683 to turn on an output(GP2) for a given time (T) when two inputs(GP0 and GP1) both high. I would like to reset the time (T) when there is a positive going trigger at GP1 that is tied to a vibration switch and GP0 is high. Is there a function...
  11. W

    [SOLVED] Resetting time Delay during execution PIC12F683 in PICBASIC??

    I'm new to the PIC world and would like some help with my code. In using a PIC12F683 (MikroBasic code) to TURN ON an output (GP2) when two inputs (GP0 and GP1) are both high. If both inputs are HIGH, the output GP2 will go HIGH and remain in that state for 2 minutes then TURN OFF. I am looking...
  12. W

    [SOLVED] PIC tutorial for MikroBasic Pro

    Thanks. I got some info to start learning with.
  13. W

    [SOLVED] PIC tutorial for MikroBasic Pro

    I am new to PIC programming. I picked up a PicKit2 and I'm using it to program a PIC12F683. Can anyone recommend a place where I can get material to learn about PIC programming. So far I have been able to write simple code to turn on and off LEDs and would like to learn more, specifically on the...
  14. W

    [SOLVED] 555 Timer Monostable feedback

    Vankadesh_M, I have tested the circuit and the the flickering is not caused by the phototransistor as it is not exposed to the LED board in the housing. Barry, I see your point about the redundancy of the latch. Would you happen to know of a RETRIGGERABLE one-shot IC that I can look at?
  15. W

    [SOLVED] 555 Timer Monostable feedback

    Barry, I did as you suggested and the latch works great. But the timer has to run through a complete cycle before it can be triggered again. I initially tied the timer's reset pin to the switch so that it resets the counter each time the switch is activated.

Part and Inventory Search

Back
Top