Search results

  1. chopnhack

    Designing a Time Delayed Relay

    Code done! (needs a cleanup and perhaps writing of functions to make more compact, but working) Problem occurred while writing code that had me chasing ghosts.... My test light GP5, to simulate activation of the relay on the board, stayed lit under certain situations. Turns out that U3 Allegro...
  2. chopnhack

    Modulating ADC channels?

    I am back, I followed your advice and iterated through many changes. I ended up with this final code that works. The funny thing about it is that it's giving me some false lighting conditions on AN2 channel - at least what I thought were false lightings. It turns out that the input to that...
  3. chopnhack

    Help with invention

    You S. FL. guys have all the fun!
  4. chopnhack

    Design Simple microcontroller circuit

    There is your issue - when using mplabs, osscal is preserved. Third party programs do not, AFAIK. The chip might be wasted at this point. Do a web search for resetting osscal and see what comes up.
  5. chopnhack

    Modulating ADC channels?

    Yes, I made double sure. I changed the ports to reflect what the project board will use.
  6. chopnhack

    Help with invention

    Its done with Java. Apparently there is even an Android IDE available now!
  7. chopnhack

    Modulating ADC channels?

    Ok, implemented your suggestions and fixed the logic error. QHB mentioned that I was calling some of the bits using decimal numbers instead of binary and I corrected that as well. I am still stumped as to why the code is not functioning as intended. The program still cycles through and lights...
  8. chopnhack

    Modulating ADC channels?

    Thank you NorthGuy - I didn't spot the typo and you're correct, that was from cut and pasting! I didn't understand your logic for AND'ing the off condition, but once I thought it through, I got it. The AND means both have to be off to go low and that makes sense as if any which one is high, it...
  9. chopnhack

    Modulating ADC channels?

    Hello all, I added in the code for monitoring both ADC inputs (pic12f675) to my ongoing project, but its not working. I need some help getting the code to function properly. I am not sure of how to alternate between ADC inputs. When I set the ADCON0.bits for voltage and right justification...
  10. chopnhack

    Design Simple microcontroller circuit

    Ok, good. Now with the pic12's the oscal value can be lost during programming - especially if you are not using mplabs ide. What programmer and ide are you using?
  11. chopnhack

    Design Simple microcontroller circuit

    Yes, but didn't you say that you changed from the 18f to the smaller 12f pic? If you did then you would have to call the header for the 12f pic and not the 18f. They are not compatible, the setup for each chip is separate.
  12. chopnhack

    Designing a Time Delayed Relay

    Thanks again @NorthGuy for clarifying the logic of the code! So at this point we have one power input read into the ADC and the circuit working successfully! Hurray, 2 years 6 months later :oops::D The next step is to modulate the second ADC input from the other allegro chip. There are two ADC...
  13. chopnhack

    ltspice

    Hi Steve, LTSpice is very useful, but you have to take results with a grain of salt - they are just models - an imperfect approximation of what is really going on. Operating parts outside of their parameters or expecting ideal functions of parts will get you into trouble. Also, as was mentioned...
  14. chopnhack

    Help with ADC conversion registers in PIC or possible logic in code flaw

    Thank you!! I looked at this for some time today and came up blank. I reasoned that I started the acquisition process and paused for the conversion to be done, but failed to realize that this needs to be done each time around the loop - so simple too... :oops: Makes sense as the code flows...
  15. chopnhack

    Design Simple microcontroller circuit

    Exactly. The pin outs are probably not even the same. Hopefully sid will be back on to elaborate on the exact problem.
  16. chopnhack

    Help with ADC conversion registers in PIC or possible logic in code flaw

    Indeed, its a great idea, but memory space in 'C' is already very limited! Good to keep in the toolbox for larger pics though, thank you! I was able to implement this part of your suggestion: EDIT: Not quite, somehow with prolonged testing, GP5 which should stay lit is resetting to a low...
  17. chopnhack

    Generating a DC supply from the attached circuit

    Pardon my ignorance, I will have to look into uk wiring more - I forgot you have 230V. In the states, we have split phase, we use two 120 legs to derive our 240v and in our circuits for 240, its two black conductors each are live with 120v and one ground earth. Each 120 leg crosses over the...
  18. chopnhack

    Generating a DC supply from the attached circuit

    What do you have coming into the box? Power has to come in on one wire and leave on another, the names may be different, but physics are the same. I thought UK has red (live) and green/yellow earth as well as a blue neutral? What I was going to mention was a small transformer and rectifier...
  19. chopnhack

    Generating a DC supply from the attached circuit

    http://www.st.com/content/ccc/resource/technical/document/data_brief/dc/e9/07/a2/57/75/49/c1/DM00161788.pdf/files/DM00161788.pdf/jcr:content/translations/en.DM00161788.pdf The schematic link on their website seems to be down, but the above link is for the datasheet which shows the schematic on...
  20. chopnhack

    Generating a DC supply from the attached circuit

    I get page not found when I click the link.
Top